Skip to content

Commit ee7742f

Browse files
committed
Hack around glib flaky
1 parent 10e0756 commit ee7742f

1 file changed

Lines changed: 8 additions & 1 deletion

File tree

.github/actions/deps/ports/zephyr-cp/action.yml

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,14 @@ runs:
88
run: |
99
sudo dpkg --add-architecture i386
1010
sudo apt-get update
11-
sudo apt-get install -y libusb-1.0-0-dev libudev-dev pkg-config libsdl2-dev:i386 libsdl2-image-dev:i386 mtools
11+
# Install non-broken deps normally
12+
sudo apt-get install -y libusb-1.0-0-dev libudev-dev pkg-config mtools
13+
# libsdl2-dev:i386 is broken on Ubuntu 24.04 due to libglib2.0-dev:i386
14+
# missing libglib2.0-dev-bin:i386 (https://bugs.launchpad.net/ubuntu/+source/glib2.0/+bug/2108973)
15+
# Workaround: install i386 runtime deps via apt, then force-install the
16+
# i386 -dev packages with dpkg to skip the broken glib-dev dependency.
17+
sudo apt-get install -y libsdl2-2.0-0:i386 libsdl2-image-2.0-0:i386
18+
cd /tmp && apt-get download libsdl2-dev:i386 libsdl2-image-dev:i386 && sudo dpkg --force-depends -i libsdl2-dev_*_i386.deb libsdl2-image-dev_*_i386.deb
1219
echo "PKG_CONFIG_PATH=/usr/lib/i386-linux-gnu/pkgconfig${PKG_CONFIG_PATH:+:$PKG_CONFIG_PATH}" >> $GITHUB_ENV
1320
shell: bash
1421
- name: Setup Zephyr project

0 commit comments

Comments
 (0)