appimage build: build zbar ourselves
to be able to package new version, which has security fixes
This commit is contained in:
@@ -41,7 +41,6 @@ RUN apt-get update -q && \
|
|||||||
libudev-dev \
|
libudev-dev \
|
||||||
libudev1 \
|
libudev1 \
|
||||||
gettext \
|
gettext \
|
||||||
libzbar0 \
|
|
||||||
libdbus-1-3 \
|
libdbus-1-3 \
|
||||||
xutils-dev \
|
xutils-dev \
|
||||||
libxkbcommon0 \
|
libxkbcommon0 \
|
||||||
@@ -65,6 +64,9 @@ RUN apt-get update -q && \
|
|||||||
libc6-dev \
|
libc6-dev \
|
||||||
libc6 \
|
libc6 \
|
||||||
libc-dev-bin \
|
libc-dev-bin \
|
||||||
|
libv4l-dev \
|
||||||
|
libjpeg62-turbo-dev \
|
||||||
|
libx11-dev \
|
||||||
&& \
|
&& \
|
||||||
rm -rf /var/lib/apt/lists/* && \
|
rm -rf /var/lib/apt/lists/* && \
|
||||||
apt-get autoremove -y && \
|
apt-get autoremove -y && \
|
||||||
|
|||||||
@@ -87,6 +87,15 @@ fi
|
|||||||
cp -f "$DLL_TARGET_DIR"/libsecp256k1.so.* "$APPDIR/usr/lib/" || fail "Could not copy libsecp to its destination"
|
cp -f "$DLL_TARGET_DIR"/libsecp256k1.so.* "$APPDIR/usr/lib/" || fail "Could not copy libsecp to its destination"
|
||||||
|
|
||||||
|
|
||||||
|
if [ -f "$DLL_TARGET_DIR/libzbar.so.0" ]; then
|
||||||
|
info "libzbar already built, skipping"
|
||||||
|
else
|
||||||
|
# note: could instead just use the libzbar0 pkg from debian/apt, but that is too old and missing fixes for CVE-2023-40889
|
||||||
|
"$CONTRIB"/make_zbar.sh || fail "Could not build zbar"
|
||||||
|
fi
|
||||||
|
cp -f "$DLL_TARGET_DIR/libzbar.so.0" "$APPDIR/usr/lib/" || fail "Could not copy libzbar to its destination"
|
||||||
|
|
||||||
|
|
||||||
# note: libxcb-util1 is not available in debian 10 (buster), only libxcb-util0. So we build it ourselves.
|
# note: libxcb-util1 is not available in debian 10 (buster), only libxcb-util0. So we build it ourselves.
|
||||||
# This pkg is needed on some distros for Qt to launch. (see #8011)
|
# This pkg is needed on some distros for Qt to launch. (see #8011)
|
||||||
info "building libxcb-util1."
|
info "building libxcb-util1."
|
||||||
@@ -176,10 +185,6 @@ info "installing electrum and its dependencies."
|
|||||||
"$python" -m pip uninstall -y Cython
|
"$python" -m pip uninstall -y Cython
|
||||||
|
|
||||||
|
|
||||||
info "copying zbar"
|
|
||||||
cp "/usr/lib/x86_64-linux-gnu/libzbar.so.0" "$APPDIR/usr/lib/libzbar.so.0"
|
|
||||||
|
|
||||||
|
|
||||||
info "desktop integration."
|
info "desktop integration."
|
||||||
cp "$PROJECT_ROOT/electrum.desktop" "$APPDIR/electrum.desktop"
|
cp "$PROJECT_ROOT/electrum.desktop" "$APPDIR/electrum.desktop"
|
||||||
cp "$PROJECT_ROOT/electrum/gui/icons/electrum.png" "$APPDIR/electrum.png"
|
cp "$PROJECT_ROOT/electrum/gui/icons/electrum.png" "$APPDIR/electrum.png"
|
||||||
|
|||||||
Reference in New Issue
Block a user