From patchwork Mon Mar 30 09:40:11 2026 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Adam Duskett X-Patchwork-Id: 84794 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 AC676FB3CF7 for ; Mon, 30 Mar 2026 09:40:28 +0000 (UTC) Received: from mail-ej1-f65.google.com (mail-ej1-f65.google.com [209.85.218.65]) by mx.groups.io with SMTP id smtpd.msgproc02-g2.47241.1774863621472456197 for ; Mon, 30 Mar 2026 02:40:21 -0700 Authentication-Results: mx.groups.io; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=r7C84D8G; spf=pass (domain: amarulasolutions.com, ip: 209.85.218.65, mailfrom: adam.duskett@amarulasolutions.com) Received: by mail-ej1-f65.google.com with SMTP id a640c23a62f3a-b982518b5fbso47938866b.2 for ; Mon, 30 Mar 2026 02:40:21 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=amarulasolutions.com; s=google; t=1774863620; x=1775468420; darn=lists.openembedded.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=/sTtqbeZbMjPZSH/9nVCt5tEt48zH3omv+N5HwcY210=; b=r7C84D8Gx0pt87oINwHqtZ9HT2kLxTT41f0Lrh0tRI/WfVXuUKBT0+fbaCRxSJa0Sz Ky2JfyWlQ9f5tepgtzUE5zk5PdtTfPcEi8bmfSgYJPz0gYLNm0eWpQzKmMvRn6hUIwey l8MQQD61WU7stQX1Wjyk1rfv/GLCSrbwnKvRo= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1774863620; x=1775468420; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-gg:x-gm-message-state:from :to:cc:subject:date:message-id:reply-to; bh=/sTtqbeZbMjPZSH/9nVCt5tEt48zH3omv+N5HwcY210=; b=PQ7xwqA8dieEzkjGcZHg+4AjG/1h65coAAz81LqosFv5UFRe3kiKkVx2vDqKPhuoZP 6kWzifq/JBSx1uPBSHvZDIBfSi6AoqOGg9qbOm2ImjDl0So+vEIefbBnA76tT6ONcF2h oZnoDckGmawEfNRZSJPYXvfMM2HrptM4l64ajdXFrKnuO7LB+Z3f2rTcKrhsJgxAjKNd Ka2A++5/RMHoE6EH2UbWRhPyTR93Fh4HZGKHtbK6wi0s5F+eaE9XLBugppV4HCurolvs +w9AexDctfauaZZ9O1gcUv1HKZfQW6d7ZSe3pN8+6EPipc8zwYd6HWVdEzLoklyvQApA rwuQ== X-Gm-Message-State: AOJu0Yx+Dl0wkrht7Qhfa2xXx6yoFHCDBftyJmDnaqXIB8MDXV6XGkdD UBk6cHI6yPkRhd5e38p6p90AZSGUFNhrJBU6qFo7Gp02SX7FiymeRv71VzATN91pe1T2vm1uXZK z4REF3kSuOw== X-Gm-Gg: ATEYQzyIKOUGa4cUiRkhFwPQ++8P5wU4GSksnACHfzsj4tbf8DPCB4OxbVCWSTqCeUf xDXjDVAxpA34A2WsxZCR6XolDMDucOfGqbMnJi9baTyDz9j68fSnGt0fOvNEgHDItNDLqOBWreO IovBrsdeHO/gqvghNx7ag3Z0WLzLF7/nwW1TK/tGJu5A142043g0K7x0eo/671gvHOxh4NEijTa t+oKTS2rZHQfwsbFqznuP1zrVqPrSh/1g0S9eQzOW2i7ORAKY0r57u7+jT9zCNwziH0FBPKkkWd YKaNp4Mw+FNaVc3NuoDcapBwmmX/+Rb7jJun1CjVke3y1IoNYraWr8BNSnpjQpiR044/3nvETPm QM9CDRoGUt3JRc306BAgISGkgmc98uzMbCvK54LiRNKah6F3kjSSoKwmwqll04dAnDA0sjYV5Br ZiURB9l10aqvdZl8u/kBJyOcLOInpYzqAyfCrHmFI/vJK1fDlYKzEqJ2vKiakmvym4la8qCiZGv zsKPuSeztLiahuFUoJZhqzcsrHLW22giOd7CFmAFQWzX7Iozb/ndwmmPKkPdhIsKVDComt3sEkk X-Received: by 2002:a17:906:c116:b0:b98:1366:161a with SMTP id a640c23a62f3a-b9b503b6ed3mr310014666b.1.1774863619759; Mon, 30 Mar 2026 02:40:19 -0700 (PDT) Received: from adam.arnhem.chello.nl (2001-1c00-8183-9900-1333-c39e-a751-6a95.cable.dynamic.v6.ziggo.nl. [2001:1c00:8183:9900:1333:c39e:a751:6a95]) by smtp.gmail.com with ESMTPSA id a640c23a62f3a-b9b7b225327sm266108666b.58.2026.03.30.02.40.19 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 30 Mar 2026 02:40:19 -0700 (PDT) From: Adam Duskett To: openembedded-core@lists.openembedded.org Cc: Adam Duskett Subject: [PATCH v6 2/7] libtoml11: new recipe Date: Mon, 30 Mar 2026 11:40:11 +0200 Message-ID: <20260330094016.102637-2-adam.duskett@amarulasolutions.com> X-Mailer: git-send-email 2.53.0 In-Reply-To: <20260330094016.102637-1-adam.duskett@amarulasolutions.com> References: <20260330094016.102637-1-adam.duskett@amarulasolutions.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 ; Mon, 30 Mar 2026 09:40:28 -0000 X-Groupsio-URL: https://lists.openembedded.org/g/openembedded-core/message/234208 DNF5 requires libtoml. As such, copy libtoml verbatim from meta-openembedded to openembedded-core. Signed-off-by: Adam Duskett --- meta/conf/distro/include/maintainers.inc | 1 + .../distro/include/ptest-packagelists.inc | 1 + .../0001-Remove-whitespace-in-operator.patch | 46 +++++++++++++++++++ .../libtoml11/files/run-ptest | 13 ++++++ .../libtoml11/libtoml11_4.4.0.bb | 36 +++++++++++++++ 5 files changed, 97 insertions(+) create mode 100644 meta/recipes-devtools/libtoml11/files/0001-Remove-whitespace-in-operator.patch create mode 100755 meta/recipes-devtools/libtoml11/files/run-ptest create mode 100644 meta/recipes-devtools/libtoml11/libtoml11_4.4.0.bb diff --git a/meta/conf/distro/include/maintainers.inc b/meta/conf/distro/include/maintainers.inc index 9acf2da0a6..0ff519d54e 100644 --- a/meta/conf/distro/include/maintainers.inc +++ b/meta/conf/distro/include/maintainers.inc @@ -410,6 +410,7 @@ RECIPE_MAINTAINER:pn-libtest-fatal-perl = "Tim Orling " RECIPE_MAINTAINER:pn-libtest-needs-perl = "Tim Orling " RECIPE_MAINTAINER:pn-libtest-warnings-perl = "Tim Orling " RECIPE_MAINTAINER:pn-libtheora = "Unassigned " +RECIPE_MAINTAINER:pn-libtoml11 = "Unassigned " RECIPE_MAINTAINER:pn-libtimedate-perl = "Tim Orling " RECIPE_MAINTAINER:pn-libtirpc = "Unassigned " RECIPE_MAINTAINER:pn-libtool = "Robert Yang " diff --git a/meta/conf/distro/include/ptest-packagelists.inc b/meta/conf/distro/include/ptest-packagelists.inc index 31fd5ae7ce..9bf0db0be3 100644 --- a/meta/conf/distro/include/ptest-packagelists.inc +++ b/meta/conf/distro/include/ptest-packagelists.inc @@ -47,6 +47,7 @@ PTESTS_FAST = "\ libtest-needs-perl \ libtest-warnings-perl \ libtimedate-perl \ + libtoml11 \ libtry-tiny-perl \ libusb1 \ libxml-namespacesupport-perl \ diff --git a/meta/recipes-devtools/libtoml11/files/0001-Remove-whitespace-in-operator.patch b/meta/recipes-devtools/libtoml11/files/0001-Remove-whitespace-in-operator.patch new file mode 100644 index 0000000000..9516ee5cb1 --- /dev/null +++ b/meta/recipes-devtools/libtoml11/files/0001-Remove-whitespace-in-operator.patch @@ -0,0 +1,46 @@ +From dee78f822d8a5b985e565e5c1ef42a59557aa8fc Mon Sep 17 00:00:00 2001 +From: Khem Raj +Date: Fri, 7 Mar 2025 11:35:46 -0800 +Subject: [PATCH] Remove whitespace in operator"" + +Clang 20+ errors about this whitespace. + +Fixes +include/toml11/impl/../fwd/literal_fwd.hpp:22:26: error: identifier '_toml' preceded by whitespace in a literal operator declaration is deprecated [-Werror,-Wdeprecated-literal-operator] +| 22 | ::toml::value operator"" _toml(const char* str, std::size_t len); +| | ~~~~~~~~~~~^~~~~ +| | operator""_toml + +Upstream-Status: Backport [https://github.com/ToruNiina/toml11/commit/dee78f822d8a5b985e565e5c1ef42a59557aa8fc] +Signed-off-by: Khem Raj +--- + include/toml11/fwd/literal_fwd.hpp | 2 +- + include/toml11/impl/literal_impl.hpp | 2 +- + 2 files changed, 2 insertions(+), 2 deletions(-) + +diff --git a/include/toml11/fwd/literal_fwd.hpp b/include/toml11/fwd/literal_fwd.hpp +index e46612c..82f62b7 100644 +--- a/include/toml11/fwd/literal_fwd.hpp ++++ b/include/toml11/fwd/literal_fwd.hpp +@@ -19,7 +19,7 @@ inline namespace literals + inline namespace toml_literals + { + +-::toml::value operator"" _toml(const char* str, std::size_t len); ++::toml::value operator""_toml(const char* str, std::size_t len); + + #if defined(TOML11_HAS_CHAR8_T) + // value of u8"" literal has been changed from char to char8_t and char8_t is +diff --git a/include/toml11/impl/literal_impl.hpp b/include/toml11/impl/literal_impl.hpp +index e8298c2..067d4ed 100644 +--- a/include/toml11/impl/literal_impl.hpp ++++ b/include/toml11/impl/literal_impl.hpp +@@ -115,7 +115,7 @@ inline namespace toml_literals + { + + TOML11_INLINE ::toml::value +-operator"" _toml(const char* str, std::size_t len) ++operator""_toml(const char* str, std::size_t len) + { + if(len == 0) + { diff --git a/meta/recipes-devtools/libtoml11/files/run-ptest b/meta/recipes-devtools/libtoml11/files/run-ptest new file mode 100755 index 0000000000..4da9e68cc5 --- /dev/null +++ b/meta/recipes-devtools/libtoml11/files/run-ptest @@ -0,0 +1,13 @@ +#!/usr/bin/env sh + +cd tests || exit 1 + +rm -rf tests.log + +for atest in test_* ; do + if ./"${atest}" >> tests.log 2>&1; then + echo "PASS: ${atest}" + else + echo "FAIL: ${atest}" + fi +done diff --git a/meta/recipes-devtools/libtoml11/libtoml11_4.4.0.bb b/meta/recipes-devtools/libtoml11/libtoml11_4.4.0.bb new file mode 100644 index 0000000000..7e097e4612 --- /dev/null +++ b/meta/recipes-devtools/libtoml11/libtoml11_4.4.0.bb @@ -0,0 +1,36 @@ +SUMMARY = "TOML for Modern C++" +DESCRIPTION = "toml11 is a feature-rich TOML language library for \ + C++11/14/17/20." + +HOMEPAGE = "https://github.com/ToruNiina/toml11" +BUGTRACKER = "https://github.com/ToruNiina/toml11/issues" +CVE_PRODUCT = "libtoml11" + +SECTION = "libs" + +LICENSE = "MIT" +LIC_FILES_CHKSUM = "file://LICENSE;md5=44d1fcf70c7aa6991533c38daf7befa3" + +PE = "1" + +SRC_URI = "\ + gitsm://github.com/ToruNiina/toml11.git;protocol=https;branch=main;tag=v${PV} \ + file://0001-Remove-whitespace-in-operator.patch \ + file://run-ptest \ +" +SRCREV = "be08ba2be2a964edcdb3d3e3ea8d100abc26f286" + +inherit cmake ptest + +EXTRA_OECMAKE += "-DTOML11_PRECOMPILE=ON \ + -DTOML11_BUILD_TESTS=${@bb.utils.contains("PTEST_ENABLED", "1", "ON", "OFF", d)} \ +" + +ALLOW_EMPTY:${PN} = "1" + +do_install_ptest () { + install -d ${D}${PTEST_PATH}/tests + cp -r ${B}/tests/test_* ${D}${PTEST_PATH}/tests +} + +BBCLASSEXTEND = "native nativesdk"