[SRU B/F/G LRM] [PATCH 1/1] UBUNTU: [Packaging] quiet (nomially) benign errors in BUILD script

Andy Whitcroft apw at canonical.com
Tue Mar 16 12:26:22 UTC 2021


Though the assembly errors we see in the linux-restricted-modules builds
themselves are benign (the .ko checksums are validated) the same erroneous
commands are not (always) benign in the final end-user installations.
Eliminate these extra commands in the final end-user BUILD script.

BugLink: https://bugs.launchpad.net/bugs/1919315
Signed-off-by: Andy Whitcroft <apw at canonical.com>
---
 debian/scripts/dkms-build--nvidia-N | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/debian/scripts/dkms-build--nvidia-N b/debian/scripts/dkms-build--nvidia-N
index bdec782..210bf1a 100755
--- a/debian/scripts/dkms-build--nvidia-N
+++ b/debian/scripts/dkms-build--nvidia-N
@@ -80,6 +80,9 @@ grep /usr/bin/ld.bfd "$log" | sed -e "s@$build/@@g" \
 		cp "$base/signatures/$package/"*".ko.sig" "$pkgdir/bits"
 		sha256sum -c "$base/signatures/$package/SHA256SUMS" || exit 1
 		sh ./CLEAN
+
+		sed -i '/objdump/d' ./BUILD
+
 	else
 		# We are in the main kernel, put the .kos together as we will
 		# on the users machine, sign them, and keep just the signature.
-- 
2.29.2




More information about the kernel-team mailing list