From patchwork Mon Oct 12 08:39:39 2026 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Yann Dirson X-Patchwork-Id: 100417 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 AD400CA9ED0 for ; Mon, 12 Oct 2026 08:42:41 +0000 (UTC) Received: from prod-mta-13-01.swg-srv.net (prod-mta-13-01.swg-srv.net [185.255.28.34]) by mx.groups.io with SMTP id smtpd.msgproc02-g2.9061.1791794557135011156 for ; Mon, 12 Oct 2026 01:42:37 -0700 Authentication-Results: mx.groups.io; dkim=pass header.i=@vates.tech header.s=selector1 header.b=DaeftPHE; spf=pass (domain: swg.vates.tech, ip: 185.255.28.34, mailfrom: prod-mta-13.8631fc262581453bbf619ec5b2062170.1a12f47156500080d7@swg.vates.tech) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=vates.tech; q=dns/txt; s=selector1; bh=b9ziPedj3+ByUwsuveDFXL6pMqDjPEmogxwuzAOeeXo=; h=from:subject:date:message-id:to:cc:mime-version:content-type:in-reply-to:references:feedback-id; b=DaeftPHE1viScbrDyBmH8MGrPouB6oZArmMN1phTomXPgnzFkPguYGQ8rVY2AJwIYkZLXWdtM btLtdmmm/+K8LoDs5cZpSsLmY2BBddnvIqfC7kBZBDpNDjsENrBuG06yQreJ2rxDfP+5WvqF/X7 XPn+7DfXivwabtv9bKmxS+9AODWs3d+WW6Ox0BOw5kpc8JzUIseLcwu9piQwY0/FKeENxYQAy+o 0HbzEubDLf8ioAlt0J9Kerha651vY2sUI8RBfUaTchmtgJvdWgM7LPfMRXateCGldSukzdPy8+G ScZayXJ1+rLWpPFtcfmADgi0uVR0oDws1XOE1qLbri0A== Received: from mail2.vates.fr ([37.26.189.201] mail2.vates.fr) (Authenticated sender: 8631fc262581453bbf619ec5b2062170/smtp/7773de5a-2839-4720-82ee-e06722ae1d3e) by prod-mta-13-01.swg-srv.net (ZoneMTA - prod-mta-13) with ESMTPSA id 1a12f47156500080d7.001 for (version=TLSv1.3 cipher=TLS_AES_256_GCM_SHA384); Mon, 12 Oct 2026 08:42:30 +0000 X-Zone-Loop: 0fb947bbdc6ec62734cf16cefb0c1686ef1c3b4b2a73 x-campaign-type: default x-transaction-id: 1f7936b9-d2d6-48a4-a272-8215c4927ec2 x-swg-uid: 01-791b8940-42c1-4ed1-ac35-2ace2bbfcd4f X-Mailer: Sweego Message-ID: <1791794550.8631fc262581453bbf619ec5b2062170.1a12f47156500080d7@vates.tech> x-swg-bid: 1791794550.8631fc262581453bbf619ec5b2062170.1a12f47156500080d7 Feedback-ID: default:8631fc262581453bbf619ec5b2062170:Sweego x-campaign-id: default x-client-id: 8631fc262581453bbf619ec5b2062170 X-Originating-IP: [37.26.189.201] Received: from work-vates.gpn.vates.fr (88-161-245-20.subs.proxad.net [88.161.245.20]) (Authenticated sender: yann.dirson) by mail2.vates.fr (Postfix) with ESMTPSA id 77081829E5; Mon, 12 Oct 2026 10:42:29 +0200 (CEST) From: Yann Dirson To: bitbake-devel@lists.openembedded.org Cc: Yann Dirson , docs@lists.yoctoproject.org Subject: [PATCH v2 1/2] parse: add a (failing) test for a variable override with capital letters Date: Mon, 12 Oct 2026 10:39:39 +0200 In-Reply-To: <20261012084202.103724-1-yann.dirson@vates.tech> References: <20261007125138.59937-1-yann.dirson@vates.tech> <20261012084202.103724-1-yann.dirson@vates.tech> MIME-Version: 1.0 X-BM-Disclaimer: Yes X-Bm-Milter-Handled: 4ffbd6c1-ee69-4e1b-aabd-f977039bd3e2 X-Bm-Transport-Timestamp: 1791794549690 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 ; Mon, 12 Oct 2026 08:42:41 -0000 X-Groupsio-URL: https://lists.openembedded.org/g/bitbake-devel/message/20319 Signed-off-by: Yann Dirson --- lib/bb/tests/parse.py | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) diff --git a/lib/bb/tests/parse.py b/lib/bb/tests/parse.py index 6ac2137e0..7e7dbd923 100644 --- a/lib/bb/tests/parse.py +++ b/lib/bb/tests/parse.py @@ -150,6 +150,28 @@ exportD = "d" self.assertEqual(d.getVar("exportD"), "d") self.assertIsNone(d.getVarFlag("exportD", "export")) + mixedcase_pn_override = """ +PN = "${@bb.parse.vars_from_file(d.getVar('FILE', False), d)[0]}" +OVERRIDES = "pn-${PN}" +RPROVIDES:perl-ExtUtils-MakeMaker = "base" +RPROVIDES:perl-ExtUtils-MakeMaker:append:pn-ExtUtils-MakeMaker = " text" +""" + + @unittest.expectedFailure + def test_parse_mixedcase_pn_override(self): + # Recipes named after CPAN distributions have mixed-case PNs, so + # OVERRIDES contains a mixed-case pn-${PN} entry. An operation + # guarded by that override must still be applied. + with tempfile.TemporaryDirectory() as tempdir: + recipe = os.path.join(tempdir, "ExtUtils-MakeMaker.bb") + with open(recipe, "w") as f: + f.write(self.mixedcase_pn_override) + os.chdir(tempdir) + d = bb.parse.handle(recipe, self.d)[''] + self.assertEqual(d.getVar("PN"), "ExtUtils-MakeMaker") + self.assertIn("pn-ExtUtils-MakeMaker", d.getVar("OVERRIDES").split(":")) + self.assertEqual(d.getVar("RPROVIDES:perl-ExtUtils-MakeMaker"), "base text") + overridetest = """ RRECOMMENDS:${PN} = "a" RRECOMMENDS:${PN}:libc = "b" From patchwork Mon Oct 12 08:39:40 2026 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Yann Dirson X-Patchwork-Id: 100418 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 55799CA9ED1 for ; Mon, 12 Oct 2026 08:42:43 +0000 (UTC) Received: from prod-mta-13.swg-srv.net (prod-mta-13.swg-srv.net [185.255.28.18]) by mx.groups.io with SMTP id smtpd.msgproc02-g2.9059.1791794556983147932 for ; Mon, 12 Oct 2026 01:42:37 -0700 Authentication-Results: mx.groups.io; dkim=pass header.i=@vates.tech header.s=selector1 header.b=tMTSELu8; spf=pass (domain: swg.vates.tech, ip: 185.255.28.18, mailfrom: prod-mta-13.8631fc262581453bbf619ec5b2062170.1a12f4716e800080d7@swg.vates.tech) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=vates.tech; q=dns/txt; s=selector1; bh=zt4SNAn0vt3ZZjPPTimzAcPhvNbiJqdiW4u4m/nAT8c=; h=from:subject:date:message-id:to:cc:mime-version:content-type:in-reply-to:references:feedback-id; b=tMTSELu8l3BL3gfWZmOhap1sRYbhFTFooozOwsA2kieyiOoNw3KDK7lABS4EdAz3ClJuD+/Yq 35rZ/qlXKMzjcidP26u2u9wQEZRUm/7tVyAqXYAV252LugarHqZTiQzY5Wc6gKYmAA8OmLe46XM o8lhQN1jr6JoJaRSisjqz9U4s5qBVLX+LfrJmOxmJ2k5mkEWh+RtLM9FVwTWAPzhZx36VvaRwm8 K1t+s4Nx0tUOg7Q+IBrIN4zHV3TdHyg1RPYU2zRNZQMtd8UOAukNNRSkJkGlYSYePtvtvUro9u4 ZRVGSX/SRB9Vw6q88chHCrMaP1I8aBEuM8YVzH0kIiSQ== Received: from mail2.vates.fr ([37.26.189.201] mail2.vates.fr) (Authenticated sender: 8631fc262581453bbf619ec5b2062170/smtp/7773de5a-2839-4720-82ee-e06722ae1d3e) by prod-mta-13.swg-srv.net (ZoneMTA - prod-mta-13) with ESMTPSA id 1a12f4716e800080d7.001 for (version=TLSv1.3 cipher=TLS_AES_256_GCM_SHA384); Mon, 12 Oct 2026 08:42:30 +0000 X-Zone-Loop: 6ec53215f987eb791d31e8ab0a28afa34db83848ad32 x-campaign-type: default x-transaction-id: cbbbdc05-acdf-4009-a486-2e7cff752547 x-swg-uid: 01-d2454380-3f57-4046-89c0-e147215fa72e X-Mailer: Sweego Message-ID: <1791794550.8631fc262581453bbf619ec5b2062170.1a12f4716e800080d7@vates.tech> x-swg-bid: 1791794550.8631fc262581453bbf619ec5b2062170.1a12f4716e800080d7 Feedback-ID: default:8631fc262581453bbf619ec5b2062170:Sweego x-campaign-id: default x-client-id: 8631fc262581453bbf619ec5b2062170 X-Originating-IP: [37.26.189.201] Received: from work-vates.gpn.vates.fr (88-161-245-20.subs.proxad.net [88.161.245.20]) (Authenticated sender: yann.dirson) by mail2.vates.fr (Postfix) with ESMTPSA id D5FE3829EF; Mon, 12 Oct 2026 10:42:29 +0200 (CEST) From: Yann Dirson To: bitbake-devel@lists.openembedded.org Cc: Yann Dirson , docs@lists.yoctoproject.org Subject: [PATCH v2 2/2] data_smart: restore the ability to use capital letters Date: Mon, 12 Oct 2026 10:39:40 +0200 In-Reply-To: <20261012084202.103724-1-yann.dirson@vates.tech> References: <20261007125138.59937-1-yann.dirson@vates.tech> <20261012084202.103724-1-yann.dirson@vates.tech> MIME-Version: 1.0 X-BM-Disclaimer: Yes X-Bm-Milter-Handled: 4ffbd6c1-ee69-4e1b-aabd-f977039bd3e2 X-Bm-Transport-Timestamp: 1791794550067 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 ; Mon, 12 Oct 2026 08:42:43 -0000 X-Groupsio-URL: https://lists.openembedded.org/g/bitbake-devel/message/20318 This reverts commit 6eb56624e6d8dc1944e559b4f6584bfe66f566ba. That commit was meant as an ad-hoc band-aid when "_" was used as override prefix, and it explicitly blocked capital letters from being usable in the overrides. There is no reason to keep it now we use ":" as prefix. Signed-off-by: Yann Dirson --- lib/bb/data_smart.py | 2 +- lib/bb/tests/parse.py | 1 - 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/lib/bb/data_smart.py b/lib/bb/data_smart.py index 8aa7c1f99..3c149239f 100644 --- a/lib/bb/data_smart.py +++ b/lib/bb/data_smart.py @@ -31,7 +31,7 @@ from bb.COW import COWDictBase logger = logging.getLogger("BitBake.Data") __setvar_keyword__ = [":append", ":prepend", ":remove"] -__setvar_regexp__ = re.compile(r'(?P.*?)(?P:append|:prepend|:remove)(:(?P[^A-Z]*))?$') +__setvar_regexp__ = re.compile(r'(?P.*?)(?P:append|:prepend|:remove)(:(?P.*))?$') __expand_var_regexp__ = re.compile(r"\${[a-zA-Z0-9\-_+./~:]+}") __expand_python_regexp__ = re.compile(r"\${@(?:{.*?}|.)+?}") __whitespace_split__ = re.compile(r'(\s)') diff --git a/lib/bb/tests/parse.py b/lib/bb/tests/parse.py index 7e7dbd923..9fc094b16 100644 --- a/lib/bb/tests/parse.py +++ b/lib/bb/tests/parse.py @@ -157,7 +157,6 @@ RPROVIDES:perl-ExtUtils-MakeMaker = "base" RPROVIDES:perl-ExtUtils-MakeMaker:append:pn-ExtUtils-MakeMaker = " text" """ - @unittest.expectedFailure def test_parse_mixedcase_pn_override(self): # Recipes named after CPAN distributions have mixed-case PNs, so # OVERRIDES contains a mixed-case pn-${PN} entry. An operation From patchwork Tue Oct 13 13:52:16 2026 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Yann Dirson X-Patchwork-Id: 100609 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 A241BCC6B0F for ; Tue, 13 Oct 2026 13:53:15 +0000 (UTC) Received: from prod-mta-13.swg-srv.net (prod-mta-13.swg-srv.net [185.255.28.18]) by mx.groups.io with SMTP id smtpd.msgproc02-g2.7763.1791899585972647445 for ; Tue, 13 Oct 2026 06:53:07 -0700 Authentication-Results: mx.groups.io; dkim=pass header.i=@vates.tech header.s=selector1 header.b=ESobr9HJ; spf=pass (domain: swg.vates.tech, ip: 185.255.28.18, mailfrom: prod-mta-13.8631fc262581453bbf619ec5b2062170.1a13589bf9d0008425@swg.vates.tech) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=vates.tech; q=dns/txt; s=selector1; bh=N92dQ6BeTsoF0wtdsp6xZvZjrO8RXJ1spEHSc1n2IjY=; h=from:subject:date:message-id:to:cc:mime-version:content-type:in-reply-to:references:feedback-id; b=ESobr9HJFwSkO3XYW/DiLlqQrUUwRifBW3XSTtkywNJp6JFwoQcu7EpEcyvGZ8RJQXedFg4qg XdYzAGAmBAOqLpaEc69j/V3uaHaiAe03OCc0h4xar2McbXoGOGItM9jsowMrDPTIyUKswELuAGO Vq1HhQlIyUs2KAksl/SBtFmhjiyHT2+o+MaDTo42Z9KNv0+B4YshnlQQ4i76pA5Fme49nKIPBxM 6bU8IMRPwDtNPOa/8B84bickMKe5p2D2INpb83yL1y7EnPCjT5vzB67Qonefa6vPQviSh0H6jHC gLqiGIRzPAO4fvfixlze1Fu6YiB+N0CG058uN8FRtmuw== Received: from mail2.vates.fr ([37.26.189.201] mail2.vates.fr) (Authenticated sender: 8631fc262581453bbf619ec5b2062170/smtp/7773de5a-2839-4720-82ee-e06722ae1d3e) by prod-mta-13.swg-srv.net (ZoneMTA - prod-mta-13) with ESMTPSA id 1a13589bf9d0008425.001 for (version=TLSv1.3 cipher=TLS_AES_256_GCM_SHA384); Tue, 13 Oct 2026 13:53:02 +0000 X-Zone-Loop: ee5ad23b3d089a50079353ce2ff358538ff31c328825 x-campaign-type: default x-transaction-id: 4a43ec7e-c50d-4287-8dbf-4942339b1179 x-swg-uid: 01-e5fe1479-7a7c-4430-941b-614724d02920 X-Mailer: Sweego Message-ID: <1791899582.8631fc262581453bbf619ec5b2062170.1a13589bf9d0008425@vates.tech> x-swg-bid: 1791899582.8631fc262581453bbf619ec5b2062170.1a13589bf9d0008425 Feedback-ID: default:8631fc262581453bbf619ec5b2062170:Sweego x-campaign-id: default x-client-id: 8631fc262581453bbf619ec5b2062170 X-Originating-IP: [37.26.189.201] Received: from work-vates.gpn.vates.fr (ip-185-175-148-127.naitways.net [185.175.148.127]) (Authenticated sender: yann.dirson) by mail2.vates.fr (Postfix) with ESMTPSA id DAB6C82B55; Tue, 13 Oct 2026 15:53:01 +0200 (CEST) From: Yann Dirson To: bitbake-devel@lists.openembedded.org Cc: Yann Dirson , docs@lists.yoctoproject.org Subject: [PATCH v3 3/4] parse: add a (failing) test for a variable override with capital letters Date: Tue, 13 Oct 2026 15:52:16 +0200 In-Reply-To: <20261013135251.168428-1-yann.dirson@vates.tech> References: <20261012084202.103724-1-yann.dirson@vates.tech> <20261013135251.168428-1-yann.dirson@vates.tech> MIME-Version: 1.0 X-BM-Disclaimer: Yes X-Bm-Milter-Handled: 4ffbd6c1-ee69-4e1b-aabd-f977039bd3e2 X-Bm-Transport-Timestamp: 1791899581949 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 ; Tue, 13 Oct 2026 13:53:15 -0000 X-Groupsio-URL: https://lists.openembedded.org/g/bitbake-devel/message/20334 Signed-off-by: Yann Dirson --- lib/bb/tests/parse.py | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) diff --git a/lib/bb/tests/parse.py b/lib/bb/tests/parse.py index 6ac2137e0..7e7dbd923 100644 --- a/lib/bb/tests/parse.py +++ b/lib/bb/tests/parse.py @@ -150,6 +150,28 @@ exportD = "d" self.assertEqual(d.getVar("exportD"), "d") self.assertIsNone(d.getVarFlag("exportD", "export")) + mixedcase_pn_override = """ +PN = "${@bb.parse.vars_from_file(d.getVar('FILE', False), d)[0]}" +OVERRIDES = "pn-${PN}" +RPROVIDES:perl-ExtUtils-MakeMaker = "base" +RPROVIDES:perl-ExtUtils-MakeMaker:append:pn-ExtUtils-MakeMaker = " text" +""" + + @unittest.expectedFailure + def test_parse_mixedcase_pn_override(self): + # Recipes named after CPAN distributions have mixed-case PNs, so + # OVERRIDES contains a mixed-case pn-${PN} entry. An operation + # guarded by that override must still be applied. + with tempfile.TemporaryDirectory() as tempdir: + recipe = os.path.join(tempdir, "ExtUtils-MakeMaker.bb") + with open(recipe, "w") as f: + f.write(self.mixedcase_pn_override) + os.chdir(tempdir) + d = bb.parse.handle(recipe, self.d)[''] + self.assertEqual(d.getVar("PN"), "ExtUtils-MakeMaker") + self.assertIn("pn-ExtUtils-MakeMaker", d.getVar("OVERRIDES").split(":")) + self.assertEqual(d.getVar("RPROVIDES:perl-ExtUtils-MakeMaker"), "base text") + overridetest = """ RRECOMMENDS:${PN} = "a" RRECOMMENDS:${PN}:libc = "b" From patchwork Tue Oct 13 13:52:17 2026 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Yann Dirson X-Patchwork-Id: 100610 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 92978CC6B08 for ; Tue, 13 Oct 2026 13:53:15 +0000 (UTC) Received: from prod-mta-13.swg-srv.net (prod-mta-13.swg-srv.net [185.255.28.18]) by mx.groups.io with SMTP id smtpd.msgproc01-g2.7659.1791899589072726421 for ; Tue, 13 Oct 2026 06:53:09 -0700 Authentication-Results: mx.groups.io; dkim=pass header.i=@vates.tech header.s=selector1 header.b=Yg+CWV0q; spf=pass (domain: swg.vates.tech, ip: 185.255.28.18, mailfrom: prod-mta-13.8631fc262581453bbf619ec5b2062170.1a13589c05b0008425@swg.vates.tech) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=vates.tech; q=dns/txt; s=selector1; bh=6DW5YjpdgSc5cObx6cCc2zJQ0pSiWjHzYt1yEuct0xU=; h=from:subject:date:message-id:to:cc:mime-version:content-type:in-reply-to:references:feedback-id; b=Yg+CWV0qDDwZBRYoKdGZgbw+PlrfYBabgNQlv+3drRkmxpjoPvA0Ew2te3n/gsNQ/HHMnlWT+ p6++8Usfr8wf9qHxkRyetB7L9z6jaS/ohKegJkfI5eBRs2WXf/iucH15DkRhzwb3h8qHVDoBmbe Udi/TMRMaaDxi5LnBpJMveNdatDgnAVAKP1g8W9M9uI1VJKBkJ1QDiBQIOxvQPcUxP6paoI3azU tabJnCM41KL2+t8GkexVUnfFiMam5zBAvxHafoT35iHVslaIkmDmlALGnwoZRpQis+mGIc2w/IX VMfyrzWSEE8OcZC2X8GoB8xXkRxUCLFOXT4XvsuzXRyw== Received: from mail2.vates.fr ([37.26.189.201] mail2.vates.fr) (Authenticated sender: 8631fc262581453bbf619ec5b2062170/smtp/7773de5a-2839-4720-82ee-e06722ae1d3e) by prod-mta-13.swg-srv.net (ZoneMTA - prod-mta-13) with ESMTPSA id 1a13589c05b0008425.001 for (version=TLSv1.3 cipher=TLS_AES_256_GCM_SHA384); Tue, 13 Oct 2026 13:53:02 +0000 X-Zone-Loop: 22d618f4378e2d66d2be0609c0750662f82ec1b86fae x-campaign-type: default x-transaction-id: ba1d4fb9-6f2d-4ee0-b632-ac52153792d2 x-swg-uid: 01-efa228e4-2e8d-4d60-a1d5-606f1f3dd255 X-Mailer: Sweego Message-ID: <1791899582.8631fc262581453bbf619ec5b2062170.1a13589c05b0008425@vates.tech> x-swg-bid: 1791899582.8631fc262581453bbf619ec5b2062170.1a13589c05b0008425 Feedback-ID: default:8631fc262581453bbf619ec5b2062170:Sweego x-campaign-id: default x-client-id: 8631fc262581453bbf619ec5b2062170 X-Originating-IP: [37.26.189.201] Received: from work-vates.gpn.vates.fr (ip-185-175-148-127.naitways.net [185.175.148.127]) (Authenticated sender: yann.dirson) by mail2.vates.fr (Postfix) with ESMTPSA id 0D8BE82B59; Tue, 13 Oct 2026 15:53:02 +0200 (CEST) From: Yann Dirson To: bitbake-devel@lists.openembedded.org Cc: Yann Dirson , docs@lists.yoctoproject.org Subject: [PATCH v3 4/4] data_smart: restore the ability to use capital letters Date: Tue, 13 Oct 2026 15:52:17 +0200 In-Reply-To: <20261013135251.168428-1-yann.dirson@vates.tech> References: <20261012084202.103724-1-yann.dirson@vates.tech> <20261013135251.168428-1-yann.dirson@vates.tech> MIME-Version: 1.0 X-BM-Disclaimer: Yes X-Bm-Milter-Handled: 4ffbd6c1-ee69-4e1b-aabd-f977039bd3e2 X-Bm-Transport-Timestamp: 1791899582111 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 ; Tue, 13 Oct 2026 13:53:15 -0000 X-Groupsio-URL: https://lists.openembedded.org/g/bitbake-devel/message/20335 This reverts commit 6eb56624e6d8dc1944e559b4f6584bfe66f566ba. That commit was meant as an ad-hoc band-aid when "_" was used as override prefix, and it explicitly blocked capital letters from being usable in the overrides. There is no reason to keep it now we use ":" as prefix. Signed-off-by: Yann Dirson --- lib/bb/data_smart.py | 2 +- lib/bb/tests/parse.py | 1 - 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/lib/bb/data_smart.py b/lib/bb/data_smart.py index a6e4bddb6..a95c08425 100644 --- a/lib/bb/data_smart.py +++ b/lib/bb/data_smart.py @@ -31,7 +31,7 @@ from bb.COW import COWDictBase logger = logging.getLogger("BitBake.Data") __setvar_keyword__ = [":append", ":prepend", ":remove"] -__setvar_regexp__ = re.compile(r'(?P.*?)(?P:append|:prepend|:remove)(:(?P[^A-Z$]*))?$') +__setvar_regexp__ = re.compile(r'(?P.*?)(?P:append|:prepend|:remove)(:(?P[^$]*))?$') __expand_var_regexp__ = re.compile(r"\${[a-zA-Z0-9\-_+./~:]+}") __expand_python_regexp__ = re.compile(r"\${@(?:{.*?}|.)+?}") __whitespace_split__ = re.compile(r'(\s)') diff --git a/lib/bb/tests/parse.py b/lib/bb/tests/parse.py index 7e7dbd923..9fc094b16 100644 --- a/lib/bb/tests/parse.py +++ b/lib/bb/tests/parse.py @@ -157,7 +157,6 @@ RPROVIDES:perl-ExtUtils-MakeMaker = "base" RPROVIDES:perl-ExtUtils-MakeMaker:append:pn-ExtUtils-MakeMaker = " text" """ - @unittest.expectedFailure def test_parse_mixedcase_pn_override(self): # Recipes named after CPAN distributions have mixed-case PNs, so # OVERRIDES contains a mixed-case pn-${PN} entry. An operation