libtoml11: build with CMAKE_CXX_STANDARD 20
By default, libtoml11 uses the C++11 standard. However, when building budgie-desktop-services, I get 'undefined reference to `std::enable_if' without having c++20 enabled. I flagged this RFC because I don't know if anyone relies on C++11.
Quoted 30 lines · Markus Volk via lists.openembedded.org
Signed-off-by Markus Volk <[email protected] <mailto:[email protected]>>--- meta-oe/recipes-devtools/libtoml11/libtoml11_4.4.0.bb | 1 + 1 file changed, 1 insertion(+)meta-oe/recipes-devtools/libtoml11/libtoml11_4.4.0.bb +1
-0@@ -28,6 +28,7 @@ inherit cmake ptest EXTRA_OECMAKE += "-DTOML11_PRECOMPILE=ON \ -DTOML11_BUILD_TESTS=${@bb.utils.contains <mailto:-DTOML11_BUILD_TESTS=${@bb.utils.contains>("DISTRO_FEATURES", "ptest", "ON", "OFF", d)} \ + -DCMAKE_CXX_STANDARD=20 \ "ALLOW_EMPTY:${PN} = "1"
--
2.52.0-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#123498): <https://lists.openembedded.org/g/openembedded-devel/message/123498>
Mute This Topic: <https://lists.openembedded.org/mt/117276714/3618223>
Group Owner: [email protected] <mailto:[email protected]>
Unsubscribe: <https://lists.openembedded.org/g/openembedded-devel/unsub> [[email protected] <mailto:[email protected]>]
-=-=-=-=-=-=-=-=-=-=-=-
Quoted 4 lines · Markus Volk via lists.openembedded.org
By default, libtoml11 uses the C++11 standard. However, when building budgie-desktop-services, I get 'undefined reference to `std::enable_if' without having c++20 enabled. I flagged this RFC because I don't know if anyone relies on C++11.
I remember that this recipe was moved to oe-core[1], because I reviewed some version of it... but apparently it didn't reach the actual repo yet. I have nothing against the proposal, but if it is done, it should made somehow in a way that it won't be lost when the actual repo transition happen.
I have added the transition-author on cc.
[1]: https://lists.openembedded.org/g/openembedded-core/message/227581
Quoted 26 lines
Quoted 14 lines · Markus Volk via lists.openembedded.org
Signed-off-by Markus Volk <[email protected]> ---meta-oe/recipes-devtools/libtoml11/libtoml11_4.4.0.bb | 1 + 1 file changed, 1 insertion(+) diff --git a/meta-oe/recipes-devtools/libtoml11/libtoml11_4.4.0.bb b/meta-oe/recipes-devtools/libtoml11/libtoml11_4.4.0.bb index
38786b79ed..973a39fc21100644 --- a/meta-oe/recipes-devtools/libtoml11/libtoml11_4.4.0.bb +++ b/meta-oe/recipes-devtools/libtoml11/libtoml11_4.4.0.bb @@ -28,6 +28,7 @@ inherit cmake ptestEXTRA_OECMAKE+= "-DTOML11_PRECOMPILE=ON \ -DTOML11_BUILD_TESTS=${@bb.utils.contains("DISTRO_FEATURES", "ptest", "ON", "OFF", d)} \ + -DCMAKE_CXX_STANDARD=20 \ " ALLOW_EMPTY:${PN} = "1"Signature · 1 line
2.52.0-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#123499): https://lists.openembedded.org/g/openembedded-devel/message/123499
Mute This Topic: https://lists.openembedded.org/mt/117276714/6084445
Group Owner: [email protected]
Unsubscribe: https://lists.openembedded.org/g/openembedded-devel/unsub [[email protected]]
-=-=-=-=-=-=-=-=-=-=-=-
Maybe we should wait until the transition happend ... or dont do it like this at all? ;)
It hurts my brain that the lib is called libtoml11 but then requires c++20. Maybe use an .inc file and then libtoml11.bb and libtoml20.bb? For now I'll add a bbappend file to my layer
Quoted 52 lines · Gyorgy Sarvari
Quoted 5 lines · Markus Volk via lists.openembedded.org
By default, libtoml11 uses the C++11 standard. However, when
building
budgie-desktop-services, I get 'undefined reference to `std::enable_if' without having c++20 enabled. I flagged this RFC because I don't know if anyone relies on C++11.I remember that this recipe was moved to oe-core[1], because I reviewed some version of it... but apparently it didn't reach the actual repo yet. I have nothing against the proposal, but if it is done, it should made somehow in a way that it won't be lost when the actual repo transition happen.
I have added the transition-author on cc.[1]: <https://lists.openembedded.org/g/openembedded-core/message/227581>
Quoted 34 lines
Quoted 17 lines · On Thu, Jan 15 2026 at 10:55:52 +01:00:00, Markus Volk via…
Signed-off-by Markus Volk <[email protected]<mailto:[email protected]>> ---
meta-oe/recipes-devtools/libtoml11/libtoml11_4.4.0.bb | 1 + 1 file changed, 1 insertion(+) diff --git a/meta-oe/recipes-devtools/libtoml11/libtoml11_4.4.0.bb b/meta-oe/recipes-devtools/libtoml11/libtoml11_4.4.0.bb index38786b79ed..973a39fc21100644 --- a/meta-oe/recipes-devtools/libtoml11/libtoml11_4.4.0.bb +++ b/meta-oe/recipes-devtools/libtoml11/libtoml11_4.4.0.bb @@ -28,6 +28,7 @@ inherit cmake ptestEXTRA_OECMAKE+=
"-DTOML11_PRECOMPILE=ON
\ -DTOML11_BUILD_TESTS=${@bb.utils.contains
<mailto:-DTOML11_BUILD_TESTS=${@bb.utils.contains>("DISTRO_FEATURES",
"ptest", "ON", "OFF", d)} \ + -DCMAKE_CXX_STANDARD=20 \ " ALLOW_EMPTY:${PN} = "1"
--
2.52.0-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#123499):
<https://lists.openembedded.org/g/openembedded-devel/message/123499>
Mute This Topic:
<https://lists.openembedded.org/mt/117276714/6084445>
Group Owner: [email protected]
<mailto:[email protected]>
Unsubscribe:
<https://lists.openembedded.org/g/openembedded-devel/unsub> [[email protected] <mailto:[email protected]>]
-=-=-=-=-=-=-=-=-=-=-=-
Quoted 8 lines · Markus Volk
Maybe we should wait until the transition happend ... or dont do it like this at all? ;)
It hurts my brain that the lib is called libtoml11 but then requires c++20. Maybe use an .inc file and then libtoml11.bb and libtoml20.bb? For now I'll add
a bbappend file to my layer
OK makes sense.
Quoted 42 lines
On Thu, Jan 15 2026 at 11:06:49 +01:00:00, Gyorgy Sarvari < [email protected]> wrote:
On 1/15/26 11:01, Markus Volk via lists.openembedded.org wrote:
By default, libtoml11 uses the C++11 standard. However, when building budgie-desktop-services, I get 'undefined reference to `std::enable_if' without having c++20 enabled. I flagged this RFC because I don't know if anyone relies on C++11.
I remember that this recipe was moved to oe-core[1], because I reviewed some version of it... but apparently it didn't reach the actual repo yet. I have nothing against the proposal, but if it is done, it should made somehow in a way that it won't be lost when the actual repo transition happen. I have added the transition-author on cc. [1]:
https://lists.openembedded.org/g/openembedded-core/message/227581On Thu, Jan 15 2026 at 10:55:52 +01:00:00, Markus Volk via lists.openembedded.org <[email protected]> wrote:
Signed-off-by Markus Volk <[email protected]> ---meta-oe/recipes-devtools/libtoml11/libtoml11_4.4.0.bb | 1 + 1 file changed, 1 insertion(+) diff --git a/meta-oe/recipes-devtools/libtoml11/ libtoml11_4.4.0.bb b/meta-oe/recipes-devtools/libtoml11/libtoml11_4.4.0.bb index
38786b79ed..973a39fc21100644 --- a/meta-oe/recipes-devtools/libtoml11/libtoml11_4.4.0.bb +++ b/meta-oe/recipes-devtools/libtoml11/libtoml11_4.4.0.bb @@ -28,6 +28,7 @@ inherit cmake ptestEXTRA_OECMAKE+= "-DTOML11_PRECOMPILE=ON \
-DTOML11_BUILD_TESTS=${@bb.utils.contains("DISTRO_FEATURES", "ptest", "ON", "OFF", d)} \ + -DCMAKE_CXX_STANDARD=20 \ " ALLOW_EMPTY:${PN} = "1" -- 2.52.0-=-=-=-=-=-=-=-=-=-=-=- Links: You receive all messages sent to this group. View/Reply Online (#123499):
https://lists.openembedded.org/g/openembedded-devel/message/123499 Mute This Topic: https://lists.openembedded.org/mt/117276714/6084445 Group
Owner: [email protected] Unsubscribe:
https://lists.openembedded.org/g/openembedded-devel/unsub [ [email protected]] -=-=-=-=-=-=-=-=-=-=-=-