diff --git a/HISTORY.txt b/HISTORY.txt index 71af813c..1187807f 100644 --- a/HISTORY.txt +++ b/HISTORY.txt @@ -1,3 +1,13 @@ +5.1.0r1 2018-03-06 + +- For good reason, a recent change in sudo does not allow overwriting PWD. + That fouled up the installer's scheme for keeping track of the installer directory, causing helper scripts to be lost. + Fixed. + [smcmahon] + +- Packages included with the first 5.1.0 installer did not include some recipes used when installing via sudo. + [smcmahon] + 5.1.0 2018-03-02 - Add to update_packages.py a mechanism to replace binary wheels with source tarballs. diff --git a/buildme.sh b/buildme.sh index 4daa4924..03e8189c 100755 --- a/buildme.sh +++ b/buildme.sh @@ -30,7 +30,7 @@ fi BASE_VER=5.1.0 NEWVER=${BASE_VER} -INSTALLER_REVISION="" +INSTALLER_REVISION="-r1" SDIR=`pwd` diff --git a/buildout_templates/buildout.cfg b/buildout_templates/buildout.cfg index ae7b145e..e62b6b5c 100644 --- a/buildout_templates/buildout.cfg +++ b/buildout_templates/buildout.cfg @@ -198,6 +198,9 @@ zeo-address = 127.0.0.1:8100 setuptools = zc.buildout = +plone.recipe.command = 1.1 +plone.recipe.precompiler = 0.6 + Products.DocFinderTab = 1.0.5 bobtemplates.plone = 2.0 buildout.sanitycheck = 1.0.2 diff --git a/helper_scripts/main_install_script.sh b/helper_scripts/main_install_script.sh index d218a0c1..f0722b9a 100755 --- a/helper_scripts/main_install_script.sh +++ b/helper_scripts/main_install_script.sh @@ -2,6 +2,8 @@ # Copyright (c) 2008-2017 Plone Foundation. Licensed under GPL v 2. # +INSTALLER_PWD=`pwd` + # Path for Root install # # Path for server-mode install of Python/Zope/Plone @@ -34,10 +36,10 @@ PLONE_GROUP=plone_group readonly FOR_PLONE=5.1.0 readonly WANT_PYTHON=2.7 -readonly PACKAGES_DIR=packages +readonly PACKAGES_DIR="${INSTALLER_PWD}/packages" readonly ONLINE_PACKAGES_DIR=opackages -readonly HSCRIPTS_DIR=helper_scripts -readonly TEMPLATE_DIR=buildout_templates +readonly HSCRIPTS_DIR="${INSTALLER_PWD}/helper_scripts" +readonly TEMPLATE_DIR="${INSTALLER_PWD}/buildout_templates" readonly PYTHON_URL=https://www.python.org/ftp/python/2.7.14/Python-2.7.14.tgz readonly PYTHON_MD5=cee2e4b33ad3750da77b2e85f2f8b724 @@ -58,7 +60,7 @@ case $LANG in # ;; *) # default to English - . helper_scripts/locales/en/LC_MESSAGES/messages.sh + . "${HSCRIPTS_DIR}/locales/en/LC_MESSAGES/messages.sh" ;; esac @@ -73,12 +75,9 @@ else fi -# normalize -PWD=`pwd` -CWD="$PWD" -PKG="$CWD/$PACKAGES_DIR" +PKG="$PACKAGES_DIR" -. helper_scripts/shell_utils.sh +. "${INSTALLER_PWD}/helper_scripts/shell_utils.sh" usage () { eval "echo \"$USAGE_MESSAGE\"" @@ -108,7 +107,7 @@ INSTALL_ZEO=0 USE_WHIPTAIL=0 if [ "$BASH_VERSION" ] && [ "X$1" == "X" ]; then - . helper_scripts/whipdialog.sh + . "${INSTALLER_PWD}/helper_scripts/whipdialog.sh" USE_WHIPTAIL=1 fi @@ -530,8 +529,8 @@ PY_DIR=`dirname "$WITH_PYTHON"` PY_BASE=`basename "$WITH_PYTHON"` cd "$PY_DIR" PY_DIR=`pwd` +cd "$INSTALLER_PWD" WITH_PYTHON="${PY_DIR}/${PY_BASE}" -echo "$WITH_PYTHON" ############################# @@ -666,7 +665,7 @@ if [ "X$DEBUG_OPTIONS" = "Xyes" ]; then echo "DAEMON_USER=$DAEMON_USER" echo "BUILDOUT_USER=$BUILDOUT_USER" echo "ORIGIN_PATH=$ORIGIN_PATH" - echo "PWD=$PWD" + echo "PWD=$INSTALLER_PWD" echo "CWD=$CWD" echo "PKG=$PKG" echo "WITH_PYTHON=$WITH_PYTHON" @@ -720,7 +719,7 @@ eval "echo \"$INSTALLING_NOW\"" # create os users for root-level install if [ $ROOT_INSTALL -eq 1 ]; then # source user/group utilities - . helper_scripts/user_group_utilities.sh + . "${INSTALLER_PWD}/helper_scripts/user_group_utilities.sh" # see if we know how to do this on this platfrom check_ug_ability @@ -798,7 +797,7 @@ if [ "X$BUILD_PYTHON" = "Xyes" ]; then PY_HOME="$PLONE_HOME/Python-${WANT_PYTHON}" WITH_PYTHON="${PY_HOME}/bin/python" - . helper_scripts/build_python.sh + . "${INSTALLER_PWD}/helper_scripts/build_python.sh" if "$WITH_PYTHON" "$CWD/$HSCRIPTS_DIR"/checkPython.py --without-ssl=${WITHOUT_SSL}; then @@ -896,9 +895,9 @@ cd "$CWD" # we'll need into a tmp directory inside the install destination. WORKDIR="${PLONE_HOME}/tmp" mkdir "$WORKDIR" > /dev/null 2>&1 -cp -R ./buildout_templates "$WORKDIR" -cp -R ./base_skeleton "$WORKDIR" -cp -R ./helper_scripts "$WORKDIR" +cp -R "${INSTALLER_PWD}/buildout_templates" "$WORKDIR" +cp -R "${INSTALLER_PWD}/base_skeleton" "$WORKDIR" +cp -R "${INSTALLER_PWD}/helper_scripts" "$WORKDIR" if [ $ROOT_INSTALL -eq 1 ]; then chown -R "$BUILDOUT_USER:$PLONE_GROUP" "$WORKDIR" find "$WORKDIR" -type d -exec chmod g+s {} \; diff --git a/install.sh b/install.sh index 9ddccf35..3ce5f0b8 100755 --- a/install.sh +++ b/install.sh @@ -84,8 +84,8 @@ ORIGIN_PATH=`pwd` export ORIGIN_PATH # change to directory with script -PWD=`dirname $0` -cd $PWD +INSTALLER_PWD=`dirname $0` +cd "$INSTALLER_PWD" if which bash > /dev/null; then bash helper_scripts/main_install_script.sh "$@" else diff --git a/version.txt b/version.txt index fbcfc8ca..2a9b783e 100644 --- a/version.txt +++ b/version.txt @@ -1,2 +1,2 @@ Plone version: 5.1.0 (with Zope 2.13.x, Python 2.7.x) -Installer version: Unified Installer 5.1.0 +Installer version: Unified Installer 5.1.0-r1