Re: rpmbuild

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 18/07/17 18:07, John Pilkington wrote:
On 18/07/17 17:07, Patrick Dupre wrote:
Hello,

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 file

How 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 fails

But 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
patch -p0 gnuplot-5.0.6a-tabulate.patch (manually)
would be OK, but it fails from the .spec file

Thank for your help.

I suggest you start from the gnuplot srpm
# put package in ~/rpmbuild/SRPMS/foo.src.rpm

$  rpm -ihv foo.src.rpm
$  rpmbuild --nodeps -bp /where/the/spec/files/land/foo.spec

$[wherever SPECS]$ rpmbuild --nodeps -bp  foo.spec

# and look for the patched source in ~/rpmbuild/BUILD/

Put your patch in SOURCES

Then add to the .spec file

Patch7:  tabulate.patch

and

%patch7 -p1 -b .tabulate

and update the changelog

and build, preferably using mock.  First the new srpm, then the rpm.


This was a tentative reply that got sent 'by accident.' Something like it has worked for me (with other packages) in the past.

John P
_______________________________________________
users mailing list -- users@xxxxxxxxxxxxxxxxxxxxxxx
To unsubscribe send an email to users-leave@xxxxxxxxxxxxxxxxxxxxxxx



[Index of Archives]     [Older Fedora Users]     [Fedora Announce]     [Fedora Package Announce]     [EPEL Announce]     [EPEL Devel]     [Fedora Magazine]     [Fedora Summer Coding]     [Fedora Laptop]     [Fedora Cloud]     [Fedora Advisory Board]     [Fedora Education]     [Fedora Security]     [Fedora Scitech]     [Fedora Robotics]     [Fedora Infrastructure]     [Fedora Websites]     [Anaconda Devel]     [Fedora Devel Java]     [Fedora Desktop]     [Fedora Fonts]     [Fedora Marketing]     [Fedora Management Tools]     [Fedora Mentors]     [Fedora Package Review]     [Fedora R Devel]     [Fedora PHP Devel]     [Kickstart]     [Fedora Music]     [Fedora Packaging]     [Fedora SELinux]     [Fedora Legal]     [Fedora Kernel]     [Fedora OCaml]     [Coolkey]     [Virtualization Tools]     [ET Management Tools]     [Yum Users]     [Yosemite News]     [Gnome Users]     [KDE Users]     [Fedora Art]     [Fedora Docs]     [Fedora Sparc]     [Libvirt Users]     [Fedora ARM]

  Powered by Linux