Codebase list kernel-wedge / 86df88d
copy-modules: Fail if building from installed Linux package without modules.dep When I added support for building udebs directly from a kernel source package, I made copy-modules run depmod for Linux architectures if modules.dep was missing. Rearrange the conditions so we generate modules.dep if-and-only-if building from a kernel source package. Fail if we're building from an installed Linux package and it's not present. Ben Hutchings 3 years ago
2 changed file(s) with 10 addition(s) and 5 deletion(s). Raw diff Collapse all Expand all
6363 fi
6464
6565 if [ "$os" = "linux" ] ; then
66 if [ -e "$moddir/modules.dep" ]; then
66 if [ "$SOURCEDIR" ]; then
67 modulesdep=$tmpdir/modules.dep
68 PATH="/usr/sbin:/sbin:$PATH" depmod \
69 -b $SOURCEDIR $installedname -n \
70 | sed '/^#/d; /^alias /,$d' >$modulesdep
71 elif [ -e "$moddir/modules.dep" ]; then
6772 modulesdep=$moddir/modules.dep
6873 else
69 modulesdep=$tmpdir/modules.dep
70 PATH="/usr/sbin:/sbin:$PATH" depmod \
71 ${SOURCEDIR:+-b $SOURCEDIR} $installedname -n \
72 | sed '/^#/d; /^alias /,$d' >$modulesdep
74 echo "Installed kernel package is missing $moddir/modules.dep" >&2
75 exit 1
7376 fi
7477
7578 # get module dependencies from modules.dep
00 kernel-wedge (2.104) UNRELEASED; urgency=medium
11
22 * build-arch, copy-modules: Replace deprecated tempfile command with mktemp
3 * copy-modules: Fail if building from installed Linux package without
4 modules.dep
35
46 -- Ben Hutchings <benh@debian.org> Sat, 25 Jul 2020 03:23:18 +0100
57