BIGTOP-1074. Bump version of Hue to 2.5.0
Project: http://git-wip-us.apache.org/repos/asf/bigtop/repo Commit: http://git-wip-us.apache.org/repos/asf/bigtop/commit/582ed616 Tree: http://git-wip-us.apache.org/repos/asf/bigtop/tree/582ed616 Diff: http://git-wip-us.apache.org/repos/asf/bigtop/diff/582ed616 Branch: refs/heads/master Commit: 582ed616bfdead583364450486eac7bda0a5d648 Parents: e0b3220 Author: Roman Shaposhnik <[email protected]> Authored: Wed Sep 18 17:34:02 2013 -0700 Committer: Roman Shaposhnik <[email protected]> Committed: Thu Sep 19 10:41:58 2013 -0700 ---------------------------------------------------------------------- bigtop-packages/src/common/hue/install_hue.sh | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/bigtop/blob/582ed616/bigtop-packages/src/common/hue/install_hue.sh ---------------------------------------------------------------------- diff --git a/bigtop-packages/src/common/hue/install_hue.sh b/bigtop-packages/src/common/hue/install_hue.sh index 7ae7016..07ee75c 100644 --- a/bigtop-packages/src/common/hue/install_hue.sh +++ b/bigtop-packages/src/common/hue/install_hue.sh @@ -109,6 +109,15 @@ ln -fs $LIB_DIR/desktop/libs/hadoop/java-lib/*plugin*jar $PREFIX/$HADOOP_DIR install -d -m 0755 $PREFIX/$LIB_DIR/apps/shell/src/shell/build/ cp -f $BUILD_DIR/apps/shell/src/shell/build/setuid $PREFIX/$LIB_DIR/apps/shell/src/shell/build +# Making the resulting tree relocatable +# WARNING: We HAVE to run this twice, before and after the apps get registered. +# we have to run it one time before so that the path to the interpreter +# inside of $PREFIX/$LIB_DIR/build/env/bin/hue gets relativized. If we +# don't relativize it we run into a risk of breaking the build when the +# length of the path to the interpreter ends up being longer than 80 +# character (which is the limit for #!) +(cd $PREFIX/$LIB_DIR ; bash tools/relocatable.sh) + # Remove Hue database and then recreate it, but with just the "right" apps rm -f $PREFIX/$LIB_DIR/desktop/desktop.db $PREFIX/$LIB_DIR/app.reg APPS="about filebrowser help proxy useradmin shell oozie jobbrowser jobsub" @@ -120,7 +129,7 @@ for app in $APPS ; do done find $PREFIX/$LIB_DIR -iname \*.py[co] -exec rm -f {} \; -# Making the resulting tree relocatable +# Making the resulting tree relocatable for the second time (cd $PREFIX/$LIB_DIR ; bash tools/relocatable.sh) # Move desktop.db to a var location
