From 1d33fb39d9700a125a02d5bbd8292db2756b6f6c Mon Sep 17 00:00:00 2001 From: Wang Mingyu Date: Thu, 18 Dec 2025 17:03:32 +0800 Subject: microsoft-gsl: upgrade 4.2.0 -> 4.2.1 Signed-off-by: Wang Mingyu Signed-off-by: Khem Raj --- .../microsoft-gsl/microsoft-gsl_4.2.0.bb | 47 ---------------------- .../microsoft-gsl/microsoft-gsl_4.2.1.bb | 47 ++++++++++++++++++++++ 2 files changed, 47 insertions(+), 47 deletions(-) delete mode 100644 meta-oe/recipes-devtools/microsoft-gsl/microsoft-gsl_4.2.0.bb create mode 100644 meta-oe/recipes-devtools/microsoft-gsl/microsoft-gsl_4.2.1.bb diff --git a/meta-oe/recipes-devtools/microsoft-gsl/microsoft-gsl_4.2.0.bb b/meta-oe/recipes-devtools/microsoft-gsl/microsoft-gsl_4.2.0.bb deleted file mode 100644 index 16a0af334d..0000000000 --- a/meta-oe/recipes-devtools/microsoft-gsl/microsoft-gsl_4.2.0.bb +++ /dev/null @@ -1,47 +0,0 @@ -SUMMARY = "GSL: Guidelines Support Library" -DESCRIPTION = "The Guidelines Support Library (GSL) contains functions \ - and types that are suggested for use by the C++ Core Guidelines \ - maintained by the Standard C++ Foundation. \ - This repo contains Microsoft's implementation of GSL." -HOMEPAGE = "https://github.com/microsoft/GSL" - -LICENSE = "MIT" -LIC_FILES_CHKSUM = "file://LICENSE;md5=363055e71e77071107ba2bb9a54bd9a7" - -SRC_URI = "git://github.com/microsoft/GSL.git;protocol=https;branch=main \ - file://run-ptest \ -" -SRCREV = "2828399820ef4928cc89b65605dca5dc68efca6e" - -inherit cmake pkgconfig ptest - -EXTRA_OECMAKE += "-DGSL_CXX_STANDARD=17" - -# this is header-only library -ALLOW_EMPTY:${PN} = "1" - -PACKAGECONFIG ??= "${@bb.utils.contains('PTEST_ENABLED', '1', 'ptest','', d)}" -PACKAGECONFIG[ptest] = "-DGSL_TEST=ON,-DGSL_TEST=OFF,googletest" - -# clang disagrees with https://github.com/google/googletest/pull/3457 -CXXFLAGS:append:toolchain-clang = " -Wno-error=switch-default" -# Disable disabled-macro-expansion warning as error as its seen on musl -CXXFLAGS:append:toolchain-clang:libc-musl = " -Wno-error=disabled-macro-expansion" - -do_install_ptest() { - install -d ${D}${bindir} - install -m 0755 ${B}/tests/gsl_tests ${D}${bindir} - install -m 0755 ${B}/tests/gsl_noexcept_tests ${D}${bindir} -} - -FILES:${PN}-ptest = "${bindir}/gsl*_tests" - -# there is already other gsl recipe, so recipe name does not match the real component name -CVE_PRODUCT = "microsoft:gsl" - -BBCLASSEXTEND = "native nativesdk" - -# This one is reproducible only on 32bit arm MACHINEs (didn't see it with qemux86 or qemux86-64 builds) -# http://errors.yoctoproject.org/Errors/Details/766976/ -# lib32-microsoft-gsl/4.0.0/git/tests/span_tests.cpp:1275:34: error: value computed is not used [-Werror=unused-value] -CXXFLAGS += "-Wno-error=unused-value" diff --git a/meta-oe/recipes-devtools/microsoft-gsl/microsoft-gsl_4.2.1.bb b/meta-oe/recipes-devtools/microsoft-gsl/microsoft-gsl_4.2.1.bb new file mode 100644 index 0000000000..87a8cbbb88 --- /dev/null +++ b/meta-oe/recipes-devtools/microsoft-gsl/microsoft-gsl_4.2.1.bb @@ -0,0 +1,47 @@ +SUMMARY = "GSL: Guidelines Support Library" +DESCRIPTION = "The Guidelines Support Library (GSL) contains functions \ + and types that are suggested for use by the C++ Core Guidelines \ + maintained by the Standard C++ Foundation. \ + This repo contains Microsoft's implementation of GSL." +HOMEPAGE = "https://github.com/microsoft/GSL" + +LICENSE = "MIT" +LIC_FILES_CHKSUM = "file://LICENSE;md5=363055e71e77071107ba2bb9a54bd9a7" + +SRC_URI = "git://github.com/microsoft/GSL.git;protocol=https;branch=rel/4.2;tag=v${PV} \ + file://run-ptest \ + " +SRCREV = "249146590e322123cd0b378b1f364d6069717687" + +inherit cmake pkgconfig ptest + +EXTRA_OECMAKE += "-DGSL_CXX_STANDARD=17" + +# this is header-only library +ALLOW_EMPTY:${PN} = "1" + +PACKAGECONFIG ??= "${@bb.utils.contains('PTEST_ENABLED', '1', 'ptest','', d)}" +PACKAGECONFIG[ptest] = "-DGSL_TEST=ON,-DGSL_TEST=OFF,googletest" + +# clang disagrees with https://github.com/google/googletest/pull/3457 +CXXFLAGS:append:toolchain-clang = " -Wno-error=switch-default" +# Disable disabled-macro-expansion warning as error as its seen on musl +CXXFLAGS:append:toolchain-clang:libc-musl = " -Wno-error=disabled-macro-expansion" + +do_install_ptest() { + install -d ${D}${bindir} + install -m 0755 ${B}/tests/gsl_tests ${D}${bindir} + install -m 0755 ${B}/tests/gsl_noexcept_tests ${D}${bindir} +} + +FILES:${PN}-ptest = "${bindir}/gsl*_tests" + +# there is already other gsl recipe, so recipe name does not match the real component name +CVE_PRODUCT = "microsoft:gsl" + +BBCLASSEXTEND = "native nativesdk" + +# This one is reproducible only on 32bit arm MACHINEs (didn't see it with qemux86 or qemux86-64 builds) +# http://errors.yoctoproject.org/Errors/Details/766976/ +# lib32-microsoft-gsl/4.0.0/git/tests/span_tests.cpp:1275:34: error: value computed is not used [-Werror=unused-value] +CXXFLAGS += "-Wno-error=unused-value" -- cgit v1.2.3-54-g00ecf