| Message ID | 20250904221139.3131569-9-peter.marko@siemens.com |
|---|---|
| State | Accepted |
| Headers | show |
| Series | [meta-oe,01/10] meta-oe-image-ptest: fix small typo | expand |
If I'm not mistaken the usage of a tag in the fetcher does require network access. What's not always the case. This does break the parsing by bitbake when no network/Internet is available. On Fri, Sep 5, 2025 at 12:13 AM Peter Marko via lists.openembedded.org <peter.marko=siemens.com@lists.openembedded.org> wrote: > > From: Peter Marko <peter.marko@siemens.com> > > It is needed for poco 1.14+ > Ptest runs for less than a second. > > Signed-off-by: Peter Marko <peter.marko@siemens.com> > --- > .../include/ptest-packagelists-meta-oe.inc | 1 + > .../utf8proc/utf8proc/run-ptest | 15 +++++++++ > .../utf8proc/utf8proc_2.10.0.bb | 33 +++++++++++++++++++ > 3 files changed, 49 insertions(+) > create mode 100644 meta-oe/recipes-support/utf8proc/utf8proc/run-ptest > create mode 100644 meta-oe/recipes-support/utf8proc/utf8proc_2.10.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 d77b97d576..18324ff0d3 100644 > --- a/meta-oe/conf/include/ptest-packagelists-meta-oe.inc > +++ b/meta-oe/conf/include/ptest-packagelists-meta-oe.inc > @@ -44,6 +44,7 @@ PTESTS_FAST_META_OE = "\ > pv \ > sdbus-c++ \ > tomlplusplus \ > + utf8proc \ > uthash \ > xmlsec1 \ > zeromq \ > diff --git a/meta-oe/recipes-support/utf8proc/utf8proc/run-ptest b/meta-oe/recipes-support/utf8proc/utf8proc/run-ptest > new file mode 100644 > index 0000000000..349e496d68 > --- /dev/null > +++ b/meta-oe/recipes-support/utf8proc/utf8proc/run-ptest > @@ -0,0 +1,15 @@ > +#!/bin/sh > + > +execute_test() { > + eval "./$1" && echo "PASS: $1" || echo "FAIL: $1" > +} > + > +execute_test "case" > +execute_test "custom" > +execute_test "iterate" > +execute_test "misc" > +execute_test "printproperty" > +execute_test "valid" > +execute_test "charwidth" > +execute_test "graphemetest data/GraphemeBreakTest.txt" > +execute_test "normtest data/NormalizationTest.txt" > diff --git a/meta-oe/recipes-support/utf8proc/utf8proc_2.10.0.bb b/meta-oe/recipes-support/utf8proc/utf8proc_2.10.0.bb > new file mode 100644 > index 0000000000..e42d16b8b7 > --- /dev/null > +++ b/meta-oe/recipes-support/utf8proc/utf8proc_2.10.0.bb > @@ -0,0 +1,33 @@ > +SUMMARY = "library that provides operations for data in the UTF-8 encoding" > +DESCRIPTION = "utf8proc is a small, clean C library that provides Unicode \ > +normalization, case-folding, and other operations for data in the UTF-8 \ > +encoding, supporting Unicode version 16.0" > +HOMEPAGE = "https://juliastrings.github.io/utf8proc/" > +SECTION = "libs" > + > +LICENSE = "MIT & Unicode-3.0" > +LIC_FILES_CHKSUM = "file://LICENSE.md;md5=96d5a3ba306e0f24fb289427af484408" > + > +SRC_URI = "\ > + git://github.com/JuliaStrings/utf8proc;protocol=https;branch=master;tag=v${PV} \ > + file://run-ptest \ > +" > + > +inherit cmake ptest > + > +EXTRA_OECMAKE = "\ > + -DBUILD_SHARED_LIBS=ON \ > + ${@bb.utils.contains('PTEST_ENABLED', '1', '-DBUILD_TESTING=ON -DUTF8PROC_ENABLE_TESTING=ON ', '', d)} \ > +" > + > +do_install_ptest() { > + # this list and run-ptest needs to be updated on upgrade (the project uses add_test feature) > + for t in "case" custom iterate misc printproperty valid charwidth graphemetest normtest; do > + install -m 0755 ${B}/$t ${D}${PTEST_PATH}/ > + done > + install -d ${D}${PTEST_PATH}/data > + install -m 0644 ${B}/data/GraphemeBreakTest.txt ${D}${PTEST_PATH}/data/ > + install -m 0644 ${B}/data/NormalizationTest.txt ${D}${PTEST_PATH}/data/ > +} > + > +BBCLASSEXTEND = "native" > > -=-=-=-=-=-=-=-=-=-=-=- > Links: You receive all messages sent to this group. > View/Reply Online (#119306): https://lists.openembedded.org/g/openembedded-devel/message/119306 > Mute This Topic: https://lists.openembedded.org/mt/115073156/2167232 > Group Owner: openembedded-devel+owner@lists.openembedded.org > Unsubscribe: https://lists.openembedded.org/g/openembedded-devel/unsub [jan.vermaete@gmail.com] > -=-=-=-=-=-=-=-=-=-=-=- >
> -----Original Message----- > From: jan vermaete <jan.vermaete@gmail.com> > Sent: Saturday, September 6, 2025 19:22 > To: Marko, Peter (FT D EU SK BFS1) <Peter.Marko@siemens.com> > Cc: openembedded-devel@lists.openembedded.org > Subject: Re: [oe] [meta-oe][PATCH 09/10] utf8proc: add new recipe with ptest > > If I'm not mistaken the usage of a tag in the fetcher does require > network access. > What's not always the case. > This does break the parsing by bitbake when no network/Internet is available. Hello, that is true for older releases. In master, using tag is possible and even encouraged/required to validate that the hash belongs to a tag. Peter > > On Fri, Sep 5, 2025 at 12:13 AM Peter Marko via lists.openembedded.org > <peter.marko=siemens.com@lists.openembedded.org> wrote: > > > > From: Peter Marko <peter.marko@siemens.com> > > > > It is needed for poco 1.14+ > > Ptest runs for less than a second. > > > > Signed-off-by: Peter Marko <peter.marko@siemens.com> > > --- > > .../include/ptest-packagelists-meta-oe.inc | 1 + > > .../utf8proc/utf8proc/run-ptest | 15 +++++++++ > > .../utf8proc/utf8proc_2.10.0.bb | 33 +++++++++++++++++++ > > 3 files changed, 49 insertions(+) > > create mode 100644 meta-oe/recipes-support/utf8proc/utf8proc/run-ptest > > create mode 100644 meta-oe/recipes-support/utf8proc/utf8proc_2.10.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 d77b97d576..18324ff0d3 100644 > > --- a/meta-oe/conf/include/ptest-packagelists-meta-oe.inc > > +++ b/meta-oe/conf/include/ptest-packagelists-meta-oe.inc > > @@ -44,6 +44,7 @@ PTESTS_FAST_META_OE = "\ > > pv \ > > sdbus-c++ \ > > tomlplusplus \ > > + utf8proc \ > > uthash \ > > xmlsec1 \ > > zeromq \ > > diff --git a/meta-oe/recipes-support/utf8proc/utf8proc/run-ptest b/meta- > oe/recipes-support/utf8proc/utf8proc/run-ptest > > new file mode 100644 > > index 0000000000..349e496d68 > > --- /dev/null > > +++ b/meta-oe/recipes-support/utf8proc/utf8proc/run-ptest > > @@ -0,0 +1,15 @@ > > +#!/bin/sh > > + > > +execute_test() { > > + eval "./$1" && echo "PASS: $1" || echo "FAIL: $1" > > +} > > + > > +execute_test "case" > > +execute_test "custom" > > +execute_test "iterate" > > +execute_test "misc" > > +execute_test "printproperty" > > +execute_test "valid" > > +execute_test "charwidth" > > +execute_test "graphemetest data/GraphemeBreakTest.txt" > > +execute_test "normtest data/NormalizationTest.txt" > > diff --git a/meta-oe/recipes-support/utf8proc/utf8proc_2.10.0.bb b/meta- > oe/recipes-support/utf8proc/utf8proc_2.10.0.bb > > new file mode 100644 > > index 0000000000..e42d16b8b7 > > --- /dev/null > > +++ b/meta-oe/recipes-support/utf8proc/utf8proc_2.10.0.bb > > @@ -0,0 +1,33 @@ > > +SUMMARY = "library that provides operations for data in the UTF-8 encoding" > > +DESCRIPTION = "utf8proc is a small, clean C library that provides Unicode \ > > +normalization, case-folding, and other operations for data in the UTF-8 \ > > +encoding, supporting Unicode version 16.0" > > +HOMEPAGE = "https://juliastrings.github.io/utf8proc/" > > +SECTION = "libs" > > + > > +LICENSE = "MIT & Unicode-3.0" > > +LIC_FILES_CHKSUM = > "file://LICENSE.md;md5=96d5a3ba306e0f24fb289427af484408" > > + > > +SRC_URI = "\ > > + > git://github.com/JuliaStrings/utf8proc;protocol=https;branch=master;tag=v${PV} \ > > + file://run-ptest \ > > +" > > + > > +inherit cmake ptest > > + > > +EXTRA_OECMAKE = "\ > > + -DBUILD_SHARED_LIBS=ON \ > > + ${@bb.utils.contains('PTEST_ENABLED', '1', '-DBUILD_TESTING=ON - > DUTF8PROC_ENABLE_TESTING=ON ', '', d)} \ > > +" > > + > > +do_install_ptest() { > > + # this list and run-ptest needs to be updated on upgrade (the project uses > add_test feature) > > + for t in "case" custom iterate misc printproperty valid charwidth > graphemetest normtest; do > > + install -m 0755 ${B}/$t ${D}${PTEST_PATH}/ > > + done > > + install -d ${D}${PTEST_PATH}/data > > + install -m 0644 ${B}/data/GraphemeBreakTest.txt > ${D}${PTEST_PATH}/data/ > > + install -m 0644 ${B}/data/NormalizationTest.txt ${D}${PTEST_PATH}/data/ > > +} > > + > > +BBCLASSEXTEND = "native" > > > > -=-=-=-=-=-=-=-=-=-=-=- > > Links: You receive all messages sent to this group. > > View/Reply Online (#119306): https://lists.openembedded.org/g/openembedded- > devel/message/119306 > > Mute This Topic: https://lists.openembedded.org/mt/115073156/2167232 > > Group Owner: openembedded-devel+owner@lists.openembedded.org > > Unsubscribe: https://lists.openembedded.org/g/openembedded-devel/unsub > [jan.vermaete@gmail.com] > > -=-=-=-=-=-=-=-=-=-=-=- > > > > > -- > Jan Vermaete > “Success is a self-correcting phenomenom.” -- Gary Hamel
On 9/15/25 12:53, Peter Marko via lists.openembedded.org wrote: >> -----Original Message----- >> From: jan vermaete <jan.vermaete@gmail.com> >> Sent: Saturday, September 6, 2025 19:22 >> To: Marko, Peter (FT D EU SK BFS1) <Peter.Marko@siemens.com> >> Cc: openembedded-devel@lists.openembedded.org >> Subject: Re: [oe] [meta-oe][PATCH 09/10] utf8proc: add new recipe with ptest >> >> If I'm not mistaken the usage of a tag in the fetcher does require >> network access. >> What's not always the case. >> This does break the parsing by bitbake when no network/Internet is available. > Hello, that is true for older releases. > In master, using tag is possible and even encouraged/required to validate that the hash belongs to a tag. > Yes, but this patch seems to be missing a revision also, in which case the old behavior stays. > Peter > >> On Fri, Sep 5, 2025 at 12:13 AM Peter Marko via lists.openembedded.org >> <peter.marko=siemens.com@lists.openembedded.org> wrote: >>> From: Peter Marko <peter.marko@siemens.com> >>> >>> It is needed for poco 1.14+ >>> Ptest runs for less than a second. >>> >>> Signed-off-by: Peter Marko <peter.marko@siemens.com> >>> --- >>> .../include/ptest-packagelists-meta-oe.inc | 1 + >>> .../utf8proc/utf8proc/run-ptest | 15 +++++++++ >>> .../utf8proc/utf8proc_2.10.0.bb | 33 +++++++++++++++++++ >>> 3 files changed, 49 insertions(+) >>> create mode 100644 meta-oe/recipes-support/utf8proc/utf8proc/run-ptest >>> create mode 100644 meta-oe/recipes-support/utf8proc/utf8proc_2.10.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 d77b97d576..18324ff0d3 100644 >>> --- a/meta-oe/conf/include/ptest-packagelists-meta-oe.inc >>> +++ b/meta-oe/conf/include/ptest-packagelists-meta-oe.inc >>> @@ -44,6 +44,7 @@ PTESTS_FAST_META_OE = "\ >>> pv \ >>> sdbus-c++ \ >>> tomlplusplus \ >>> + utf8proc \ >>> uthash \ >>> xmlsec1 \ >>> zeromq \ >>> diff --git a/meta-oe/recipes-support/utf8proc/utf8proc/run-ptest b/meta- >> oe/recipes-support/utf8proc/utf8proc/run-ptest >>> new file mode 100644 >>> index 0000000000..349e496d68 >>> --- /dev/null >>> +++ b/meta-oe/recipes-support/utf8proc/utf8proc/run-ptest >>> @@ -0,0 +1,15 @@ >>> +#!/bin/sh >>> + >>> +execute_test() { >>> + eval "./$1" && echo "PASS: $1" || echo "FAIL: $1" >>> +} >>> + >>> +execute_test "case" >>> +execute_test "custom" >>> +execute_test "iterate" >>> +execute_test "misc" >>> +execute_test "printproperty" >>> +execute_test "valid" >>> +execute_test "charwidth" >>> +execute_test "graphemetest data/GraphemeBreakTest.txt" >>> +execute_test "normtest data/NormalizationTest.txt" >>> diff --git a/meta-oe/recipes-support/utf8proc/utf8proc_2.10.0.bb b/meta- >> oe/recipes-support/utf8proc/utf8proc_2.10.0.bb >>> new file mode 100644 >>> index 0000000000..e42d16b8b7 >>> --- /dev/null >>> +++ b/meta-oe/recipes-support/utf8proc/utf8proc_2.10.0.bb >>> @@ -0,0 +1,33 @@ >>> +SUMMARY = "library that provides operations for data in the UTF-8 encoding" >>> +DESCRIPTION = "utf8proc is a small, clean C library that provides Unicode \ >>> +normalization, case-folding, and other operations for data in the UTF-8 \ >>> +encoding, supporting Unicode version 16.0" >>> +HOMEPAGE = "https://juliastrings.github.io/utf8proc/" >>> +SECTION = "libs" >>> + >>> +LICENSE = "MIT & Unicode-3.0" >>> +LIC_FILES_CHKSUM = >> "file://LICENSE.md;md5=96d5a3ba306e0f24fb289427af484408" >>> + >>> +SRC_URI = "\ >>> + >> git://github.com/JuliaStrings/utf8proc;protocol=https;branch=master;tag=v${PV} \ >>> + file://run-ptest \ >>> +" >>> + >>> +inherit cmake ptest >>> + >>> +EXTRA_OECMAKE = "\ >>> + -DBUILD_SHARED_LIBS=ON \ >>> + ${@bb.utils.contains('PTEST_ENABLED', '1', '-DBUILD_TESTING=ON - >> DUTF8PROC_ENABLE_TESTING=ON ', '', d)} \ >>> +" >>> + >>> +do_install_ptest() { >>> + # this list and run-ptest needs to be updated on upgrade (the project uses >> add_test feature) >>> + for t in "case" custom iterate misc printproperty valid charwidth >> graphemetest normtest; do >>> + install -m 0755 ${B}/$t ${D}${PTEST_PATH}/ >>> + done >>> + install -d ${D}${PTEST_PATH}/data >>> + install -m 0644 ${B}/data/GraphemeBreakTest.txt >> ${D}${PTEST_PATH}/data/ >>> + install -m 0644 ${B}/data/NormalizationTest.txt ${D}${PTEST_PATH}/data/ >>> +} >>> + >>> +BBCLASSEXTEND = "native" >>> >>> >>> >> >> -- >> Jan Vermaete >> “Success is a self-correcting phenomenom.” -- Gary Hamel >> >> -=-=-=-=-=-=-=-=-=-=-=- >> Links: You receive all messages sent to this group. >> View/Reply Online (#119405): https://lists.openembedded.org/g/openembedded-devel/message/119405 >> Mute This Topic: https://lists.openembedded.org/mt/115073156/6084445 >> Group Owner: openembedded-devel+owner@lists.openembedded.org >> Unsubscribe: https://lists.openembedded.org/g/openembedded-devel/unsub [skandigraun@gmail.com] >> -=-=-=-=-=-=-=-=-=-=-=- >>
> -----Original Message----- > From: Gyorgy Sarvari <skandigraun@gmail.com> > Sent: Tuesday, September 16, 2025 11:16 > To: Marko, Peter (FT D EU SK BFS1) <Peter.Marko@siemens.com>; jan vermaete > <jan.vermaete@gmail.com> > Cc: openembedded-devel@lists.openembedded.org > Subject: Re: [oe] [meta-oe][PATCH 09/10] utf8proc: add new recipe with ptest > > On 9/15/25 12:53, Peter Marko via lists.openembedded.org wrote: > >> -----Original Message----- > >> From: jan vermaete <jan.vermaete@gmail.com> > >> Sent: Saturday, September 6, 2025 19:22 > >> To: Marko, Peter (FT D EU SK BFS1) <Peter.Marko@siemens.com> > >> Cc: openembedded-devel@lists.openembedded.org > >> Subject: Re: [oe] [meta-oe][PATCH 09/10] utf8proc: add new recipe with ptest > >> > >> If I'm not mistaken the usage of a tag in the fetcher does require > >> network access. > >> What's not always the case. > >> This does break the parsing by bitbake when no network/Internet is available. > > Hello, that is true for older releases. > > In master, using tag is possible and even encouraged/required to validate that > the hash belongs to a tag. > > > > Yes, but this patch seems to be missing a revision also, in which case > the old behavior stays. Oops, sorry for that. I'll send a patch in the evening if someone didn't already. > > > Peter > > > >> On Fri, Sep 5, 2025 at 12:13 AM Peter Marko via lists.openembedded.org > >> <peter.marko=siemens.com@lists.openembedded.org> wrote: > >>> From: Peter Marko <peter.marko@siemens.com> > >>> > >>> It is needed for poco 1.14+ > >>> Ptest runs for less than a second. > >>> > >>> Signed-off-by: Peter Marko <peter.marko@siemens.com> > >>> --- > >>> .../include/ptest-packagelists-meta-oe.inc | 1 + > >>> .../utf8proc/utf8proc/run-ptest | 15 +++++++++ > >>> .../utf8proc/utf8proc_2.10.0.bb | 33 +++++++++++++++++++ > >>> 3 files changed, 49 insertions(+) > >>> create mode 100644 meta-oe/recipes-support/utf8proc/utf8proc/run-ptest > >>> create mode 100644 meta-oe/recipes-support/utf8proc/utf8proc_2.10.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 d77b97d576..18324ff0d3 100644 > >>> --- a/meta-oe/conf/include/ptest-packagelists-meta-oe.inc > >>> +++ b/meta-oe/conf/include/ptest-packagelists-meta-oe.inc > >>> @@ -44,6 +44,7 @@ PTESTS_FAST_META_OE = "\ > >>> pv \ > >>> sdbus-c++ \ > >>> tomlplusplus \ > >>> + utf8proc \ > >>> uthash \ > >>> xmlsec1 \ > >>> zeromq \ > >>> diff --git a/meta-oe/recipes-support/utf8proc/utf8proc/run-ptest b/meta- > >> oe/recipes-support/utf8proc/utf8proc/run-ptest > >>> new file mode 100644 > >>> index 0000000000..349e496d68 > >>> --- /dev/null > >>> +++ b/meta-oe/recipes-support/utf8proc/utf8proc/run-ptest > >>> @@ -0,0 +1,15 @@ > >>> +#!/bin/sh > >>> + > >>> +execute_test() { > >>> + eval "./$1" && echo "PASS: $1" || echo "FAIL: $1" > >>> +} > >>> + > >>> +execute_test "case" > >>> +execute_test "custom" > >>> +execute_test "iterate" > >>> +execute_test "misc" > >>> +execute_test "printproperty" > >>> +execute_test "valid" > >>> +execute_test "charwidth" > >>> +execute_test "graphemetest data/GraphemeBreakTest.txt" > >>> +execute_test "normtest data/NormalizationTest.txt" > >>> diff --git a/meta-oe/recipes-support/utf8proc/utf8proc_2.10.0.bb b/meta- > >> oe/recipes-support/utf8proc/utf8proc_2.10.0.bb > >>> new file mode 100644 > >>> index 0000000000..e42d16b8b7 > >>> --- /dev/null > >>> +++ b/meta-oe/recipes-support/utf8proc/utf8proc_2.10.0.bb > >>> @@ -0,0 +1,33 @@ > >>> +SUMMARY = "library that provides operations for data in the UTF-8 > encoding" > >>> +DESCRIPTION = "utf8proc is a small, clean C library that provides Unicode \ > >>> +normalization, case-folding, and other operations for data in the UTF-8 \ > >>> +encoding, supporting Unicode version 16.0" > >>> +HOMEPAGE = "https://juliastrings.github.io/utf8proc/" > >>> +SECTION = "libs" > >>> + > >>> +LICENSE = "MIT & Unicode-3.0" > >>> +LIC_FILES_CHKSUM = > >> "file://LICENSE.md;md5=96d5a3ba306e0f24fb289427af484408" > >>> + > >>> +SRC_URI = "\ > >>> + > >> > git://github.com/JuliaStrings/utf8proc;protocol=https;branch=master;tag=v${PV} \ > >>> + file://run-ptest \ > >>> +" > >>> + > >>> +inherit cmake ptest > >>> + > >>> +EXTRA_OECMAKE = "\ > >>> + -DBUILD_SHARED_LIBS=ON \ > >>> + ${@bb.utils.contains('PTEST_ENABLED', '1', '-DBUILD_TESTING=ON - > >> DUTF8PROC_ENABLE_TESTING=ON ', '', d)} \ > >>> +" > >>> + > >>> +do_install_ptest() { > >>> + # this list and run-ptest needs to be updated on upgrade (the project uses > >> add_test feature) > >>> + for t in "case" custom iterate misc printproperty valid charwidth > >> graphemetest normtest; do > >>> + install -m 0755 ${B}/$t ${D}${PTEST_PATH}/ > >>> + done > >>> + install -d ${D}${PTEST_PATH}/data > >>> + install -m 0644 ${B}/data/GraphemeBreakTest.txt > >> ${D}${PTEST_PATH}/data/ > >>> + install -m 0644 ${B}/data/NormalizationTest.txt ${D}${PTEST_PATH}/data/ > >>> +} > >>> + > >>> +BBCLASSEXTEND = "native" > >>> > >>> > >>> > >> > >> -- > >> Jan Vermaete > >> “Success is a self-correcting phenomenom.” -- Gary Hamel > >> > >> -=-=-=-=-=-=-=-=-=-=-=- > >> Links: You receive all messages sent to this group. > >> View/Reply Online (#119405): > https://lists.openembedded.org/g/openembedded-devel/message/119405 > >> Mute This Topic: https://lists.openembedded.org/mt/115073156/6084445 > >> Group Owner: openembedded-devel+owner@lists.openembedded.org > >> Unsubscribe: https://lists.openembedded.org/g/openembedded-devel/unsub > [skandigraun@gmail.com] > >> -=-=-=-=-=-=-=-=-=-=-=- > >>
Le mar. 16 sept. 2025 à 12:28, Peter Marko via lists.openembedded.org <peter.marko=siemens.com@lists.openembedded.org> a écrit : > > > > -----Original Message----- > > From: Gyorgy Sarvari <skandigraun@gmail.com> > > Sent: Tuesday, September 16, 2025 11:16 > > To: Marko, Peter (FT D EU SK BFS1) <Peter.Marko@siemens.com>; jan > vermaete > > <jan.vermaete@gmail.com> > > Cc: openembedded-devel@lists.openembedded.org > > Subject: Re: [oe] [meta-oe][PATCH 09/10] utf8proc: add new recipe with > ptest > > > > On 9/15/25 12:53, Peter Marko via lists.openembedded.org wrote: > > >> -----Original Message----- > > >> From: jan vermaete <jan.vermaete@gmail.com> > > >> Sent: Saturday, September 6, 2025 19:22 > > >> To: Marko, Peter (FT D EU SK BFS1) <Peter.Marko@siemens.com> > > >> Cc: openembedded-devel@lists.openembedded.org > > >> Subject: Re: [oe] [meta-oe][PATCH 09/10] utf8proc: add new recipe > with ptest > > >> > > >> If I'm not mistaken the usage of a tag in the fetcher does require > > >> network access. > > >> What's not always the case. > > >> This does break the parsing by bitbake when no network/Internet is > available. > > > Hello, that is true for older releases. > > > In master, using tag is possible and even encouraged/required to > validate that > > the hash belongs to a tag. > > > > > > > Yes, but this patch seems to be missing a revision also, in which case > > the old behavior stays. > > Oops, sorry for that. > I'll send a patch in the evening if someone didn't already. > Hello, This is an ideal newcomer patch. A coworker of mine and beginner contributor wants to take a look at it. Could you wait a day to see if he can get it sent tomorrow? > > > > Peter > > > > > >> On Fri, Sep 5, 2025 at 12:13 AM Peter Marko via > lists.openembedded.org > > >> <peter.marko=siemens.com@lists.openembedded.org> wrote: > > >>> From: Peter Marko <peter.marko@siemens.com> > > >>> > > >>> It is needed for poco 1.14+ > > >>> Ptest runs for less than a second. > > >>> > > >>> Signed-off-by: Peter Marko <peter.marko@siemens.com> > > >>> --- > > >>> .../include/ptest-packagelists-meta-oe.inc | 1 + > > >>> .../utf8proc/utf8proc/run-ptest | 15 +++++++++ > > >>> .../utf8proc/utf8proc_2.10.0.bb | 33 > +++++++++++++++++++ > > >>> 3 files changed, 49 insertions(+) > > >>> create mode 100644 > meta-oe/recipes-support/utf8proc/utf8proc/run-ptest > > >>> create mode 100644 meta-oe/recipes-support/utf8proc/ > utf8proc_2.10.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 d77b97d576..18324ff0d3 100644 > > >>> --- a/meta-oe/conf/include/ptest-packagelists-meta-oe.inc > > >>> +++ b/meta-oe/conf/include/ptest-packagelists-meta-oe.inc > > >>> @@ -44,6 +44,7 @@ PTESTS_FAST_META_OE = "\ > > >>> pv \ > > >>> sdbus-c++ \ > > >>> tomlplusplus \ > > >>> + utf8proc \ > > >>> uthash \ > > >>> xmlsec1 \ > > >>> zeromq \ > > >>> diff --git a/meta-oe/recipes-support/utf8proc/utf8proc/run-ptest > b/meta- > > >> oe/recipes-support/utf8proc/utf8proc/run-ptest > > >>> new file mode 100644 > > >>> index 0000000000..349e496d68 > > >>> --- /dev/null > > >>> +++ b/meta-oe/recipes-support/utf8proc/utf8proc/run-ptest > > >>> @@ -0,0 +1,15 @@ > > >>> +#!/bin/sh > > >>> + > > >>> +execute_test() { > > >>> + eval "./$1" && echo "PASS: $1" || echo "FAIL: $1" > > >>> +} > > >>> + > > >>> +execute_test "case" > > >>> +execute_test "custom" > > >>> +execute_test "iterate" > > >>> +execute_test "misc" > > >>> +execute_test "printproperty" > > >>> +execute_test "valid" > > >>> +execute_test "charwidth" > > >>> +execute_test "graphemetest data/GraphemeBreakTest.txt" > > >>> +execute_test "normtest data/NormalizationTest.txt" > > >>> diff --git a/meta-oe/recipes-support/utf8proc/utf8proc_2.10.0.bb > b/meta- > > >> oe/recipes-support/utf8proc/utf8proc_2.10.0.bb > > >>> new file mode 100644 > > >>> index 0000000000..e42d16b8b7 > > >>> --- /dev/null > > >>> +++ b/meta-oe/recipes-support/utf8proc/utf8proc_2.10.0.bb > > >>> @@ -0,0 +1,33 @@ > > >>> +SUMMARY = "library that provides operations for data in the UTF-8 > > encoding" > > >>> +DESCRIPTION = "utf8proc is a small, clean C library that provides > Unicode \ > > >>> +normalization, case-folding, and other operations for data in the > UTF-8 \ > > >>> +encoding, supporting Unicode version 16.0" > > >>> +HOMEPAGE = "https://juliastrings.github.io/utf8proc/" > > >>> +SECTION = "libs" > > >>> + > > >>> +LICENSE = "MIT & Unicode-3.0" > > >>> +LIC_FILES_CHKSUM = > > >> "file://LICENSE.md;md5=96d5a3ba306e0f24fb289427af484408" > > >>> + > > >>> +SRC_URI = "\ > > >>> + > > >> > > git:// > github.com/JuliaStrings/utf8proc;protocol=https;branch=master;tag=v${PV} > <http://github.com/JuliaStrings/utf8proc;protocol=https;branch=master;tag=v$%7BPV%7D> > \ > > >>> + file://run-ptest \ > > >>> +" > > >>> + > > >>> +inherit cmake ptest > > >>> + > > >>> +EXTRA_OECMAKE = "\ > > >>> + -DBUILD_SHARED_LIBS=ON \ > > >>> + ${@bb.utils.contains('PTEST_ENABLED', '1', '-DBUILD_TESTING=ON - > > >> DUTF8PROC_ENABLE_TESTING=ON ', '', d)} \ > > >>> +" > > >>> + > > >>> +do_install_ptest() { > > >>> + # this list and run-ptest needs to be updated on upgrade (the > project uses > > >> add_test feature) > > >>> + for t in "case" custom iterate misc printproperty valid > charwidth > > >> graphemetest normtest; do > > >>> + install -m 0755 ${B}/$t ${D}${PTEST_PATH}/ > > >>> + done > > >>> + install -d ${D}${PTEST_PATH}/data > > >>> + install -m 0644 ${B}/data/GraphemeBreakTest.txt > > >> ${D}${PTEST_PATH}/data/ > > >>> + install -m 0644 ${B}/data/NormalizationTest.txt > ${D}${PTEST_PATH}/data/ > > >>> +} > > >>> + > > >>> +BBCLASSEXTEND = "native" > > >>> > > >>> > > >>> > > >> > > >> -- > > >> Jan Vermaete > > >> “Success is a self-correcting phenomenom.” -- Gary Hamel > > >> > > >> > > >> > > > -=-=-=-=-=-=-=-=-=-=-=- > Links: You receive all messages sent to this group. > View/Reply Online (#119465): > https://lists.openembedded.org/g/openembedded-devel/message/119465 > Mute This Topic: https://lists.openembedded.org/mt/115073156/4316185 > Group Owner: openembedded-devel+owner@lists.openembedded.org > Unsubscribe: https://lists.openembedded.org/g/openembedded-devel/unsub [ > yoann.congal@smile.fr] > -=-=-=-=-=-=-=-=-=-=-=- > >
Le mar. 16 sept. 2025 à 19:43, Yoann Congal <yoann.congal@smile.fr> a écrit : > > > Le mar. 16 sept. 2025 à 12:28, Peter Marko via lists.openembedded.org > <peter.marko=siemens.com@lists.openembedded.org> a écrit : > >> >> >> > -----Original Message----- >> > From: Gyorgy Sarvari <skandigraun@gmail.com> >> > Sent: Tuesday, September 16, 2025 11:16 >> > To: Marko, Peter (FT D EU SK BFS1) <Peter.Marko@siemens.com>; jan >> vermaete >> > <jan.vermaete@gmail.com> >> > Cc: openembedded-devel@lists.openembedded.org >> > Subject: Re: [oe] [meta-oe][PATCH 09/10] utf8proc: add new recipe with >> ptest >> > >> > On 9/15/25 12:53, Peter Marko via lists.openembedded.org wrote: >> > >> -----Original Message----- >> > >> From: jan vermaete <jan.vermaete@gmail.com> >> > >> Sent: Saturday, September 6, 2025 19:22 >> > >> To: Marko, Peter (FT D EU SK BFS1) <Peter.Marko@siemens.com> >> > >> Cc: openembedded-devel@lists.openembedded.org >> > >> Subject: Re: [oe] [meta-oe][PATCH 09/10] utf8proc: add new recipe >> with ptest >> > >> >> > >> If I'm not mistaken the usage of a tag in the fetcher does require >> > >> network access. >> > >> What's not always the case. >> > >> This does break the parsing by bitbake when no network/Internet is >> available. >> > > Hello, that is true for older releases. >> > > In master, using tag is possible and even encouraged/required to >> validate that >> > the hash belongs to a tag. >> > > >> > >> > Yes, but this patch seems to be missing a revision also, in which case >> > the old behavior stays. >> >> Oops, sorry for that. >> I'll send a patch in the evening if someone didn't already. >> > > Hello, > > This is an ideal newcomer patch. > A coworker of mine and beginner contributor wants to take a look at it. > Could you wait a day to see if he can get it sent tomorrow? > Patch sent here : https://lists.openembedded.org/g/openembedded-devel/message/119481 Thanks! > >> > > Peter >> > > >> > >> On Fri, Sep 5, 2025 at 12:13 AM Peter Marko via >> lists.openembedded.org >> > >> <peter.marko=siemens.com@lists.openembedded.org> wrote: >> > >>> From: Peter Marko <peter.marko@siemens.com> >> > >>> >> > >>> It is needed for poco 1.14+ >> > >>> Ptest runs for less than a second. >> > >>> >> > >>> Signed-off-by: Peter Marko <peter.marko@siemens.com> >> > >>> --- >> > >>> .../include/ptest-packagelists-meta-oe.inc | 1 + >> > >>> .../utf8proc/utf8proc/run-ptest | 15 +++++++++ >> > >>> .../utf8proc/utf8proc_2.10.0.bb | 33 >> +++++++++++++++++++ >> > >>> 3 files changed, 49 insertions(+) >> > >>> create mode 100644 >> meta-oe/recipes-support/utf8proc/utf8proc/run-ptest >> > >>> create mode 100644 meta-oe/recipes-support/utf8proc/ >> utf8proc_2.10.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 d77b97d576..18324ff0d3 100644 >> > >>> --- a/meta-oe/conf/include/ptest-packagelists-meta-oe.inc >> > >>> +++ b/meta-oe/conf/include/ptest-packagelists-meta-oe.inc >> > >>> @@ -44,6 +44,7 @@ PTESTS_FAST_META_OE = "\ >> > >>> pv \ >> > >>> sdbus-c++ \ >> > >>> tomlplusplus \ >> > >>> + utf8proc \ >> > >>> uthash \ >> > >>> xmlsec1 \ >> > >>> zeromq \ >> > >>> diff --git a/meta-oe/recipes-support/utf8proc/utf8proc/run-ptest >> b/meta- >> > >> oe/recipes-support/utf8proc/utf8proc/run-ptest >> > >>> new file mode 100644 >> > >>> index 0000000000..349e496d68 >> > >>> --- /dev/null >> > >>> +++ b/meta-oe/recipes-support/utf8proc/utf8proc/run-ptest >> > >>> @@ -0,0 +1,15 @@ >> > >>> +#!/bin/sh >> > >>> + >> > >>> +execute_test() { >> > >>> + eval "./$1" && echo "PASS: $1" || echo "FAIL: $1" >> > >>> +} >> > >>> + >> > >>> +execute_test "case" >> > >>> +execute_test "custom" >> > >>> +execute_test "iterate" >> > >>> +execute_test "misc" >> > >>> +execute_test "printproperty" >> > >>> +execute_test "valid" >> > >>> +execute_test "charwidth" >> > >>> +execute_test "graphemetest data/GraphemeBreakTest.txt" >> > >>> +execute_test "normtest data/NormalizationTest.txt" >> > >>> diff --git a/meta-oe/recipes-support/utf8proc/utf8proc_2.10.0.bb >> b/meta- >> > >> oe/recipes-support/utf8proc/utf8proc_2.10.0.bb >> > >>> new file mode 100644 >> > >>> index 0000000000..e42d16b8b7 >> > >>> --- /dev/null >> > >>> +++ b/meta-oe/recipes-support/utf8proc/utf8proc_2.10.0.bb >> > >>> @@ -0,0 +1,33 @@ >> > >>> +SUMMARY = "library that provides operations for data in the UTF-8 >> > encoding" >> > >>> +DESCRIPTION = "utf8proc is a small, clean C library that provides >> Unicode \ >> > >>> +normalization, case-folding, and other operations for data in the >> UTF-8 \ >> > >>> +encoding, supporting Unicode version 16.0" >> > >>> +HOMEPAGE = "https://juliastrings.github.io/utf8proc/" >> > >>> +SECTION = "libs" >> > >>> + >> > >>> +LICENSE = "MIT & Unicode-3.0" >> > >>> +LIC_FILES_CHKSUM = >> > >> "file://LICENSE.md;md5=96d5a3ba306e0f24fb289427af484408" >> > >>> + >> > >>> +SRC_URI = "\ >> > >>> + >> > >> >> > git:// >> github.com/JuliaStrings/utf8proc;protocol=https;branch=master;tag=v${PV} >> <http://github.com/JuliaStrings/utf8proc;protocol=https;branch=master;tag=v$%7BPV%7D> >> \ >> > >>> + file://run-ptest \ >> > >>> +" >> > >>> + >> > >>> +inherit cmake ptest >> > >>> + >> > >>> +EXTRA_OECMAKE = "\ >> > >>> + -DBUILD_SHARED_LIBS=ON \ >> > >>> + ${@bb.utils.contains('PTEST_ENABLED', '1', '-DBUILD_TESTING=ON >> - >> > >> DUTF8PROC_ENABLE_TESTING=ON ', '', d)} \ >> > >>> +" >> > >>> + >> > >>> +do_install_ptest() { >> > >>> + # this list and run-ptest needs to be updated on upgrade (the >> project uses >> > >> add_test feature) >> > >>> + for t in "case" custom iterate misc printproperty valid >> charwidth >> > >> graphemetest normtest; do >> > >>> + install -m 0755 ${B}/$t ${D}${PTEST_PATH}/ >> > >>> + done >> > >>> + install -d ${D}${PTEST_PATH}/data >> > >>> + install -m 0644 ${B}/data/GraphemeBreakTest.txt >> > >> ${D}${PTEST_PATH}/data/ >> > >>> + install -m 0644 ${B}/data/NormalizationTest.txt >> ${D}${PTEST_PATH}/data/ >> > >>> +} >> > >>> + >> > >>> +BBCLASSEXTEND = "native" >> > >>> >> > >>> >> > >>> >> > >> >> > >> -- >> > >> Jan Vermaete >> > >> “Success is a self-correcting phenomenom.” -- Gary Hamel >> > >> >> > >> >> > >> >> >> >> -=-=-=-=-=-=-=-=-=-=-=- >> Links: You receive all messages sent to this group. >> View/Reply Online (#119465): >> https://lists.openembedded.org/g/openembedded-devel/message/119465 >> Mute This Topic: https://lists.openembedded.org/mt/115073156/4316185 >> Group Owner: openembedded-devel+owner@lists.openembedded.org >> Unsubscribe: https://lists.openembedded.org/g/openembedded-devel/unsub [ >> yoann.congal@smile.fr] >> -=-=-=-=-=-=-=-=-=-=-=- >> >> > > -- > Yoann Congal > Smile ECS >
On Wed, Sep 17, 2025 at 6:03 AM Yoann Congal via lists.openembedded.org <yoann.congal=smile.fr@lists.openembedded.org> wrote: > > > > Le mar. 16 sept. 2025 à 19:43, Yoann Congal <yoann.congal@smile.fr> a écrit : >> >> >> >> Le mar. 16 sept. 2025 à 12:28, Peter Marko via lists.openembedded.org <peter.marko=siemens.com@lists.openembedded.org> a écrit : >>> >>> >>> >>> > -----Original Message----- >>> > From: Gyorgy Sarvari <skandigraun@gmail.com> >>> > Sent: Tuesday, September 16, 2025 11:16 >>> > To: Marko, Peter (FT D EU SK BFS1) <Peter.Marko@siemens.com>; jan vermaete >>> > <jan.vermaete@gmail.com> >>> > Cc: openembedded-devel@lists.openembedded.org >>> > Subject: Re: [oe] [meta-oe][PATCH 09/10] utf8proc: add new recipe with ptest >>> > >>> > On 9/15/25 12:53, Peter Marko via lists.openembedded.org wrote: >>> > >> -----Original Message----- >>> > >> From: jan vermaete <jan.vermaete@gmail.com> >>> > >> Sent: Saturday, September 6, 2025 19:22 >>> > >> To: Marko, Peter (FT D EU SK BFS1) <Peter.Marko@siemens.com> >>> > >> Cc: openembedded-devel@lists.openembedded.org >>> > >> Subject: Re: [oe] [meta-oe][PATCH 09/10] utf8proc: add new recipe with ptest >>> > >> >>> > >> If I'm not mistaken the usage of a tag in the fetcher does require >>> > >> network access. >>> > >> What's not always the case. >>> > >> This does break the parsing by bitbake when no network/Internet is available. >>> > > Hello, that is true for older releases. >>> > > In master, using tag is possible and even encouraged/required to validate that >>> > the hash belongs to a tag. >>> > > >>> > >>> > Yes, but this patch seems to be missing a revision also, in which case >>> > the old behavior stays. >>> >>> Oops, sorry for that. >>> I'll send a patch in the evening if someone didn't already. >> >> >> Hello, >> >> This is an ideal newcomer patch. >> A coworker of mine and beginner contributor wants to take a look at it. >> Could you wait a day to see if he can get it sent tomorrow? > > > Patch sent here : https://lists.openembedded.org/g/openembedded-devel/message/119481 > Thanks for addressing it, > Thanks! > >>> > >>> > > Peter >>> > > >>> > >> On Fri, Sep 5, 2025 at 12:13 AM Peter Marko via lists.openembedded.org >>> > >> <peter.marko=siemens.com@lists.openembedded.org> wrote: >>> > >>> From: Peter Marko <peter.marko@siemens.com> >>> > >>> >>> > >>> It is needed for poco 1.14+ >>> > >>> Ptest runs for less than a second. >>> > >>> >>> > >>> Signed-off-by: Peter Marko <peter.marko@siemens.com> >>> > >>> --- >>> > >>> .../include/ptest-packagelists-meta-oe.inc | 1 + >>> > >>> .../utf8proc/utf8proc/run-ptest | 15 +++++++++ >>> > >>> .../utf8proc/utf8proc_2.10.0.bb | 33 +++++++++++++++++++ >>> > >>> 3 files changed, 49 insertions(+) >>> > >>> create mode 100644 meta-oe/recipes-support/utf8proc/utf8proc/run-ptest >>> > >>> create mode 100644 meta-oe/recipes-support/utf8proc/utf8proc_2.10.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 d77b97d576..18324ff0d3 100644 >>> > >>> --- a/meta-oe/conf/include/ptest-packagelists-meta-oe.inc >>> > >>> +++ b/meta-oe/conf/include/ptest-packagelists-meta-oe.inc >>> > >>> @@ -44,6 +44,7 @@ PTESTS_FAST_META_OE = "\ >>> > >>> pv \ >>> > >>> sdbus-c++ \ >>> > >>> tomlplusplus \ >>> > >>> + utf8proc \ >>> > >>> uthash \ >>> > >>> xmlsec1 \ >>> > >>> zeromq \ >>> > >>> diff --git a/meta-oe/recipes-support/utf8proc/utf8proc/run-ptest b/meta- >>> > >> oe/recipes-support/utf8proc/utf8proc/run-ptest >>> > >>> new file mode 100644 >>> > >>> index 0000000000..349e496d68 >>> > >>> --- /dev/null >>> > >>> +++ b/meta-oe/recipes-support/utf8proc/utf8proc/run-ptest >>> > >>> @@ -0,0 +1,15 @@ >>> > >>> +#!/bin/sh >>> > >>> + >>> > >>> +execute_test() { >>> > >>> + eval "./$1" && echo "PASS: $1" || echo "FAIL: $1" >>> > >>> +} >>> > >>> + >>> > >>> +execute_test "case" >>> > >>> +execute_test "custom" >>> > >>> +execute_test "iterate" >>> > >>> +execute_test "misc" >>> > >>> +execute_test "printproperty" >>> > >>> +execute_test "valid" >>> > >>> +execute_test "charwidth" >>> > >>> +execute_test "graphemetest data/GraphemeBreakTest.txt" >>> > >>> +execute_test "normtest data/NormalizationTest.txt" >>> > >>> diff --git a/meta-oe/recipes-support/utf8proc/utf8proc_2.10.0.bb b/meta- >>> > >> oe/recipes-support/utf8proc/utf8proc_2.10.0.bb >>> > >>> new file mode 100644 >>> > >>> index 0000000000..e42d16b8b7 >>> > >>> --- /dev/null >>> > >>> +++ b/meta-oe/recipes-support/utf8proc/utf8proc_2.10.0.bb >>> > >>> @@ -0,0 +1,33 @@ >>> > >>> +SUMMARY = "library that provides operations for data in the UTF-8 >>> > encoding" >>> > >>> +DESCRIPTION = "utf8proc is a small, clean C library that provides Unicode \ >>> > >>> +normalization, case-folding, and other operations for data in the UTF-8 \ >>> > >>> +encoding, supporting Unicode version 16.0" >>> > >>> +HOMEPAGE = "https://juliastrings.github.io/utf8proc/" >>> > >>> +SECTION = "libs" >>> > >>> + >>> > >>> +LICENSE = "MIT & Unicode-3.0" >>> > >>> +LIC_FILES_CHKSUM = >>> > >> "file://LICENSE.md;md5=96d5a3ba306e0f24fb289427af484408" >>> > >>> + >>> > >>> +SRC_URI = "\ >>> > >>> + >>> > >> >>> > git://github.com/JuliaStrings/utf8proc;protocol=https;branch=master;tag=v${PV} \ >>> > >>> + file://run-ptest \ >>> > >>> +" >>> > >>> + >>> > >>> +inherit cmake ptest >>> > >>> + >>> > >>> +EXTRA_OECMAKE = "\ >>> > >>> + -DBUILD_SHARED_LIBS=ON \ >>> > >>> + ${@bb.utils.contains('PTEST_ENABLED', '1', '-DBUILD_TESTING=ON - >>> > >> DUTF8PROC_ENABLE_TESTING=ON ', '', d)} \ >>> > >>> +" >>> > >>> + >>> > >>> +do_install_ptest() { >>> > >>> + # this list and run-ptest needs to be updated on upgrade (the project uses >>> > >> add_test feature) >>> > >>> + for t in "case" custom iterate misc printproperty valid charwidth >>> > >> graphemetest normtest; do >>> > >>> + install -m 0755 ${B}/$t ${D}${PTEST_PATH}/ >>> > >>> + done >>> > >>> + install -d ${D}${PTEST_PATH}/data >>> > >>> + install -m 0644 ${B}/data/GraphemeBreakTest.txt >>> > >> ${D}${PTEST_PATH}/data/ >>> > >>> + install -m 0644 ${B}/data/NormalizationTest.txt ${D}${PTEST_PATH}/data/ >>> > >>> +} >>> > >>> + >>> > >>> +BBCLASSEXTEND = "native" >>> > >>> >>> > >>> >>> > >>> >>> > >> >>> > >> -- >>> > >> Jan Vermaete >>> > >> “Success is a self-correcting phenomenom.” -- Gary Hamel >>> > >> >>> > >> >>> > >> >>> >>> >>> >>> >> >> >> -- >> Yoann Congal >> Smile ECS > > > > -- > Yoann Congal > Smile ECS > > -=-=-=-=-=-=-=-=-=-=-=- > Links: You receive all messages sent to this group. > View/Reply Online (#119482): https://lists.openembedded.org/g/openembedded-devel/message/119482 > Mute This Topic: https://lists.openembedded.org/mt/115073156/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 d77b97d576..18324ff0d3 100644 --- a/meta-oe/conf/include/ptest-packagelists-meta-oe.inc +++ b/meta-oe/conf/include/ptest-packagelists-meta-oe.inc @@ -44,6 +44,7 @@ PTESTS_FAST_META_OE = "\ pv \ sdbus-c++ \ tomlplusplus \ + utf8proc \ uthash \ xmlsec1 \ zeromq \ diff --git a/meta-oe/recipes-support/utf8proc/utf8proc/run-ptest b/meta-oe/recipes-support/utf8proc/utf8proc/run-ptest new file mode 100644 index 0000000000..349e496d68 --- /dev/null +++ b/meta-oe/recipes-support/utf8proc/utf8proc/run-ptest @@ -0,0 +1,15 @@ +#!/bin/sh + +execute_test() { + eval "./$1" && echo "PASS: $1" || echo "FAIL: $1" +} + +execute_test "case" +execute_test "custom" +execute_test "iterate" +execute_test "misc" +execute_test "printproperty" +execute_test "valid" +execute_test "charwidth" +execute_test "graphemetest data/GraphemeBreakTest.txt" +execute_test "normtest data/NormalizationTest.txt" diff --git a/meta-oe/recipes-support/utf8proc/utf8proc_2.10.0.bb b/meta-oe/recipes-support/utf8proc/utf8proc_2.10.0.bb new file mode 100644 index 0000000000..e42d16b8b7 --- /dev/null +++ b/meta-oe/recipes-support/utf8proc/utf8proc_2.10.0.bb @@ -0,0 +1,33 @@ +SUMMARY = "library that provides operations for data in the UTF-8 encoding" +DESCRIPTION = "utf8proc is a small, clean C library that provides Unicode \ +normalization, case-folding, and other operations for data in the UTF-8 \ +encoding, supporting Unicode version 16.0" +HOMEPAGE = "https://juliastrings.github.io/utf8proc/" +SECTION = "libs" + +LICENSE = "MIT & Unicode-3.0" +LIC_FILES_CHKSUM = "file://LICENSE.md;md5=96d5a3ba306e0f24fb289427af484408" + +SRC_URI = "\ + git://github.com/JuliaStrings/utf8proc;protocol=https;branch=master;tag=v${PV} \ + file://run-ptest \ +" + +inherit cmake ptest + +EXTRA_OECMAKE = "\ + -DBUILD_SHARED_LIBS=ON \ + ${@bb.utils.contains('PTEST_ENABLED', '1', '-DBUILD_TESTING=ON -DUTF8PROC_ENABLE_TESTING=ON ', '', d)} \ +" + +do_install_ptest() { + # this list and run-ptest needs to be updated on upgrade (the project uses add_test feature) + for t in "case" custom iterate misc printproperty valid charwidth graphemetest normtest; do + install -m 0755 ${B}/$t ${D}${PTEST_PATH}/ + done + install -d ${D}${PTEST_PATH}/data + install -m 0644 ${B}/data/GraphemeBreakTest.txt ${D}${PTEST_PATH}/data/ + install -m 0644 ${B}/data/NormalizationTest.txt ${D}${PTEST_PATH}/data/ +} + +BBCLASSEXTEND = "native"