Message ID | 20240326215346.586439-1-peter.marko@siemens.com |
---|---|
State | New |
Headers | show |
Series | [meta-oe,v2] microsoft-cpr: add new recipe including ptest | expand |
fails build with clang - https://errors.yoctoproject.org/Errors/Details/761058/ On Tue, Mar 26, 2024 at 2:54 PM Peter Marko via lists.openembedded.org <peter.marko=siemens.com@lists.openembedded.org> wrote: > > From: Peter Marko <peter.marko@siemens.com> > > 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. > > Signed-off-by: Peter Marko <peter.marko@siemens.com> > --- > .../include/ptest-packagelists-meta-oe.inc | 1 + > .../packagegroups/packagegroup-meta-oe.bb | 1 + > .../microsoft-gsl/microsoft-gsl/run-ptest | 4 +++ > .../microsoft-gsl/microsoft-gsl_4.0.0.bb | 36 +++++++++++++++++++ > 4 files changed, 42 insertions(+) > create mode 100644 meta-oe/recipes-devtools/microsoft-gsl/microsoft-gsl/run-ptest > create mode 100644 meta-oe/recipes-devtools/microsoft-gsl/microsoft-gsl_4.0.0.bb > > diff --git a/meta-oe/conf/include/ptest-packagelists-meta-oe.inc b/meta-oe/conf/include/ptest-packagelists-meta-oe.inc > index fadec1221..70e5dad08 100644 > --- a/meta-oe/conf/include/ptest-packagelists-meta-oe.inc > +++ b/meta-oe/conf/include/ptest-packagelists-meta-oe.inc > @@ -27,6 +27,7 @@ PTESTS_FAST_META_OE = "\ > libxml++-5.0 \ > libyang \ > lmdb \ > + microsoft-gsl \ > minicoredumper \ > neon \ > nlohmann-json \ > diff --git a/meta-oe/recipes-core/packagegroups/packagegroup-meta-oe.bb b/meta-oe/recipes-core/packagegroups/packagegroup-meta-oe.bb > index 6e2012dae..bc15373b6 100644 > --- a/meta-oe/recipes-core/packagegroups/packagegroup-meta-oe.bb > +++ b/meta-oe/recipes-core/packagegroups/packagegroup-meta-oe.bb > @@ -310,6 +310,7 @@ RDEPENDS:packagegroup-meta-oe-devtools ="\ > yasm \ > json-schema-validator \ > poke \ > + microsoft-gsl \ > " > RDEPENDS:packagegroup-meta-oe-devtools:append:x86 = " cpuid msr-tools pahole pmtools" > RDEPENDS:packagegroup-meta-oe-devtools:append:x86-64 = " cpuid msr-tools pahole pcimem pmtools" > diff --git a/meta-oe/recipes-devtools/microsoft-gsl/microsoft-gsl/run-ptest b/meta-oe/recipes-devtools/microsoft-gsl/microsoft-gsl/run-ptest > new file mode 100644 > index 000000000..2d5bdf4ff > --- /dev/null > +++ b/meta-oe/recipes-devtools/microsoft-gsl/microsoft-gsl/run-ptest > @@ -0,0 +1,4 @@ > +#!/bin/sh > + > +gsl_tests && echo "PASS: gsl_tests" || echo "FAIL: gsl_tests" > +gsl_noexcept_tests && echo "PASS: gsl_noexcept_tests" || echo "FAIL: gsl_noexcept_tests" > diff --git a/meta-oe/recipes-devtools/microsoft-gsl/microsoft-gsl_4.0.0.bb b/meta-oe/recipes-devtools/microsoft-gsl/microsoft-gsl_4.0.0.bb > new file mode 100644 > index 000000000..d07430709 > --- /dev/null > +++ b/meta-oe/recipes-devtools/microsoft-gsl/microsoft-gsl_4.0.0.bb > @@ -0,0 +1,36 @@ > +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 = "a3534567187d2edc428efd3f13466ff75fe5805c" > + > +S = "${WORKDIR}/git" > + > +inherit cmake pkgconfig ptest > + > +# 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" > + > +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" > -- > 2.30.2 > > > -=-=-=-=-=-=-=-=-=-=-=- > Links: You receive all messages sent to this group. > View/Reply Online (#109631): https://lists.openembedded.org/g/openembedded-devel/message/109631 > Mute This Topic: https://lists.openembedded.org/mt/105167194/1997914 > Group Owner: openembedded-devel+owner@lists.openembedded.org > Unsubscribe: https://lists.openembedded.org/g/openembedded-devel/unsub [raj.khem@gmail.com] > -=-=-=-=-=-=-=-=-=-=-=- >
diff --git a/meta-oe/conf/include/ptest-packagelists-meta-oe.inc b/meta-oe/conf/include/ptest-packagelists-meta-oe.inc index fadec1221..70e5dad08 100644 --- a/meta-oe/conf/include/ptest-packagelists-meta-oe.inc +++ b/meta-oe/conf/include/ptest-packagelists-meta-oe.inc @@ -27,6 +27,7 @@ PTESTS_FAST_META_OE = "\ libxml++-5.0 \ libyang \ lmdb \ + microsoft-gsl \ minicoredumper \ neon \ nlohmann-json \ diff --git a/meta-oe/recipes-core/packagegroups/packagegroup-meta-oe.bb b/meta-oe/recipes-core/packagegroups/packagegroup-meta-oe.bb index 6e2012dae..bc15373b6 100644 --- a/meta-oe/recipes-core/packagegroups/packagegroup-meta-oe.bb +++ b/meta-oe/recipes-core/packagegroups/packagegroup-meta-oe.bb @@ -310,6 +310,7 @@ RDEPENDS:packagegroup-meta-oe-devtools ="\ yasm \ json-schema-validator \ poke \ + microsoft-gsl \ " RDEPENDS:packagegroup-meta-oe-devtools:append:x86 = " cpuid msr-tools pahole pmtools" RDEPENDS:packagegroup-meta-oe-devtools:append:x86-64 = " cpuid msr-tools pahole pcimem pmtools" diff --git a/meta-oe/recipes-devtools/microsoft-gsl/microsoft-gsl/run-ptest b/meta-oe/recipes-devtools/microsoft-gsl/microsoft-gsl/run-ptest new file mode 100644 index 000000000..2d5bdf4ff --- /dev/null +++ b/meta-oe/recipes-devtools/microsoft-gsl/microsoft-gsl/run-ptest @@ -0,0 +1,4 @@ +#!/bin/sh + +gsl_tests && echo "PASS: gsl_tests" || echo "FAIL: gsl_tests" +gsl_noexcept_tests && echo "PASS: gsl_noexcept_tests" || echo "FAIL: gsl_noexcept_tests" diff --git a/meta-oe/recipes-devtools/microsoft-gsl/microsoft-gsl_4.0.0.bb b/meta-oe/recipes-devtools/microsoft-gsl/microsoft-gsl_4.0.0.bb new file mode 100644 index 000000000..d07430709 --- /dev/null +++ b/meta-oe/recipes-devtools/microsoft-gsl/microsoft-gsl_4.0.0.bb @@ -0,0 +1,36 @@ +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 = "a3534567187d2edc428efd3f13466ff75fe5805c" + +S = "${WORKDIR}/git" + +inherit cmake pkgconfig ptest + +# 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" + +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"