[Rpm-maint] [PATCH] fix %autopatch when patch do not exist

Thierry Vignaud thierry.vignaud at gmail.com
Thu Sep 17 08:46:04 UTC 2015


Hi

The attached patch fixes %autopatch (& thus %autosetup too) when a
patch doesn't actually exist.

Indeed, unlike Mageia's %apply_patches which inspired it, %autopatch
continues instead of exiting when it fails to apply a patch because it
doesn't exists. Eg:

+ /usr/bin/cat /home/tv/rpmbuild/SOURCES/test.patch2
+ /usr/bin/patch -p1 -s
/usr/bin/cat: /home/tv/rpmbuild/SOURCES/test.patch2: No such file or directory
+ /usr/bin/cat /home/tv/rpmbuild/SOURCES/test.patch
+ /usr/bin/patch -p1 -s

With the attached patch, the build stops as soon as the error is seen.

Please apply.
It should be backported to 4.12.x & 4.13.x branches too

See you
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-fix-autopatch-when-patch-do-not-exist.patch
Type: application/octet-stream
Size: 1004 bytes
Desc: not available
URL: <http://lists.rpm.org/pipermail/rpm-maint/attachments/20150917/5757dcec/attachment.obj>


More information about the Rpm-maint mailing list