X-Git-Url: https://git.arvados.org/arvados.git/blobdiff_plain/ba418300c50e1375ca9938562579b7bd6bf9490d..5aa7b2ef565348e637af8dfd9351f82c8cc5b5e6:/build/run-build-packages.sh diff --git a/build/run-build-packages.sh b/build/run-build-packages.sh index 3ba1dcc05e..9030072d59 100755 --- a/build/run-build-packages.sh +++ b/build/run-build-packages.sh @@ -3,8 +3,8 @@ # # SPDX-License-Identifier: AGPL-3.0 -. `dirname "$(readlink -f "$0")"`/run-library.sh -. `dirname "$(readlink -f "$0")"`/libcloud-pin.sh +. `dirname "$(readlink -f "$0")"`/run-library.sh || exit 1 +. `dirname "$(readlink -f "$0")"`/libcloud-pin.sh || exit 1 read -rd "\000" helpmessage <"$STDOUT_IF_DEBUG" && \ make install INSTALLDIRS=perl >"$STDOUT_IF_DEBUG" && \ - fpm_build install/lib/=/usr/share libarvados-perl \ + fpm_build "$WORKSPACE/sdk/perl" install/lib/=/usr/share libarvados-perl \ dir "$(version_from_git)" install/man/=/usr/share/man \ "$WORKSPACE/apache-2.0.txt=/usr/share/doc/libarvados-perl/apache-2.0.txt" && \ mv --no-clobber libarvados-perl*.$FORMAT "$WORKSPACE/packages/$TARGET/" @@ -268,10 +259,8 @@ debug_echo -e "\nPython packages\n" git checkout $DASHQ_UNLESS_DEBUG "$COMMIT_HASH" echo "$COMMIT_HASH" >git-commit.version - cd "$SRC_BUILD_DIR" - PKG_VERSION=$(version_from_git) cd $WORKSPACE/packages/$TARGET - fpm_build $SRC_BUILD_DIR/=/usr/local/arvados/src arvados-src 'dir' "$PKG_VERSION" "--exclude=usr/local/arvados/src/.git" "--url=https://arvados.org" "--license=GNU Affero General Public License, version 3.0" "--description=The Arvados source code" "--architecture=all" + fpm_build "$WORKSPACE" $SRC_BUILD_DIR/=/usr/local/arvados/src arvados-src 'dir' "$arvados_src_version" "--exclude=usr/local/arvados/src/.git" "--url=https://arvados.org" "--license=GNU Affero General Public License, version 3.0" "--description=The Arvados source code" "--architecture=all" rm -rf "$SRC_BUILD_DIR" fi @@ -318,42 +307,36 @@ package_go_binary tools/keep-rsync keep-rsync \ "Copy all data from one set of Keep servers to another" package_go_binary tools/keep-exercise keep-exercise \ "Performance testing tool for Arvados Keep" - -# The Python SDK - Should be built first because it's needed by others -fpm_build_virtualenv "arvados-python-client" "sdk/python" +package_go_so lib/pam pam_arvados.so libpam-arvados-go \ + "Arvados PAM authentication module" # The Python SDK - Python3 package fpm_build_virtualenv "arvados-python-client" "sdk/python" "python3" -# Arvados cwl runner - Only supports Python3 now +# Arvados cwl runner - Python3 package fpm_build_virtualenv "arvados-cwl-runner" "sdk/cwl" "python3" -# The PAM module -fpm_build_virtualenv "libpam-arvados" "sdk/pam" - -# The FUSE driver -fpm_build_virtualenv "arvados-fuse" "services/fuse" - -# The node manager -fpm_build_virtualenv "arvados-node-manager" "services/nodemanager" +# The FUSE driver - Python3 package +fpm_build_virtualenv "arvados-fuse" "services/fuse" "python3" # The Arvados crunchstat-summary tool -fpm_build_virtualenv "crunchstat-summary" "tools/crunchstat-summary" +fpm_build_virtualenv "crunchstat-summary" "tools/crunchstat-summary" "python3" # The Docker image cleaner fpm_build_virtualenv "arvados-docker-cleaner" "services/dockercleaner" "python3" +# The Arvados user activity tool +fpm_build_virtualenv "arvados-user-activity" "tools/user-activity" "python3" + # The cwltest package, which lives out of tree cd "$WORKSPACE" if [[ -e "$WORKSPACE/cwltest" ]]; then rm -rf "$WORKSPACE/cwltest" fi git clone https://github.com/common-workflow-language/cwltest.git -# last release to support python 2.7 -(cd cwltest && git checkout 1.0.20190906212748) # signal to our build script that we want a cwltest executable installed in /usr/bin/ mkdir cwltest/bin && touch cwltest/bin/cwltest -fpm_build_virtualenv "cwltest" "cwltest" +fpm_build_virtualenv "cwltest" "cwltest" "python3" rm -rf "$WORKSPACE/cwltest" calculate_go_package_version arvados_server_version cmd/arvados-server