[kernel] r18456 - in dists/trunk/linux-2.6/debian: . bin
Ben Hutchings
benh at alioth.debian.org
Sat Jan 7 22:09:00 UTC 2012
Author: benh
Date: Sat Jan 7 22:08:58 2012
New Revision: 18456
Log:
Install /lib/modules/<kernel-version>/modules.builtin in linux-image packages
We want to avoid shipping any files generated by depmod (which should
be generated in the postinst) and the 'build' and 'source' symlinks
(which should be installed by the linux-headers package). Since
depmod has generated more and more files over time, we have been
removing all unexpected files under /lib/modules/<kernel-version>,
accidentally including modules.builtin which is *not* generated by
depmod.
Try to solve the problem generally by substituting a dummy depmod
command and then just removing the 'build' and 'source' symlinks.
Added:
dists/trunk/linux-2.6/debian/bin/no-depmod (contents, props changed)
Modified:
dists/trunk/linux-2.6/debian/changelog
dists/trunk/linux-2.6/debian/rules.real
Added: dists/trunk/linux-2.6/debian/bin/no-depmod
==============================================================================
--- /dev/null 00:00:00 1970 (empty, because file is newly added)
+++ dists/trunk/linux-2.6/debian/bin/no-depmod Sat Jan 7 22:08:58 2012 (r18456)
@@ -0,0 +1,18 @@
+#!/bin/sh
+
+set -e
+
+# This is a dummy substitute for depmod. Since we run depmod during
+# postinst, we do not need or want to package the files that it
+# generates.
+
+if [ "x$1" = x-V ]; then
+ # Satisfy version test
+ echo 'not really module-init-tools'
+elif [ "x$1" = x-b -a "${2%/depmod.??????}" != "$2" ]; then
+ # Satisfy test of short kernel versions
+ mkdir -p "$2/lib/modules/$3"
+ touch "$2/lib/modules/$3/modules.dep"
+else
+ echo 'skipping depmod'
+fi
Modified: dists/trunk/linux-2.6/debian/changelog
==============================================================================
--- dists/trunk/linux-2.6/debian/changelog Fri Jan 6 14:44:33 2012 (r18455)
+++ dists/trunk/linux-2.6/debian/changelog Sat Jan 7 22:08:58 2012 (r18456)
@@ -10,6 +10,8 @@
* media/dvb: Enable DVB_USB_IT913X as module (Closes: #653776)
* [arm] Remove use of possibly undefined BUILD_BUG_ON in <asm/bug.h>
(fixes FTBFS)
+ * Install /lib/modules/<kernel-version>/modules.builtin in linux-image
+ packages
[ Bastian Blank ]
* crypt: Enable some amd64 only ciphers.
Modified: dists/trunk/linux-2.6/debian/rules.real
==============================================================================
--- dists/trunk/linux-2.6/debian/rules.real Fri Jan 6 14:44:33 2012 (r18455)
+++ dists/trunk/linux-2.6/debian/rules.real Sat Jan 7 22:08:58 2012 (r18456)
@@ -335,7 +335,8 @@
install-image_$(ARCH)_$(FEATURESET)_$(FLAVOUR)_plain_image \
DIR='$(DIR)' PACKAGE_DIR='$(PACKAGE_DIR)' INSTALL_DIR='$(INSTALL_DIR)' REAL_VERSION='$(REAL_VERSION)'
ifeq ($(MODULES),True)
- +$(MAKE_CLEAN) -C $(DIR) modules_install INSTALL_MOD_PATH='$(CURDIR)'/$(PACKAGE_DIR) INSTALL_MOD_STRIP=1
+ chmod 755 $(CURDIR)/debian/bin/no-depmod
+ +$(MAKE_CLEAN) -C $(DIR) modules_install DEPMOD='$(CURDIR)/debian/bin/no-depmod' INSTALL_MOD_PATH='$(CURDIR)'/$(PACKAGE_DIR) INSTALL_MOD_STRIP=1
ifeq ($(DEBUG),True)
find $(PACKAGE_DIR) -name '*.ko' | sed 's|$(PACKAGE_DIR)/lib/modules/$(REAL_VERSION)/kernel/||' | while read module ; do \
objcopy --add-gnu-debuglink=$(DIR)/$$module $(PACKAGE_DIR)/lib/modules/$(REAL_VERSION)/kernel/$$module || exit; \
@@ -343,7 +344,8 @@
endif
cp $(DIR)/.config $(PACKAGE_DIR)/boot/config-$(REAL_VERSION)
cp $(DIR)/System.map $(PACKAGE_DIR)/boot/System.map-$(REAL_VERSION)
- find $(PACKAGE_DIR)/lib/modules/$(REAL_VERSION)/ -mindepth 1 -maxdepth 1 \! -name kernel \! -name modules.order -exec rm {} \+
+ rm -f $(PACKAGE_DIR)/lib/modules/$(REAL_VERSION)/build
+ rm -f $(PACKAGE_DIR)/lib/modules/$(REAL_VERSION)/source
rm $(PACKAGE_DIR)/lib/firmware -rf
endif
+$(MAKE_SELF) \
More information about the Kernel-svn-changes
mailing list