Description of problem: The package allows to build not against selinux. Doing so lets the last patch fail. Version-Release number of selected component (if applicable): 2.12-18 How reproducible: Always Steps to Reproduce: 1. define WITH_SELINUX 0 2. rebuild rpm 3. Actual results: Patch #1001 (util-linux-2.12-nfssloppy.patch): + patch -p1 -b --suffix .nfssloppy -s 2 out of 5 hunks FAILED -- saving rejects to file mount/nfsmount.c.rej Expected results: Patches should apply. Additional info:
Created attachment 101402 [details] nfssloppy patch modified for building w/o selinux This patch is Patch1001 modified to apply for WITH_SELINUX set to 0.
Created attachment 101403 [details] specfile patch for choosing the right nfssloppy patch (selinux vs non-selinux) This patch modifies the specfile to chose the right nfssloppy patch depending on whether on builds for selinux or not.
May I add that this also needs to be done, AFAICT: +%if %{WITH_SELINUX} BuildRequires: libselinux-devel +%endif Just to get this package straight, Moritz
(No longer applicable for CVS, where selinux is unconditional.)