Skip to content

LordOS — a free, fast and secure GNU/Linux distribution based on Debian, with its own desktop environment: display server and Wayland compositor in C, a React UI engine on QuickJS, and private native apps.

mkdeb: depend on libwayland-egl1 (and EGL/GLES) when lordos-testbench links it

Federico Pereira4d619ce014dd
diff --git a/CHANGELOG.md b/CHANGELOG.md
index 9bd11ac..25c30fd 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -76,6 +76,8 @@ of the matching [GitHub release](https://github.com/lordbasex/LordOS/releases),
### Fixed
+- **The package now depends on `libwayland-egl1` when the Test Bench is built with its 3D view**, so
+ `lordos-testbench` starts on a system that didn't have it.
- **Remote desktop video came in blocks for the first minutes, and had no sound.** The browser's
bandwidth estimate was a fixed ceiling, so a new connection stayed near 3 Mbit/s for about three
minutes; it now reaches the top in about 10 s on a local network and still slows down on
diff --git a/tools/iso/mkdeb.sh b/tools/iso/mkdeb.sh
index 6af891b..9624883 100755
--- a/tools/iso/mkdeb.sh
+++ b/tools/iso/mkdeb.sh
@@ -247,6 +247,11 @@ chmod 644 "$D/changelog.gz"
GPUDEPS=""
# readelf (not ldd): also works when building for another architecture (tools/rpi)
if readelf -d "$L/bin/lord-server" 2>/dev/null | grep -q "NEEDED.*libgbm"; then GPUDEPS=", libgbm1, libegl1, libgles2"; fi
+# the test bench's 3D view draws through wayland-egl (built only when Mesa's EGL was there)
+if readelf -d "$PKG/usr/bin/lordos-testbench" 2>/dev/null | grep -q "NEEDED.*libwayland-egl"; then
+ case "$GPUDEPS" in *libegl1*) ;; *) GPUDEPS="$GPUDEPS, libegl1, libgles2" ;; esac
+ GPUDEPS="$GPUDEPS, libwayland-egl1"
+fi
DOCDEPS=""
if [ -x "$L/bin/lord-doc" ]; then DOCDEPS=", libpoppler-glib8t64, libarchive13t64, libcairo2, libfreetype6, libfontconfig1, poppler-data"; fi
MEDIADEPS=""