Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(4027)

Unified Diff: chrome/installer/linux/debian/build.sh

Issue 2397993003: Linux installer: Add expected_deps*trusty (Closed)
Patch Set: Rebase Created 4 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « chrome/installer/linux/BUILD.gn ('k') | chrome/installer/linux/debian/expected_deps_ia32 » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/installer/linux/debian/build.sh
diff --git a/chrome/installer/linux/debian/build.sh b/chrome/installer/linux/debian/build.sh
index 7c6f14e3e68b57b2f68761146cb8a6f6705557b8..e43c437774612661fe653301e51c29166487daa0 100755
--- a/chrome/installer/linux/debian/build.sh
+++ b/chrome/installer/linux/debian/build.sh
@@ -217,6 +217,14 @@ if [ "$(uname -m)" = "x86_64" ]; then
else
TARGETARCH="ia32"
fi
+if [[ "$(lsb_release -c)" = *"precise" ]]; then
+ HOST_DISTRO="precise"
+elif [[ "$(lsb_release -c)" = *"trusty" ]]; then
+ HOST_DISTRO="trusty"
+else
+ echo "Debian package can only be build on Ubuntu Precise or Trusty"
+ exit 1
+fi
# call cleanup() on exit
trap cleanup 0
@@ -277,12 +285,16 @@ echo "$DPKG_SHLIB_DEPS" | sed 's/, /\n/g' | \
# Compare the expected dependency list to the generate list.
BAD_DIFF=0
-diff -u "$SCRIPTDIR/expected_deps_$TARGETARCH" actual || BAD_DIFF=1
+diff -u "$SCRIPTDIR/expected_deps_${TARGETARCH}_${HOST_DISTRO}" actual || \
+ BAD_DIFF=1
if [ $BAD_DIFF -ne 0 ] && [ -z "${IGNORE_DEPS_CHANGES:-}" ]; then
echo
echo "ERROR: Shared library dependencies changed!"
echo "If this is intentional, please update:"
- echo "chrome/installer/linux/debian/expected_deps_$TARGETARCH"
+ echo "chrome/installer/linux/debian/expected_deps_ia32_precise"
+ echo "chrome/installer/linux/debian/expected_deps_ia32_trusty"
+ echo "chrome/installer/linux/debian/expected_deps_x64_precise"
+ echo "chrome/installer/linux/debian/expected_deps_x64_trusty"
echo
exit $BAD_DIFF
fi
« no previous file with comments | « chrome/installer/linux/BUILD.gn ('k') | chrome/installer/linux/debian/expected_deps_ia32 » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698