]> git.proxmox.com Git - mirror_ubuntu-artful-kernel.git/commitdiff
UBUNTU: [Packaging] retpoline-check -- only report additions
authorAndy Whitcroft <apw@canonical.com>
Tue, 20 Mar 2018 12:36:54 +0000 (12:36 +0000)
committerKleber Sacilotto de Souza <kleber.souza@canonical.com>
Thu, 5 Apr 2018 08:41:58 +0000 (10:41 +0200)
BugLink: http://bugs.launchpad.net/bugs/1758856
Signed-off-by: Andy Whitcroft <apw@canonical.com>
Acked-by: Stefan Bader <stefan.bader@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/retpoline-check

index b7d5e903fe2cc6e51914c77e11f71efadec40c5c..7dbfb303360bd3dcde4791e5069d70fa792b0cf1 100755 (executable)
@@ -32,7 +32,12 @@ fi
 
 echo "II: retpoline delta in this package..."
 rc=0
-diff -u "$prev" "$curr" || rc=1
+diff -u "$prev" "$curr" || true
+count=$( diff -u "$prev" "$curr" | grep '^+[^+]' | wc -l )
+if [ "$count" != 0 ]; then
+       rc=1
+       echo "WW: $count new retpoline sequences detected"
+fi
 
 echo "II: Done";
 if [ "$skipretpoline" = 'true' -a "$rc" -ne 0 ]; then