diff options
| -rw-r--r-- | meta-oe/recipes-core/plymouth/files/0001-Fix-daemon-install-ignoring-configured-runstatedir.patch | 30 | ||||
| -rw-r--r-- | meta-oe/recipes-core/plymouth/files/0001-Use-standard-runstatedir-vs-custom-flag.patch | 50 | ||||
| -rw-r--r-- | meta-oe/recipes-core/plymouth/plymouth_22.02.122.bb (renamed from meta-oe/recipes-core/plymouth/plymouth_0.9.5.bb) | 54 |
3 files changed, 107 insertions, 27 deletions
diff --git a/meta-oe/recipes-core/plymouth/files/0001-Fix-daemon-install-ignoring-configured-runstatedir.patch b/meta-oe/recipes-core/plymouth/files/0001-Fix-daemon-install-ignoring-configured-runstatedir.patch new file mode 100644 index 0000000000..e04917e305 --- /dev/null +++ b/meta-oe/recipes-core/plymouth/files/0001-Fix-daemon-install-ignoring-configured-runstatedir.patch | |||
| @@ -0,0 +1,30 @@ | |||
| 1 | From 4c90a66fb7fd9dbb861c5a888fc828f3795fe540 Mon Sep 17 00:00:00 2001 | ||
| 2 | From: Ben Brown <ben@demerara.io> | ||
| 3 | Date: Tue, 19 Jul 2022 16:12:12 +0100 | ||
| 4 | Subject: [PATCH] Fix daemon install ignoring configured runstatedir | ||
| 5 | |||
| 6 | Upstream-Status: Backport | ||
| 7 | |||
| 8 | Signed-off-by: Ben Brown <ben@demerara.io> | ||
| 9 | Signed-off-by: Ming Liu <liu.ming50@gmail.com> | ||
| 10 | |||
| 11 | --- | ||
| 12 | src/Makefile.am | 2 +- | ||
| 13 | 1 file changed, 1 insertion(+), 1 deletion(-) | ||
| 14 | |||
| 15 | diff --git a/src/Makefile.am b/src/Makefile.am | ||
| 16 | index ad3655d..abd7a4c 100644 | ||
| 17 | --- a/src/Makefile.am | ||
| 18 | +++ b/src/Makefile.am | ||
| 19 | @@ -37,7 +37,7 @@ escrow_PROGRAMS = plymouthd-fd-escrow | ||
| 20 | |||
| 21 | plymouthd_fd_escrow_SOURCES = plymouthd-fd-escrow.c | ||
| 22 | |||
| 23 | -plymouthdrundir = $(localstatedir)/run/plymouth | ||
| 24 | +plymouthdrundir = $(plymouthruntimedir) | ||
| 25 | plymouthdspooldir = $(localstatedir)/spool/plymouth | ||
| 26 | plymouthdtimedir = $(localstatedir)/lib/plymouth | ||
| 27 | |||
| 28 | -- | ||
| 29 | 2.25.1 | ||
| 30 | |||
diff --git a/meta-oe/recipes-core/plymouth/files/0001-Use-standard-runstatedir-vs-custom-flag.patch b/meta-oe/recipes-core/plymouth/files/0001-Use-standard-runstatedir-vs-custom-flag.patch new file mode 100644 index 0000000000..e351098f35 --- /dev/null +++ b/meta-oe/recipes-core/plymouth/files/0001-Use-standard-runstatedir-vs-custom-flag.patch | |||
| @@ -0,0 +1,50 @@ | |||
| 1 | From 97012d2c38b84fffb32867fb5eeac64a93455626 Mon Sep 17 00:00:00 2001 | ||
| 2 | From: Ben Brown <ben@demerara.io> | ||
| 3 | Date: Tue, 19 Jul 2022 16:10:24 +0100 | ||
| 4 | Subject: [PATCH] Use standard runstatedir vs custom flag | ||
| 5 | |||
| 6 | Upstream-Status: Backport | ||
| 7 | |||
| 8 | --- | ||
| 9 | configure.ac | 11 ++--------- | ||
| 10 | 1 file changed, 2 insertions(+), 9 deletions(-) | ||
| 11 | |||
| 12 | Signed-off-by: Ben Brown <ben@demerara.io> | ||
| 13 | Signed-off-by: Ming Liu <liu.ming50@gmail.com> | ||
| 14 | |||
| 15 | diff --git a/configure.ac b/configure.ac | ||
| 16 | index 608ad02..34a2f2c 100644 | ||
| 17 | --- a/configure.ac | ||
| 18 | +++ b/configure.ac | ||
| 19 | @@ -140,9 +140,7 @@ if test x$enable_systemd_integration = xyes; then | ||
| 20 | AC_SUBST(SYSTEMD_UNIT_DIR) | ||
| 21 | fi | ||
| 22 | |||
| 23 | -AC_ARG_WITH([runtimedir], | ||
| 24 | - AC_HELP_STRING([--with-runtimedir=DIR], [runtime data dir [LOCALSTATEDIR/run]]), | ||
| 25 | - [plymouthruntimedir=${withval}/plymouth], [plymouthruntimedir=""]) | ||
| 26 | +AC_ARG_WITH([runtimedir], [], [AC_MSG_ERROR([--with-runtimedir is obsolete, use --runstatedir instead])], []) | ||
| 27 | |||
| 28 | AC_ARG_WITH(system-root-install, AS_HELP_STRING([--with-system-root-install],[Install client in /bin and daemon in /sbin]),with_system_root_install=${withval},with_system_root_install=no) | ||
| 29 | AM_CONDITIONAL(WITH_SYSTEM_ROOT_INSTALL, [test "$with_system_root_install" = yes]) | ||
| 30 | @@ -150,16 +148,11 @@ AM_CONDITIONAL(WITH_SYSTEM_ROOT_INSTALL, [test "$with_system_root_install" = ye | ||
| 31 | if test x$with_system_root_install = xyes; then | ||
| 32 | plymouthclientdir=/bin | ||
| 33 | plymouthdaemondir=/sbin | ||
| 34 | - if (test -z "${plymouthruntimedir}"); then | ||
| 35 | - plymouthruntimedir=/run/plymouth | ||
| 36 | - fi | ||
| 37 | else | ||
| 38 | plymouthclientdir=$bindir | ||
| 39 | plymouthdaemondir=$sbindir | ||
| 40 | - if (test -z "${plymouthruntimedir}"); then | ||
| 41 | - plymouthruntimedir=$localstatedir/run/plymouth | ||
| 42 | - fi | ||
| 43 | fi | ||
| 44 | +plymouthruntimedir=$runstatedir/plymouth | ||
| 45 | AC_SUBST(plymouthclientdir) | ||
| 46 | AC_SUBST(plymouthdaemondir) | ||
| 47 | AC_SUBST(plymouthruntimedir) | ||
| 48 | -- | ||
| 49 | 2.25.1 | ||
| 50 | |||
diff --git a/meta-oe/recipes-core/plymouth/plymouth_0.9.5.bb b/meta-oe/recipes-core/plymouth/plymouth_22.02.122.bb index 143ffa10d1..469914cd47 100644 --- a/meta-oe/recipes-core/plymouth/plymouth_0.9.5.bb +++ b/meta-oe/recipes-core/plymouth/plymouth_22.02.122.bb | |||
| @@ -1,62 +1,58 @@ | |||
| 1 | SUMMARY = "Plymouth is a project from Fedora providing a flicker-free graphical boot process." | 1 | SUMMARY = "Plymouth is a project from Fedora providing a flicker-free graphical boot process." |
| 2 | |||
| 3 | DESCRIPTION = "Plymouth is an application that runs very early in the boot process \ | 2 | DESCRIPTION = "Plymouth is an application that runs very early in the boot process \ |
| 4 | (even before the root filesystem is mounted!) that provides a \ | 3 | (even before the root filesystem is mounted!) that provides a \ |
| 5 | graphical boot animation while the boot process happens in the background. \ | 4 | graphical boot animation while the boot process happens in the background." |
| 6 | " | ||
| 7 | |||
| 8 | HOMEPAGE = "http://www.freedesktop.org/wiki/Software/Plymouth" | 5 | HOMEPAGE = "http://www.freedesktop.org/wiki/Software/Plymouth" |
| 9 | SECTION = "base" | 6 | SECTION = "base" |
| 10 | 7 | ||
| 11 | LICENSE = "GPL-2.0-or-later" | 8 | LICENSE = "GPL-2.0-or-later" |
| 12 | |||
| 13 | LIC_FILES_CHKSUM = "file://COPYING;md5=94d55d512a9ba36caa9b7df079bae19f" | 9 | LIC_FILES_CHKSUM = "file://COPYING;md5=94d55d512a9ba36caa9b7df079bae19f" |
| 14 | 10 | ||
| 15 | DEPENDS = "libcap libpng cairo dbus udev" | ||
| 16 | DEPENDS:append:libc-musl = " musl-rpmatch" | ||
| 17 | PROVIDES = "virtual/psplash" | ||
| 18 | RPROVIDES:${PN} = "virtual-psplash virtual-psplash-support" | ||
| 19 | |||
| 20 | SRC_URI = " \ | 11 | SRC_URI = " \ |
| 21 | http://www.freedesktop.org/software/plymouth/releases/${BPN}-${PV}.tar.xz \ | 12 | http://www.freedesktop.org/software/plymouth/releases/${BPN}-${PV}.tar.xz \ |
| 22 | file://0001-Make-full-path-to-systemd-tty-ask-password-agent-con.patch \ | 13 | file://0001-Make-full-path-to-systemd-tty-ask-password-agent-con.patch \ |
| 23 | file://0001-systemd-switch-to-KillMode-mixed.patch \ | ||
| 24 | file://0001-plymouth-start-service-in-add-related-kernel-paramet.patch \ | 14 | file://0001-plymouth-start-service-in-add-related-kernel-paramet.patch \ |
| 25 | file://0001-plymouth-Add-the-retain-splash-option.patch \ | 15 | file://0001-plymouth-Add-the-retain-splash-option.patch \ |
| 26 | " | 16 | file://0001-Use-standard-runstatedir-vs-custom-flag.patch \ |
| 17 | file://0001-Fix-daemon-install-ignoring-configured-runstatedir.patch \ | ||
| 18 | " | ||
| 27 | 19 | ||
| 28 | SRC_URI[md5sum] = "8a25d23f3ae732af300a56fa33cacff2" | 20 | SRC_URI[sha256sum] = "100551442221033ce868c447ad6c74d831d209c18ae232b98ae0207e34eadaeb" |
| 29 | 21 | ||
| 30 | EXTRA_OECONF += " --enable-shared --disable-static --disable-gtk --disable-documentation \ | 22 | LOGO ??= "${datadir}/plymouth/bizcom.png" |
| 31 | --with-logo=${LOGO} \ | 23 | RUNSTATEDIR ??= "${localstatedir}/run" |
| 32 | ${@bb.utils.contains('DISTRO_FEATURES', 'systemd', '--enable-systemd-integration --with-systemd-tty-ask-password-agent=${base_bindir}/systemd-tty-ask-password-agent', '--disable-systemd-integration', d)} \ | 24 | |
| 33 | ${@bb.utils.contains('DISTRO_FEATURES', 'usrmerge','--without-system-root-install','--with-system-root-install',d)} \ | 25 | EXTRA_OECONF = "--runstatedir=${RUNSTATEDIR}" |
| 34 | " | ||
| 35 | 26 | ||
| 36 | PACKAGECONFIG ??= "pango initrd" | 27 | PACKAGECONFIG ??= "initrd logo pango udev ${@bb.utils.filter('DISTRO_FEATURES', 'systemd usrmerge', d)}" |
| 37 | PACKAGECONFIG:append:x86 = " drm" | 28 | PACKAGECONFIG:append:x86 = " drm" |
| 38 | PACKAGECONFIG:append:x86-64 = " drm" | 29 | PACKAGECONFIG:append:x86-64 = " drm" |
| 39 | 30 | ||
| 40 | PACKAGECONFIG[drm] = "--enable-drm,--disable-drm,libdrm" | 31 | PACKAGECONFIG[drm] = "--enable-drm,--disable-drm,libdrm" |
| 41 | PACKAGECONFIG[pango] = "--enable-pango,--disable-pango,pango" | 32 | PACKAGECONFIG[documentation] = "--enable-documentation,--disable-documentation" |
| 33 | PACKAGECONFIG[initrd] = ",," | ||
| 42 | PACKAGECONFIG[gtk] = "--enable-gtk,--disable-gtk,gtk+3" | 34 | PACKAGECONFIG[gtk] = "--enable-gtk,--disable-gtk,gtk+3" |
| 43 | PACKAGECONFIG[initrd] = ",,," | 35 | PACKAGECONFIG[logo] = "--with-logo=${LOGO},--without-logo" |
| 44 | 36 | PACKAGECONFIG[pango] = "--enable-pango,--disable-pango,pango" | |
| 45 | LOGO ??= "${datadir}/plymouth/bizcom.png" | 37 | PACKAGECONFIG[systemd] = "--enable-systemd-integration --with-systemd-tty-ask-password-agent=${base_bindir}/systemd-tty-ask-password-agent,--disable-systemd-integration,systemd" |
| 38 | PACKAGECONFIG[udev] = "--with-udev,--without-udev,udev" | ||
| 39 | PACKAGECONFIG[upstart-monitoring] = "--enable-upstart-monitoring,--disable-upstart-monitoring,ncurses dbus" | ||
| 40 | PACKAGECONFIG[usrmerge] = "--without-system-root-install,--with-system-root-install" | ||
| 46 | 41 | ||
| 47 | inherit autotools pkgconfig systemd gettext | 42 | inherit autotools pkgconfig systemd gettext |
| 48 | 43 | ||
| 49 | LDFLAGS:append:libc-musl = " -lrpmatch" | ||
| 50 | |||
| 51 | do_install:append() { | 44 | do_install:append() { |
| 52 | # Remove /var/run from package as plymouth will populate it on startup | 45 | # Remove /var/run from package as plymouth will populate it on startup |
| 53 | rm -fr "${D}${localstatedir}/run" | 46 | rm -fr ${D}${RUNSTATEDIR} |
| 54 | 47 | ||
| 55 | if ! ${@bb.utils.contains('PACKAGECONFIG', 'initrd', 'true', 'false', d)}; then | 48 | if ! ${@bb.utils.contains('PACKAGECONFIG', 'initrd', 'true', 'false', d)}; then |
| 56 | rm -rf "${D}${libexecdir}" | 49 | rm -rf "${D}${libexecdir}" |
| 57 | fi | 50 | fi |
| 58 | } | 51 | } |
| 59 | 52 | ||
| 53 | PROVIDES = "virtual/psplash" | ||
| 54 | RPROVIDES:${PN} = "virtual-psplash virtual-psplash-support" | ||
| 55 | |||
| 60 | PACKAGES =. "${@bb.utils.contains('PACKAGECONFIG', 'initrd', '${PN}-initrd ', '', d)}" | 56 | PACKAGES =. "${@bb.utils.contains('PACKAGECONFIG', 'initrd', '${PN}-initrd ', '', d)}" |
| 61 | PACKAGES =+ "${PN}-set-default-theme" | 57 | PACKAGES =+ "${PN}-set-default-theme" |
| 62 | 58 | ||
| @@ -66,6 +62,10 @@ FILES:${PN}-set-default-theme = "${sbindir}/plymouth-set-default-theme" | |||
| 66 | FILES:${PN} += "${systemd_unitdir}/system/*" | 62 | FILES:${PN} += "${systemd_unitdir}/system/*" |
| 67 | FILES:${PN}-dbg += "${libdir}/plymouth/renderers/.debug" | 63 | FILES:${PN}-dbg += "${libdir}/plymouth/renderers/.debug" |
| 68 | 64 | ||
| 65 | DEPENDS = "libcap libpng" | ||
| 66 | DEPENDS:append:libc-musl = " musl-rpmatch" | ||
| 67 | |||
| 68 | LDFLAGS:append:libc-musl = " -lrpmatch" | ||
| 69 | 69 | ||
| 70 | RDEPENDS:${PN}-initrd = "bash dracut" | 70 | RDEPENDS:${PN}-initrd = "bash dracut" |
| 71 | RDEPENDS:${PN}-set-default-theme = "bash" | 71 | RDEPENDS:${PN}-set-default-theme = "bash" |
