I am a new fink packager, and still have a lot to learn. I recently was faced with the challenge of figuring out how to get around a need to hard code /sw in a .patch file. I eventually found a solution by examing a bunch of .info and .patch files.

I suspect the need to get the prefix in the patch file is a relatively common problem. It would be useful to have this issue, and a possible solution, discussed in the packaging manual. I suggest the following text for the section 5.5 of Reference Manaul.

http://fink.sourceforge.net/doc/packaging/reference.php

"It may be necessary for the .patch file to include the fink prefix (e.g. /sw). However, /sw cannot be hard coded. One solution is to put a placeholder in the .patch file where the /sw would be, and use a patch script to patch the .patch file. Put

PatchScript: sed 's|@PREFIX@|%p|g' <%a/%n.patch | patch -p1

This will replace "@PREFIX@" in the .patch file with the user's prefix before the .patch file is used."

Kevin Horton


------------------------------------------------------- The SF.Net email is sponsored by EclipseCon 2004 Premiere Conference on Open Tools Development and Integration See the breadth of Eclipse activity. February 3-5 in Anaheim, CA. http://www.eclipsecon.org/osdn _______________________________________________ Fink-devel mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/fink-devel

Reply via email to