diff options
| author | Alexander Kanavin <alex@linutronix.de> | 2025-01-08 09:42:08 +0100 |
|---|---|---|
| committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2025-01-20 13:38:59 +0000 |
| commit | 5b6c0bfbf5a9b25c38fa7e1bc637f2eba151e73d (patch) | |
| tree | e8ee82d4d1204e1673a01ef50fa89fabee1c37b3 | |
| parent | ad002798cc0f715f71990f398261c18861d1b4cb (diff) | |
| download | poky-5b6c0bfbf5a9b25c38fa7e1bc637f2eba151e73d.tar.gz | |
dbus: update 1.14.10 -> 1.16.0
Convert from autotools to meson.
Drop tmpdir.patch (replaced by -Dtest_socket_dir=/tmp --Dsession_socket_dir=/tmp).
License-Update: license texts split into separate files, SPDX ids added.
(From OE-Core rev: b0241aa9b1ecc38be1ca016f36075552a2eba48a)
Signed-off-by: Alexander Kanavin <alex@linutronix.de>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
| -rw-r--r-- | meta/recipes-core/dbus/dbus/tmpdir.patch | 44 | ||||
| -rw-r--r-- | meta/recipes-core/dbus/dbus_1.16.0.bb (renamed from meta/recipes-core/dbus/dbus_1.14.10.bb) | 59 |
2 files changed, 27 insertions, 76 deletions
diff --git a/meta/recipes-core/dbus/dbus/tmpdir.patch b/meta/recipes-core/dbus/dbus/tmpdir.patch deleted file mode 100644 index bf086e1788..0000000000 --- a/meta/recipes-core/dbus/dbus/tmpdir.patch +++ /dev/null | |||
| @@ -1,44 +0,0 @@ | |||
| 1 | From 5105fedd7fa13dadd2d0d864fb77873b83b79a4b Mon Sep 17 00:00:00 2001 | ||
| 2 | From: Koen Kooi <koen@dominion.thruhere.net> | ||
| 3 | Date: Thu, 23 Jun 2011 13:52:09 +0200 | ||
| 4 | Subject: [PATCH] buildsys: hardcode socketdir to /tmp | ||
| 5 | |||
| 6 | the TMPDIR env var isn't always pointing to the right target path | ||
| 7 | |||
| 8 | Upstream-Status: Inappropriate [embedded] | ||
| 9 | |||
| 10 | Signed-off-by: Koen Kooi <koen@dominion.thruhere.net> | ||
| 11 | |||
| 12 | Original comment: | ||
| 13 | |||
| 14 | avoid to check tmp dir at build time. instead uses hard coded /tmp here | ||
| 15 | comment added by Kevin Tian <kevin.tian@intel.com> | ||
| 16 | --- | ||
| 17 | configure.ac | 11 +---------- | ||
| 18 | 1 files changed, 1 insertions(+), 10 deletions(-) | ||
| 19 | |||
| 20 | diff --git a/configure.ac b/configure.ac | ||
| 21 | index 408054b..6d26180 100644 | ||
| 22 | --- a/configure.ac | ||
| 23 | +++ b/configure.ac | ||
| 24 | @@ -1483,16 +1483,7 @@ AC_SUBST(TEST_LAUNCH_HELPER_BINARY) | ||
| 25 | AC_DEFINE_UNQUOTED(DBUS_TEST_LAUNCH_HELPER_BINARY, "$TEST_LAUNCH_HELPER_BINARY", | ||
| 26 | [Full path to the launch helper test program in the builddir]) | ||
| 27 | |||
| 28 | -#### Find socket directories | ||
| 29 | -if ! test -z "$TMPDIR" ; then | ||
| 30 | - DEFAULT_SOCKET_DIR=$TMPDIR | ||
| 31 | -elif ! test -z "$TEMP" ; then | ||
| 32 | - DEFAULT_SOCKET_DIR=$TEMP | ||
| 33 | -elif ! test -z "$TMP" ; then | ||
| 34 | - DEFAULT_SOCKET_DIR=$TMP | ||
| 35 | -else | ||
| 36 | - DEFAULT_SOCKET_DIR=/tmp | ||
| 37 | -fi | ||
| 38 | +DEFAULT_SOCKET_DIR=/tmp | ||
| 39 | |||
| 40 | DEFAULT_SOCKET_DIR=`echo $DEFAULT_SOCKET_DIR | sed 's/+/%2B/g'` | ||
| 41 | |||
| 42 | -- | ||
| 43 | 1.6.6.1 | ||
| 44 | |||
diff --git a/meta/recipes-core/dbus/dbus_1.14.10.bb b/meta/recipes-core/dbus/dbus_1.16.0.bb index 6a08f6984e..f516273cc7 100644 --- a/meta/recipes-core/dbus/dbus_1.14.10.bb +++ b/meta/recipes-core/dbus/dbus_1.16.0.bb | |||
| @@ -3,43 +3,44 @@ DESCRIPTION = "D-Bus is a message bus system, a simple way for applications to t | |||
| 3 | HOMEPAGE = "https://dbus.freedesktop.org" | 3 | HOMEPAGE = "https://dbus.freedesktop.org" |
| 4 | SECTION = "base" | 4 | SECTION = "base" |
| 5 | 5 | ||
| 6 | inherit autotools pkgconfig gettext upstream-version-is-even ptest-gnome | 6 | inherit meson pkgconfig gettext upstream-version-is-even ptest-gnome |
| 7 | 7 | ||
| 8 | LICENSE = "AFL-2.1 | GPL-2.0-or-later" | 8 | LICENSE = "AFL-2.1 | GPL-2.0-or-later" |
| 9 | LIC_FILES_CHKSUM = "file://COPYING;md5=6423dcd74d7be9715b0db247fd889da3 \ | 9 | LIC_FILES_CHKSUM = "file://COPYING;md5=eb0ffc69a965797a3d6686baa153ef05 \ |
| 10 | file://dbus/dbus.h;beginline=6;endline=20;md5=866739837ccd835350af94dccd6457d8 \ | 10 | file://dbus/dbus.h;beginline=6;endline=22;md5=df4251a6c6e15e6a9e3c77b2ac30065d \ |
| 11 | " | 11 | " |
| 12 | 12 | ||
| 13 | SRC_URI = "https://dbus.freedesktop.org/releases/dbus/dbus-${PV}.tar.xz \ | 13 | SRC_URI = "https://dbus.freedesktop.org/releases/dbus/dbus-${PV}.tar.xz \ |
| 14 | file://run-ptest \ | 14 | file://run-ptest \ |
| 15 | file://tmpdir.patch \ | ||
| 16 | file://dbus-1.init \ | 15 | file://dbus-1.init \ |
| 17 | " | 16 | " |
| 18 | 17 | ||
| 19 | SRC_URI[sha256sum] = "ba1f21d2bd9d339da2d4aa8780c09df32fea87998b73da24f49ab9df1e36a50f" | 18 | SRC_URI[sha256sum] = "9f8ca5eb51cbe09951aec8624b86c292990ae2428b41b856e2bed17ec65c8849" |
| 20 | 19 | ||
| 21 | EXTRA_OECONF = "--disable-xml-docs \ | 20 | EXTRA_OEMESON = "-Dxml_docs=disabled \ |
| 22 | --disable-doxygen-docs \ | 21 | -Ddoxygen_docs=disabled \ |
| 23 | --enable-largefile \ | 22 | -Dsystem_socket=/run/dbus/system_bus_socket \ |
| 24 | --with-system-socket=/run/dbus/system_bus_socket \ | 23 | -Dmodular_tests=enabled \ |
| 25 | --enable-modular-tests \ | 24 | -Dchecks=true \ |
| 26 | --enable-checks \ | 25 | -Druntime_dir=${runtimedir} \ |
| 27 | --runstatedir=/run \ | 26 | -Dtest_socket_dir=/tmp \ |
| 27 | -Dsession_socket_dir=/tmp \ | ||
| 28 | " | 28 | " |
| 29 | EXTRA_OECONF:append:class-target = " SYSTEMCTL=${base_bindir}/systemctl" | ||
| 30 | 29 | ||
| 31 | PACKAGECONFIG ??= "${@bb.utils.filter('DISTRO_FEATURES', 'systemd x11', d)} \ | 30 | PACKAGECONFIG ??= "${@bb.utils.filter('DISTRO_FEATURES', 'systemd x11', d)} \ |
| 32 | user-session \ | 31 | user-session \ |
| 32 | ${@bb.utils.contains('PTEST_ENABLED', '1', 'tests', '', d)} \ | ||
| 33 | " | 33 | " |
| 34 | PACKAGECONFIG:class-native = "" | 34 | PACKAGECONFIG:class-native = "" |
| 35 | PACKAGECONFIG:class-nativesdk = "" | 35 | PACKAGECONFIG:class-nativesdk = "" |
| 36 | 36 | ||
| 37 | PACKAGECONFIG[systemd] = "--enable-systemd --with-systemdsystemunitdir=${systemd_system_unitdir},--disable-systemd --without-systemdsystemunitdir,systemd" | 37 | PACKAGECONFIG[systemd] = "-Dsystemd=enabled -Dsystemd_system_unitdir=${systemd_system_unitdir},-Dsystemd=disabled,systemd" |
| 38 | PACKAGECONFIG[x11] = "--enable-x11-autolaunch,--without-x --disable-x11-autolaunch, virtual/libx11 libsm" | 38 | PACKAGECONFIG[x11] = "-Dx11_autolaunch=enabled,-Dx11_autolaunch=disabled, virtual/libx11 libsm" |
| 39 | PACKAGECONFIG[user-session] = "--enable-user-session --with-systemduserunitdir=${systemd_user_unitdir},--disable-user-session" | 39 | PACKAGECONFIG[user-session] = "-Duser_session=true -Dsystemd_user_unitdir=${systemd_user_unitdir},-Duser_session=false" |
| 40 | PACKAGECONFIG[verbose-mode] = "--enable-verbose-mode,,," | 40 | PACKAGECONFIG[verbose-mode] = "-Dverbose_mode=true,-Dverbose_mode=false,," |
| 41 | PACKAGECONFIG[audit] = "--enable-libaudit,--disable-libaudit,audit" | 41 | PACKAGECONFIG[audit] = "-Dlibaudit=enabled,-Dlibaudit=disabled,audit" |
| 42 | PACKAGECONFIG[selinux] = "--enable-selinux,--disable-selinux,libselinux" | 42 | PACKAGECONFIG[selinux] = "-Dselinux=enabled,-Dselinux=disabled,libselinux" |
| 43 | PACKAGECONFIG[tests] = "-Dinstalled_tests=true,-Dinstalled_tests=false" | ||
| 43 | 44 | ||
| 44 | DEPENDS = "expat virtual/libintl autoconf-archive-native glib-2.0" | 45 | DEPENDS = "expat virtual/libintl autoconf-archive-native glib-2.0" |
| 45 | RDEPENDS:${PN} += "${PN}-common ${PN}-tools" | 46 | RDEPENDS:${PN} += "${PN}-common ${PN}-tools" |
| @@ -124,9 +125,7 @@ pkg_postinst:dbus() { | |||
| 124 | } | 125 | } |
| 125 | 126 | ||
| 126 | 127 | ||
| 127 | do_install() { | 128 | do_install:append:class-target() { |
| 128 | autotools_do_install | ||
| 129 | |||
| 130 | if ${@bb.utils.contains('DISTRO_FEATURES', 'sysvinit', 'true', 'false', d)}; then | 129 | if ${@bb.utils.contains('DISTRO_FEATURES', 'sysvinit', 'true', 'false', d)}; then |
| 131 | install -d ${D}${sysconfdir}/init.d | 130 | install -d ${D}${sysconfdir}/init.d |
| 132 | sed 's:@bindir@:${bindir}:' < ${UNPACKDIR}/dbus-1.init > ${S}/dbus-1.init.sh | 131 | sed 's:@bindir@:${bindir}:' < ${UNPACKDIR}/dbus-1.init > ${S}/dbus-1.init.sh |
| @@ -159,27 +158,23 @@ do_install() { | |||
| 159 | # Remove empty testexec directory as we don't build tests | 158 | # Remove empty testexec directory as we don't build tests |
| 160 | rm -rf ${D}${libdir}/dbus-1.0/test | 159 | rm -rf ${D}${libdir}/dbus-1.0/test |
| 161 | 160 | ||
| 162 | # Remove /var/run as it is created on startup | 161 | # Remove /run as it is created on startup |
| 163 | rm -rf ${D}${localstatedir}/run | 162 | rm -rf ${D}${runtimedir} |
| 164 | } | 163 | } |
| 165 | 164 | ||
| 166 | do_install:class-native() { | 165 | do_install:append:class-native() { |
| 167 | autotools_do_install | ||
| 168 | |||
| 169 | # dbus-launch has no X support so lets not install it in case the host | 166 | # dbus-launch has no X support so lets not install it in case the host |
| 170 | # has a more featured and useful version | 167 | # has a more featured and useful version |
| 171 | rm -f ${D}${bindir}/dbus-launch | 168 | rm -f ${D}${bindir}/dbus-launch |
| 172 | } | 169 | } |
| 173 | 170 | ||
| 174 | do_install:class-nativesdk() { | 171 | do_install:append:class-nativesdk() { |
| 175 | autotools_do_install | ||
| 176 | |||
| 177 | # dbus-launch has no X support so lets not install it in case the host | 172 | # dbus-launch has no X support so lets not install it in case the host |
| 178 | # has a more featured and useful version | 173 | # has a more featured and useful version |
| 179 | rm -f ${D}${bindir}/dbus-launch | 174 | rm -f ${D}${bindir}/dbus-launch |
| 180 | 175 | ||
| 181 | # Remove /var/run to avoid QA error | 176 | # Remove /run to avoid QA error |
| 182 | rm -rf ${D}${localstatedir}/run | 177 | rm -rf ${D}${runtimedir} |
| 183 | } | 178 | } |
| 184 | BBCLASSEXTEND = "native nativesdk" | 179 | BBCLASSEXTEND = "native nativesdk" |
| 185 | 180 | ||
