nodejs: remove extra CVE_PRODUCT
PATCH 1/4 nodejs: remove extra CVE_PRODUCT
CVE_PRODUCT is specified twice - the second instance only duplicates one value from the first instance.
Remove this extra CVE_PRODUCT.
Signed-off-by Gyorgy Sarvari <[email protected]>
--- meta-oe/recipes-devtools/nodejs/nodejs_22.21.1.bb | 2 -- 1 file changed, 2 deletions(-)
meta-oe/recipes-devtools/nodejs/nodejs_22.21.1.bb +0 -2
@@ -43,8 +43,6 @@ SRC_URI[sha256sum] = "487d73fd4db00dc2420d659a8221b181a7937fbc5bc73f31c30b1680ad S = "${UNPACKDIR}/node-v${PV}" -CVE_PRODUCT += "node.js" - # v8 errors out if you have set CCACHE CCACHE = ""
PATCH 2/4 uriparser: upgrade 0.9.8 -> 1.0.0
Contains fix for CVE-2025-67899
License-Update: license was moved to subfolder. There is no hash change.
Changelog:
https://github.com/uriparser/uriparser/blob/uriparser-1.0.0/ChangeLog
Signed-off-by Gyorgy Sarvari <[email protected]>
---
.../uriparser/{uriparser_0.9.8.bb => uriparser_1.0.0.bb} | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
rename meta-oe/recipes-support/uriparser/{uriparser_0.9.8.bb => uriparser_1.0.0.bb} (71%)meta-oe/recipes-support/uriparser/uriparser_1.0.0.bb renamed from meta-oe/recipes-support/uriparser/uriparser_0.9.8.bb +2 -2
@@ -2,10 +2,10 @@ SUMMARY = "RFC 3986 compliant URI parsing library" HOMEPAGE = "https://uriparser.github.io" LICENSE = "BSD-3-Clause" -LIC_FILES_CHKSUM = "file://COPYING;md5=fcc5a53146c2401f4b4f6a3bdf3f0168" +LIC_FILES_CHKSUM = "file://src/COPYING;md5=fcc5a53146c2401f4b4f6a3bdf3f0168" SRC_URI = "https://github.com/${BPN}/${BPN}/releases/download/${BP}/${BP}.tar.gz" -SRC_URI[sha256sum] = "4cd0e4f93b477272fabceeb0202f269169fe6ec3044e10fac6acbcdf354bb080" +SRC_URI[sha256sum] = "291f25264a5c025005b1bc39de3c029e6a6ca0a8d6cfa5e61cb5b03702c0884d" inherit cmake github-releases
PATCH 3/4 uriparser: add ptest support
In reply to Gyorgy SarvariIt takes about a second to execute.
The test suite is covered by a different license (lgpl 2.1+) than the main recipe (3-clause bsd).
Sample output:
root@qemux86-64:~# ptest-runner START: ptest-runner 2025-12-22T19:34 BEGIN: /usr/lib/uriparser/ptest [==========] Running 407 tests from 35 test suites. [----------] Global test environment set-up. [----------] 14 tests from CopyUriSuite PASS: CopyUriSuite.ErrorSourceUriNull PASS: CopyUriSuite.ErrorDestUriNull [...many lines...] PASS: SetUserInfo.UriWithoutHostNonNullRejected [----------] 2 tests from VersionSuite PASS: VersionSuite.EnsureVersionDefinesInSync PASS: VersionSuite.EnsureRuntimeVersionAsExpected [----------] Global test environment tear-down [==========] 407 tests from 35 test suites ran. [ PASSED ] 407 tests. DURATION: 1 END: /usr/lib/uriparser/ptest 2025-12-22T19:34 STOP: ptest-runner TOTAL: 1 FAIL: 0
Signed-off-by Gyorgy Sarvari <[email protected]>
--- .../include/ptest-packagelists-meta-oe.inc | 1 + .../uriparser/uriparser/run-ptest | 2 ++ .../uriparser/uriparser_1.0.0.bb | 24 +++++++++++++++---- 3 files changed, 22 insertions(+), 5 deletions(-) create mode 100644 meta-oe/recipes-support/uriparser/uriparser/run-ptest
meta-oe/conf/include/ptest-packagelists-meta-oe.inc +1 -0
@@ -58,6 +58,7 @@ PTESTS_FAST_META_OE = "\ zeromq \ cjson \ libplist \ + uriparser \ " PTESTS_FAST_META_OE:append:x86 = " mcelog" PTESTS_FAST_META_OE:append:x86-64 = " mcelog"
meta-oe/recipes-support/uriparser/uriparser/run-ptest new file +2 -0
@@ -0,0 +1,2 @@ +#!/bin/sh +./testrunner --gtest_print_time=0 | sed -E '/^\[ RUN/d ; s/\[ OK \]/PASS: / ; s/\[ DISABLED \]/SKIP: / ; s/\[ FAILED \]/FAIL: /'
meta-oe/recipes-support/uriparser/uriparser_1.0.0.bb +19 -5
@@ -1,16 +1,30 @@ SUMMARY = "RFC 3986 compliant URI parsing library" HOMEPAGE = "https://uriparser.github.io" -LICENSE = "BSD-3-Clause" -LIC_FILES_CHKSUM = "file://src/COPYING;md5=fcc5a53146c2401f4b4f6a3bdf3f0168" +LICENSE = "BSD-3-Clause & LGPL-2.1-or-later" +LICENSE:${PN} = "BSD-3-Clause" +LICENSE:${PN}-ptest = "LGPL-2.1-or-later" -SRC_URI = "https://github.com/${BPN}/${BPN}/releases/download/${BP}/${BP}.tar.gz" +LIC_FILES_CHKSUM = "file://src/COPYING;md5=fcc5a53146c2401f4b4f6a3bdf3f0168 \ + file://test/COPYING;md5=b9e6430863a3ea22cf4b0a8518279ed3" + +SRC_URI = "https://github.com/${BPN}/${BPN}/releases/download/${BP}/${BP}.tar.gz \ + file://run-ptest" SRC_URI[sha256sum] = "291f25264a5c025005b1bc39de3c029e6a6ca0a8d6cfa5e61cb5b03702c0884d" -inherit cmake github-releases +inherit cmake github-releases ptest UPSTREAM_CHECK_REGEX = "releases/tag/${BPN}-(?P<pver>\d+(\.\d+)+)" -EXTRA_OECMAKE += "-DURIPARSER_BUILD_DOCS:BOOL=OFF -DURIPARSER_BUILD_TESTS:BOOL=OFF" +PACKAGECONFIG = "${@bb.utils.contains('PTEST_ENABLED', '1', 'test', '', d)} " +PACKAGECONFIG[test] = "-DURIPARSER_BUILD_TESTS:BOOL=ON, -DURIPARSER_BUILD_TESTS:BOOL=OFF, googletest" + +EXTRA_OECMAKE += " \ + -DURIPARSER_BUILD_DOCS:BOOL=OFF \ +" + +do_install_ptest(){ + install ${B}/testrunner ${D}${PTEST_PATH} +} BBCLASSEXTEND += "native"
PATCH 4/4 ptest-packagelist.inc: sort packages alphabetically
In reply to Gyorgy SarvariSigned-off-by Gyorgy Sarvari <[email protected]>
--- meta-oe/conf/include/ptest-packagelists-meta-oe.inc | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-)
meta-oe/conf/include/ptest-packagelists-meta-oe.inc +4 -4
@@ -9,6 +9,7 @@ PTESTS_FAST_META_OE = "\ asio \ audiofile \ + cjson \ cli11 \ cmocka \ cunit \
@@ -29,6 +30,7 @@ PTESTS_FAST_META_OE = "\ libjcat \ libio-pty-perl \ libmanette \ + libplist \ librelp \ libssh \ libteam \
@@ -51,14 +53,12 @@ PTESTS_FAST_META_OE = "\ pv \ sdbus-c++ \ tomlplusplus \ + uriparser \ utf8proc \ uthash \ xmlsec1 \ ${@bb.utils.contains('DISTRO_FEATURES', 'pam', 'xrdp', '', d)} \ zeromq \ - cjson \ - libplist \ - uriparser \ " PTESTS_FAST_META_OE:append:x86 = " mcelog" PTESTS_FAST_META_OE:append:x86-64 = " mcelog"
@@ -72,8 +72,8 @@ PTESTS_SLOW_META_OE = "\ fftw \ libusb-compat \ mariadb \ - rocksdb \ re2 \ + rocksdb \ " PTESTS_SLOW_META_OE:append:x86 = " kernel-selftest" PTESTS_SLOW_META_OE:append:x86-64 = " kernel-selftest"