qbittorrent-nox-static: boost build python version error
Hi, awesome scripts you’ve built, I’m trying to use them to build an alpine based qbittorrent container with a statically compilled binary. I am using this dockerfile (alpine 3.11 with the following build commands:
RUN apk add --no-cache \
wget \
curl \
bash \
bash-completion \
build-base \
pkgconf \
autoconf \
automake \
libtool \
git \
perl \
python3 \
python3-dev \
linux-headers
# get qBittorrent compilation script
ADD https://git.io/JvLcZ qbittorrent-nox-static-musl.sh
RUN chmod 700 qbittorrent-nox-static-musl.sh
RUN ./qbittorrent-nox-static-musl.sh all --no-delete
but I’m struggling to get boost to build, I get this error :
#14 963.9 Submodule path 'tools/quickbook': checked out '944f760cc2decfe745540f019cad078a57a27337'
#14 963.9 Building Boost.Build engine with toolset gcc... tools/build/src/engine/b2
#14 973.1 Unicode/ICU support for Boost.Regex?... not found.
#14 973.1 Generating Boost.Build configuration in project-config.jam for gcc...
#14 973.2
#14 973.2 Bootstrapping is done. To build, run:
#14 973.2
#14 973.2 ./b2
#14 973.2
#14 973.2 To generate header files, run:
#14 973.2
#14 973.2 ./b2 headers
#14 973.2
#14 973.2 To adjust configuration, edit 'project-config.jam'.
#14 973.2 Further information:
#14 973.2
#14 973.2 - Command line help:
#14 973.2 ./b2 --help
#14 973.2
#14 973.2 - Getting started guide:
#14 973.2 http://www.boost.org/more/getting_started/unix-variants.html
#14 973.2
#14 973.2 - Boost.Build documentation:
#14 973.2 http://www.boost.org/build/
#14 973.2
#14 974.2 /root/qbittorrent-build/boost/tools/build/src/build/feature.jam:491: in feature.validate-value-string from module feature
#14 974.2 error: "3.8" is not a known value of feature <python>
#14 974.2 error: legal values:
#14 974.2 /root/qbittorrent-build/boost/tools/build/src/build/property.jam:345: in validate1 from module property
#14 974.2 /root/qbittorrent-build/boost/tools/build/src/build/property.jam:371: in property.validate from module property
#14 974.2 /root/qbittorrent-build/boost/tools/build/src/build/build-request.jam:271: in convert-command-line-element from module build-request
#14 974.2 /root/qbittorrent-build/boost/tools/build/src/build/build-request.jam:222: in build-request.convert-command-line-elements from module build-request
#14 974.2 /root/qbittorrent-build/boost/tools/build/src/build-system.jam:774: in load from module build-system
#14 974.2 /root/qbittorrent-build/boost/tools/build/src/kernel/modules.jam:295: in import from module modules
#14 974.2 /root/qbittorrent-build/boost/tools/build/src/kernel/bootstrap.jam:139: in boost-build from module
#14 974.2 /root/qbittorrent-build/boost/boost-build.jam:17: in module scope from module
#14 974.2
About this issue
- Original URL
- State: closed
- Created 4 years ago
- Comments: 17 (17 by maintainers)
Then you should use the all switch per build and not skip any modules.
this error does not occur in a non docker setup and i could not replicate it as a issue with the script.
It appears to possibly be a environment issue with how python is detected and passed to boost.
Regarding this file generation command:
https://github.com/userdocs/qbittorrent-nox-static/blob/master/qbittorrent-nox-static-musl.sh#L203
As to why, i cannot say. maybe try without
--no-delete