diff mbox series

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

Message ID 20210316122622.3167798-2-apw@canonical.com
State New
Headers show
Series [SRU,B/F/G,LRM,1/1] UBUNTU: [Packaging] quiet (nomially) benign errors in BUILD script | expand

Commit Message

Andy Whitcroft March 16, 2021, 12:26 p.m. UTC
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@canonical.com>
---
 debian/scripts/dkms-build--nvidia-N | 3 +++
 1 file changed, 3 insertions(+)
diff mbox series

Patch

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.