]> git.proxmox.com Git - mirror_ubuntu-focal-kernel.git/commitdiff
UBUNTU: [Packaging] quiet (nomially) benign errors in BUILD script
authorAndy Whitcroft <apw@canonical.com>
Tue, 16 Mar 2021 12:26:00 +0000 (13:26 +0100)
committerKleber Sacilotto de Souza <kleber.souza@canonical.com>
Tue, 16 Mar 2021 16:59:58 +0000 (17:59 +0100)
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

index bdec78233b4349479d47e09b1308b6aae926b1ef..210bf1a8d63e70e4b79600b5470f0646a7d4ad92 100755 (executable)
@@ -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.