From patchwork Wed Apr 29 14:31:02 2026 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: =?utf-8?b?7KCV7J6s7JykL1Rhc2sgTGVhZGVyL1NXIFBsYXRmb3JtKOyXsCnshKDtlolQbGF0Zm9ybeqwnOuwnOyLpCBMaWdodHdlaWdodCBTeXN0ZW0gVGFzaw==?= X-Patchwork-Id: 87106 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from aws-us-west-2-korg-lkml-1.web.codeaurora.org (localhost.localdomain [127.0.0.1]) by smtp.lore.kernel.org (Postfix) with ESMTP id 421C0FF8867 for ; Wed, 29 Apr 2026 14:32:04 +0000 (UTC) Received: from lgeamrelo12.lge.com (lgeamrelo12.lge.com [156.147.23.52]) by mx.groups.io with SMTP id smtpd.msgproc02-g2.12789.1777473117529562474 for ; Wed, 29 Apr 2026 07:31:58 -0700 Authentication-Results: mx.groups.io; dkim=none (message not signed); spf=pass (domain: lge.com, ip: 156.147.23.52, mailfrom: jaeyoon.jung@lge.com) Received: from unknown (HELO lgeamrelo04.lge.com) (156.147.1.127) by 156.147.23.52 with ESMTP; 29 Apr 2026 23:31:56 +0900 X-Original-SENDERIP: 156.147.1.127 X-Original-MAILFROM: jaeyoon.jung@lge.com Received: from unknown (HELO magneto) (10.177.121.44) by 156.147.1.127 with ESMTP; 29 Apr 2026 23:31:55 +0900 X-Original-SENDERIP: 10.177.121.44 X-Original-MAILFROM: jaeyoon.jung@lge.com From: jaeyoon.jung@lge.com To: openembedded-core@lists.openembedded.org Cc: Jaeyoon Jung Subject: [PATCH 1/3] libpam: Add missing MLPREFIX to FILES:pam-plugin-env Date: Wed, 29 Apr 2026 23:31:02 +0900 Message-ID: <20260429143104.684760-2-jaeyoon.jung@lge.com> X-Mailer: git-send-email 2.53.0 In-Reply-To: <20260429143104.684760-1-jaeyoon.jung@lge.com> References: <20260429143104.684760-1-jaeyoon.jung@lge.com> MIME-Version: 1.0 List-Id: X-Webhook-Received: from 45-33-107-173.ip.linodeusercontent.com [45.33.107.173] by aws-us-west-2-korg-lkml-1.web.codeaurora.org with HTTPS for ; Wed, 29 Apr 2026 14:32:04 -0000 X-Groupsio-URL: https://lists.openembedded.org/g/openembedded-core/message/236106 From: Jaeyoon Jung pam-plugin-env is treated as a multilib package, but FILES:pam-plugin-env did not include MLPREFIX which is inconsistent to PACKAGES_DYNAMIC and pam_plugin_hook(). Signed-off-by: Jaeyoon Jung --- meta/recipes-extended/pam/libpam_1.7.2.bb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/meta/recipes-extended/pam/libpam_1.7.2.bb b/meta/recipes-extended/pam/libpam_1.7.2.bb index 6955a5f2f6..6e1c5899db 100644 --- a/meta/recipes-extended/pam/libpam_1.7.2.bb +++ b/meta/recipes-extended/pam/libpam_1.7.2.bb @@ -53,7 +53,7 @@ FILES:${PN}-xtests = "${datadir}/Linux-PAM/xtests" # libpam installs /etc/environment for use with the pam_env plugin. Make sure it is # packaged with the pam-plugin-env package to avoid breaking installations which # install that file via other packages -FILES:pam-plugin-env = "${sysconfdir}/environment" +FILES:${MLPREFIX}pam-plugin-env = "${sysconfdir}/environment" PACKAGES_DYNAMIC += "^${MLPREFIX}pam-plugin-.*" From patchwork Wed Apr 29 14:31:03 2026 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: =?utf-8?b?7KCV7J6s7JykL1Rhc2sgTGVhZGVyL1NXIFBsYXRmb3JtKOyXsCnshKDtlolQbGF0Zm9ybeqwnOuwnOyLpCBMaWdodHdlaWdodCBTeXN0ZW0gVGFzaw==?= X-Patchwork-Id: 87108 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from aws-us-west-2-korg-lkml-1.web.codeaurora.org (localhost.localdomain [127.0.0.1]) by smtp.lore.kernel.org (Postfix) with ESMTP id 7B3A6CCFA13 for ; Wed, 29 Apr 2026 14:32:04 +0000 (UTC) Received: from lgeamrelo13.lge.com (lgeamrelo13.lge.com [156.147.23.53]) by mx.groups.io with SMTP id smtpd.msgproc02-g2.12790.1777473119038158717 for ; Wed, 29 Apr 2026 07:31:59 -0700 Authentication-Results: mx.groups.io; dkim=none (message not signed); spf=pass (domain: lge.com, ip: 156.147.23.53, mailfrom: jaeyoon.jung@lge.com) Received: from unknown (HELO lgeamrelo04.lge.com) (156.147.1.127) by 156.147.23.53 with ESMTP; 29 Apr 2026 23:31:57 +0900 X-Original-SENDERIP: 156.147.1.127 X-Original-MAILFROM: jaeyoon.jung@lge.com Received: from unknown (HELO magneto) (10.177.121.44) by 156.147.1.127 with ESMTP; 29 Apr 2026 23:31:57 +0900 X-Original-SENDERIP: 10.177.121.44 X-Original-MAILFROM: jaeyoon.jung@lge.com From: jaeyoon.jung@lge.com To: openembedded-core@lists.openembedded.org Cc: Jaeyoon Jung Subject: [PATCH 2/3] oeqa/selftest/pkgdata: add multilib LICENSE consistency test Date: Wed, 29 Apr 2026 23:31:03 +0900 Message-ID: <20260429143104.684760-3-jaeyoon.jung@lge.com> X-Mailer: git-send-email 2.53.0 In-Reply-To: <20260429143104.684760-1-jaeyoon.jung@lge.com> References: <20260429143104.684760-1-jaeyoon.jung@lge.com> MIME-Version: 1.0 List-Id: X-Webhook-Received: from 45-33-107-173.ip.linodeusercontent.com [45.33.107.173] by aws-us-west-2-korg-lkml-1.web.codeaurora.org with HTTPS for ; Wed, 29 Apr 2026 14:32:04 -0000 X-Groupsio-URL: https://lists.openembedded.org/g/openembedded-core/message/236107 From: Jaeyoon Jung Add a selftest to verify that pkgdata variables such as LICENSE are identical between base and multilib variants (e.g. lib32). Signed-off-by: Jaeyoon Jung --- meta/lib/oeqa/selftest/cases/pkgdata.py | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/meta/lib/oeqa/selftest/cases/pkgdata.py b/meta/lib/oeqa/selftest/cases/pkgdata.py index d786c33018..d3d38e7419 100644 --- a/meta/lib/oeqa/selftest/cases/pkgdata.py +++ b/meta/lib/oeqa/selftest/cases/pkgdata.py @@ -225,3 +225,18 @@ class OePkgdataUtilTests(OESelftestTestCase): self.assertEqual(result.status, 2, "Status different than 2. output: %s" % result.output) currpos = result.output.find('usage: oe-pkgdata-util') self.assertTrue(currpos != -1, msg = "Test is Failed. Help is not Displayed in %s" % result.output) + + def test_multilib_variables(self): + self.write_config(""" +MACHINE = "qemux86-64" +require conf/multilib.conf +MULTILIBS = "multilib:lib32" +DEFAULTTUNE:virtclass-multilib-lib32 = "x86" +""") + self.logger.info("Build with multilib lib32 enabled") + bitbake('systemd lib32-systemd') + pkg = runCmd('oe-pkgdata-util lookup-pkg libsystemd').output + pkg_lib32 = runCmd('oe-pkgdata-util lookup-pkg lib32-libsystemd').output + license = runCmd('oe-pkgdata-util read-value LICENSE %s' % pkg).output + license_lib32 = runCmd('oe-pkgdata-util read-value LICENSE %s' % pkg_lib32).output + self.assertEqual(license, license_lib32) From patchwork Wed Apr 29 14:31:04 2026 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: =?utf-8?b?7KCV7J6s7JykL1Rhc2sgTGVhZGVyL1NXIFBsYXRmb3JtKOyXsCnshKDtlolQbGF0Zm9ybeqwnOuwnOyLpCBMaWdodHdlaWdodCBTeXN0ZW0gVGFzaw==?= X-Patchwork-Id: 87107 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from aws-us-west-2-korg-lkml-1.web.codeaurora.org (localhost.localdomain [127.0.0.1]) by smtp.lore.kernel.org (Postfix) with ESMTP id D561BCD13CF for ; Wed, 29 Apr 2026 14:32:04 +0000 (UTC) Received: from lgeamrelo13.lge.com (lgeamrelo13.lge.com [156.147.23.53]) by mx.groups.io with SMTP id smtpd.msgproc01-g2.12653.1777473120943923762 for ; Wed, 29 Apr 2026 07:32:01 -0700 Authentication-Results: mx.groups.io; dkim=none (message not signed); spf=pass (domain: lge.com, ip: 156.147.23.53, mailfrom: jaeyoon.jung@lge.com) Received: from unknown (HELO lgeamrelo04.lge.com) (156.147.1.127) by 156.147.23.53 with ESMTP; 29 Apr 2026 23:31:59 +0900 X-Original-SENDERIP: 156.147.1.127 X-Original-MAILFROM: jaeyoon.jung@lge.com Received: from unknown (HELO magneto) (10.177.121.44) by 156.147.1.127 with ESMTP; 29 Apr 2026 23:31:59 +0900 X-Original-SENDERIP: 10.177.121.44 X-Original-MAILFROM: jaeyoon.jung@lge.com From: jaeyoon.jung@lge.com To: openembedded-core@lists.openembedded.org Cc: Jaeyoon Jung Subject: [PATCH 3/3] package.bbclass: extend package variables for multilib variants Date: Wed, 29 Apr 2026 23:31:04 +0900 Message-ID: <20260429143104.684760-4-jaeyoon.jung@lge.com> X-Mailer: git-send-email 2.53.0 In-Reply-To: <20260429143104.684760-1-jaeyoon.jung@lge.com> References: <20260429143104.684760-1-jaeyoon.jung@lge.com> MIME-Version: 1.0 List-Id: X-Webhook-Received: from 45-33-107-173.ip.linodeusercontent.com [45.33.107.173] by aws-us-west-2-korg-lkml-1.web.codeaurora.org with HTTPS for ; Wed, 29 Apr 2026 14:32:04 -0000 X-Groupsio-URL: https://lists.openembedded.org/g/openembedded-core/message/236108 From: Jaeyoon Jung Ensure PACKAGEVARS are extended for multilib variants during do_split_packages so that per-package metadata is correctly renamed when BBEXTENDVARIANT is in use. Signed-off-by: Jaeyoon Jung --- meta/classes-global/package.bbclass | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/meta/classes-global/package.bbclass b/meta/classes-global/package.bbclass index 67148fc1ac..d981424290 100644 --- a/meta/classes-global/package.bbclass +++ b/meta/classes-global/package.bbclass @@ -169,6 +169,7 @@ def do_split_packages(d, root, file_regex, output_pattern, description, postinst for o in sorted(objs): import re, stat + import oe.package if match_path: m = re.match(file_regex, o) else: @@ -225,6 +226,16 @@ def do_split_packages(d, root, file_regex, output_pattern, description, postinst hook(f, pkg, file_regex, output_pattern, m.group(1)) d.setVar('PACKAGES', ' '.join(packages)) + + variant = d.getVar("BBEXTENDVARIANT") + prefixes = (d.getVar("MULTILIB_VARIANTS") or "").split() + + if variant and prefixes: + import oe.classextend + # Extend package variables for the given variant if unset + clsextend = oe.classextend.ClassExtender(variant, prefixes, d) + clsextend.rename_package_variables((d.getVar("PACKAGEVARS") or "").split()) + return list(split_packages) PACKAGE_DEPENDS += "file-native"