X-Git-Url: https://git.arvados.org/arvados.git/blobdiff_plain/7547041bbe6d25232c59ea842d1d2be49d94d28b..372e66f06af08395b795ba4b2d8d59129a874a05:/build/run-build-packages.sh diff --git a/build/run-build-packages.sh b/build/run-build-packages.sh index 06328f8292..9b09b7fae0 100755 --- a/build/run-build-packages.sh +++ b/build/run-build-packages.sh @@ -20,9 +20,9 @@ Options: --target Distribution to build packages for (default: debian10) --only-build - Build only a specific package (or $ONLY_BUILD from environment) + Build only a specific package (or ONLY_BUILD from environment) --arch - Build a specific architecture (or $ARCH from environment, defaults to native architecture) + Build a specific architecture (or ARCH from environment, defaults to native architecture) --force-build Build even if the package exists upstream or if it has already been built locally @@ -108,7 +108,8 @@ fi declare -a PYTHON3_BACKPORTS -PYTHON3_VERSION=$(python3 -c 'import sys; print("{v.major}.{v.minor}".format(v=sys.version_info))') +PYTHON3_EXECUTABLE=python3 +PYTHON3_VERSION=$($PYTHON3_EXECUTABLE -c 'import sys; print("{v.major}.{v.minor}".format(v=sys.version_info))') ## These defaults are suitable for any Debian-based distribution. # You can customize them as needed in distro sections below. @@ -122,6 +123,13 @@ case "$TARGET" in debian*) FORMAT=deb ;; + ubuntu1804) + FORMAT=deb + PYTHON3_EXECUTABLE=python3.8 + PYTHON3_VERSION=$($PYTHON3_EXECUTABLE -c 'import sys; print("{v.major}.{v.minor}".format(v=sys.version_info))') + PYTHON3_PACKAGE=python$PYTHON3_VERSION + PYTHON3_INSTALL_LIB=lib/python$PYTHON3_VERSION/dist-packages + ;; ubuntu*) FORMAT=deb ;; @@ -196,6 +204,9 @@ if [[ ! -d "$WORKSPACE/packages/$TARGET" ]]; then chown --reference="$WORKSPACE" "$WORKSPACE/packages/$TARGET" fi +# Required due to CVE-2022-24765 +git config --global --add safe.directory /arvados + # Perl packages debug_echo -e "\nPerl packages\n" @@ -247,7 +258,7 @@ package_go_binary services/health arvados-health "$FORMAT" "$ARCH" \ "Check health of all Arvados cluster services" package_go_binary services/keep-balance keep-balance "$FORMAT" "$ARCH" \ "Rebalance and garbage-collect data blocks stored in Arvados Keep" -package_go_binary services/keepproxy keepproxy "$FORMAT" "$ARCH" \ +package_go_binary cmd/arvados-server keepproxy "$FORMAT" "$ARCH" \ "Make a Keep cluster accessible to clients that are not on the LAN" package_go_binary cmd/arvados-server keepstore "$FORMAT" "$ARCH" \ "Keep storage daemon, accessible to clients on the LAN"