summaryrefslogtreecommitdiffstats
path: root/meta-oe/recipes-core/plymouth
diff options
context:
space:
mode:
authorMing Liu <liu.ming50@gmail.com>2022-10-02 16:51:57 +0200
committerKhem Raj <raj.khem@gmail.com>2022-10-02 13:10:17 -0700
commit479b1455e37d49bc24f709bd2284effdb92686ab (patch)
tree1a819bb88bef7a54c157ad56df46d5366b8d3897 /meta-oe/recipes-core/plymouth
parentff7666cae8b3e6cca45e5d0652b16d6caa6be7a5 (diff)
downloadmeta-openembedded-479b1455e37d49bc24f709bd2284effdb92686ab.tar.gz
plymouth: uprev to 22.02.122
Also introduce more PACKAGECONFIGs to make build more predicable. Signed-off-by: Ming Liu <liu.ming50@gmail.com> Signed-off-by: Khem Raj <raj.khem@gmail.com>
Diffstat (limited to 'meta-oe/recipes-core/plymouth')
-rw-r--r--meta-oe/recipes-core/plymouth/files/0001-Fix-daemon-install-ignoring-configured-runstatedir.patch30
-rw-r--r--meta-oe/recipes-core/plymouth/files/0001-Use-standard-runstatedir-vs-custom-flag.patch50
-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 000000000..e04917e30
--- /dev/null
+++ b/meta-oe/recipes-core/plymouth/files/0001-Fix-daemon-install-ignoring-configured-runstatedir.patch
@@ -0,0 +1,30 @@
1From 4c90a66fb7fd9dbb861c5a888fc828f3795fe540 Mon Sep 17 00:00:00 2001
2From: Ben Brown <ben@demerara.io>
3Date: Tue, 19 Jul 2022 16:12:12 +0100
4Subject: [PATCH] Fix daemon install ignoring configured runstatedir
5
6Upstream-Status: Backport
7
8Signed-off-by: Ben Brown <ben@demerara.io>
9Signed-off-by: Ming Liu <liu.ming50@gmail.com>
10
11---
12 src/Makefile.am | 2 +-
13 1 file changed, 1 insertion(+), 1 deletion(-)
14
15diff --git a/src/Makefile.am b/src/Makefile.am
16index 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--
292.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 000000000..e351098f3
--- /dev/null
+++ b/meta-oe/recipes-core/plymouth/files/0001-Use-standard-runstatedir-vs-custom-flag.patch
@@ -0,0 +1,50 @@
1From 97012d2c38b84fffb32867fb5eeac64a93455626 Mon Sep 17 00:00:00 2001
2From: Ben Brown <ben@demerara.io>
3Date: Tue, 19 Jul 2022 16:10:24 +0100
4Subject: [PATCH] Use standard runstatedir vs custom flag
5
6Upstream-Status: Backport
7
8---
9 configure.ac | 11 ++---------
10 1 file changed, 2 insertions(+), 9 deletions(-)
11
12Signed-off-by: Ben Brown <ben@demerara.io>
13Signed-off-by: Ming Liu <liu.ming50@gmail.com>
14
15diff --git a/configure.ac b/configure.ac
16index 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--
492.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 143ffa10d..469914cd4 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 @@
1SUMMARY = "Plymouth is a project from Fedora providing a flicker-free graphical boot process." 1SUMMARY = "Plymouth is a project from Fedora providing a flicker-free graphical boot process."
2
3DESCRIPTION = "Plymouth is an application that runs very early in the boot process \ 2DESCRIPTION = "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. \ 4graphical boot animation while the boot process happens in the background."
6"
7
8HOMEPAGE = "http://www.freedesktop.org/wiki/Software/Plymouth" 5HOMEPAGE = "http://www.freedesktop.org/wiki/Software/Plymouth"
9SECTION = "base" 6SECTION = "base"
10 7
11LICENSE = "GPL-2.0-or-later" 8LICENSE = "GPL-2.0-or-later"
12
13LIC_FILES_CHKSUM = "file://COPYING;md5=94d55d512a9ba36caa9b7df079bae19f" 9LIC_FILES_CHKSUM = "file://COPYING;md5=94d55d512a9ba36caa9b7df079bae19f"
14 10
15DEPENDS = "libcap libpng cairo dbus udev"
16DEPENDS:append:libc-musl = " musl-rpmatch"
17PROVIDES = "virtual/psplash"
18RPROVIDES:${PN} = "virtual-psplash virtual-psplash-support"
19
20SRC_URI = " \ 11SRC_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
28SRC_URI[md5sum] = "8a25d23f3ae732af300a56fa33cacff2" 20SRC_URI[sha256sum] = "100551442221033ce868c447ad6c74d831d209c18ae232b98ae0207e34eadaeb"
29 21
30EXTRA_OECONF += " --enable-shared --disable-static --disable-gtk --disable-documentation \ 22LOGO ??= "${datadir}/plymouth/bizcom.png"
31 --with-logo=${LOGO} \ 23RUNSTATEDIR ??= "${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)} \ 25EXTRA_OECONF = "--runstatedir=${RUNSTATEDIR}"
34"
35 26
36PACKAGECONFIG ??= "pango initrd" 27PACKAGECONFIG ??= "initrd logo pango udev ${@bb.utils.filter('DISTRO_FEATURES', 'systemd usrmerge', d)}"
37PACKAGECONFIG:append:x86 = " drm" 28PACKAGECONFIG:append:x86 = " drm"
38PACKAGECONFIG:append:x86-64 = " drm" 29PACKAGECONFIG:append:x86-64 = " drm"
39 30
40PACKAGECONFIG[drm] = "--enable-drm,--disable-drm,libdrm" 31PACKAGECONFIG[drm] = "--enable-drm,--disable-drm,libdrm"
41PACKAGECONFIG[pango] = "--enable-pango,--disable-pango,pango" 32PACKAGECONFIG[documentation] = "--enable-documentation,--disable-documentation"
33PACKAGECONFIG[initrd] = ",,"
42PACKAGECONFIG[gtk] = "--enable-gtk,--disable-gtk,gtk+3" 34PACKAGECONFIG[gtk] = "--enable-gtk,--disable-gtk,gtk+3"
43PACKAGECONFIG[initrd] = ",,," 35PACKAGECONFIG[logo] = "--with-logo=${LOGO},--without-logo"
44 36PACKAGECONFIG[pango] = "--enable-pango,--disable-pango,pango"
45LOGO ??= "${datadir}/plymouth/bizcom.png" 37PACKAGECONFIG[systemd] = "--enable-systemd-integration --with-systemd-tty-ask-password-agent=${base_bindir}/systemd-tty-ask-password-agent,--disable-systemd-integration,systemd"
38PACKAGECONFIG[udev] = "--with-udev,--without-udev,udev"
39PACKAGECONFIG[upstart-monitoring] = "--enable-upstart-monitoring,--disable-upstart-monitoring,ncurses dbus"
40PACKAGECONFIG[usrmerge] = "--without-system-root-install,--with-system-root-install"
46 41
47inherit autotools pkgconfig systemd gettext 42inherit autotools pkgconfig systemd gettext
48 43
49LDFLAGS:append:libc-musl = " -lrpmatch"
50
51do_install:append() { 44do_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
53PROVIDES = "virtual/psplash"
54RPROVIDES:${PN} = "virtual-psplash virtual-psplash-support"
55
60PACKAGES =. "${@bb.utils.contains('PACKAGECONFIG', 'initrd', '${PN}-initrd ', '', d)}" 56PACKAGES =. "${@bb.utils.contains('PACKAGECONFIG', 'initrd', '${PN}-initrd ', '', d)}"
61PACKAGES =+ "${PN}-set-default-theme" 57PACKAGES =+ "${PN}-set-default-theme"
62 58
@@ -66,6 +62,10 @@ FILES:${PN}-set-default-theme = "${sbindir}/plymouth-set-default-theme"
66FILES:${PN} += "${systemd_unitdir}/system/*" 62FILES:${PN} += "${systemd_unitdir}/system/*"
67FILES:${PN}-dbg += "${libdir}/plymouth/renderers/.debug" 63FILES:${PN}-dbg += "${libdir}/plymouth/renderers/.debug"
68 64
65DEPENDS = "libcap libpng"
66DEPENDS:append:libc-musl = " musl-rpmatch"
67
68LDFLAGS:append:libc-musl = " -lrpmatch"
69 69
70RDEPENDS:${PN}-initrd = "bash dracut" 70RDEPENDS:${PN}-initrd = "bash dracut"
71RDEPENDS:${PN}-set-default-theme = "bash" 71RDEPENDS:${PN}-set-default-theme = "bash"