[ARVADOS] created: 2.1.0-68-gfe3a451ad
Git user
git at public.arvados.org
Wed Oct 28 19:33:41 UTC 2020
at fe3a451ad1d3613fd0953919fc44e5df18219fc4 (commit)
commit fe3a451ad1d3613fd0953919fc44e5df18219fc4
Author: Ward Vandewege <ward at curii.com>
Date: Wed Oct 28 15:29:58 2020 -0400
17047: bugfixes, and add an entry to the upgrade notes about the
packaging change.
Arvados-DCO-1.1-Signed-off-by: Ward Vandewege <ward at curii.com>
diff --git a/build/package-build-dockerfiles/centos7/Dockerfile b/build/package-build-dockerfiles/centos7/Dockerfile
index 06eb77eee..3c742d3b2 100644
--- a/build/package-build-dockerfiles/centos7/Dockerfile
+++ b/build/package-build-dockerfiles/centos7/Dockerfile
@@ -40,11 +40,10 @@ RUN ln -s /usr/local/node-v6.11.2-linux-x64/bin/* /usr/local/bin/
# Need to "touch" RPM database to workaround bug in interaction between
# overlayfs and yum (https://bugzilla.redhat.com/show_bug.cgi?id=1213602)
-RUN touch /var/lib/rpm/* && yum -q -y install python3 python3-pip
+RUN touch /var/lib/rpm/* && yum -q -y install python3 python3-pip python3-devel
-# Add epel, we need it for the python-pam dependency
-#RUN wget http://dl.fedoraproject.org/pub/epel/epel-release-latest-7.noarch.rpm
-#RUN rpm -ivh epel-release-latest-7.noarch.rpm
+# Install virtualenv
+RUN /usr/bin/pip3 install 'virtualenv<20'
RUN git clone --depth 1 git://git.arvados.org/arvados.git /tmp/arvados && cd /tmp/arvados/services/api && /usr/local/rvm/bin/rvm-exec default bundle && cd /tmp/arvados/apps/workbench && /usr/local/rvm/bin/rvm-exec default bundle
@@ -52,4 +51,4 @@ RUN git clone --depth 1 git://git.arvados.org/arvados.git /tmp/arvados && cd /tm
RUN pip3 install 'setuptools<45'
ENV WORKSPACE /arvados
-CMD ["/usr/local/rvm/bin/rvm-exec default bash /jenkins/run-build-packages.sh --target centos7"]
+CMD ["/usr/local/rvm/bin/rvm-exec", "default", "bash", "/jenkins/run-build-packages.sh", "--target", "centos7"]
diff --git a/build/run-build-packages.sh b/build/run-build-packages.sh
index 0a83edfdf..8d55e2fd9 100755
--- a/build/run-build-packages.sh
+++ b/build/run-build-packages.sh
@@ -123,10 +123,10 @@ case "$TARGET" in
;;
centos*)
FORMAT=rpm
- # PYTHON3_PACKAGE=$(rpm -qf "$(which python$PYTHON3_VERSION)" --queryformat '%{NAME}\n')
- # PYTHON3_PKG_PREFIX=$PYTHON3_PACKAGE
- # PYTHON3_PREFIX=/opt/rh/rh-python36/root/usr
- # PYTHON3_INSTALL_LIB=lib/python$PYTHON3_VERSION/site-packages
+ PYTHON3_PACKAGE=$(rpm -qf "$(which python$PYTHON3_VERSION)" --queryformat '%{NAME}\n')
+ PYTHON3_PKG_PREFIX=$PYTHON3_PACKAGE
+ PYTHON3_PREFIX=/usr
+ PYTHON3_INSTALL_LIB=lib/python$PYTHON3_VERSION/site-packages
export PYCURL_SSL_LIBRARY=nss
;;
*)
diff --git a/build/run-library.sh b/build/run-library.sh
index bd4d1aeb1..f33e2c569 100755
--- a/build/run-library.sh
+++ b/build/run-library.sh
@@ -475,12 +475,7 @@ fpm_build_virtualenv () {
case "$PACKAGE_TYPE" in
python3)
python=python3
- if [[ "$FORMAT" != "rpm" ]]; then
- pip=pip3
- else
- # In CentOS, we use a different mechanism to get the right version of pip
- pip=pip
- fi
+ pip=pip3
PACKAGE_PREFIX=$PYTHON3_PKG_PREFIX
;;
esac
diff --git a/doc/admin/upgrading.html.textile.liquid b/doc/admin/upgrading.html.textile.liquid
index 5ea39369f..e8cde5ace 100644
--- a/doc/admin/upgrading.html.textile.liquid
+++ b/doc/admin/upgrading.html.textile.liquid
@@ -35,6 +35,14 @@ TODO: extract this information based on git commit messages and generate changel
<div class="releasenotes">
</notextile>
+h2(#master). development master (as of 2020-10-28)
+
+"Upgrading from 2.1.0":#v2_1_0
+
+h3. Centos7 Python 3 dependency upgraded to python3
+
+Now that Python 3 is part of the base repository in CentOS 7, the Python 3 dependency for Centos7 Arvados packages was changed from SCL rh-python36 to python3.
+
h2(#v2_1_0). v2.1.0 (2020-10-13)
"Upgrading from 2.0.0":#v2_0_0
@@ -232,9 +240,9 @@ h2(#v1_4_1). v1.4.1 (2019-09-20)
"Upgrading from 1.4.0":#v1_4_0
-h3. Centos7 Python 3 dependency upgraded to python3
+h3. Centos7 Python 3 dependency upgraded to rh-python36
-The Python 3 dependency for Centos7 Arvados packages was upgraded from rh-python35 to python3.
+The Python 3 dependency for Centos7 Arvados packages was upgraded from rh-python35 to rh-python36.
h2(#v1_4_0). v1.4.0 (2019-06-05)
diff --git a/doc/install/install-postgresql.html.textile.liquid b/doc/install/install-postgresql.html.textile.liquid
index b25194a9e..7c094257c 100644
--- a/doc/install/install-postgresql.html.textile.liquid
+++ b/doc/install/install-postgresql.html.textile.liquid
@@ -19,14 +19,14 @@ h3(#centos7). CentOS 7
{% include 'note_python_sc' %}
# Install PostgreSQL
- <notextile><pre># <span class="userinput">yum install rh-postgresql95 rh-postgresql95-postgresql-contrib</span>
-~$ <span class="userinput">scl enable rh-postgresql95 bash</span></pre></notextile>
+ <notextile><pre># <span class="userinput">yum install rh-postgresql12 rh-postgresql12-postgresql-contrib</span>
+~$ <span class="userinput">scl enable rh-postgresql12 bash</span></pre></notextile>
# Initialize the database
<notextile><pre># <span class="userinput">postgresql-setup initdb</span></pre></notextile>
# Configure the database to accept password connections
<notextile><pre><code># <span class="userinput">sed -ri -e 's/^(host +all +all +(127\.0\.0\.1\/32|::1\/128) +)ident$/\1md5/' /var/lib/pgsql/data/pg_hba.conf</span></code></pre></notextile>
# Configure the database to launch at boot and start now
- <notextile><pre># <span class="userinput">systemctl enable --now rh-postgresql95-postgresql</span></pre></notextile>
+ <notextile><pre># <span class="userinput">systemctl enable --now rh-postgresql12-postgresql</span></pre></notextile>
h3(#debian). Debian or Ubuntu
-----------------------------------------------------------------------
hooks/post-receive
--
More information about the arvados-commits
mailing list