From 79568a3a7acbcf642aa28e1c4514265f394326c5 Mon Sep 17 00:00:00 2001 From: Fredrik Fornwall Date: Wed, 30 Oct 2024 12:55:15 +0100 Subject: [PATCH] scripts(setup-ubuntu.sh): Install newer pkgconf version --- scripts/setup-ubuntu.sh | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/scripts/setup-ubuntu.sh b/scripts/setup-ubuntu.sh index 790b1282b8603b..f14b0326ab4483 100755 --- a/scripts/setup-ubuntu.sh +++ b/scripts/setup-ubuntu.sh @@ -339,3 +339,17 @@ echo -e 'LANG="en_US.UTF-8"\nLANGUAGE="en_US:en"\n' | $SUDO tee -a /etc/default/ $SUDO mkdir -p $TERMUX_PREFIX $SUDO chown -R $(whoami) /data $SUDO ln -sf /data/data/com.termux/files/usr/opt/bionic-host /system + +# Install newer pkg-config then what ubuntu provides, as the stock +# ubuntu version has performance problems with at least protobuf: +PKGCONF_VERSION=2.3.0 +mkdir -p /tmp/pkgconf-build +cd /tmp/pkgconf-build +curl -O https://distfiles.ariadne.space/pkgconf/pkgconf-${PKGCONF_VERSION}.tar.xz +tar xf pkgconf-${PKGCONF_VERSION}.tar.xz +cd pkgconf-${PKGCONF_VERSION} +./configure --prefix=/usr && make && $SUDO make install +cd - +rm -Rf /tmp/pkgconf-build +# Prevent package from being upgraded and overwriting our manual installation: +$SUDO apt-mark hold pkgconf