]> git.proxmox.com Git - mirror_ubuntu-artful-kernel.git/commitdiff
UBUNTU: [Packaging] final-checks -- check for empty retpoline files
authorAndy Whitcroft <apw@canonical.com>
Thu, 22 Feb 2018 11:53:00 +0000 (12:53 +0100)
committerStefan Bader <stefan.bader@canonical.com>
Wed, 14 Mar 2018 10:42:12 +0000 (11:42 +0100)
BugLink: http://bugs.launchpad.net/bugs/1751021
Signed-off-by: Andy Whitcroft <apw@canonical.com>
Acked-by: Seth Forshee <seth.forshee@canonical.com>
Acked-by: Kleber Sacilotto de Souza <kleber.souza@canonical.com>
Signed-off-by: Kleber Sacilotto de Souza <kleber.souza@canonical.com>
debian/scripts/misc/final-checks

index 548dea99e6a03de321e6b1c3ad7c9f56e2d0dcb8..aec25770ea1bedf6dce4efdcd7411b22a78285bd 100755 (executable)
@@ -41,6 +41,11 @@ abi_check()
        then
                failure "$arch/$flavour ABI retpoline file missing"
        fi
+
+       if [ -f "$abidir/$flavour.retpoline" -a \
+            ! -s "$abidir/$flavour.retpoline" ]; then
+               failure "$arch/$flavour ABI retpoline file empty -- must regenerate or ignore"
+       fi
 }
 
 for arch in $archs