aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorptrcnull <git@ptrcnull.me>2023-08-24 19:40:56 +0200
committerNatanael Copa <ncopa@alpinelinux.org>2023-08-30 06:24:41 +0000
commit9bd7558792ce55370313c89740863060fd84e45c (patch)
treeee841d4a115fecaee3be9577d72acca12d4e3e2d
parent3c3e5552d1676d2c86dfb40d2c5ccfc5824c81d1 (diff)
community/plymouth: fix DRI display with eudev
-rw-r--r--community/plymouth/APKBUILD4
-rw-r--r--community/plymouth/eudev.patch27
2 files changed, 30 insertions, 1 deletions
diff --git a/community/plymouth/APKBUILD b/community/plymouth/APKBUILD
index 9011a7b4abd..79a66878414 100644
--- a/community/plymouth/APKBUILD
+++ b/community/plymouth/APKBUILD
@@ -1,7 +1,7 @@
# Maintainer: Timo Teräs <timo.teras@iki.fi>
pkgname=plymouth
pkgver=22.02.122
-pkgrel=1
+pkgrel=2
pkgdesc="graphical bootsplash on linux"
url="https://www.freedesktop.org/wiki/Software/Plymouth"
arch="all"
@@ -22,6 +22,7 @@ makedepends="$depends_dev
subpackages="$pkgname-dev $pkgname-doc $pkgname-themes::noarch $pkgname-x11:_render $pkgname-drm:_render"
source="https://www.freedesktop.org/software/plymouth/releases/plymouth-$pkgver.tar.xz
plymouth-rpmatch.patch
+ eudev.patch
"
build() {
@@ -57,4 +58,5 @@ _render() {
sha512sums="
9f2f5a7121b431f16561d6b5f31177ff06cf1e6bdffaa68c1fe08aa3c765a96dee745824aae8eaac9a0b4a08f0a17a9ae79a82bd0826fcc3fe14d8553635f817 plymouth-22.02.122.tar.xz
ec1c32ddf7ee418ef1b5d173040db464193d9bca3fd85d5c3a8d2ee13ba1218947f7c9f39c403d3ccced70be28b2c7328e82dc8f967e9bdeea1651dee4be2dc7 plymouth-rpmatch.patch
+21aabc79d93a8989d0f5a3a99a647aebc6d999bddcbcf56f94ce0786055f81aaceed5e54abdc7f9da81bc077e6f7effb08142746c4febc348a7f7ba51f5f1056 eudev.patch
"
diff --git a/community/plymouth/eudev.patch b/community/plymouth/eudev.patch
new file mode 100644
index 00000000000..4377fd4628b
--- /dev/null
+++ b/community/plymouth/eudev.patch
@@ -0,0 +1,27 @@
+Alpine's eudev does not add the TAG+=seat to render / card DRI devices;
+fix found here: https://wiki.gentoo.org/wiki/User:Tlhonmey
+
+also, it's dropped in https://gitlab.freedesktop.org/plymouth/plymouth/-/commit/dbec4487 anyway,
+and will be included in the next plymouth release
+
+diff --git a/src/libply-splash-core/ply-device-manager.c b/src/libply-splash-core/ply-device-manager.c
+index aed7bac..859bce4 100644
+--- a/src/libply-splash-core/ply-device-manager.c
++++ b/src/libply-splash-core/ply-device-manager.c
+@@ -353,16 +353,12 @@ create_devices_for_subsystem (ply_device_manager_t *manager,
+ /* We only care about devices assigned to a (any) devices. Floating
+ * devices should be ignored.
+ */
+- if (udev_device_has_tag (device, "seat")) {
+ const char *node;
+ node = udev_device_get_devnode (device);
+ if (node != NULL) {
+ ply_trace ("found node %s", node);
+ found_device = create_devices_for_udev_device (manager, device);
+ }
+- } else {
+- ply_trace ("device doesn't have a devices tag");
+- }
+ } else {
+ ply_trace ("it's not initialized");
+ }