diff .github/workflows/ci-test.yml @ 7625:aa8230de5b94

build: xapian under 3.12 - missing version info in build components The build with 1.4.18 fails to get the shared library file names correct. Trying with 1.4.22 as the release against the 1.4.18 dev libraries to see if it works better. The sed script I have that munges the configure script to change the method used for getting the components should work but it obviously doesn't. Failure under 3.12: /usr/bin/install -c -m 644 xapian/__init__.py \ ./xapian/__pycache__/__init__..pyc \ ./xapian/__pycache__/__init__. \ '/opt/hostedtoolcache/Python/3.12.0-rc.2/x64/lib/python3.12/site-packages/xapian' /usr/bin/install: cannot stat './xapian/__pycache__/__init__..pyc': No such file or directory /usr/bin/install: cannot stat './xapian/__pycache__/__init__.': No such file or directory Success under 3.11 which also needs the sed script: /usr/bin/install -c -m 644 xapian/__init__.py \ xapian/__pycache__/__init__.cpython-311.pyc \ xapian/__pycache__/__init__.cpython-311.opt-1.pyc \ '/opt/hostedtoolcache/Python/3.11.5/x64/lib/python3.11/site-packages/xapian'
author John Rouillard <rouilj@ieee.org>
date Mon, 11 Sep 2023 02:00:00 -0400
parents 0e096d280437
children f053c2ae3db8
line wrap: on
line diff
--- a/.github/workflows/ci-test.yml	Mon Sep 11 01:40:58 2023 -0400
+++ b/.github/workflows/ci-test.yml	Mon Sep 11 02:00:00 2023 -0400
@@ -189,7 +189,11 @@
           # older python and newest on newer.
           if [[ $PYTHON_VERSION == "2."* ]]; then pip install sphinx==1.8.5; fi
           if [[ $PYTHON_VERSION == '3.'* ]] ; then pip install sphinx; fi
-          XAPIAN_VER=$(dpkg -l libxapian-dev | tail -n 1 | awk '{print $3}' | cut -d '-' -f 1); echo $XAPIAN_VER
+          if [[ $PYTHON_VERSION == '3.12'* ]] ; then \
+              XAPIAN_VER=1.4.22; \
+          else
+              XAPIAN_VER=$(dpkg -l libxapian-dev | tail -n 1 | awk '{print $3}' | cut -d '-' -f 1); echo $XAPIAN_VER; \
+          fi
           cd /tmp
           curl -s -O https://oligarchy.co.uk/xapian/$XAPIAN_VER/xapian-bindings-$XAPIAN_VER.tar.xz
           tar -Jxvf xapian-bindings-$XAPIAN_VER.tar.xz
@@ -200,7 +204,8 @@
           # 3.11 or newer.
           # Change distutils.sysconfig... to just sysconfig and SO
           # to EXT_SUFFIX to get valid value.
-          if [[ $PYTHON_VERSION == "3."* ]]; then sed -i -e '/PYTHON3_SO=/s/distutils\.//g' -e '/PYTHON3_SO=/s/"SO"/"EXT_SUFFIX"/g' configure; ./configure --prefix=$VIRTUAL_ENV --with-python3 --disable-documentation; fi
+          if [[ $PYTHON_VERSION == "3."* ]]; then sed -i -e '/PYTHON3_SO=/s/distutils\.//g' -e '/PYTHON3_SO=/s/"SO"/"EXT_SUFFIX"/g' configure; ./configure
+        --prefix=$VIRTUAL_ENV --with-python3 --disable-documentation; fi
           case "$PYTHON_VERSION" in nightly) echo skipping xapian build;; *) make && sudo make install; esac
 
       - name: Install pytest and other packages needed for running tests

Roundup Issue Tracker: http://roundup-tracker.org/