Skip to content

Commit 2604eb5

Browse files
committed
fix glib version
1 parent ca8c7ef commit 2604eb5

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

bin/installation/glib-installation.sh

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,8 @@
2727
## and limitations under the License.
2828
################################################################################################
2929

30+
GLIB_VERSION=2.86.3
31+
3032
set -e # break on error
3133
# If run standalone, check environment. Otherwise, use info from main install script
3234
if [ -z "$FAMILY" ]; then
@@ -41,15 +43,15 @@ section_header "Installing glib"
4143
STATUS="glib"
4244
cd "$RISCV"
4345
if [ ! -e "$RISCV"/include/glib-2.0 ]; then
44-
wget -nv --retry-connrefused $retry_on_host_error --output-document=glib.tar.xz https://download.gnome.org/sources/glib/2.86/glib-2.86.3.tar.xz
46+
wget -nv --retry-connrefused $retry_on_host_error --output-document=glib.tar.xz https://download.gnome.org/sources/glib/${GLIB_VERSION%.*}/glib-$GLIB_VERSION.tar.xz
4547
tar -xJf glib.tar.xz
4648
rm -f glib.tar.xz
47-
cd glib
49+
cd glib-$GLIB_VERSION
4850
uvx meson setup _build --prefix="$RISCV"
4951
uvx meson compile -C _build -j "${NUM_THREADS}" 2>&1 | logger; [ "${PIPESTATUS[0]}" == 0 ]
5052
uvx meson install -C _build 2>&1 | logger; [ "${PIPESTATUS[0]}" == 0 ]
5153
cd "$RISCV"
52-
rm -rf glib
54+
rm -rf glib-$GLIB_VERSION
5355
echo -e "${SUCCESS_COLOR}glib successfully installed!${ENDC}"
5456
else
5557
echo -e "${OK_COLOR}glib already installed.${ENDC}"

0 commit comments

Comments
 (0)