Description of problem: A rebuild of findutils without activated SELinux simply dies: Patch #4 (findutils-4.1.7-d_type.patch): + patch -p1 -b --suffix .d_type -s 2 out of 25 hunks FAILED -- saving rejects to file find/parser.c.rej Error: Bad exit status from /var/tmp/rpm-tmp.23825 (%prep) Version-Release number of selected component (if applicable): findutils-4.1.7-23 How reproducible & Steps to Reproduce: Rebuild findutils without activated SELinux Actual results: The problem is caused by the patch #4, which is only optimated for the use with the SELinux patch. Expected results: I did the following to make it work and I would be very happy, if you could do the same or do something better: --- findutils.spec 2004-03-11 09:00:37.000000000 +0100 +++ findutils.spec.rsc 2004-03-11 09:02:45.000000000 +0100 @@ -18,6 +18,7 @@ Patch3: findutils-selinux.patch %endif Patch4: findutils-4.1.7-d_type.patch +Patch5: findutils-4.1.7-d_type-nose.patch Prereq: /sbin/install-info Buildroot: %{_tmppath}/%{name}-%{version}-root BuildRequires: libtool @@ -42,8 +43,10 @@ %if %{WITH_SELINUX} SELinux %patch3 -p1 -b .selinux -%endif %patch4 -p1 -b .d_type +%else +%patch5 -p1 -b .d_type +%endif rm -f config.guess config.sub libtoolize --force Additional info: Patch #5 (findutils-4.1.7-d_type-nose.patch) is attached. Thank you.
Created attachment 98451 [details] Patch, that findutils is rebuildable without applied SELinux patch
Fixed in 4.1.7-24.