From 0d0aa0f04a10aadaa64426fa84c2261acfabff8e Mon Sep 17 00:00:00 2001 From: SomberNight Date: Tue, 10 Sep 2024 12:37:25 +0000 Subject: [PATCH] build: appimage: dl xcb-util as debian src pkg instead of upstream git The upstream git repo has been unreachable for at least days. --- contrib/build-linux/appimage/make_appimage.sh | 17 ++++------------- 1 file changed, 4 insertions(+), 13 deletions(-) diff --git a/contrib/build-linux/appimage/make_appimage.sh b/contrib/build-linux/appimage/make_appimage.sh index 44c1d9f63..db315d58c 100755 --- a/contrib/build-linux/appimage/make_appimage.sh +++ b/contrib/build-linux/appimage/make_appimage.sh @@ -97,9 +97,9 @@ cp -f "$DLL_TARGET_DIR/libzbar.so.0" "$APPDIR/usr/lib/" || fail "Could not copy # 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) +download_if_not_exist "$CACHEDIR/xcb-util_0.4.0.orig.tar.gz" "http://deb.debian.org/debian/pool/main/x/xcb-util/xcb-util_0.4.0.orig.tar.gz" +verify_hash "$CACHEDIR/xcb-util_0.4.0.orig.tar.gz" "0ed0934e2ef4ddff53fcc70fc64fb16fe766cd41ee00330312e20a985fd927a7" info "building libxcb-util1." -XCB_UTIL_VERSION="acf790d7752f36e450d476ad79807d4012ec863b" -# ^ git tag 0.4.0 ( if [ -f "$CACHEDIR/libxcb-util1/util/src/.libs/libxcb-util.so.1" ]; then info "libxcb-util1 already built, skipping" @@ -108,18 +108,9 @@ XCB_UTIL_VERSION="acf790d7752f36e450d476ad79807d4012ec863b" cd "$CACHEDIR" mkdir "libxcb-util1" cd "libxcb-util1" - if [ ! -d util ]; then - git clone --recursive "https://anongit.freedesktop.org/git/xcb/util" - fi + tar xf "$CACHEDIR/xcb-util_0.4.0.orig.tar.gz" -C . + mv "xcb-util-0.4.0" util cd util - if ! $(git cat-file -e ${XCB_UTIL_VERSION}) ; then - info "Could not find requested version $XCB_UTIL_VERSION in local clone; fetching..." - git fetch --all - git submodule update - fi - git reset --hard - git clean -dfxq - git checkout "${XCB_UTIL_VERSION}^{commit}" ./autogen.sh ./configure --enable-shared make "-j$CPU_COUNT" -s || fail "Could not build libxcb-util1"