Patrick Dupre wrote:
I am trying to patch gnuplot with https://sourceforge.net/p/gnuplot/patches/694/However, it fails for several reasons, The first one is that the patch does not apply to last version of tabulate.c (maybe to a previous one). Then a fixed directly the tabulate.c fileHow can generate the package directly from the SOURCES? with rpmbuild I try to modify the .spc file by removing the #%patch0 -p1 -b .refto #%patch1 -p1 -b .font #%patch3 -p1 -b .plot-sigsegv #%patch4 -p1 -b .isinglethread #%patch5 -p1 -b .checkint #%patch6 -p1 -b .tabulate # This failsBut it does not work. because I guess that it does not compile my new sources but the old ones.Actually, %patch6 -p1 -b .tabulate would fails
-p1 is used here
patch -p0 gnuplot-5.0.6a-tabulate.patch (manually) would be OK, but it fails from the .spec file
And -p0 is used here.The argument to -p is the number of leading directories to strip off the paths in the patch. It's fairly important to use the right value.
Whether that's the main issue or not isn't clear, as you didn't include any of the rpmbuild output from the failure.
-- Todd ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ So its hurry! Hurry! Step right up, it's a matter of life or death The sun is going down and the moon is just holding its breath.
Attachment:
signature.asc
Description: PGP signature
_______________________________________________ users mailing list -- users@xxxxxxxxxxxxxxxxxxxxxxx To unsubscribe send an email to users-leave@xxxxxxxxxxxxxxxxxxxxxxx