pmaports/main/postmarketos-base
Minecrell 5f140538bf
main/postmarketos-base: install mesa-dri-gallium only if needed (MR 3478)
At the moment almost all device packages force installation of the Mesa
drivers, even when they are not used by any application (for example on
a minimal headless installation with "none" or "console" UI).
Omitting mesa-dri-gallium from such installations saves about ~150 MiB
of disk space (469 MiB -> 317 MiB rootfs for minimal installation on
arrow-db410c).

The "classic" drivers have been removed from Mesa so only one mesa-dri-
package exists now: mesa-dri-gallium contains all Mesa drivers,
llvmpipe, freedreno, lima, panfrost, Intel (iris/crocus), ...

This means we can easily create an install_if package in
postmarketos-base that installs that driver package only if needed
(= only if another package requires the "mesa" package).

Strictly speaking the install_if could be restricted further since
mesa-dri-gallium is only needed by "mesa-egl", "mesa-gbm" and "mesa-gl"
but not e.g. the Vulkan drivers. Having three postmarketos-base
subpackages (one install_if for each of them) seems a bit
overengineered, though. "mesa" is a common dependency of all three
of them, so using install_if="... mesa" should be good enough.
2022-10-11 11:19:30 +02:00
..
APKBUILD main/postmarketos-base: install mesa-dri-gallium only if needed (MR 3478) 2022-10-11 11:19:30 +02:00
postmarketos-base-nftables.post-install postmarketos-base: remove UI-specific config/dependencies (MR 2243) 2021-06-23 13:00:00 +02:00
postmarketos-base.post-install main/postmarketos-base: make apk interactive by default (MR 3444) 2022-09-28 09:18:55 +02:00
postmarketos-base.post-upgrade main/postmarketos-base: add dummy post-upgrade (MR 1964) 2021-02-17 17:49:58 -08:00
postmarketos-base.pre-upgrade postmarketos-base: remove UI-specific config/dependencies (MR 2243) 2021-06-23 13:00:00 +02:00
postmarketos-base.trigger postmarketos-base: configure getty using deviceinfo_getty variable (!771) 2019-12-07 01:32:23 +01:00
rootfs-etc-conf.d-bootmisc main/postmarketos-base: clear /tmp on boot (MR 2744) 2021-12-19 20:32:43 +03:00
rootfs-etc-conf.d-swapfile main/postmarketos-base: put full path in filenames (MR 1713) 2020-12-03 13:11:03 +01:00
rootfs-etc-conf.d-syslog main/postmarketos-base: remove post-install config overrides (MR 1713) 2020-12-03 13:11:03 +01:00
rootfs-etc-fstab main/postmarketos-base: remove post-install config overrides (MR 1713) 2020-12-03 13:11:03 +01:00
rootfs-etc-init.d-deferred-initcalls main/postmarketos-base: put full path in filenames (MR 1713) 2020-12-03 13:11:03 +01:00
rootfs-etc-init.d-swapfile main/postmarketos-base: put full path in filenames (MR 1713) 2020-12-03 13:11:03 +01:00
rootfs-etc-issue main/postmarketos-base: remove post-install config overrides (MR 1713) 2020-12-03 13:11:03 +01:00
rootfs-etc-motd main/postmarketos-base: update motd for the cheatsheet (MR 1961) 2021-02-21 11:47:07 +01:00
rootfs-etc-os-release main/postmarketos-base: set distro logo in /etc/os-release (MR 2867) 2022-01-21 01:09:59 +00:00
rootfs-etc-sudoers main/postmarketos-base: remove post-install config overrides (MR 1713) 2020-12-03 13:11:03 +01:00
rootfs-etc-sysctl.d-disable-rp-filter.conf postmarketos-base: add sysctl config to disable rp_filter on ipv4 (MR 2943) 2022-02-16 12:08:24 -08:00
rootfs-lib-udev-rules.d-20-tm2-touchkey-input.rules main/postmarketos-base: modify tm2-touchkey udev rule for midas (MR 3192) 2022-06-09 08:08:41 +02:00
rootfs-lib-udev-rules.d-20-tm2-touchkey-leds.rules main/postmarketos-base: change permission on tm2-touchkey leds (MR 2380) 2021-08-10 00:03:50 -07:00
rootfs-lib-udev-rules.d-20-zinitix-input.rules main/postmarketos-base: udev rule for zinitix touchkey (MR 3015) 2022-03-21 22:25:54 +09:00
rootfs-lib-udev-rules.d-50-firmware.rules main/postmarketos-base: udev tm2-touchkey and rt5033-battery (MR 2330) 2021-07-11 14:10:03 +02:00
rootfs-sbin-swapfile main/postmarketos-base: put full path in filenames (MR 1713) 2020-12-03 13:11:03 +01:00
rootfs-usr-lib-firmwareload.sh main/postmarketos-base: put full path in filenames (MR 1713) 2020-12-03 13:11:03 +01:00