Skip to content

Commit ec63caa

Browse files
committed
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'
1 parent dd36940 commit ec63caa

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

.github/workflows/ci-test.yml

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -189,7 +189,11 @@ jobs:
189189
# older python and newest on newer.
190190
if [[ $PYTHON_VERSION == "2."* ]]; then pip install sphinx==1.8.5; fi
191191
if [[ $PYTHON_VERSION == '3.'* ]] ; then pip install sphinx; fi
192-
XAPIAN_VER=$(dpkg -l libxapian-dev | tail -n 1 | awk '{print $3}' | cut -d '-' -f 1); echo $XAPIAN_VER
192+
if [[ $PYTHON_VERSION == '3.12'* ]] ; then \
193+
XAPIAN_VER=1.4.22; \
194+
else
195+
XAPIAN_VER=$(dpkg -l libxapian-dev | tail -n 1 | awk '{print $3}' | cut -d '-' -f 1); echo $XAPIAN_VER; \
196+
fi
193197
cd /tmp
194198
curl -s -O https://oligarchy.co.uk/xapian/$XAPIAN_VER/xapian-bindings-$XAPIAN_VER.tar.xz
195199
tar -Jxvf xapian-bindings-$XAPIAN_VER.tar.xz
@@ -200,7 +204,8 @@ jobs:
200204
# 3.11 or newer.
201205
# Change distutils.sysconfig... to just sysconfig and SO
202206
# to EXT_SUFFIX to get valid value.
203-
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
207+
if [[ $PYTHON_VERSION == "3."* ]]; then sed -i -e '/PYTHON3_SO=/s/distutils\.//g' -e '/PYTHON3_SO=/s/"SO"/"EXT_SUFFIX"/g' configure; ./configure
208+
--prefix=$VIRTUAL_ENV --with-python3 --disable-documentation; fi
204209
case "$PYTHON_VERSION" in nightly) echo skipping xapian build;; *) make && sudo make install; esac
205210

206211
- name: Install pytest and other packages needed for running tests

0 commit comments

Comments
 (0)