LincolnBryant / WiMP

A wireless mesh project using Raspberry Pi
0 stars 0 forks source link

fix upstream kernel-devel pkg #3

Open LincolnBryant opened 10 years ago

LincolnBryant commented 10 years ago

Upstream's kernel-devel package is empty. Needs to be fixed

LincolnBryant commented 10 years ago

I have created a patch for the upstream kernel package.

--- raspberrypi-kernel.spec.old 2013-12-17 17:57:32.000000000 -0500
+++ raspberrypi-kernel.spec     2013-06-20 14:54:04.046376074 -0400
@@ -1,3 +1,6 @@
+# We have to override the new %%install behavior because, well... the kernel is special.
+%global __spec_install_pre %{___build_pre}
+
 # Actually the date is the packaging date not the commit date
 %global commit_date  20131106
 %global commit_short 839f349
@@ -166,7 +169,7 @@

     # Move the devel headers out of the root file system
     mkdir -p $RPM_BUILD_ROOT/usr/src/kernels    
-    mv $RPM_BUILD_ROOT/lib/modules/$KernelVer/build $RPM_BUILD_ROOT$DevelDir
+    mv $RPM_BUILD_ROOT/lib/modules/$KernelVer/build $RPM_BUILD_ROOT/$DevelDir

     # it after this point.  We need the link to actually point to something
     # when kernel-devel is installed, and a relative link doesn't work across
@@ -227,6 +230,8 @@
 # python-perf extension
 #%{perf_make} DESTDIR=$RPM_BUILD_ROOT install-python_ext

+%clean
+rm -rf $RPM_BUILD_ROOT

 %post 
 cp /boot/kernel-%{version}-%{release}.img /boot/kernel.img
@@ -296,7 +301,7 @@

 %files devel
 %defattr(-,root,root)
-#/usr/src/kernels/%{KVERREL}.%{Flavour}
+/usr/src/kernels/%{KVERREL}.%{Flavour}