fix debian packages generation (invalid warning silencing) 39/9239/1
authorGabriel Ganne <gabriel.ganne@enea.com>
Mon, 6 Nov 2017 13:09:06 +0000 (14:09 +0100)
committerGabriel Ganne <gabriel.ganne@enea.com>
Mon, 6 Nov 2017 13:25:11 +0000 (14:25 +0100)
During dh_shlibdeps, we silence some plugin-related warnings using
"grep -v". grep is the last command of the line, and returns 1 on match.
Therefore, the whole make step fails.

This patch merges the two grep commands, and ignores the grep return
value.

Change-Id: I1237162ab3c9937dbc340e5a2fce7ec779a19f39
Signed-off-by: Gabriel Ganne <gabriel.ganne@enea.com>
build-root/deb/debian/rules

index 3a1dd29..39be1b5 100755 (executable)
@@ -32,8 +32,7 @@ override_dh_install:
 
 override_dh_shlibdeps:
        @dh_shlibdeps 2>&1 \
-         | grep -v "probably a plugin" \
-         | grep -v "similar warnings have been skipped"
+         | { grep -v -e "probably a plugin" -e "similar warnings have been skipped" || true; }
 
 override_dh_strip:
        dh_strip --dbg-package=vpp-dbg