Re: Questions

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

 



Hi Thomas,

Thomas Dineen wrote:
> When building source RPMs:
> How are the patch files installed? By hand? Or automatically by the make
> build?
> If manually what command is used and in what directory? Example?

If you peak at a particular package, let's use the git package as an
example. I just added a patch there recently and built it.

You can see the changes I made to the spec file to include a new patch
here:

http://pkgs.fedoraproject.org/gitweb/?p=git.git;a=commitdiff;h=69974bd1

Basically, I added a Patch4: line, with the filename of the patch, and
used the %patch4 macro to apply it in the rpmbuild %prep section.  The
patch file is placed in the rpm %_sourcedir (typically this is
~/rpmbuild/SOURCES, but you can change this).

You can see the build log and the commands this ends up executing via
koji:

http://kojipkgs.fedoraproject.org/packages/git/1.7.6/5.fc16/data/logs/i686/build.log

The relevant lines are:

Patch #4 (0001-propagate-quiet-to-send-pack-receive-pack.patch):
+ echo 'Patch #4 (0001-propagate-quiet-to-send-pack-receive-pack.patch):'
+ /bin/cat /builddir/build/SOURCES/0001-propagate-quiet-to-send-pack-receive-pack.patch
+ /usr/bin/patch -s -p1 --fuzz=0

Does this help?

-- 
Todd        OpenPGP -> KeyID: 0xBEAF0CE3 | URL: www.pobox.com/~tmz/pgp
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Never do today that which will become someone else's responsibility
tomorrow.

Attachment: pgpuu1Q6Dwqo9.pgp
Description: PGP signature

-- 
users mailing list
users@xxxxxxxxxxxxxxxxxxxxxxx
To unsubscribe or change subscription options:
https://admin.fedoraproject.org/mailman/listinfo/users
Guidelines: http://fedoraproject.org/wiki/Mailing_list_guidelines
[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