You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@bigtop.apache.org by GitBox <gi...@apache.org> on 2021/03/17 14:41:57 UTC

[GitHub] [bigtop] sekikn commented on pull request #760: BIGTOP-3527: replace ${PWD} with ${CURDIR} in debian rules files

sekikn commented on pull request #760:
URL: https://github.com/apache/bigtop/pull/760#issuecomment-801140257


   Thanks for the PR @elukey! It worked with GPDB and Hadoop, but it didn't with Phoenix in my environment (Ubuntu 20.04). The error was as follows:
   
   ```
   $ ./gradlew phoenix-clean phoenix-pkg
   
   ...
   
   bash -x debian/install_phoenix.sh \
     --build-dir=${CURDIR}/build     \
     --prefix=debian/tmp
   + set -ex
   ++ getopt -n debian/install_phoenix.sh -o '' -l prefix: -l doc-dir: -l lib-dir: -l installed-lib-dir: -l bin-dir: -l examples-dir: -l conf-dir: -l build-dir: -- --build-dir=/build --prefix=debian/tmp
   + OPTS=' --build-dir '\''/build'\'' --prefix '\''debian/tmp'\'' --'
   + '[' 0 '!=' 0 ']'
   + eval set -- ' --build-dir '\''/build'\'' --prefix '\''debian/tmp'\'' --'
   ++ set -- --build-dir /build --prefix debian/tmp --
   + true
   + case "$1" in
   + BUILD_DIR=/build
   
   ...
   
   + for var in PREFIX BUILD_DIR
   ++ eval 'echo $PREFIX'
   +++ echo debian/tmp
   + '[' -z debian/tmp ']'
   + for var in PREFIX BUILD_DIR
   ++ eval 'echo $BUILD_DIR'
   +++ echo /build
   + '[' -z /build ']'
   + MAN_DIR=/usr/share/man/man1
   + DOC_DIR=/usr/share/doc/phoenix
   + LIB_DIR=/usr/lib/phoenix
   + BIN_DIR=/usr/lib/phoenix/bin
   + ETC_DIR=/etc/phoenix
   + CONF_DIR=/etc/phoenix/conf.dist
   + install -d -m 0755 debian/tmp//usr/lib/phoenix/bin
   + install -d -m 0755 debian/tmp//usr/lib/phoenix
   + install -d -m 0755 debian/tmp//usr/lib/phoenix/lib
   + install -d -m 0755 debian/tmp//usr/share/doc/phoenix
   + install -d -m 0755 debian/tmp//usr/share/man/man1
   + install -d -m 0755 debian/tmp//etc/phoenix
   + install -d -m 0755 debian/tmp//etc/phoenix/conf.dist
   + install -d -m 0755 debian/tmp/var/lib/phoenix
   + install -d -m 0755 debian/tmp/var/log/phoenix
   + cp '/build/*.jar' debian/tmp//usr/lib/phoenix/
   cp: cannot stat '/build/*.jar': No such file or directory
   make[1]: *** [debian/rules:43: override_dh_auto_install] Error 1
   make[1]: Leaving directory '/home/vagrant/bigtop/output/phoenix/phoenix-5.1.0'
   make: *** [debian/rules:35: binary] Error 2
   dpkg-buildpackage: error: fakeroot debian/rules binary subprocess returned exit status 2
   debuild: fatal error at line 1182:
   dpkg-buildpackage -us -uc -ui -b
    failed
   
   > Task :phoenix-deb FAILED
   
   FAILURE: Build failed with an exception.
   ```
   
   Maybe we should use `${CURDIR}` instead of `$${CURDIR}`? (though I'm not sure why `$${PWD}` worked... :)
   


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org