From: Brett Smith Date: Tue, 31 May 2016 21:37:02 +0000 (-0400) Subject: 9309: Look for fpm-info in backports/$PACKAGE_NAME. X-Git-Tag: 1.1.0~910^2~1 X-Git-Url: https://git.arvados.org/arvados.git/commitdiff_plain/5030797bc2035f1feee5876e069c0282308270ef 9309: Look for fpm-info in backports/$PACKAGE_NAME. This lets us define additional fpm flags when we build a non-dir package from a source directory. --- diff --git a/build/run-build-packages.sh b/build/run-build-packages.sh index 52fe399b90..bd49c4dedc 100755 --- a/build/run-build-packages.sh +++ b/build/run-build-packages.sh @@ -432,17 +432,17 @@ fpm_build $WORKSPACE/sdk/cwl "${PYTHON2_PKG_PREFIX}-arvados-cwl-runner" 'Curover # So we build this thing separately. # # Ward, 2016-03-17 -fpm_build schema_salad schema_salad "" python 1.11.20160506154702 +fpm_build schema_salad "" "" python 1.11.20160506154702 # And schema_salad now depends on ruamel-yaml, which apparently has a braindead setup.py that requires special arguments to build (otherwise, it aborts with 'error: you have to install with "pip install ."'). Sigh. # Ward, 2016-05-26 -fpm_build ruamel.yaml ruamel.yaml "" python "" --python-setup-py-arguments "--single-version-externally-managed" +fpm_build ruamel.yaml "" "" python "" --python-setup-py-arguments "--single-version-externally-managed" # And for cwltool we have the same problem as for schema_salad. Ward, 2016-03-17 -fpm_build cwltool cwltool "" python 1.0.20160519182434 +fpm_build cwltool "" "" python 1.0.20160519182434 # FPM eats the trailing .0 in the python-rdflib-jsonld package when built with 'rdflib-jsonld>=0.3.0'. Force the version. Ward, 2016-03-25 -fpm_build rdflib-jsonld rdflib-jsonld "" python 0.3.0 +fpm_build rdflib-jsonld "" "" python 0.3.0 # The PAM module if [[ $TARGET =~ debian|ubuntu ]]; then diff --git a/build/run-library.sh b/build/run-library.sh index c7bc9538d1..58a177ec60 100755 --- a/build/run-library.sh +++ b/build/run-library.sh @@ -178,8 +178,8 @@ fpm_build () { # pip). PACKAGE=$1 shift - # The name of the package to build. Defaults to $PACKAGE. - PACKAGE_NAME=${1:-$PACKAGE} + # The name of the package to build. + PACKAGE_NAME=$1 shift # Optional: the vendor of the package. Should be "Curoverse, Inc." for # packages of our own software. Passed to fpm --vendor. @@ -238,7 +238,7 @@ fpm_build () { COMMAND_ARR+=('--verbose' '--log' 'info') fi - if [[ "$PACKAGE_NAME" != "$PACKAGE" ]]; then + if [[ -n "$PACKAGE_NAME" ]]; then COMMAND_ARR+=('-n' "$PACKAGE_NAME") fi @@ -265,6 +265,9 @@ fpm_build () { "${PACKAGE%%=/*}" # backports ("llfuse==0.41.1" => "backports/python-llfuse") "${WORKSPACE}/backports/${PACKAGE_TYPE}-${PACKAGE%%[<=>]*}") + if [[ -n "$PACKAGE_NAME" ]]; then + fpm_dirs+=("${WORKSPACE}/backports/${PACKAGE_NAME}") + fi for pkgdir in "${fpm_dirs[@]}"; do fpminfo="$pkgdir/fpm-info.sh" if [[ -e "$fpminfo" ]]; then @@ -391,4 +394,3 @@ report_outcomes() { done fi } -