18112: Ubuntu 18.04 comes with bundler version 1.16.1, which doesn't handle our
authorWard Vandewege <ward@jhvc.com>
Tue, 7 Sep 2021 18:06:47 +0000 (14:06 -0400)
committerWard Vandewege <ward@jhvc.com>
Tue, 7 Sep 2021 18:06:47 +0000 (14:06 -0400)
current Gemfiles properly. Make our Ubuntu 18.04 distribution packages
for arvados-api-server and arvados-workbench conflict with the
ruby-bundler package to work around this issue. Our post-install scripts
install the proper version of bundler.

Arvados-DCO-1.1-Signed-off-by: Ward Vandewege <ward@curii.com>

apps/workbench/fpm-info.sh
build/run-library.sh
services/api/fpm-info.sh

index a1de4b2a5fc058ee3ab6112347c08107d1d486c3..a09638a35e1add08cc66a4bf140403b988043622 100644 (file)
@@ -6,6 +6,10 @@ case "$TARGET" in
     centos*)
         fpm_depends+=(git bison make automake gcc gcc-c++ graphviz shared-mime-info)
         ;;
+    ubuntu1804)
+        fpm_depends+=(git g++ bison zlib1g-dev make graphviz shared-mime-info)
+        fpm_conflicts+=(ruby-bundler)
+        ;;
     debian* | ubuntu*)
         fpm_depends+=(git g++ bison zlib1g-dev make graphviz shared-mime-info)
         ;;
index 22bb065872e357aae2db7fc0437203d949c452df..d0ddcd6c6705ae9d66adbcf1adc574a11d78a746 100755 (executable)
@@ -912,6 +912,7 @@ fpm_build () {
   declare -a fpm_args=()
   declare -a build_depends=()
   declare -a fpm_depends=()
+  declare -a fpm_conflicts=()
   declare -a fpm_exclude=()
   if [[ ! -d "$SRC_DIR" ]]; then
       echo >&2 "BUG: looking in wrong dir for fpm-info.sh: $pkgdir"
@@ -947,6 +948,9 @@ fpm_build () {
   for i in "${fpm_depends[@]}"; do
     COMMAND_ARR+=('--depends' "$i")
   done
+  for i in "${fpm_conflicts[@]}"; do
+    COMMAND_ARR+=('--conflicts' "$i")
+  done
   for i in "${fpm_exclude[@]}"; do
     COMMAND_ARR+=('--exclude' "$i")
   done
index b8ba801aca5ab443c89f6ea93dee4a901e241200..570f4601c5d9bdeaf7220c6b4676be25a316875d 100644 (file)
@@ -8,6 +8,10 @@ case "$TARGET" in
     centos*)
         fpm_depends+=(libcurl-devel postgresql-devel bison make automake gcc gcc-c++ postgresql shared-mime-info)
         ;;
+    ubuntu1804)
+        fpm_depends+=(libcurl-ssl-dev libpq-dev g++ bison zlib1g-dev make postgresql-client shared-mime-info)
+        fpm_conflicts+=(ruby-bundler)
+        ;;
     debian* | ubuntu*)
         fpm_depends+=(libcurl-ssl-dev libpq-dev g++ bison zlib1g-dev make postgresql-client shared-mime-info)
         ;;