Skip to content

Commit f3f7cbc

Browse files
committed
Anchore Container Scan docker bulld is failing.
The docker build is failing to build xapian. Fails with: -Wl,_xapianNone -o .libs/_xapianNone where None is should be shared object extension and some other changes. See changeset: 6725:f973fa5163ed in repo on date: Thu Jun 23 01:58:53 2022 -0400 for python 3.11 and newer. It looks like Anchore uses 3.11: checking /usr/local/bin/python3 version... 3.11 from earlier in the log.
1 parent 0c0feb4 commit f3f7cbc

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

scripts/Docker/Dockerfile

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,8 @@ RUN set -xv && CWD=$PWD && \
6060
tar -Jxvf xapian-bindings-$VER.tar.xz && \
6161
cd xapian-bindings-$VER/ && \
6262
pip --no-cache-dir install sphinx && \
63+
sed -i -e '/PYTHON3_SO=/s/distutils\.//g' \
64+
-e '/PYTHON3_SO=/s/"SO"/"EXT_SUFFIX"/g' configure && \
6365
./configure --prefix=/usr/local --with-python3 --disable-documentation && \
6466
make && make install && \
6567
pip uninstall --no-cache-dir -y sphinx && \

0 commit comments

Comments
 (0)