Skip to content

Commit

Permalink
build: switch AppImage from gcc 9 to gcc 10
Browse files Browse the repository at this point in the history
This is to make `zxing-cpp` build again. The root cause is an issue in
`pybind11`, see:

* https://github.com/pybind/pybind11/releases/tag/v2.13.1
* pybind/pybind11#5201
* pybind/pybind11#5205
* zxing-cpp/zxing-cpp#803
  • Loading branch information
EchterAgo committed Jul 6, 2024
1 parent d241045 commit 80e9d9b
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions contrib/build-linux/appimage/Dockerfile_ub2004
Original file line number Diff line number Diff line change
Expand Up @@ -52,13 +52,13 @@ RUN echo deb ${UBUNTU_MIRROR} ${UBUNTU_DIST} main restricted universe multiverse
libfreetype6=2.10.1-2ubuntu0.3 \
libfontconfig1=2.13.1-2ubuntu3 \
libssl-dev=1.1.1f-1ubuntu2.22 \
gcc-9=9.4.0-1ubuntu1~20.04.2 \
g++=4:9.3.0-1ubuntu2 \
gcc-10=10.5.0-1ubuntu1~20.04 \
g++-10=10.5.0-1ubuntu1~20.04 \
rustc=1.75.0+dfsg0ubuntu1~bpo0-0ubuntu0.20.04 \
cargo=1.75.0+dfsg0ubuntu1~bpo0-0ubuntu0.20.04 \
&& \
ln -sf /usr/bin/x86_64-linux-gnu-gcc-9 /usr/bin/gcc && \
ln -sf /usr/bin/x86_64-linux-gnu-gcc-9 /usr/bin/cc && \
update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-10 10 && \
update-alternatives --install /usr/bin/g++ g++ /usr/bin/g++-10 10 && \
rm -rf /var/lib/apt/lists/* && \
apt-get autoremove -y && \
apt-get clean
Expand Down

0 comments on commit 80e9d9b

Please sign in to comment.