packages: kernel/kernel.spec - package modules.order, empty other ghost fil...

glen glen at pld-linux.org
Mon Jan 4 16:04:07 CET 2010


Author: glen                         Date: Mon Jan  4 15:04:07 2010 GMT
Module: packages                      Tag: HEAD
---- Log message:
- package modules.order, empty other ghost files (12.2k in size)

---- Files affected:
packages/kernel:
   kernel.spec (1.744 -> 1.745) 

---- Diffs:

================================================================
Index: packages/kernel/kernel.spec
diff -u packages/kernel/kernel.spec:1.744 packages/kernel/kernel.spec:1.745
--- packages/kernel/kernel.spec:1.744	Mon Jan  4 15:12:56 2010
+++ packages/kernel/kernel.spec	Mon Jan  4 16:04:01 2010
@@ -1124,6 +1124,16 @@
 rm -f $RPM_BUILD_ROOT/lib/modules/%{kernel_release}/{build,source}
 touch $RPM_BUILD_ROOT/lib/modules/%{kernel_release}/{build,source}
 
+# no point embed content for %ghost files. empty them
+for a in \
+	dep{,.bin} \
+	alias{,.bin} \
+	symbols{,.bin} \
+	{pci,usb,ccw,isapnp,input,ieee1394,serio,of}map \
+; do
+	> $RPM_BUILD_ROOT/lib/modules/%{kernel_release}/modules.$a
+done
+
 # /boot
 install -d $RPM_BUILD_ROOT/boot
 cp -a %{objdir}/System.map $RPM_BUILD_ROOT/boot/System.map-%{kernel_release}
@@ -1349,11 +1359,31 @@
 %if %{with myown}
 /lib/modules/%{kernel_release}/kernel/sound
 %endif
-%ghost /lib/modules/%{kernel_release}/modules.*
+
+%dir %{_sysconfdir}/modprobe.d/%{kernel_release}
+
+# provided by build
+/lib/modules/%{kernel_release}/modules.order
+
+# rest modules.* are ghost (regenerated by post depmod -a invocation)
+%ghost /lib/modules/%{kernel_release}/modules.alias
+%ghost /lib/modules/%{kernel_release}/modules.alias.bin
+%ghost /lib/modules/%{kernel_release}/modules.ccwmap
+%ghost /lib/modules/%{kernel_release}/modules.dep
+%ghost /lib/modules/%{kernel_release}/modules.dep.bin
+%ghost /lib/modules/%{kernel_release}/modules.ieee1394map
+%ghost /lib/modules/%{kernel_release}/modules.inputmap
+%ghost /lib/modules/%{kernel_release}/modules.isapnpmap
+%ghost /lib/modules/%{kernel_release}/modules.ofmap
+%ghost /lib/modules/%{kernel_release}/modules.pcimap
+%ghost /lib/modules/%{kernel_release}/modules.seriomap
+%ghost /lib/modules/%{kernel_release}/modules.symbols
+%ghost /lib/modules/%{kernel_release}/modules.symbols.bin
+%ghost /lib/modules/%{kernel_release}/modules.usbmap
+
 # symlinks pointing to kernelsrcdir
 %ghost /lib/modules/%{kernel_release}/build
 %ghost /lib/modules/%{kernel_release}/source
-%dir %{_sysconfdir}/modprobe.d/%{kernel_release}
 
 %ifarch alpha %{ix86} %{x8664} ppc ppc64 sparc sparc64
 %files vmlinux
@@ -1547,6 +1577,9 @@
 All persons listed below can be reached at <cvs_login>@pld-linux.org
 
 $Log$
+Revision 1.745  2010/01/04 15:04:01  glen
+- package modules.order, empty other ghost files (12.2k in size)
+
 Revision 1.744  2010/01/04 14:12:56  glen
 - fix _noautostrip pattern
 
================================================================

---- CVS-web:
    http://cvs.pld-linux.org/cgi-bin/cvsweb.cgi/packages/kernel/kernel.spec?r1=1.744&r2=1.745&f=u



More information about the pld-cvs-commit mailing list