No, you can't use %p in a patch file. The preferred method,
apparently, is to put something like:
@PREFIX@ in the patch file where you would want %p, then use:
PatchScript: sed 's|@PREFIX@|%p|g' <%a/%n.patch | patch -p1
in your .info file.
See the packaging manual.
Peace
- John
On Sep 18, 2007, at 11:10 AM, Koen van der Drift wrote:
> Hi,
>
> Is it possible to use %p in a patch file? I vaguely remember a
> while ago there was a reason not to do this, but I forgot exactly
> what. I haven't been following the latest developments of the
> project either, so I don't know if this has been changed.
>
> Basically, what I need to do is to update some paths in makefile.pl
> so that it can find the right headers and libraries. Adding a patch
> file in this case (IMHO) is much easier than to add a Patch field
> in the info file. Unless someone knows a good way to change using
> the Patch field:
>
> if (-d "$EMB_ROOT/include") {
> $EMB_INC = "-I$EMB_ROOT/include";
> }
>
> into this:
>
> if (-d "$EMB_ROOT/include") {
> $EMB_INC = "-I/%p/include/EMBOSS -I/%p/include/eplplot";
> }
>
>
> thanks,
>
> - Koen.
>
>
>
> ----------------------------------------------------------------------
> ---
> This SF.net email is sponsored by: Microsoft
> Defy all challenges. Microsoft(R) Visual Studio 2005.
> http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
> _______________________________________________
> Fink-devel mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/fink-devel
-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2005.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
Fink-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/fink-devel