Skip to content

Commit 1fd3bf5

Browse files
authored
Merge pull request #3836 from cmitu/xorg-install-2
helpers: map 'xorg' for Pi5 and for 'legacy' exclusion
2 parents 85cb710 + c0790a9 commit 1fd3bf5

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

scriptmodules/helpers.sh

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -299,6 +299,13 @@ function _mapPackage() {
299299
libfreetype6-dev)
300300
[[ "$__os_debian_ver" -gt 10 ]] || compareVersions "$__os_ubuntu_ver" gt 23.04 && pkg="libfreetype-dev"
301301
;;
302+
xorg)
303+
# outside X11, don't install the 'xserver-xorg-legacy' package, even if recommended by 'apt'
304+
# since it breaks launching x11 apps with 'runcommand'
305+
! isPlatform "x11" && pkg+=" xserver-xorg-legacy-"
306+
# Pi5 needs an additional package for xserver to start
307+
isPlatform "rpi5" && pkg+=" gldriver-test"
308+
;;
302309
esac
303310
echo "$pkg"
304311
}

0 commit comments

Comments
 (0)