meta-agl-core: remove weston-init backport
authorScott Murray <scott.murray@konsulko.com>
Sat, 6 Nov 2021 18:19:31 +0000 (14:19 -0400)
committerScott Murray <scott.murray@konsulko.com>
Wed, 30 Mar 2022 18:08:33 +0000 (14:08 -0400)
Remove backport of weston-init changes done for Marlin release,
they are not required with post-hardknott releases of Yocto.

Bug-AGL: SPEC-3819

Signed-off-by: Scott Murray <scott.murray@konsulko.com>
Change-Id: I81e32fa082df174b3a8a705ac51085176bddb4b8

meta-agl-core/recipes-graphics/wayland/weston-init/weston-autologin [deleted file]
meta-agl-core/recipes-graphics/wayland/weston-init/weston.service [deleted file]
meta-agl-core/recipes-graphics/wayland/weston-init/weston.socket [deleted file]
meta-agl-core/recipes-graphics/wayland/weston-init_aglcore.inc

diff --git a/meta-agl-core/recipes-graphics/wayland/weston-init/weston-autologin b/meta-agl-core/recipes-graphics/wayland/weston-init/weston-autologin
deleted file mode 100644 (file)
index f6e6d10..0000000
+++ /dev/null
@@ -1,11 +0,0 @@
-auth      required  pam_nologin.so
-auth      required  pam_unix.so     try_first_pass nullok
-
-account   required  pam_nologin.so
-account   required  pam_unix.so
-
-session   required  pam_env.so
-session   required  pam_unix.so
--session  optional  pam_systemd.so type=wayland class=user desktop=weston
--session  optional  pam_loginuid.so
-
diff --git a/meta-agl-core/recipes-graphics/wayland/weston-init/weston.service b/meta-agl-core/recipes-graphics/wayland/weston-init/weston.service
deleted file mode 100644 (file)
index e09625b..0000000
+++ /dev/null
@@ -1,71 +0,0 @@
-# This is a system unit for launching Weston with auto-login as the
-# user configured here.
-#
-# Weston must be built with systemd support, and your weston.ini must load
-# the plugin systemd-notify.so.
-[Unit]
-Description=Weston, a Wayland compositor, as a system service
-Documentation=man:weston(1) man:weston.ini(5)
-Documentation=http://wayland.freedesktop.org/
-
-# Make sure we are started after logins are permitted.
-Requires=systemd-user-sessions.service
-After=systemd-user-sessions.service
-
-# If Plymouth is used, we want to start when it is on its way out.
-After=plymouth-quit-wait.service
-
-# D-Bus is necessary for contacting logind. Logind is required.
-Wants=dbus.socket
-After=dbus.socket
-
-# Ensure the socket is present
-Requires=weston.socket
-
-# Since we are part of the graphical session, make sure we are started before
-# it is complete.
-Before=graphical.target
-
-# Prevent starting on systems without virtual consoles, Weston requires one
-# for now.
-ConditionPathExists=/dev/tty0
-
-[Service]
-# Requires systemd-notify.so Weston plugin.
-Type=notify
-EnvironmentFile=/etc/default/weston
-ExecStart=/usr/bin/weston --modules=systemd-notify.so
-
-# Optional watchdog setup
-TimeoutStartSec=60
-WatchdogSec=20
-
-# The user to run Weston as.
-User=weston
-Group=weston
-
-# Make sure the working directory is the users home directory
-WorkingDirectory=/home/weston
-
-# Set up a full user session for the user, required by Weston.
-PAMName=weston-autologin
-
-# A virtual terminal is needed.
-TTYPath=/dev/tty7
-TTYReset=yes
-TTYVHangup=yes
-TTYVTDisallocate=yes
-
-# Fail to start if not controlling the tty.
-StandardInput=tty-fail
-StandardOutput=journal
-StandardError=journal
-
-# Log this user with utmp, letting it show up with commands 'w' and 'who'.
-UtmpIdentifier=tty7
-UtmpMode=user
-
-[Install]
-# Note: If you only want weston to start on-demand, remove this line with a
-# service drop file
-WantedBy=graphical.target
diff --git a/meta-agl-core/recipes-graphics/wayland/weston-init/weston.socket b/meta-agl-core/recipes-graphics/wayland/weston-init/weston.socket
deleted file mode 100644 (file)
index c1bdc83..0000000
+++ /dev/null
@@ -1,14 +0,0 @@
-[Unit]
-Description=Weston socket
-RequiresMountsFor=/run
-
-[Socket]
-ListenStream=/run/wayland-0
-SocketMode=0775
-SocketUser=weston
-SocketGroup=wayland
-RemoveOnStop=yes
-
-[Install]
-WantedBy=sockets.target
-
index 8966700..896f1ea 100644 (file)
@@ -6,49 +6,3 @@ do_install:append() {
 }
 
 RDEPENDS:${PN} += "weston-ini"
-
-# Temporary effective backport of upstream commit ccdaab97
-# This gets us on the same page as upstream with respect to running
-# weston as non-root, and should make migrating to 3.5/Kirkstone
-# easier.
-
-FILESEXTRAPATHS:prepend := "${THISDIR}/weston-init:"
-
-SRC_URI += " \
-           file://weston.service \
-           file://weston.socket \
-           file://weston-autologin \
-"
-
-do_install:append() {
-       rm -f ${D}${sysconfdir}/udev/rules.d/71-weston-drm.rules
-       rm -f ${D}${systemd_system_unitdir}/weston@.service
-       rm -f ${D}${systemd_system_unitdir}/weston@.socket
-
-       install -D -p -m0644 ${WORKDIR}/weston.service ${D}${systemd_system_unitdir}/weston.service
-       install -D -p -m0644 ${WORKDIR}/weston.socket ${D}${systemd_system_unitdir}/weston.socket
-        if [ "${@bb.utils.filter('DISTRO_FEATURES', 'pam', d)}" ]; then
-               install -D -p -m0644 ${WORKDIR}/weston-autologin ${D}${sysconfdir}/pam.d/weston-autologin
-        fi
-
-       sed -i -e s:/etc:${sysconfdir}:g \
-               -e s:/usr/bin:${bindir}:g \
-               -e s:/var:${localstatedir}:g \
-               ${D}${systemd_system_unitdir}/weston.service
-
-       install -dm 755 -o weston -g weston ${D}/home/weston
-}
-
-inherit useradd
-
-USERADD_PACKAGES = "${PN}"
-
-FILES:${PN} += "\
-    ${systemd_system_unitdir}/weston.service \
-    ${systemd_system_unitdir}/weston.socket \
-    /home/weston \
-"
-
-SYSTEMD_SERVICE:${PN} = "weston.service weston.socket"
-USERADD_PARAM:${PN} = "--home /home/weston --shell /bin/sh --user-group -G video,input weston"
-GROUPADD_PARAM:${PN} = "-r wayland"