Questions

Todd Zullinger tmz at pobox.com
Wed Aug 10 19:25:59 UTC 2011


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.

-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 543 bytes
Desc: not available
Url : http://lists.fedoraproject.org/pipermail/users/attachments/20110810/2d096e76/attachment.bin 


More information about the users mailing list