From c2175703fe588954051c85018d0c646c3698f0f3 Mon Sep 17 00:00:00 2001 From: Henrik Grimler Date: Mon, 16 Oct 2023 20:57:52 +0200 Subject: [PATCH] main/postmarketos-base-downstream: add package (MR 4497) All devices that use downstream kernels should depend on this package. We will to start with use it to fix so that lightdm+x11 work again when using downstream kernels. See also https://gitlab.com/postmarketOS/pmaports/-/issues/2102. --- .../10-logind-check-graphical.conf | 5 ++++ main/postmarketos-base-downstream/APKBUILD | 25 +++++++++++++++++++ 2 files changed, 30 insertions(+) create mode 100644 main/postmarketos-base-downstream/10-logind-check-graphical.conf create mode 100644 main/postmarketos-base-downstream/APKBUILD diff --git a/main/postmarketos-base-downstream/10-logind-check-graphical.conf b/main/postmarketos-base-downstream/10-logind-check-graphical.conf new file mode 100644 index 000000000..dd222eac6 --- /dev/null +++ b/main/postmarketos-base-downstream/10-logind-check-graphical.conf @@ -0,0 +1,5 @@ +# let LightDM start Xorg even though we don't have graphics driver +# https://github.com/canonical/lightdm/commit/77a7c6b7b8ca896b98ef43826641bdd520650bfb + +[LightDM] +logind-check-graphical=false diff --git a/main/postmarketos-base-downstream/APKBUILD b/main/postmarketos-base-downstream/APKBUILD new file mode 100644 index 000000000..1c05e8bc8 --- /dev/null +++ b/main/postmarketos-base-downstream/APKBUILD @@ -0,0 +1,25 @@ +# Maintainer: Henrik Grimler +pkgname=postmarketos-base-downstream +pkgver=1 +pkgrel=0 +pkgdesc="Base package for devices with downstream (vendor) kernels" +url="https://postmarketos.org" +arch="noarch" +license="GPL-3.0-or-later" +subpackages="$pkgname-lightdm" +source="10-logind-check-graphical.conf" + +package() { + mkdir -p "$pkgdir" +} + +lightdm() { + install_if="$pkgname=$pkgver-r$pkgrel lightdm" + + install -Dm644 "$srcdir"/10-logind-check-graphical.conf \ + -t "$subpkgdir"/usr/share/lightdm/lightdm.conf.d +} + +sha512sums=" +00addbea452dd3e2cb90e18793becc47d22118e6b99a79b76eb57db02aa8b00b133569beaea81cce4b39c9e556280c1d6ac8ab687016354e2d189734e38768cf 10-logind-check-graphical.conf +"