On Thu, Sep 25, 2008 at 07:50:39AM -0400, Ben Abbott wrote:
> I am trying to apply a local patch. I've copied gnuplot.info to the
> local branch and modifed the pathscrpts as
>
> PatchScript:<<
> perl -pi -e 's/\bClass\b/GP_Class/g' `find src -name \*.c -o -name
> \*.cpp -o -name \*.h`
> sed -e 's,@FINKPREFIX@,%p,g' %{PatchFile} | patch -p1
> cd gnuplot-4.2.4
> patch -p1 < %a/col_interp-gp424.patch
> cd ..
> <<
>
> As those in the know might expect ...
>
> fink validate /sw/fink/dists/local/main/finkinfo/sci/gnuplot.info
> Validating package file /sw/fink/dists/local/main/finkinfo/sci/
> gnuplot.info...
> Error: Cannot use %a if using PatchFile, use %{PatchFile} to reference
> the patch. (gnuplot.info)
>
> What is the proper way for me to do this?
>
> I've placed the new patch (col_interp-gp424.patch) in the same
> directory as the local gnuplot.info.
As the Packaging Manual says, %{PatchFile} is the full path to the
filename listed in PatchFile: (i.e., prefixes the %a automatically).
Using this type of .info patchfile handling, you can have only one
patchfile-- just append additional pieces to the existing one.
Interestingly, I wasn't even noticing that error in infofile syntax,
but instead saw that your added patch won't be applied from the
starting directory you expect. Unless you explicitly say so,
PatchScript is run one line at a time, not as a whole shell script.
That means a "cd" in one line only lasts for that one line.
dan
--
Daniel Macks
[EMAIL PROTECTED]
http://www.netspace.org/~dmacks
-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
Fink-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/fink-users