X-Git-Url: https://git.arvados.org/arvados.git/blobdiff_plain/1852b22218ae7b997cb1980d7b33fd1c8879163b..3574793a2104d523f924d3ce3f6d1eab049835a1:/build/run-build-packages.sh diff --git a/build/run-build-packages.sh b/build/run-build-packages.sh index e38c9a93c4..39c4093431 100755 --- a/build/run-build-packages.sh +++ b/build/run-build-packages.sh @@ -1,7 +1,10 @@ #!/bin/bash +# Copyright (C) The Arvados Authors. All rights reserved. +# +# SPDX-License-Identifier: AGPL-3.0 . `dirname "$(readlink -f "$0")"`/run-library.sh -. `dirname "$(readlink -f "$0")"`/libcloud-pin +. `dirname "$(readlink -f "$0")"`/libcloud-pin.sh read -rd "\000" helpmessage <"$STDOUT_IF_DEBUG" && \ fpm_build install/lib/=/usr/share libarvados-perl \ "Curoverse, Inc." dir "$(version_from_git)" install/man/=/usr/share/man \ - "$WORKSPACE/LICENSE-2.0.txt=/usr/share/doc/libarvados-perl/LICENSE-2.0.txt" && \ + "$WORKSPACE/apache-2.0.txt=/usr/share/doc/libarvados-perl/apache-2.0.txt" && \ mv --no-clobber libarvados-perl*.$FORMAT "$WORKSPACE/packages/$TARGET/" fi fi @@ -405,7 +412,7 @@ fi saladversion=$(cat "$WORKSPACE/sdk/cwl/setup.py" | grep schema-salad== | sed "s/.*==\(.*\)'.*/\1/") test_package_presence python-schema-salad "$saladversion" python if [[ "$?" == "0" ]]; then - fpm_build schema_salad "" "" python $saladversion --depends "${PYTHON2_PKG_PREFIX}-lockfile >= 1:0.12.2-2" + fpm_build schema_salad "" "" python $saladversion --depends "${PYTHON2_PKG_PREFIX}-lockfile >= 1:0.12.2-2" --depends "${PYTHON2_PKG_PREFIX}-avro = 1.8.1-2" fi # And for cwltool we have the same problem as for schema_salad. Ward, 2016-03-17 @@ -519,6 +526,7 @@ while read -r line || [[ -n "$line" ]]; do pkgtype=${arr[4]} arch=${arr[5]} extra=${arr[6]} + declare -a 'extra_arr=('"$extra"')' if [[ "$FORMAT" == "rpm" ]]; then if [[ "$arch" == "all" ]]; then @@ -557,7 +565,7 @@ while read -r line || [[ -n "$line" ]]; do "python$PYTHON2_VERSION" setup.py $DASHQ_UNLESS_DEBUG egg_info build chmod -R go+rX . set +e - fpm_build . "$outname" "" "$pkgtype" "$version" --iteration "$iteration" $extra + fpm_build . "$outname" "" "$pkgtype" "$version" --iteration "$iteration" "${extra_arr[@]}" # The upload step uses the package timestamp to determine # if it is new. --no-clobber plays nice with that. mv --no-clobber "$outname"*.$FORMAT "$WORKSPACE/packages/$TARGET" @@ -574,7 +582,7 @@ while read -r line || [[ -n "$line" ]]; do *) test_package_presence $outname $version $pkgtype $iteration $arch if [[ "$?" == "0" ]]; then - fpm_build "$name" "$outname" "" "$pkgtype" "$version" --iteration "$iteration" $extra + fpm_build "$name" "$outname" "" "$pkgtype" "$version" --iteration "$iteration" "${extra_arr[@]}" fi ;; esac