Fix conflicts between kernel-headers and glibc-headers that causes following error;
authorS.Çağlar Onur <caglar@cs.princeton.edu>
Thu, 15 Apr 2010 19:43:46 +0000 (19:43 +0000)
committerS.Çağlar Onur <caglar@cs.princeton.edu>
Thu, 15 Apr 2010 19:43:46 +0000 (19:43 +0000)
Transaction Check Error:
 file /usr/include/scsi/scsi.h from install of kernel-headers-2.6.22.19-vs2.3.0.34.46.planetlab.x86_64 conflicts with file from package glibc-headers-2.5-42.el5_4.3.x86_64
 file /usr/include/scsi/scsi_ioctl.h from install of kernel-headers-2.6.22.19-vs2.3.0.34.46.planetlab.x86_64 conflicts with file from package glibc-headers-2.5-42.el5_4.3.x86_64
 file /usr/include/scsi/sg.h from install of kernel-headers-2.6.22.19-vs2.3.0.34.46.planetlab.x86_64 conflicts with file from package glibc-headers-2.5-42.el5_4.3.x86_64

kernel-2.6.spec

index 3317bc5..7d80777 100644 (file)
@@ -557,6 +557,7 @@ BuildKernel() {
     make -s ARCH=$Arch INSTALL_HDR_PATH=$RPM_BUILD_ROOT/usr
     find $RPM_BUILD_ROOT/%{_includedir} -name \*.cmd -delete
     rm -f $RPM_BUILD_ROOT/%{_includedir}/{..,.}{check,install}*
+    rm -rf $RPM_BUILD_ROOT/usr/include/scsi
 %endif
 
 %if %{iwlwifi}