Package: dkms
Version: 2.2.0.3-5
Severity: normal
Tags: patch
Hi,
when creating a source-only deb, dkms will call dpkg-buildpackage, which
creates a *_all.deb package. Version 2.2.0.3-5 introduced
$debian_build_arch as part of the then invoked mv command, which fails.
>From a quick glance, calling mkdeb without --source-only will suffer
from the same problem, but I did not test it.
If I glanced right, you can apply revert_all.patch. If I'm wrong, try
source_deb.patch, which will use 'all' only if --source-only was
provided. Or, if thats an option, simply use a wildcard instead of a
specific arch postfix if other options aren't at hand.
Regards,
Dirk
-- System Information:
Debian Release: stretch/sid
APT prefers unstable
APT policy: (500, 'unstable'), (101, 'experimental')
Architecture: i386 (i686)
Kernel: Linux 4.6.4 (SMP w/2 CPU cores)
Locale: LANG=de_DE.UTF-8, LC_CTYPE=de_DE.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: sysvinit (via /sbin/init)
Versions of packages dkms depends on:
ii build-essential 12.2
ii coreutils 8.25-2
ii dpkg-dev 1.18.9
ii gcc 4:5.3.1-3
ii kmod 22-1.1
ii make 4.1-9
ii patch 2.7.5-1
Versions of packages dkms recommends:
ii fakeroot 1.21-1
ii linux-headers-4.6.4 [linux-headers] 4.6.4-5
ii menu 2.1.47
ii sudo 1.8.17p1-2
Versions of packages dkms suggests:
pn python3-apport <none>
-- Configuration Files:
/etc/modprobe.d/dkms.conf [Errno 2] Datei oder Verzeichnis nicht gefunden:
u'/etc/modprobe.d/dkms.conf'
-- no debconf information
--- a/dkms 2016-07-06 01:12:00.000000000 +0200
+++ b/dkms 2016-07-26 22:30:26.486793435 +0200
@@ -2960,7 +2960,7 @@
die 7 $"There was a problem creating your ${create_type}."
echo $""
echo $"DKMS: mk${create_type} completed."
- invoke_command "mv '$temp_dir/${debian_package}-dkms_${module_version}_${debian_build_arch}.deb' '$deb_basedir'" "Moving built files to $deb_basedir"
+ invoke_command "mv '$temp_dir/${debian_package}-dkms_${module_version}_all.deb' '$deb_basedir'" "Moving built files to $deb_basedir"
;;
bmdeb)
export KVER="$kernelver"
diff -u a/dkms b/dkms
--- a/dkms 2016-07-26 20:03:17.901049440 +0200
+++ b/dkms 2016-07-26 20:03:04.276981881 +0200
@@ -2887,7 +2887,11 @@
make_common_test "mk${create_type}"
debian_package=${module//_/-}
- debian_build_arch=$(dpkg-architecture -qDEB_BUILD_ARCH)
+ if [[ $source_only ]]; then
+ debian_build_arch='all'
+ else
+ debian_build_arch=$(dpkg-architecture -qDEB_BUILD_ARCH)
+ fi
# Read the conf file
read_conf_or_die "$kernelver" "$arch"