depmod -n will print module aliases as well as the dependencies we're interested in. --- commands/copy-modules | 2 +- debian/changelog | 1 + 2 files changed, 2 insertions(+), 1 deletions(-)
diff --git a/commands/copy-modules b/commands/copy-modules
index 875d81f..733b117 100755
--- a/commands/copy-modules
+++ b/commands/copy-modules
@@ -118,7 +118,7 @@ if [ "$os" = "linux" ] ; then
modulesdep=$tmpdir/modules.dep
PATH="/usr/sbin:/sbin:$PATH" depmod \
${SOURCEDIR:+-b $SOURCEDIR} $installedname -n \
- >$modulesdep
+ | sed '/^#/d; /^alias /,$d' >$modulesdep
fi
# get module dependencies from modules.dep
diff --git a/debian/changelog b/debian/changelog
index 9011fe3..a968231 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -5,6 +5,7 @@ kernel-wedge (2.80) UNRELEASED; urgency=low
for compatibility with coreutils 8.13
* Fix bugs in support for use in kernel source packages:
- Set $PATH for depmod
+ - Strip unwanted output from depmod -n
-- Ben Hutchings <[email protected]> Sun, 25 Sep 2011 21:36:51 +0100
--
1.7.5.4
signature.asc
Description: This is a digitally signed message part

