Skip to content

Commit

Permalink
Implement support for iRODS 4.2.12 + Ubu. 20.04LTS
Browse files Browse the repository at this point in the history
(Work in progress)
  • Loading branch information
stsnel committed Jan 5, 2024
1 parent 6b4fec2 commit 767cd45
Show file tree
Hide file tree
Showing 2 changed files with 37 additions and 0 deletions.
29 changes: 29 additions & 0 deletions _common/common_functions.sh
Original file line number Diff line number Diff line change
Expand Up @@ -173,3 +173,32 @@ cat > /etc/irods/setup_irods.json << IRODS_CONFIG_END
IRODS_CONFIG_END

}

# This function installs requirements to install iRODS 4.2.12 on Ubuntu 20.04 LTS.
# This combination is not officially supported and requires installing some
# non-standard distro packages. This script has been adapted from
# https://github.com/irods/irods/issues/4883#issuecomment-731210617
function install_focal_42_reqs () {
sudo apt install -y libpython2-stdlib libpython2.7-minimal libpython2.7-stdlib \
python-is-python2 python-six python2 python2-minimal python2.7 python2.7-minimal \
python-certifi python-chardet python-idna python-pkg-resources python-setuptools

PY_URLLIB_PREFIX="http://security.ubuntu.com/ubuntu/pool/main/p/python-urllib3"
PY_URLLIB_FILENAME="python-urllib3_1.22-1ubuntu0.18.04.2_all.deb"
PY_REQUESTS_PREFIX="http://security.ubuntu.com/ubuntu/pool/main/r/requests"
PY_REQUESTS_FILENAME="python-requests_2.18.4-2ubuntu0.1_all.deb"
OPENSSL_PREFIX="http://security.ubuntu.com/ubuntu/pool/main/o/openssl1.0"
OPENSSL_FILENAME="libssl1.0.0_1.0.2n-1ubuntu5.13_amd64.deb"

wget \
${PY_URLLIB_PREFIX}/${PY_URLLIB_FILENAME} \
${PY_REQUESTS_PREFIX}/${PY_REQUESTS_FILENAME} \
${OPENSSL_PREFIX}/${OPENSSL_FILENAME}

for package in $PY_URLLIB_FILENAME $PY_REQUESTS_FILENAME $OPENSSL_FILENAME
do echo "Installing package ${package%.*}"
sudo dpkg -i "$package"
rm "$package"
done

}
8 changes: 8 additions & 0 deletions irods-icommands/install-icommands.sh
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,14 @@ ENDAPTREPO
echo "Installing dependencies ..."
sudo apt-get -y install aptitude

RELEASE=$(lsb_release -r | cut -d ":" -f 2| xargs)

if [ "$RELEASE" == "20.04" ] && [ "$IRODS_VERSION" == "4.2.12" ]
then echo "Running specific install steps for Ubuntu 20.04 LTS in combination with iRODS 4.2.12"
install_focal_42_reqs
echo "End of specific install steps for Ubuntu 20.04 LTS in combination with iRODS 4.2.12"
fi

for package in $APT_PACKAGES
do echo "Installing package $package and its dependencies"
get_package_version "$package" "$IRODS_VERSION" "ubuntu"
Expand Down

0 comments on commit 767cd45

Please sign in to comment.