From patchwork Mon Nov 30 17:55:48 2026 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Tim Orling X-Patchwork-Id: 106584 Received: from mail-pl1-f176.google.com (mail-pl1-f176.google.com [209.85.214.176]) by mx.groups.io with SMTP id smtpd.msgproc01-g2.38195.1796061438812544337 for ; Mon, 30 Nov 2026 09:57:18 -0800 Authentication-Results: mx.groups.io; dkim=pass header.i=@konsulko.com header.s=google header.b=NtWlRAZl; spf=pass (domain: konsulko.com, ip: 209.85.214.176, mailfrom: tim.orling@konsulko.com) Received: by mail-pl1-f176.google.com with SMTP id d9443c01a7336-2f0464dd6b6so65586315ad.1 for ; Mon, 30 Nov 2026 09:57:18 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=konsulko.com; s=google; t=1796061438; x=1796666238; darn=lists.openembedded.org; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to:content-type; bh=fkA7BJ39XhtETCLJ1gcJApUMD4fnqsEg00oMr3hcaZc=; b=NtWlRAZlw6NC/+hZUBdyy+ooUIf9toErxCAF6aqRPhxkHP+SH61h6hnQpoCYHy0bYh /YH1TE5qvwsEQfz7vynaJPkLpMOD6oFN/pUI9sPCHVhwEdvL4Z4un9awwq2alWxGqnJ+ aiMD+k5afnFMnVBmO+/hrBY09xUQuLp1C+3u4= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20260707; t=1796061438; x=1796666238; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-gg:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to:content-type; bh=fkA7BJ39XhtETCLJ1gcJApUMD4fnqsEg00oMr3hcaZc=; b=leOJ9gG74+3dhUzRJcZypIbVqFnbnFTRcH4/t7OIU92J4PF/Lfy7W0yO6Hk3DyMlQj /W9iHEpZBCSSHzLfGcyYE7bFTPZS5T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g5 uEmeoZLgXK0+UotfM9KGODbZcRV4O+JhAVDPW3AY7+TAvvdsBUj+ujTj0+7NScqt61F8= X-Received: by 2002:a17:903:4586:b0:2ef:e547:e0cd with SMTP id d9443c01a7336-2f03f1707d4mr374364155ad.31.1796061437503; Mon, 30 Nov 2026 09:57:17 -0800 (PST) Return-Path: Received: from localhost (c-24-20-171-118.hsd1.or.comcast.net. [24.20.171.118]) by smtp.gmail.com with ESMTPSA id d9443c01a7336-2f03f105b76sm171347505ad.50.2026.11.30.09.57.16 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 30 Nov 2026 09:57:17 -0800 (PST) From: Tim Orling To: openembedded-core@lists.openembedded.org Cc: Alejandro Hernandez , Tim Orling Subject: [PATCH v2 1/2] picolibc: upgrade 1.8.11 -> 1.8.12 Date: Mon, 30 Nov 2026 09:55:48 -0800 Message-ID: <20261130175714.32663-1-tim.orling@konsulko.com> X-Mailer: git-send-email 2.56.1 MIME-Version: 1.0 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 ; Mon, 30 Nov 2026 17:57:20 -0000 X-Groupsio-URL: https://lists.openembedded.org/g/openembedded-core/message/251640 Upstream reworked the specs generation in meson.build and added libgcc -L paths (libgccdir option), so avoid_polluting_cross_directories.patch is rebased and the -sysroot arm extended to the new libgcc and multilib libgcc paths; every specs_option_format() call now takes four arguments. License-Update: COPYING.picolibc lists newly covered files and renumbers stanzas; license families unchanged. AI-Generated: Uses Claude Code (Claude Opus 5.5) Signed-off-by: Tim Orling --- meta/recipes-core/picolibc/picolibc.inc | 6 +- .../avoid_polluting_cross_directories.patch | 198 ++++++++++-------- 2 files changed, 117 insertions(+), 87 deletions(-) diff --git a/meta/recipes-core/picolibc/picolibc.inc b/meta/recipes-core/picolibc/picolibc.inc index 750098ca60..4e93136d64 100644 --- a/meta/recipes-core/picolibc/picolibc.inc +++ b/meta/recipes-core/picolibc/picolibc.inc @@ -7,12 +7,12 @@ SECTION = "libs" # are GPLv2 and GeneratePicolibcCrossFile.sh is AGPL3 but not part of the artifacts. LICENSE = "BSD-2-Clause AND BSD-3-Clause" LIC_FILES_CHKSUM = " \ - file://COPYING.picolibc;md5=e44132dded508048efb22b15ccd40d7d \ + file://COPYING.picolibc;md5=3e890b5a298befbadf25f805ad23f341 \ " -BASEVER = "1.8.11" +BASEVER = "1.8.12" PV = "${BASEVER}+git" SRC_URI = "git://github.com/picolibc/picolibc.git;protocol=https;branch=main" -SRCREV = "f7edb0869e64b9d687f46961adeef7154921fe92" +SRCREV = "2ae376c6cdf4fef90ca2388ecf7a07457fa63cff" B = "${WORKDIR}/build" diff --git a/meta/recipes-core/picolibc/picolibc/avoid_polluting_cross_directories.patch b/meta/recipes-core/picolibc/picolibc/avoid_polluting_cross_directories.patch index 54f17a1b62..46edff3eec 100644 --- a/meta/recipes-core/picolibc/picolibc/avoid_polluting_cross_directories.patch +++ b/meta/recipes-core/picolibc/picolibc/avoid_polluting_cross_directories.patch @@ -28,111 +28,141 @@ first place. Signed-off-by: Alejandro Enedino Hernandez Samaniego --- - meson.build | 31 +++++++++++++++++++++++++------ - 1 file changed, 25 insertions(+), 6 deletions(-) + meson.build | 41 +++++++++++++++++++++++++++++++++-------- + 1 file changed, 33 insertions(+), 8 deletions(-) diff --git a/meson.build b/meson.build -index 3323741c2..0df0768df 100644 +index 93daa5dae..86f15441b 100644 --- a/meson.build +++ b/meson.build -@@ -622,12 +622,13 @@ crt0_expr = '%{-crt0=*:crt0-%*%O; :crt0%O}' - # - picolibc_prefix_format = '-picolibc-prefix=*:@0@' - picolibc_buildtype_format = '-picolibc-buildtype=*:@0@' -+sysroot_format = '-sysroot=*:@0@' - gen_format = '@0@' - - # - # How to glue the three options together - # --specs_option_format = '%{@0@; @1@; :@2@}' -+specs_option_format = '%{@0@; @1@; @2@; :@3@}' - - # - # Build the -isystem value -@@ -639,10 +640,13 @@ isystem_prefix = picolibc_prefix_format.format(prefix_include_dir) - buildtype_include_dir = specs_prefix_format.format(get_option('includedir') / '%*') - isystem_buildtype = picolibc_buildtype_format.format(buildtype_include_dir) - -+sysroot_include_dir = '%*' -+isystem_sysroot = sysroot_format.format(sysroot_include_dir) +@@ -2057,12 +2057,13 @@ else + # + picolibc_prefix_format = '-picolibc-prefix=*:@0@' + picolibc_buildtype_format = '-picolibc-buildtype=*:@0@' ++ sysroot_format = '-sysroot=*:@0@' + gen_format = '@0@' + + # + # How to glue the three options together + # +- specs_option_format = '%{@0@; @1@; :@2@}' ++ specs_option_format = '%{@0@; @1@; @2@; :@3@}' + + # + # Build the -isystem value +@@ -2074,10 +2075,13 @@ else + buildtype_include_dir = specs_prefix_format.format(get_option('includedir') / '%*') + isystem_buildtype = picolibc_buildtype_format.format(buildtype_include_dir) + ++ sysroot_include_dir = '%*' ++ isystem_sysroot = sysroot_format.format(sysroot_include_dir) + - gen_include_dir = specs_prefix_format.format(get_option('includedir')) - isystem_gen = gen_format.format(gen_include_dir) + gen_include_dir = specs_prefix_format.format(get_option('includedir')) + isystem_gen = gen_format.format(gen_include_dir) --specs_isystem = '-isystem ' + specs_option_format.format(isystem_prefix, isystem_buildtype, isystem_gen) -+specs_isystem = '-isystem ' + specs_option_format.format(isystem_prefix, isystem_buildtype, isystem_sysroot, isystem_gen) +- specs_isystem = '-isystem ' + specs_option_format.format(isystem_prefix, isystem_buildtype, isystem_gen) ++ specs_isystem = '-isystem ' + specs_option_format.format(isystem_prefix, isystem_buildtype, isystem_sysroot, isystem_gen) - gcc_dumpmachine = run_command(cc.cmd_array() + ['-dumpmachine'], check : true).stdout().split('\n')[0] + gcc_dumpmachine = run_command(cc.cmd_array() + ['-dumpmachine'], check : true).stdout().split('\n')[0] -@@ -651,7 +655,10 @@ cxxconfig_isystem_prefix = isystem_prefix / cxxconfig_path_postfix - cxxconfig_isystem_buildtype = isystem_buildtype / cxxconfig_path_postfix - cxxconfig_isystem_gen = isystem_gen / cxxconfig_path_postfix +@@ -2086,7 +2090,10 @@ else + cxxconfig_isystem_buildtype = isystem_buildtype / cxxconfig_path_postfix + cxxconfig_isystem_gen = isystem_gen / cxxconfig_path_postfix --specs_isystem = specs_isystem + ' -isystem ' + specs_option_format.format(cxxconfig_isystem_prefix, cxxconfig_isystem_buildtype, cxxconfig_isystem_gen) -+sysroot_cxx_dir = '%*' -+cxx_sysroot = sysroot_format.format(sysroot_cxx_dir) +- specs_isystem = specs_isystem + ' -isystem ' + specs_option_format.format(cxxconfig_isystem_prefix, cxxconfig_isystem_buildtype, cxxconfig_isystem_gen) ++ sysroot_cxx_dir = '%*' ++ cxx_sysroot = sysroot_format.format(sysroot_cxx_dir) + -+specs_isystem = specs_isystem + ' -isystem ' + specs_option_format.format(cxxconfig_isystem_prefix, cxxconfig_isystem_buildtype, cxx_sysroot, cxxconfig_isystem_gen) ++ specs_isystem = specs_isystem + ' -isystem ' + specs_option_format.format(cxxconfig_isystem_prefix, cxxconfig_isystem_buildtype, cxx_sysroot, cxxconfig_isystem_gen) - # - # Build the non-multilib -L value -@@ -663,10 +670,13 @@ lib_prefix = picolibc_prefix_format.format(prefix_lib_dir) - buildtype_lib_dir = specs_prefix_format.format(get_option('libdir') / '%*') - lib_buildtype = picolibc_buildtype_format.format(buildtype_lib_dir) + # + # Build the non-multilib -L value +@@ -2098,10 +2105,13 @@ else + buildtype_lib_dir = specs_prefix_format.format(get_option('libdir') / '%*') + lib_buildtype = picolibc_buildtype_format.format(buildtype_lib_dir) -+sysroot_lib_dir = '%*' -+lib_sysroot = sysroot_format.format(sysroot_lib_dir) ++ sysroot_lib_dir = '%*' ++ lib_sysroot = sysroot_format.format(sysroot_lib_dir) + - gen_lib_dir = specs_prefix_format.format(get_option('libdir')) - lib_gen = gen_format.format(gen_lib_dir) + gen_lib_dir = specs_prefix_format.format(get_option('libdir')) + lib_gen = gen_format.format(gen_lib_dir) --specs_libpath = '-L' + specs_option_format.format(lib_prefix, lib_buildtype, lib_gen) -+specs_libpath = '-L' + specs_option_format.format(lib_prefix, lib_buildtype, lib_sysroot, lib_gen) +- specs_libpath = '-L' + specs_option_format.format(lib_prefix, lib_buildtype, lib_gen) ++ specs_libpath = '-L' + specs_option_format.format(lib_prefix, lib_buildtype, lib_sysroot, lib_gen) - # - # Build the non-multilib *startfile options -@@ -678,6 +688,9 @@ crt0_prefix = picolibc_prefix_format.format(prefix_crt0_path) - buildtype_crt0_path = specs_prefix_format.format(get_option('libdir') / '%*' / crt0_expr) - crt0_buildtype = picolibc_buildtype_format.format(buildtype_crt0_path) + # + # Build the non-multilib libgcc -L value +@@ -2119,10 +2129,13 @@ else + buildtype_libgcc_dir = specs_prefix_format.format(libgcc_dir / '%*') + libgcc_buildtype = picolibc_buildtype_format.format(buildtype_libgcc_dir) -+sysroot_crt0_path = '%*' + '/' + get_option('libdir') + '/' + '%*' + '/' + crt0_expr -+crt0_sysroot = picolibc_buildtype_format.format(sysroot_crt0_path) ++ sysroot_libgcc_dir = '%*' ++ libgcc_sysroot = sysroot_format.format(sysroot_libgcc_dir) + - gen_crt0_path = specs_prefix_format.format(get_option('libdir') / crt0_expr) - crt0_gen = gen_format.format(gen_crt0_path) + gen_libgcc_dir = specs_prefix_format.format(libgcc_dir) + libgcc_gen = gen_format.format(gen_libgcc_dir) -@@ -695,10 +708,13 @@ if enable_multilib - buildtype_multilib_dir = specs_prefix_format.format(get_option('libdir') / '%*/%M') - multilib_buildtype = picolibc_buildtype_format.format(buildtype_multilib_dir) +- specs_libgccpath = '-L' + specs_option_format.format(libgcc_prefix, libgcc_buildtype, libgcc_gen) ++ specs_libgccpath = '-L' + specs_option_format.format(libgcc_prefix, libgcc_buildtype, libgcc_sysroot, libgcc_gen) -+ sysroot_multilib_dir = '%*' + '/' + get_option('libdir') + '/' + '%*/%M' -+ multilib_sysroot = sysroot_format.format(sysroot_multilib_dir) -+ - gen_multilib_dir = specs_prefix_format.format(get_option('libdir') / '%M') - multilib_gen = gen_format.format(gen_multilib_dir) + # + # Build the non-multilib *startfile options +@@ -2134,6 +2147,9 @@ else + buildtype_crt0_path = specs_prefix_format.format(get_option('libdir') / '%*' / crt0_expr) + crt0_buildtype = picolibc_buildtype_format.format(buildtype_crt0_path) + ++ sysroot_crt0_path = '%*' + '/' + get_option('libdir') + '/' + '%*' + '/' + crt0_expr ++ crt0_sysroot = picolibc_buildtype_format.format(sysroot_crt0_path) ++ + gen_crt0_path = specs_prefix_format.format(get_option('libdir') / crt0_expr) + crt0_gen = gen_format.format(gen_crt0_path) -- specs_multilibpath = '-L' + specs_option_format.format(multilib_prefix, multilib_buildtype, multilib_gen) -+ specs_multilibpath = '-L' + specs_option_format.format(multilib_prefix, multilib_buildtype, multilib_sysroot, multilib_gen) +@@ -2151,10 +2167,13 @@ else + buildtype_multilib_dir = specs_prefix_format.format(get_option('libdir') / '%*/%M') + multilib_buildtype = picolibc_buildtype_format.format(buildtype_multilib_dir) ++ sysroot_multilib_dir = '%*' + '/' + get_option('libdir') + '/' + '%*/%M' ++ multilib_sysroot = sysroot_format.format(sysroot_multilib_dir) ++ + gen_multilib_dir = specs_prefix_format.format(get_option('libdir') / '%M') + multilib_gen = gen_format.format(gen_multilib_dir) + +- specs_multilibpath = '-L' + specs_option_format.format(multilib_prefix, multilib_buildtype, multilib_gen) ++ specs_multilibpath = '-L' + specs_option_format.format(multilib_prefix, multilib_buildtype, multilib_sysroot, multilib_gen) + + # + # Build the multilib libgcc -L value +@@ -2165,10 +2184,13 @@ else + buildtype_multilibgcc_dir = specs_prefix_format.format(libgcc_dir / '%*/%M') + multilibgcc_buildtype = picolibc_buildtype_format.format(buildtype_multilibgcc_dir) + ++ sysroot_multilibgcc_dir = '%*' ++ multilibgcc_sysroot = sysroot_format.format(sysroot_multilibgcc_dir) ++ + gen_multilibgcc_dir = specs_prefix_format.format(libgcc_dir / '%M') + multilibgcc_gen = gen_format.format(gen_multilibgcc_dir) + +- specs_multilibgccpath = '-L' + specs_option_format.format(multilibgcc_prefix, multilibgcc_buildtype, multilibgcc_gen) ++ specs_multilibgccpath = '-L' + specs_option_format.format(multilibgcc_prefix, multilibgcc_buildtype, multilibgcc_sysroot, multilibgcc_gen) + + # + # Prepend the multilib -L option to the non-multilib option +@@ -2185,6 +2207,9 @@ else + buildtype_multilib_crt0_path = specs_prefix_format.format(get_option('libdir') / '%*/%M' / crt0_expr) + crt0_buildtype = picolibc_buildtype_format.format(buildtype_multilib_crt0_path) + ++ sysroot_multilib_crt0_path = '%*' + prefix + '/' + get_option('libdir') + '/' + '/%M' + '/' + crt0_expr ++ crt0_sysroot = sysroot_format.format(sysroot_multilib_crt0_path) ++ + gen_multilib_crt0_path = specs_prefix_format.format(get_option('libdir') / '%M' / crt0_expr) + crt0_gen = gen_format.format(gen_multilib_crt0_path) + endif +@@ -2194,7 +2219,7 @@ else + # above. As there's only one value, it's either the + # multilib path or the non-multilib path # - # Prepend the multilib -L option to the non-multilib option -@@ -714,6 +730,9 @@ if enable_multilib - buildtype_multilib_crt0_path = specs_prefix_format.format(get_option('libdir') / '%*/%M' / crt0_expr) - crt0_buildtype = picolibc_buildtype_format.format(buildtype_multilib_crt0_path) - -+ sysroot_multilib_crt0_path = '%*' + prefix + '/' + get_option('libdir') + '/' + '/%M' + '/' + crt0_expr -+ crt0_sysroot = sysroot_format.format(sysroot_multilib_crt0_path) -+ - gen_multilib_crt0_path = specs_prefix_format.format(get_option('libdir') / '%M' / crt0_expr) - crt0_gen = gen_format.format(gen_multilib_crt0_path) - endif -@@ -723,7 +742,7 @@ endif - # above. As there's only one value, it's either the - # multilib path or the non-multilib path - # --specs_startfile = specs_option_format.format(crt0_prefix, crt0_buildtype, crt0_gen) -+specs_startfile = specs_option_format.format(crt0_prefix, crt0_buildtype, crt0_sysroot, crt0_gen) +- specs_startfile = specs_option_format.format(crt0_prefix, crt0_buildtype, crt0_gen) ++ specs_startfile = specs_option_format.format(crt0_prefix, crt0_buildtype, crt0_sysroot, crt0_gen) + endif - specs_data = configuration_data()