17047: bugfixes, and add an entry to the upgrade notes about the
authorWard Vandewege <ward@curii.com>
Wed, 28 Oct 2020 19:29:58 +0000 (15:29 -0400)
committerWard Vandewege <ward@curii.com>
Wed, 28 Oct 2020 19:29:58 +0000 (15:29 -0400)
       packaging change.

Arvados-DCO-1.1-Signed-off-by: Ward Vandewege <ward@curii.com>

build/package-build-dockerfiles/centos7/Dockerfile
build/run-build-packages.sh
build/run-library.sh
doc/admin/upgrading.html.textile.liquid
doc/install/install-postgresql.html.textile.liquid

index 06eb77eee880d544c8fc2bc57dea814352f04fac..3c742d3b259c12707ae3dacbeafbd3055875ec62 100644 (file)
@@ -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"]
index 0a83edfdfec974df7e2e24dcc23fe63763c09a90..8d55e2fd9be7d3cf0f47e179b2645e8fca89d540 100755 (executable)
@@ -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
         ;;
     *)
index bd4d1aeb1f65ac00d0594ea15f9ae7bba3f13063..f33e2c5690548775c5c5af86f4715a83ae4a2c2c 100755 (executable)
@@ -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
index 5ea39369fe70b5d2e8b03bcf15b18cbf8e862948..e8cde5acec8fe41761e016f963a1ac8356588708 100644 (file)
@@ -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)
 
index b25194a9eebd79a067719fee379849e2c7c1dfc6..7c094257ce9a291e6211333bc32ed6caf588cd84 100644 (file)
@@ -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