From 4b3b40727e6ba302124850e2a5d3ef8b6bf2cfef Mon Sep 17 00:00:00 2001 From: Kyle McMartin Date: Mon, 6 Dec 2010 10:41:38 -0500 Subject: [PATCH] don't prune kernel-devel in the %with_headers install section commit c1bdfc8b broke the build on s390 since it is headers only, and had nothing installed in /usr/src/kernels... since kernel-devel is only produced when there's a BuildKernel, just prune '*.cmd' when doing BuildKernel for the same net result. --- kernel.spec | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/kernel.spec b/kernel.spec index 16631dc55..0f274d957 100644 --- a/kernel.spec +++ b/kernel.spec @@ -1572,9 +1572,12 @@ BuildKernel() { done # Move the devel headers out of the root file system - mkdir -p $RPM_BUILD_ROOT/usr/src/kernels + mkdir -p $RPM_BUILD_ROOT/$DevelDir mv $RPM_BUILD_ROOT/lib/modules/$KernelVer/build $RPM_BUILD_ROOT/$DevelDir ln -sf ../../..$DevelDir $RPM_BUILD_ROOT/lib/modules/$KernelVer/build + + # prune junk from kernel-devel + find $RPM_BUILD_ROOT/usr/src/kernels -name ".*.cmd" -exec rm -f {} \; } ### @@ -1693,8 +1696,6 @@ find $RPM_BUILD_ROOT/usr/include \ \( -name .install -o -name .check -o \ -name ..install.cmd -o -name ..check.cmd \) | xargs rm -f -find $RPM_BUILD_ROOT/usr/src/kernels -name ".*.cmd" -exec rm -f {} \; - # glibc provides scsi headers for itself, for now rm -rf $RPM_BUILD_ROOT/usr/include/scsi rm -f $RPM_BUILD_ROOT/usr/include/asm*/atomic.h