X-Git-Url: https://git.arvados.org/arvados.git/blobdiff_plain/be060104e769405a61068260e95c2a6816c4d2bf..56c4d0c08266cacbca73e77aa82939e00a0bb69e:/build/run-build-packages-one-target.sh diff --git a/build/run-build-packages-one-target.sh b/build/run-build-packages-one-target.sh index 4c55458d46..0c474d00fd 100755 --- a/build/run-build-packages-one-target.sh +++ b/build/run-build-packages-one-target.sh @@ -21,8 +21,8 @@ Syntax: Build only a specific package --only-test Test only a specific package ---only-arch - Build only a specific architecture (amd64 or arm64) +--arch + Build a specific architecture (amd64 or arm64, defaults to native architecture) --force-build Build even if the package exists upstream or if it has already been built locally @@ -56,14 +56,14 @@ if ! [[ -d "$WORKSPACE" ]]; then fi PARSEDOPTS=$(getopt --name "$0" --longoptions \ - help,debug,test-packages,target:,command:,only-test:,force-test,only-build:,force-build,only-arch:,build-version: \ + help,debug,test-packages,target:,command:,only-test:,force-test,only-build:,force-build,arch:,build-version: \ -- "" "$@") if [ $? -ne 0 ]; then exit 1 fi TARGET=debian10 -ONLY_ARCH= +ARCH= FORCE_BUILD=0 COMMAND= DEBUG= @@ -93,8 +93,8 @@ while [ $# -gt 0 ]; do --only-build) ONLY_BUILD="$2"; shift ;; - --only-arch) - ONLY_ARCH="$2"; shift + --arch) + ARCH="$2"; shift ;; --debug) DEBUG=" --debug" @@ -170,7 +170,7 @@ if [[ -n "$test_packages" ]]; then fi set -e (cd $WORKSPACE/packages/$TARGET - dpkg-scanpackages . 2> >(grep -v 'warning' 1>&2) | tee Packages | gzip -c > Packages.gz + dpkg-scanpackages --multiversion . 2> >(grep -v 'warning' 1>&2) | tee Packages | gzip -c > Packages.gz apt-ftparchive -o APT::FTPArchive::Release::Origin=Arvados release . > Release ) fi @@ -317,7 +317,7 @@ else --env ARVADOS_DEBUG=$ARVADOS_DEBUG \ --env "ONLY_BUILD=$ONLY_BUILD" \ --env "FORCE_BUILD=$FORCE_BUILD" \ - --env "ONLY_ARCH=$ONLY_ARCH" \ + --env "ARCH=$ARCH" \ "$IMAGE" $COMMAND then echo