Your message dated Wed, 10 Mar 2021 14:20:51 +0000
with message-id <[email protected]>
and subject line Bug#984929: fixed in dkms 2.8.4-3
has caused the Debian Bug report #984929,
regarding dkms: export CC pointing to the kernels compiler
to be marked as done.
This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.
(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact [email protected]
immediately.)
--
984929: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=984929
Debian Bug Tracking System
Contact [email protected] with problems
--- Begin Message ---
Package: dkms
Version: 2.8.4-2
Severity: important
Tags: patch
Control: block 984862 with -1
Control: block 945506 with -1
Control: block 946497 with -1
Third-party kernel module build systems using some kind of configure
script need to know the compiler to use (which should be the compiler
used to build the kernel) and usually fall back to CC=gcc.
The kernel compiler is available as CC inside Kbuild and we can get it
from .kernelvariables in kernel headers packaged for Debian. There may
be better and more general ways to get to this value ... but the
attached patch seems to work well to fix the current failures (packages
use gcc instead of gcc-X) and don't break other module builds.
It would be great if we can get this patch into bullseye as we can fix
at least 3 RC-buggy packages that way.
Andreas
>From 2e2490f29ef255352109010d8d7807f3f7405bd7 Mon Sep 17 00:00:00 2001
From: Andreas Beckmann <[email protected]>
Date: Wed, 10 Mar 2021 13:36:25 +0100
Subject: [PATCH] export CC=<the kernel's compiler> for non-Kbuild module build
systems
---
debian/changelog | 8 ++++++++
debian/patches/export-CC.patch | 20 ++++++++++++++++++++
debian/patches/series | 1 +
3 files changed, 29 insertions(+)
create mode 100644 debian/patches/export-CC.patch
diff --git a/debian/changelog b/debian/changelog
index 1743dcc..5be530d 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -1,3 +1,11 @@
+dkms (2.8.4-3) UNRELEASED; urgency=medium
+
+ * Export the CC variable from .kernelvariables in the kernel source to allow
+ module build systems use the kernel's compiler also outside of Kbuild.
+ (Closes: #xxxxxx)
+
+ -- Andreas Beckmann <[email protected]> Wed, 10 Mar 2021 12:11:42 +0100
+
dkms (2.8.4-2) unstable; urgency=medium
[ Gianfranco Costamagna ]
diff --git a/debian/patches/export-CC.patch b/debian/patches/export-CC.patch
new file mode 100644
index 0000000..1ae7e70
--- /dev/null
+++ b/debian/patches/export-CC.patch
@@ -0,0 +1,20 @@
+Description: export CC pointing to the kernel's compiler
+ export the CC variable from .kernelvariables in the kernel source to allow
+ module build systems use the kernel's compiler also outside of Kbuild
+Author: Andreas Beckmann <[email protected]>
+
+--- dkms-2.8.4.orig/dkms
++++ dkms-2.8.4/dkms
+@@ -1166,6 +1166,12 @@ prepare_kernel()
+ esac
+ }
+
++ if [ -f "$kernel_source_dir/.kernelvariables" ]; then
++ export CC=$(echo -e "show-%:\n\t@echo \$(\$*)\ninclude
$kernel_source_dir/.kernelvariables" | make -f - show-CC)
++ else
++ unset CC
++ fi
++
+ [[ $no_prepare_kernel ]] && return
+
+ if [[ (! ( $(VER $1) < $(VER 2.6.5) ) || -d /etc/SuSEconfig) && \
diff --git a/debian/patches/series b/debian/patches/series
index f3c2a3b..aa7de72 100644
--- a/debian/patches/series
+++ b/debian/patches/series
@@ -1 +1,2 @@
do-not-load-modules.patch
+export-CC.patch
--
2.20.1
--- End Message ---
--- Begin Message ---
Source: dkms
Source-Version: 2.8.4-3
Done: Andreas Beckmann <[email protected]>
We believe that the bug you reported is fixed in the latest version of
dkms, which is due to be installed in the Debian FTP archive.
A summary of the changes between this version and the previous one is
attached.
Thank you for reporting the bug, which will now be closed. If you
have further comments please address them to [email protected],
and the maintainer will reopen the bug report if appropriate.
Debian distribution maintenance software
pp.
Andreas Beckmann <[email protected]> (supplier of updated dkms package)
(This message was generated automatically at their request; if you
believe that there is a problem with it please contact the archive
administrators by mailing [email protected])
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA256
Format: 1.8
Date: Wed, 10 Mar 2021 12:11:42 +0100
Source: dkms
Architecture: source
Version: 2.8.4-3
Distribution: unstable
Urgency: medium
Maintainer: Dynamic Kernel Modules Support Team <[email protected]>
Changed-By: Andreas Beckmann <[email protected]>
Closes: 984929
Changes:
dkms (2.8.4-3) unstable; urgency=medium
.
[ Gianfranco Costamagna ]
* Team upload.
.
[ Andreas Beckmann ]
* Export the CC variable from .kernelvariables in the kernel source to allow
module build systems use the kernel's compiler also outside of Kbuild.
(Closes: #984929)
Checksums-Sha1:
45f7c7085b6c1a2fb4a715964ee42644fd8e1e17 1967 dkms_2.8.4-3.dsc
fd23a547cf1f13f2e5534967bcc271b06465bc39 19528 dkms_2.8.4-3.debian.tar.xz
0a76723c08ef21dbcaec9ddcdc1144a5716465d4 6723 dkms_2.8.4-3_source.buildinfo
Checksums-Sha256:
f64a8e6c51a4bcd6f38d09206a3df486225c87385b198472c617da9cc9ad99d9 1967
dkms_2.8.4-3.dsc
433d3897566434161c48fff3f41eca3115e6a2b23506fbeac7fa9414e8e9687c 19528
dkms_2.8.4-3.debian.tar.xz
b237310edeacae46703470b7f63e69ce480b6ec5f944e28418e92273aa353e3e 6723
dkms_2.8.4-3_source.buildinfo
Files:
b6039316ce385fc9e43873b3c040893d 1967 kernel optional dkms_2.8.4-3.dsc
4a89ad49e53859823a96bc27350c2eda 19528 kernel optional
dkms_2.8.4-3.debian.tar.xz
aca33a331d7a9958e8223da8bd8105f3 6723 kernel optional
dkms_2.8.4-3_source.buildinfo
-----BEGIN PGP SIGNATURE-----
iQIzBAEBCAAdFiEEkpeKbhleSSGCX3/w808JdE6fXdkFAmBIzZYACgkQ808JdE6f
XdkFOBAA04xloTpmRx+bEr3TkEX4EBABipSS7ucezjLu3OzBW2HjPA+T2E2LkTg4
zaB5I/+r9UxsS6wSVIph6XCz48nTGEXf0rqUWsYc1hgv7hthFY2OZEAZke8Q/fp8
bDk9kNZ+eLS9MsJn4t3owYnfPh+3tspWc3u1dNNn/+cuM5MtriN38iV7ezNLP/dH
wqfTG7sLNfVcmmUQ/fNgn4x66DdHMp9y0B8+i1tbCxaSImWWQpFyUcdQQawj0TMK
xOaZ6R0BxbfEgVD2Wwo3xOBgmezau5zxFHPFp6NrwIIxCQRBI6z9Qm5tg+aIJKVK
4aMXqth9e5ScKVchM/R8EArJAZONy0XxTqtywUGqx7bnJUbzJdHTtqxvgu723hIv
t3/db+cyqrLwTlcbU7QECEJb3OovBUtWB5S16tooRaQ+kOkP4uc/luThb21Sbp5F
kXy89oWLM8XM3j+/G017AQ/lUah0OmpycT+U7jnF41ylcQjaXkpwIXB54mRRF0Bu
sfsSVF5z1bFsYcxIidvBOAYRttpAwlpNJG7bSLW/pnRsRV8ot72yaRSkcFv7HDST
na7Hh86eJErCb1xuXC5Dgm6AwASbU15Etg+dsQsmOxgrF5fuHJGDqwyS4/YFFzuA
uOvx2hPWyfuRLtCbLy9TjvbgbR6hutVF6Ulxll8uZRpZoIEcTC8=
=uKBZ
-----END PGP SIGNATURE-----
--- End Message ---