From patchwork Fri Dec 4 12:55:44 2026 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ross Burton X-Patchwork-Id: 107307 Received: from foss.arm.com (foss.arm.com [217.140.110.172]) by mx.groups.io with SMTP id smtpd.msgproc02-g2.7307.1796388949626060039 for ; Fri, 04 Dec 2026 04:55:49 -0800 Authentication-Results: mx.groups.io; dkim=fail reason="dkim: body hash did not verify" header.i=@arm.com header.s=foss header.b=gpbGuLz4; spf=pass (domain: arm.com, ip: 217.140.110.172, mailfrom: ross.burton@arm.com) Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.121.207.14]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id 4B4201655 for ; Fri, 4 Dec 2026 04:55:46 -0800 (PST) Received: from cesw-amp-gbt-1s-m12830-04.lab.cambridge.arm.com (usa-sjc-imap-foss1.foss.arm.com [10.121.207.14]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPA id C20433F86F for ; Fri, 4 Dec 2026 04:55:48 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=arm.com; s=foss; t=1796388949; bh=7NvEINgpyvdhD5VWgIChfxY/LrPwN3bOrXuRBOFPWl8=; h=From:To:Subject:Date:In-Reply-To:References:From; b=gpbGuLz4YNO9sWFgfIv8klhiPZxeqOvId5kZw23yXfNeiID8RSPAOJV8VLdcqcbTc KJ1L5ETOJiqvitNySmJmeSsLR1Lq8PlWTWNg2gD1NK2vipGjCh3yEiDd3YBtfbRUly D6zcGON63iDePF1VOfESzaC5K/WviWsvyhGhpV1s= From: Ross Burton To: openembedded-core@lists.openembedded.org Subject: [PATCH 2/4] pipewire: consolidate install task Date: Fri, 4 Dec 2026 12:55:44 +0000 Message-ID: <20261204125546.3472805-2-ross.burton@arm.com> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20261204125546.3472805-1-ross.burton@arm.com> References: <20261204125546.3472805-1-ross.burton@arm.com> MIME-Version: 1.0 X-ARM-No-Footer: NoDisclaimer List-Id: X-Webhook-Received: from 45-33-107-173.ip.linodeusercontent.com [45.33.107.173] by lin-tor-korg-lkml-alma10-1 with HTTPS for ; Fri, 04 Dec 2026 12:55:59 -0000 X-Groupsio-URL: https://lists.openembedded.org/g/openembedded-core/message/251965 The recipe had grown a do_install:append, do_install:append:class-target, and a do_install:postfunc over time. These can be consolidated into a single do_install, with relative symlinks created to avoid absolute paths in the native build. Signed-off-by: Ross Burton --- .../pipewire/pipewire_1.6.11.bb | 22 +++++++------------ 1 file changed, 8 insertions(+), 14 deletions(-) diff --git a/meta/recipes-multimedia/pipewire/pipewire_1.6.11.bb b/meta/recipes-multimedia/pipewire/pipewire_1.6.11.bb index c0aa4250c6e..3183ea338a1 100644 --- a/meta/recipes-multimedia/pipewire/pipewire_1.6.11.bb +++ b/meta/recipes-multimedia/pipewire/pipewire_1.6.11.bb @@ -155,29 +155,29 @@ PACKAGESPLITFUNCS:append = " set_dynamic_metapkg_rdepends " SPA_SUBDIR = "spa-0.2" PW_MODULE_SUBDIR = "pipewire-0.3" -remove_unused_installed_files() { +do_install:append() { + if ls ${D}${datadir}/doc/pipewire/html/dir_*html; then + sed -i "s,${WORKDIR},,g" ${D}${datadir}/doc/pipewire/html/dir_*html + fi + # jack.conf is used by pipewire-jack (not the JACK SPA plugin). # Remove it if pipewire-jack is not built to avoid creating the # pipewire-jack package. - if ${@bb.utils.contains('PACKAGECONFIG', 'pipewire-jack', 'false', 'true', d)}; then + if ! ${@bb.utils.contains('PACKAGECONFIG', 'pipewire-jack', 'truw', 'false', d)}; then rm -f "${D}${datadir}/pipewire/jack.conf" fi # minimal.conf is an example of how to minimally configure the # daemon and is not meant to be used for production. rm -f "${D}${datadir}/pipewire/minimal.conf" -} -do_install:append:class-target() { # The pipewire-alsa plugin needs the following files in /etc/alsa/conf.d/ to # be picked up by alsa. install -d ${D}${sysconfdir}/alsa/conf.d - ln -sf ${datadir}/alsa/alsa.conf.d/50-pipewire.conf ${D}${sysconfdir}/alsa/conf.d/50-pipewire.conf - ln -sf ${datadir}/alsa/alsa.conf.d/99-pipewire-default.conf ${D}${sysconfdir}/alsa/conf.d/99-pipewire-default.conf + ln -rsf ${datadir}/alsa/alsa.conf.d/50-pipewire.conf ${D}${sysconfdir}/alsa/conf.d/50-pipewire.conf + ln -rsf ${datadir}/alsa/alsa.conf.d/99-pipewire-default.conf ${D}${sysconfdir}/alsa/conf.d/99-pipewire-default.conf } -do_install[postfuncs] += "remove_unused_installed_files" - python split_dynamic_packages () { # Create packages for each SPA plugin. These plugins are located # in individual subdirectories, so a recursive search is needed. @@ -414,9 +414,3 @@ FILES:gstreamer1.0-pipewire = " \ " BBCLASSEXTEND = "native nativesdk" - -do_install:append() { - if ls ${D}${datadir}/doc/pipewire/html/dir_*html; then - sed -i "s,${WORKDIR},,g" ${D}${datadir}/doc/pipewire/html/dir_*html - fi -}