FAQ Search Today's Posts Mark Forums Read
» Video Reviews

» Linux Archive

Linux-archive is a website aiming to archive linux email lists and to make them easily accessible for linux users/developers.


» Sponsor

» Partners

» Sponsor

Go Back   Linux Archive > Debian > Debian Kernel

 
 
LinkBack Thread Tools
 
Old 09-25-2011, 09:16 PM
Ben Hutchings
 
Default Strip unwanted output from depmod -n

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 <ben@decadent.org.uk> Sun, 25 Sep 2011 21:36:51 +0100

--
1.7.5.4
 

Thread Tools




All times are GMT. The time now is 07:34 AM.

VBulletin, Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.
Copyright 2007 - 2008, www.linux-archive.org