[asterisk-bugs] [Zaptel 0013108]: Uninstalling modules will fail when installing to the subtree
noreply at bugs.digium.com
noreply at bugs.digium.com
Fri Jul 18 10:47:16 CDT 2008
A NOTE has been added to this issue.
======================================================================
http://bugs.digium.com/view.php?id=13108
======================================================================
Reported By: Romik
Assigned To:
======================================================================
Project: Zaptel
Issue ID: 13108
Category: zaptel (the module)
Reproducibility: always
Severity: trivial
Priority: normal
Status: new
Zaptel Version: 1.4.11
SVN Branch (only for SVN checkouts, not tarball releases): N/A
SVN Revision (number only!):
Disclaimer on File?: N/A
Request Review:
======================================================================
Date Submitted: 07-18-2008 10:42 CDT
Last Modified: 07-18-2008 10:47 CDT
======================================================================
Summary: Uninstalling modules will fail when installing to
the subtree
Description:
Modules uninstall script ./build_tools/uninstall-modules will partially
fail when installing to the subtree DESTDIR=/somepath/ .
------------------------------------------
for mod in $MODULES; do
BASE=`basename $mod`
for file in `cat $KERNEL_MODULES_DIR/modules.dep | cut -d : -f 1 |
grep "$BASE$"`; do
if [ -e "$file" ]; then
#echo "Deleting $file."
rm -f $file
fi
done
done
------------------------------------------
`cat $KERNEL_MODULES_DIR/modules.dep` fill fail with
cat: /subtree-path/lib/modules/kernel-version/modules.dep: No such file or
directory
======================================================================
----------------------------------------------------------------------
Romik - 07-18-08 10:47
----------------------------------------------------------------------
Trivial patch.
==================================================
--- Makefile.orig 2008-05-13 22:01:28.000000000 +0400
+++ Makefile 2008-07-19 23:16:56.000000000 +0400
@@ -527,7 +527,9 @@
uninstall-modules:
ifneq ($(BUILDVER),linux24)
- @./build_tools/uninstall-modules $(DESTDIR)/lib/modules/$(KVERS)
$(ALL_MODULES)
+ ifeq (,$(DESTDIR))
+ @./build_tools/uninstall-modules $(DESTDIR)/lib/modules/$(KVERS)
$(ALL_MODULES)
+ endif
endif
ifeq ($(BUILDVER),linux24)
==================================================
Issue History
Date Modified Username Field Change
======================================================================
07-18-08 10:47 Romik Note Added: 0090455
======================================================================
More information about the asterisk-bugs
mailing list