[oe] [meta-oe] [PATCH v3] lastlog2: add new recipe
From: Wang Mingyu Signed-off-by: Wang Mingyu --- ...emove-lto-to-fix-link-error-of-clang.patch | 31 .../lastlog2/lastlog2_1.1.0.bb| 36 +++ 2 files changed, 67 insertions(+) create mode 100644 meta-oe/recipes-extended/lastlog2/files/0001-remove-lto-to-fix-link-error-of-clang.patch create mode 100644 meta-oe/recipes-extended/lastlog2/lastlog2_1.1.0.bb diff --git a/meta-oe/recipes-extended/lastlog2/files/0001-remove-lto-to-fix-link-error-of-clang.patch b/meta-oe/recipes-extended/lastlog2/files/0001-remove-lto-to-fix-link-error-of-clang.patch new file mode 100644 index 00..71c3de9748 --- /dev/null +++ b/meta-oe/recipes-extended/lastlog2/files/0001-remove-lto-to-fix-link-error-of-clang.patch @@ -0,0 +1,31 @@ +From 692523d2f8bf0ce893a781761154db4277f0fceb Mon Sep 17 00:00:00 2001 +From: Wang Mingyu +Date: Wed, 19 Jul 2023 07:11:15 + +Subject: remove lto to fix link error of clang + +error message: +| tests/tst-y2038-64bit-time_t.p/tst-y2038-64bit-time_t.c.o: file not recognized: file format not recognized +| clang-16: error: linker command failed with exit code 1 (use -v to see invocation) + +Upstream-Status: Pending + +Signed-off-by: Wang Mingyu +--- + meson.build | 1 - + 1 file changed, 1 deletion(-) + +diff --git a/meson.build b/meson.build +index c521577..13d993b 100644 +--- a/meson.build b/meson.build +@@ -26,7 +26,6 @@ add_project_arguments(['-D_GNU_SOURCE=1', + '-DPROJECT_VERSION="@0@"'.format(meson.project_version()) ], language : 'c') + + possible_cc_flags = [ +- '-flto=auto', + '-ffat-lto-objects', + '-fstack-protector-strong', + '-funwind-tables', +-- +2.34.1 + diff --git a/meta-oe/recipes-extended/lastlog2/lastlog2_1.1.0.bb b/meta-oe/recipes-extended/lastlog2/lastlog2_1.1.0.bb new file mode 100644 index 00..757af0073a --- /dev/null +++ b/meta-oe/recipes-extended/lastlog2/lastlog2_1.1.0.bb @@ -0,0 +1,36 @@ +SUMMARY = "Y2038 safe version of lastlog" +HOMEPAGE = "https://github.com/thkukuk/lastlog2"; +DESCRIPTION = "lastlog reports the last login of a given user or of all users who did ever login on a system." +LICENSE = "BSD-2-Clause" +LIC_FILES_CHKSUM = "file://LICENSE;md5=020090a00b69dd2af9ab82eb0003ea2c" +SECTION = "libs" + +SRCREV = "585153a577788c590370d20e40263b61238dfab3" + +SRC_URI = "git://github.com/thkukuk/lastlog2.git;branch=main;protocol=https \ + file://0001-remove-lto-to-fix-link-error-of-clang.patch \ +" + +S = "${WORKDIR}/git" + +inherit meson pkgconfig systemd features_check + +DEPENDS += " ${@bb.utils.contains('DISTRO_FEATURES', 'pam', 'libpam', '', d)} sqlite3 " +REQUIRED_DISTRO_FEATURES = "pam" + +SYSTEMD_SERVICE:${PN} = "lastlog2-import.service" + +EXTRA_OEMESON = " -Dpamlibdir=${libdir}" + +do_install:append () { + if [ -d ${D}${prefix}/lib/systemd -a ${D}${prefix}/lib != `dirname ${D}${systemd_unitdir}` ]; then + # Fix makefile hardcoded path assumptions for systemd (assumes $prefix) + # without usrmerge distro feature enabled + install -d `dirname ${D}${systemd_unitdir}` + mv ${D}${prefix}/lib/systemd `dirname ${D}${systemd_unitdir}` + fi +} + +FILES:${PN} += " ${systemd_system_unitdir} " +FILES:${PN} += " ${libdir} " +FILES:${PN} += " ${nonarch_libdir}/tmpfiles.d/* " -- 2.34.1 -=-=-=-=-=-=-=-=-=-=-=- Links: You receive all messages sent to this group. View/Reply Online (#104010): https://lists.openembedded.org/g/openembedded-devel/message/104010 Mute This Topic: https://lists.openembedded.org/mt/100345611/21656 Group Owner: openembedded-devel+ow...@lists.openembedded.org Unsubscribe: https://lists.openembedded.org/g/openembedded-devel/unsub [arch...@mail-archive.com] -=-=-=-=-=-=-=-=-=-=-=-
[oe] [meta-oe] [PATCH v3] wtmpdb: add new recipe
From: Wang Mingyu Signed-off-by: Wang Mingyu --- ...emove-lto-to-fix-link-error-of-clang.patch | 31 .../recipes-extended/wtmpdb/wtmpdb_0.7.1.bb | 36 +++ 2 files changed, 67 insertions(+) create mode 100644 meta-oe/recipes-extended/wtmpdb/files/0001-remove-lto-to-fix-link-error-of-clang.patch create mode 100644 meta-oe/recipes-extended/wtmpdb/wtmpdb_0.7.1.bb diff --git a/meta-oe/recipes-extended/wtmpdb/files/0001-remove-lto-to-fix-link-error-of-clang.patch b/meta-oe/recipes-extended/wtmpdb/files/0001-remove-lto-to-fix-link-error-of-clang.patch new file mode 100644 index 00..ef188e7a15 --- /dev/null +++ b/meta-oe/recipes-extended/wtmpdb/files/0001-remove-lto-to-fix-link-error-of-clang.patch @@ -0,0 +1,31 @@ +From 9840939789dec9153150e8f9ae34de4171a5c15e Mon Sep 17 00:00:00 2001 +From: Wang Mingyu +Date: Wed, 19 Jul 2023 07:31:32 + +Subject: [PATCH] remove lto to fix link error of clang + +error message: +| tests/tst-dlopen.p/tst-dlopen.c.o: file not recognized: file format not recognized +| clang-16: error: linker command failed with exit code 1 (use -v to see invocation) + +Upstream-Status: Pending + +Signed-off-by: Wang Mingyu +--- + meson.build | 1 - + 1 file changed, 1 deletion(-) + +diff --git a/meson.build b/meson.build +index 6fe8045..166a15b 100644 +--- a/meson.build b/meson.build +@@ -28,7 +28,6 @@ add_project_arguments(['-D_GNU_SOURCE=1', +'-D_TIME_BITS=64'], language : 'c') + + possible_cc_flags = [ +- '-flto=auto', + '-ffat-lto-objects', + '-fstack-protector-strong', + '-funwind-tables', +-- +2.34.1 + diff --git a/meta-oe/recipes-extended/wtmpdb/wtmpdb_0.7.1.bb b/meta-oe/recipes-extended/wtmpdb/wtmpdb_0.7.1.bb new file mode 100644 index 00..cffae2d432 --- /dev/null +++ b/meta-oe/recipes-extended/wtmpdb/wtmpdb_0.7.1.bb @@ -0,0 +1,36 @@ +SUMMARY = "Y2038 safe version of wtmp" +HOMEPAGE = "https://github.com/thkukuk/wtmpdb"; +DESCRIPTION = "last reports the login and logout times of users and when the machine got rebooted." +LICENSE = "BSD-2-Clause" +LIC_FILES_CHKSUM = "file://LICENSE;md5=020090a00b69dd2af9ab82eb0003ea2c" +SECTION = "libs" + +SRCREV = "502b19a41c7a3b1b5e70969b18088683825f71f8" + +SRC_URI = "git://github.com/thkukuk/wtmpdb.git;branch=main;protocol=https \ + file://0001-remove-lto-to-fix-link-error-of-clang.patch \ +" + +S = "${WORKDIR}/git" + +inherit meson pkgconfig systemd features_check + +DEPENDS += " ${@bb.utils.contains('DISTRO_FEATURES', 'pam', 'libpam', '', d)} sqlite3 " +REQUIRED_DISTRO_FEATURES = "pam" + +SYSTEMD_SERVICE:${PN} = "wtmpdb-update-boot.service wtmpdb-rotate.service" + +EXTRA_OEMESON = " -Dpamlibdir=${libdir}" + +do_install:append () { + if [ -d ${D}${prefix}/lib/systemd -a ${D}${prefix}/lib != `dirname ${D}${systemd_unitdir}` ]; then + # Fix makefile hardcoded path assumptions for systemd (assumes $prefix) + # without usrmerge distro feature enabled + install -d `dirname ${D}${systemd_unitdir}` + mv ${D}${prefix}/lib/systemd `dirname ${D}${systemd_unitdir}` + fi +} + +FILES:${PN} += " ${systemd_system_unitdir} " +FILES:${PN} += " ${libdir} " +FILES:${PN} += " ${nonarch_libdir}/tmpfiles.d/* " -- 2.34.1 -=-=-=-=-=-=-=-=-=-=-=- Links: You receive all messages sent to this group. View/Reply Online (#104011): https://lists.openembedded.org/g/openembedded-devel/message/104011 Mute This Topic: https://lists.openembedded.org/mt/100345612/21656 Group Owner: openembedded-devel+ow...@lists.openembedded.org Unsubscribe: https://lists.openembedded.org/g/openembedded-devel/unsub [arch...@mail-archive.com] -=-=-=-=-=-=-=-=-=-=-=-
[oe] [meta-oe][PATCH] openwsman: Link with -lm to get floor() definition
Signed-off-by: Khem Raj --- ...01-Link-with-libm-for-floor-function.patch | 71 +++ .../openwsman/openwsman_2.7.2.bb | 1 + 2 files changed, 72 insertions(+) create mode 100644 meta-oe/recipes-extended/openwsman/openwsman/0001-Link-with-libm-for-floor-function.patch diff --git a/meta-oe/recipes-extended/openwsman/openwsman/0001-Link-with-libm-for-floor-function.patch b/meta-oe/recipes-extended/openwsman/openwsman/0001-Link-with-libm-for-floor-function.patch new file mode 100644 index 00..2f47261588 --- /dev/null +++ b/meta-oe/recipes-extended/openwsman/openwsman/0001-Link-with-libm-for-floor-function.patch @@ -0,0 +1,71 @@ +From 09101da4efaa5584b7f3f3f3bfa5dbb4d1e26948 Mon Sep 17 00:00:00 2001 +From: Khem Raj +Date: Mon, 24 Jul 2023 22:09:21 -0700 +Subject: [PATCH] Link with libm for floor() function + +LLD linker finds this missing symbol + +arm-yoe-linux-gnueabi-ld.lld: error: undefined reference due to --no-allow-shlib-undefined: floor +>>> referenced by src/lib/libwsman.so.1.0.0 + +Upstream-Status: Submitted [https://github.com/Openwsman/openwsman/pull/195] +Signed-off-by: Khem Raj +--- + CMakeLists.txt | 10 ++ + configure.ac | 3 ++- + src/lib/CMakeLists.txt | 4 + 3 files changed, 16 insertions(+), 1 deletion(-) + +diff --git a/CMakeLists.txt b/CMakeLists.txt +index 6e54c66b..507ee633 100644 +--- a/CMakeLists.txt b/CMakeLists.txt +@@ -297,6 +297,16 @@ ELSE(HAVE_LIBDL) + SET(HAVE_LIBDL 0) + ENDIF(HAVE_LIBDL) + ++# m ++ ++FIND_LIBRARY( HAVE_LIBM "m" ) ++IF(HAVE_LIBM) ++ SET(M_LIBRARIES ${HAVE_LIBM}) ++ SET(HAVE_LIBM 1) ++ELSE(HAVE_LIBM) ++ SET(HAVE_LIBM 0) ++ENDIF(HAVE_LIBM) ++ + # crypt + + FIND_LIBRARY( HAVE_LIBCRYPT "crypt" ) +diff --git a/configure.ac b/configure.ac +index 125564da..010fa0b6 100644 +--- a/configure.ac b/configure.ac +@@ -128,7 +128,8 @@ daemon \ + va_copy \ + memmove \ + bcopy \ +-gmtime_r ++gmtime_r \ ++floor + ) + AC_CHECK_FUNC(socket, , AC_CHECK_LIB(socket, socket)) + AC_CHECK_FUNC(gethostbyname, , AC_CHECK_LIB(nsl, gethostbyname)) +diff --git a/src/lib/CMakeLists.txt b/src/lib/CMakeLists.txt +index 5c51781f..496fd672 100644 +--- a/src/lib/CMakeLists.txt b/src/lib/CMakeLists.txt +@@ -36,6 +36,10 @@ if( HAVE_LIBDL ) + TARGET_LINK_LIBRARIES(wsman ${DL_LIBRARIES}) + endif( HAVE_LIBDL ) + ++if( HAVE_LIBM ) ++TARGET_LINK_LIBRARIES(wsman ${M_LIBRARIES}) ++endif( HAVE_LIBM ) ++ + IF( ENABLE_EVENTING_SUPPORT ) + TARGET_LINK_LIBRARIES( wsman ${WSMAN_CLIENT_PKG} ) + ENDIF( ENABLE_EVENTING_SUPPORT ) +-- +2.41.0 + diff --git a/meta-oe/recipes-extended/openwsman/openwsman_2.7.2.bb b/meta-oe/recipes-extended/openwsman/openwsman_2.7.2.bb index 39a9c52a47..1c68b5f432 100644 --- a/meta-oe/recipes-extended/openwsman/openwsman_2.7.2.bb +++ b/meta-oe/recipes-extended/openwsman/openwsman_2.7.2.bb @@ -21,6 +21,7 @@ SRC_URI = "git://github.com/Openwsman/openwsman.git;branch=main;protocol=https \ file://libssl-is-required-if-eventint-supported.patch \ file://openwsmand.service \ file://0001-lock.c-Define-PTHREAD_MUTEX_RECURSIVE_NP-if-undefine.patch \ + file://0001-Link-with-libm-for-floor-function.patch \ " S = "${WORKDIR}/git" -- 2.41.0 -=-=-=-=-=-=-=-=-=-=-=- Links: You receive all messages sent to this group. View/Reply Online (#104009): https://lists.openembedded.org/g/openembedded-devel/message/104009 Mute This Topic: https://lists.openembedded.org/mt/100344882/21656 Group Owner: openembedded-devel+ow...@lists.openembedded.org Unsubscribe: https://lists.openembedded.org/g/openembedded-devel/unsub [arch...@mail-archive.com] -=-=-=-=-=-=-=-=-=-=-=-
[oe] [meta-oe][PATCH] mariadb: Upgrade to 10.11.4
From: Mingli Yu Rebase patch 0001-Add-missing-includes-cstdint-and-cstdio.patch to the new version. After the commit [1] introduced in the new version, there is below build failure though uca-dump installed as [2], so copy the uca-dump to the right place to fix the below failure. make[2]: *** No rule to make target 'strings/uca-dump', needed by 'strings/ctype-uca1400data.h'. Stop. [1] https://github.com/MariaDB/server/commit/6f6fa3bec2decb26598bce33d43594aabb25b201 [2] https://git.openembedded.org/meta-openembedded/commit/?id=1f69de300fd3b772830432eedeb2b055396494a6 Signed-off-by: Mingli Yu --- ...e_10.11.2.bb => mariadb-native_10.11.4.bb} | 0 meta-oe/recipes-dbs/mysql/mariadb.inc | 8 +++- ...-missing-includes-cstdint-and-cstdio.patch | 41 --- ...{mariadb_10.11.2.bb => mariadb_10.11.4.bb} | 0 4 files changed, 15 insertions(+), 34 deletions(-) rename meta-oe/recipes-dbs/mysql/{mariadb-native_10.11.2.bb => mariadb-native_10.11.4.bb} (100%) rename meta-oe/recipes-dbs/mysql/{mariadb_10.11.2.bb => mariadb_10.11.4.bb} (100%) diff --git a/meta-oe/recipes-dbs/mysql/mariadb-native_10.11.2.bb b/meta-oe/recipes-dbs/mysql/mariadb-native_10.11.4.bb similarity index 100% rename from meta-oe/recipes-dbs/mysql/mariadb-native_10.11.2.bb rename to meta-oe/recipes-dbs/mysql/mariadb-native_10.11.4.bb diff --git a/meta-oe/recipes-dbs/mysql/mariadb.inc b/meta-oe/recipes-dbs/mysql/mariadb.inc index 57930dae3..2fb0bd7be 100644 --- a/meta-oe/recipes-dbs/mysql/mariadb.inc +++ b/meta-oe/recipes-dbs/mysql/mariadb.inc @@ -25,7 +25,7 @@ SRC_URI = "https://archive.mariadb.org/${BP}/source/${BP}.tar.gz \ file://0001-Add-missing-includes-cstdint-and-cstdio.patch \ " SRC_URI:append:libc-musl = " file://ppc-remove-glibc-dep.patch" -SRC_URI[sha256sum] = "1c89dee0caed0f68bc2a1d203eb98a123150e6a179f6ee0f1fc0ba3f08dc71dc" +SRC_URI[sha256sum] = "ce8dac125568cc5f40da74c17212767c92d8faed81066580b526a485a591127d" UPSTREAM_CHECK_URI = "https://github.com/MariaDB/server/releases"; @@ -110,6 +110,11 @@ OECMAKE_GENERATOR = "Unix Makefiles" ARM_INSTRUCTION_SET:armv4 = "arm" ARM_INSTRUCTION_SET:armv5 = "arm" +do_compile:prepend:class-target () { +# remove the buildpath +sed -i -e "s:CMAKE_SYSROOT:CMAKE_SYSROOT_PLACE_HOLDER:g" ${S}/libmariadb/mariadb_config/mariadb_config.c.in +} + do_configure:append() { # handle distros with different values of ${libexecdir} libexecdir2=`echo ${libexecdir} | sed -e 's+/usr/++g'` @@ -140,6 +145,7 @@ do_compile:prepend:class-target () { echo "#endif" >>${B}/include/openssl/kssl.h fi fi +install -D ${RECIPE_SYSROOT_NATIVE}/usr/bin/uca-dump ${B}/strings/uca-dump } SYSROOT_PREPROCESS_FUNCS += "mariadb_sysroot_preprocess" diff --git a/meta-oe/recipes-dbs/mysql/mariadb/0001-Add-missing-includes-cstdint-and-cstdio.patch b/meta-oe/recipes-dbs/mysql/mariadb/0001-Add-missing-includes-cstdint-and-cstdio.patch index 7c37fef49..12fbd7597 100644 --- a/meta-oe/recipes-dbs/mysql/mariadb/0001-Add-missing-includes-cstdint-and-cstdio.patch +++ b/meta-oe/recipes-dbs/mysql/mariadb/0001-Add-missing-includes-cstdint-and-cstdio.patch @@ -1,4 +1,4 @@ -From 6e376601c990abaa5e261d1311f92acb3b370b8f Mon Sep 17 00:00:00 2001 +From 68100b1f2243304289b9a9a35e8fb0e1bb0cf70f Mon Sep 17 00:00:00 2001 From: Khem Raj Date: Tue, 24 Jan 2023 21:40:43 -0800 Subject: [PATCH] Add missing includes and @@ -9,17 +9,16 @@ This is needed with GCC 13 and newer [1] Upstream-Status: Pending Signed-off-by: Khem Raj +Signed-off-by: Mingli Yu --- .../rocksdb/rocksdb/db/compaction/compaction_iteration_stats.h | 1 + storage/rocksdb/rocksdb/include/rocksdb/utilities/checkpoint.h | 1 + .../rocksdb/rocksdb/table/block_based/data_block_hash_index.h| 1 + storage/rocksdb/rocksdb/util/slice.cc| 1 + - storage/rocksdb/rocksdb/util/string_util.h | 1 + - tpool/aio_linux.cc | 1 + - 6 files changed, 6 insertions(+) + 4 files changed, 4 insertions(+) diff --git a/storage/rocksdb/rocksdb/db/compaction/compaction_iteration_stats.h b/storage/rocksdb/rocksdb/db/compaction/compaction_iteration_stats.h -index 963c1d8eb49..73487edd96d 100644 +index 963c1d8e..73487edd 100644 --- a/storage/rocksdb/rocksdb/db/compaction/compaction_iteration_stats.h +++ b/storage/rocksdb/rocksdb/db/compaction/compaction_iteration_stats.h @@ -5,6 +5,7 @@ @@ -31,7 +30,7 @@ index 963c1d8eb49..73487edd96d 100644 struct CompactionIterationStats { diff --git a/storage/rocksdb/rocksdb/include/rocksdb/utilities/checkpoint.h b/storage/rocksdb/rocksdb/include/rocksdb/utilities/checkpoint.h -index c7f93b4cfcd..3c2ab80535a 100644 +index c7f93b4c..3c2ab805 100644 --- a/storage/rocksdb/rocksdb/include/rocksdb/utilities/checkpoint.h +++ b/storage/rocksdb/rocksdb/include/rocksdb/utilities/checkpoint.h @@ -8,6 +8,7 @@ @@ -43,7 +42,7 @@ index c7f93
[oe] [meta-python][PATCH] python3-rdflib: upgrade 6.2.0 -> 6.3.2
The LICENSE file's copyright year was updated, so the checksum changed. rdflib now uses poetry as the backend, so switch from setuptools3. Changelog: https://github.com/RDFLib/rdflib/releases Signed-off-by: Trevor Gamblin --- .../{python3-rdflib_6.2.0.bb => python3-rdflib_6.3.2.bb}| 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) rename meta-python/recipes-devtools/python/{python3-rdflib_6.2.0.bb => python3-rdflib_6.3.2.bb} (63%) diff --git a/meta-python/recipes-devtools/python/python3-rdflib_6.2.0.bb b/meta-python/recipes-devtools/python/python3-rdflib_6.3.2.bb similarity index 63% rename from meta-python/recipes-devtools/python/python3-rdflib_6.2.0.bb rename to meta-python/recipes-devtools/python/python3-rdflib_6.3.2.bb index 282d407090..1b4bb5a40e 100644 --- a/meta-python/recipes-devtools/python/python3-rdflib_6.2.0.bb +++ b/meta-python/recipes-devtools/python/python3-rdflib_6.3.2.bb @@ -1,10 +1,10 @@ SUMMARY = "RDFLib is a pure Python package for working with RDF" LICENSE = "BSD-3-Clause" -LIC_FILES_CHKSUM = "file://LICENSE;md5=bcae79bd3c84b857f42a98a7ccf6ad47" +LIC_FILES_CHKSUM = "file://LICENSE;md5=37d489c0cefe52a17e1d5007e196464a" -SRC_URI[sha256sum] = "62dc3c86d1712db0f55785baf8047f63731fa59b2682be03219cb89262065942" +SRC_URI[sha256sum] = "72af591ff704f4caacea7ecc0c5a9056b8553e0489dd4f35a9bc52dbd41522e0" -inherit pypi setuptools3 +inherit pypi python_poetry_core RDEPENDS:${PN} += " \ ${PYTHON_PN}-isodate \ -- 2.41.0 -=-=-=-=-=-=-=-=-=-=-=- Links: You receive all messages sent to this group. View/Reply Online (#104007): https://lists.openembedded.org/g/openembedded-devel/message/104007 Mute This Topic: https://lists.openembedded.org/mt/100338343/21656 Group Owner: openembedded-devel+ow...@lists.openembedded.org Unsubscribe: https://lists.openembedded.org/g/openembedded-devel/unsub [arch...@mail-archive.com] -=-=-=-=-=-=-=-=-=-=-=-
[oe] [meta-python][PATCH] python3-pyperf: upgrade 2.5.0 -> 2.6.1
inherit python_setuptools_build_meta instead of setuptools3. Changelog: https://github.com/psf/pyperf/releases Signed-off-by: Trevor Gamblin --- .../{python3-pyperf_2.5.0.bb => python3-pyperf_2.6.1.bb} | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) rename meta-python/recipes-devtools/python/{python3-pyperf_2.5.0.bb => python3-pyperf_2.6.1.bb} (85%) diff --git a/meta-python/recipes-devtools/python/python3-pyperf_2.5.0.bb b/meta-python/recipes-devtools/python/python3-pyperf_2.6.1.bb similarity index 85% rename from meta-python/recipes-devtools/python/python3-pyperf_2.5.0.bb rename to meta-python/recipes-devtools/python/python3-pyperf_2.6.1.bb index d5eaa4f607..c63e75cf2e 100644 --- a/meta-python/recipes-devtools/python/python3-pyperf_2.5.0.bb +++ b/meta-python/recipes-devtools/python/python3-pyperf_2.6.1.bb @@ -13,11 +13,11 @@ Features: \ LICENSE = "MIT" LIC_FILES_CHKSUM = "file://COPYING;md5=78bc2e6e87c8c61272937b879e6dc2f8" -SRC_URI[sha256sum] = "9fd9be5b57224e68b5a5b88f7126f15b6c8667573f62a0a39faf14d6fdd13909" +SRC_URI[sha256sum] = "171aea69b8efde61210e512166d8764e7765a9c7678b768052174b01f349f247" DEPENDS += "${PYTHON_PN}-six-native" PYPI_PACKAGE = "pyperf" -inherit pypi setuptools3 +inherit pypi python_setuptools_build_meta RDEPENDS:${PN} += "${PYTHON_PN}-misc ${PYTHON_PN}-statistics" -- 2.41.0 -=-=-=-=-=-=-=-=-=-=-=- Links: You receive all messages sent to this group. View/Reply Online (#104006): https://lists.openembedded.org/g/openembedded-devel/message/104006 Mute This Topic: https://lists.openembedded.org/mt/100338210/21656 Group Owner: openembedded-devel+ow...@lists.openembedded.org Unsubscribe: https://lists.openembedded.org/g/openembedded-devel/unsub [arch...@mail-archive.com] -=-=-=-=-=-=-=-=-=-=-=-
Re: [oe] [meta-python][PATCH] python3-pocketsphinx: upgrade 0.1.15 -> 5.0.1
On 2023-07-24 16:08, Trevor Gamblin via lists.openembedded.org wrote: pocketsphinx now requires the skbuild module. It has changed versioning style, explaining the large jump in version numbers. The LICENSE actually has changed to include parts from other projects, which are either BSD-2-Clause or MIT. Also adopt the fix_cythonized_sources function (inspired by the pandas recipe) to fix some QA warnings: WARNING: python3-pocketsphinx-5.0.1-r0 do_package_qa: QA Issue: File /usr/lib/python3.11/site-packages/pocketsphinx/_pocketsphinx.cpython-311-x86_64-linux-gnu.so in package python3-pocketsphinx contains reference to TMPDIR [buildpaths] WARNING: python3-pocketsphinx-5.0.1-r0 do_package_qa: QA Issue: File /usr/src/debug/python3-pocketsphinx/5.0.1-r0/_skbuild/linux-x86_64-3.11/cmake-build/cython/_pocketsphinx.c in package python3-pocketsphinx-src contains reference to TMPDIR [buildpaths] Changelog: https://github.com/cmusphinx/pocketsphinx/releases Signed-off-by: Trevor Gamblin Scratch this patch for now. I went back to try and add missing RDEPENDS (e.g. python3-logging), and the errors that the fixed_cythonized_sources function appeared to fix resurfaced. h5py and pandas use similar methods but I don't see a difference that hints at why this recipe won't work with the same additions. I also tried switching the recipe from setuptools3 to python_setuptools_build_meta, but even after adding cmake-native and ninja-native to DEPENDS, I see this error during pocketsphinx's do_compile: | writing manifest file 'cython/pocketsphinx.egg-info/SOURCES.txt' | | ERROR Missing dependencies: | cmake | ninja --- .../python/python3-pocketsphinx_0.1.15.bb | 14 --- .../python/python3-pocketsphinx_5.0.1.bb | 24 +++ 2 files changed, 24 insertions(+), 14 deletions(-) delete mode 100644 meta-python/recipes-devtools/python/python3-pocketsphinx_0.1.15.bb create mode 100644 meta-python/recipes-devtools/python/python3-pocketsphinx_5.0.1.bb diff --git a/meta-python/recipes-devtools/python/python3-pocketsphinx_0.1.15.bb b/meta-python/recipes-devtools/python/python3-pocketsphinx_0.1.15.bb deleted file mode 100644 index f7ffd9d268..00 --- a/meta-python/recipes-devtools/python/python3-pocketsphinx_0.1.15.bb +++ /dev/null @@ -1,14 +0,0 @@ -SUMMARY = "This package provides a python interface to CMU Sphinxbase and Pocketsphinx libraries created with SWIG and Setuptools." -DESCRIPTION = "Python interface to CMU Sphinxbase and Pocketsphinx libraries" -HOMEPAGE = "https://github.com/bambocher/pocketsphinx-python"; -SECTION = "devel/python" -LICENSE = "BSD-2-Clause" -LIC_FILES_CHKSUM = "file://LICENSE;md5=826ebda787eb48e78aec2624f9faba72" - -SRC_URI[md5sum] = "94d008eebea16acb60a9ffe614575dee" -SRC_URI[sha256sum] = "34d290745c7dbe6fa2cac9815b5c19d10f393e528ecd70e779c21ebc448f9b63" - -inherit pypi setuptools3 features_check - -DEPENDS += "swig-native pulseaudio" -REQUIRED_DISTRO_FEATURES += "pulseaudio" diff --git a/meta-python/recipes-devtools/python/python3-pocketsphinx_5.0.1.bb b/meta-python/recipes-devtools/python/python3-pocketsphinx_5.0.1.bb new file mode 100644 index 00..c6bd978d24 --- /dev/null +++ b/meta-python/recipes-devtools/python/python3-pocketsphinx_5.0.1.bb @@ -0,0 +1,24 @@ +SUMMARY = "This package provides a python interface to CMU Sphinxbase and Pocketsphinx libraries created with SWIG and Setuptools." +DESCRIPTION = "Python interface to CMU Sphinxbase and Pocketsphinx libraries" +HOMEPAGE = "https://github.com/bambocher/pocketsphinx-python"; +SECTION = "devel/python" +LICENSE = "BSD-2-Clause & MIT" +LIC_FILES_CHKSUM = "file://LICENSE;md5=c4d720cdc9c6953091f65e8b01524bb4" + +SRC_URI[md5sum] = "fdd1227fb750f087f0636f8c222cbbb9" +SRC_URI[sha256sum] = "cadfe42cf1596399ff1a6818ad75970c658e567c7250d67e758b29444facede9" + +inherit pypi setuptools3 features_check + +DEPENDS += "swig-native pulseaudio python3-scikit-build-native" +REQUIRED_DISTRO_FEATURES += "pulseaudio" + +PACKAGESPLITFUNCS =+ "fix_cythonized_sources" + +fix_cythonized_sources() { +for f in `grep -l -r -e '\/* Generated by Cython.*/$' ${PKGD}/usr/src/debug/${PN}/${EXTENDPE}${PV}-${PR}`; do +if [ -e $f ]; then +sed -i -e 's#${RECIPE_SYSROOT_NATIVE}##g' $f +fi +done +} -=-=-=-=-=-=-=-=-=-=-=- Links: You receive all messages sent to this group. View/Reply Online (#104005): https://lists.openembedded.org/g/openembedded-devel/message/104005 Mute This Topic: https://lists.openembedded.org/mt/100337092/21656 Group Owner: openembedded-devel+ow...@lists.openembedded.org Unsubscribe: https://lists.openembedded.org/g/openembedded-devel/unsub [arch...@mail-archive.com] -=-=-=-=-=-=-=-=-=-=-=-
[oe] [meta-python][PATCH] python3-pocketsphinx: upgrade 0.1.15 -> 5.0.1
pocketsphinx now requires the skbuild module. It has changed versioning style, explaining the large jump in version numbers. The LICENSE actually has changed to include parts from other projects, which are either BSD-2-Clause or MIT. Also adopt the fix_cythonized_sources function (inspired by the pandas recipe) to fix some QA warnings: WARNING: python3-pocketsphinx-5.0.1-r0 do_package_qa: QA Issue: File /usr/lib/python3.11/site-packages/pocketsphinx/_pocketsphinx.cpython-311-x86_64-linux-gnu.so in package python3-pocketsphinx contains reference to TMPDIR [buildpaths] WARNING: python3-pocketsphinx-5.0.1-r0 do_package_qa: QA Issue: File /usr/src/debug/python3-pocketsphinx/5.0.1-r0/_skbuild/linux-x86_64-3.11/cmake-build/cython/_pocketsphinx.c in package python3-pocketsphinx-src contains reference to TMPDIR [buildpaths] Changelog: https://github.com/cmusphinx/pocketsphinx/releases Signed-off-by: Trevor Gamblin --- .../python/python3-pocketsphinx_0.1.15.bb | 14 --- .../python/python3-pocketsphinx_5.0.1.bb | 24 +++ 2 files changed, 24 insertions(+), 14 deletions(-) delete mode 100644 meta-python/recipes-devtools/python/python3-pocketsphinx_0.1.15.bb create mode 100644 meta-python/recipes-devtools/python/python3-pocketsphinx_5.0.1.bb diff --git a/meta-python/recipes-devtools/python/python3-pocketsphinx_0.1.15.bb b/meta-python/recipes-devtools/python/python3-pocketsphinx_0.1.15.bb deleted file mode 100644 index f7ffd9d268..00 --- a/meta-python/recipes-devtools/python/python3-pocketsphinx_0.1.15.bb +++ /dev/null @@ -1,14 +0,0 @@ -SUMMARY = "This package provides a python interface to CMU Sphinxbase and Pocketsphinx libraries created with SWIG and Setuptools." -DESCRIPTION = "Python interface to CMU Sphinxbase and Pocketsphinx libraries" -HOMEPAGE = "https://github.com/bambocher/pocketsphinx-python"; -SECTION = "devel/python" -LICENSE = "BSD-2-Clause" -LIC_FILES_CHKSUM = "file://LICENSE;md5=826ebda787eb48e78aec2624f9faba72" - -SRC_URI[md5sum] = "94d008eebea16acb60a9ffe614575dee" -SRC_URI[sha256sum] = "34d290745c7dbe6fa2cac9815b5c19d10f393e528ecd70e779c21ebc448f9b63" - -inherit pypi setuptools3 features_check - -DEPENDS += "swig-native pulseaudio" -REQUIRED_DISTRO_FEATURES += "pulseaudio" diff --git a/meta-python/recipes-devtools/python/python3-pocketsphinx_5.0.1.bb b/meta-python/recipes-devtools/python/python3-pocketsphinx_5.0.1.bb new file mode 100644 index 00..c6bd978d24 --- /dev/null +++ b/meta-python/recipes-devtools/python/python3-pocketsphinx_5.0.1.bb @@ -0,0 +1,24 @@ +SUMMARY = "This package provides a python interface to CMU Sphinxbase and Pocketsphinx libraries created with SWIG and Setuptools." +DESCRIPTION = "Python interface to CMU Sphinxbase and Pocketsphinx libraries" +HOMEPAGE = "https://github.com/bambocher/pocketsphinx-python"; +SECTION = "devel/python" +LICENSE = "BSD-2-Clause & MIT" +LIC_FILES_CHKSUM = "file://LICENSE;md5=c4d720cdc9c6953091f65e8b01524bb4" + +SRC_URI[md5sum] = "fdd1227fb750f087f0636f8c222cbbb9" +SRC_URI[sha256sum] = "cadfe42cf1596399ff1a6818ad75970c658e567c7250d67e758b29444facede9" + +inherit pypi setuptools3 features_check + +DEPENDS += "swig-native pulseaudio python3-scikit-build-native" +REQUIRED_DISTRO_FEATURES += "pulseaudio" + +PACKAGESPLITFUNCS =+ "fix_cythonized_sources" + +fix_cythonized_sources() { +for f in `grep -l -r -e '\/* Generated by Cython.*/$' ${PKGD}/usr/src/debug/${PN}/${EXTENDPE}${PV}-${PR}`; do +if [ -e $f ]; then +sed -i -e 's#${RECIPE_SYSROOT_NATIVE}##g' $f +fi +done +} -- 2.41.0 -=-=-=-=-=-=-=-=-=-=-=- Links: You receive all messages sent to this group. View/Reply Online (#104004): https://lists.openembedded.org/g/openembedded-devel/message/104004 Mute This Topic: https://lists.openembedded.org/mt/100337092/21656 Group Owner: openembedded-devel+ow...@lists.openembedded.org Unsubscribe: https://lists.openembedded.org/g/openembedded-devel/unsub [arch...@mail-archive.com] -=-=-=-=-=-=-=-=-=-=-=-
Re: [oe] python3-mypy, python3-mypy-extensions: remove
On Mon, Jul 24, 2023 at 12:30 PM Justin Bronder wrote: > On 24/07/23 15:18 -0400, Justin Bronder wrote: > > On 24/07/23 12:58 -0400, Trevor Gamblin wrote: > > > While attempting to upgrade mypy and mypy-extensions, it was discovered > > > that it depends on new modules, some of which have no maintenance plan > > > in place, e.g.: https://pypi.org/project/types-typed-ast/ > > > > That dependency has been dropped upstream as part of removing support > for python > > 3.7 [1]. If there's other other problematic recipes, I think it'd be > beneficial > > to have a type checker for python available. > > > > 1. > https://github.com/python/mypy/commit/2edaf35ec1f91c139dfe1930b1b0d1e1cac59599 > > 1.5 looks like it'll be released soon. If there's interested in keeping > mypy > around, I'll volunteer to try to package it then. > > https://github.com/python/mypy/issues/15588 > That’s much appreciated. We can hold off on the deletion then. Plenty of whack-a-mole to go yet. > > > > > > > > > > Since this is something we want to avoid adding to the ecosystem and > > > mypy isn't a dependency for anything else in meta-python, remove the > > > recipes. > > > > > > Signed-off-by: Trevor Gamblin > > > --- > > > v2 removes the recipes from the packagegroup as well. > > > > > > .../packagegroups/packagegroup-meta-python.bb | 2 -- > > > .../python/python3-mypy-extensions_0.4.3.bb | 12 -- > > > .../python/python3-mypy_0.971.bb | 23 > --- > > > 3 files changed, 37 deletions(-) > > > delete mode 100644 meta-python/recipes-devtools/python/ > python3-mypy-extensions_0.4.3.bb > > > delete mode 100644 meta-python/recipes-devtools/python/ > python3-mypy_0.971.bb > > > > > > diff --git a/meta-python/recipes-core/packagegroups/ > packagegroup-meta-python.bb b/meta-python/recipes-core/packagegroups/ > packagegroup-meta-python.bb > > > index b23d24c6d4..c12d475047 100644 > > > --- a/meta-python/recipes-core/packagegroups/ > packagegroup-meta-python.bb > > > +++ b/meta-python/recipes-core/packagegroups/ > packagegroup-meta-python.bb > > > @@ -245,8 +245,6 @@ RDEPENDS:packagegroup-meta-python3 = "\ > > > python3-msk \ > > > python3-msm \ > > > python3-multidict \ > > > -python3-mypy \ > > > -python3-mypy-extensions \ > > > python3-natsort \ > > > python3-netaddr \ > > > python3-netifaces \ > > > diff --git a/meta-python/recipes-devtools/python/ > python3-mypy-extensions_0.4.3.bb b/meta-python/recipes-devtools/python/ > python3-mypy-extensions_0.4.3.bb > > > deleted file mode 100644 > > > index 83ac5362d6..00 > > > --- a/meta-python/recipes-devtools/python/ > python3-mypy-extensions_0.4.3.bb > > > +++ /dev/null > > > @@ -1,12 +0,0 @@ > > > -SUMMARY = "Experimental type system extensions for programs checked > with the mypy typechecker" > > > -HOMEPAGE = "https://github.com/python/mypy_extensions"; > > > -LICENSE = "MIT" > > > -LIC_FILES_CHKSUM = > "file://LICENSE;md5=0fe3219e2470a78c0d1837019b8b426e" > > > - > > > -PYPI_PACKAGE = "mypy_extensions" > > > - > > > -inherit pypi setuptools3 > > > - > > > -SRC_URI[sha256sum] = > "2d82818f5bb3e369420cb3c4060a7970edba416647068eb4c5343488a6c604a8" > > > - > > > -BBCLASSEXTEND = "native" > > > diff --git a/meta-python/recipes-devtools/python/python3-mypy_0.971.bb > b/meta-python/recipes-devtools/python/python3-mypy_0.971.bb > > > deleted file mode 100644 > > > index 31fcb06c9e..00 > > > --- a/meta-python/recipes-devtools/python/python3-mypy_0.971.bb > > > +++ /dev/null > > > @@ -1,23 +0,0 @@ > > > -SUMMARY = "Optional static typing for Python 3 and 2 (PEP 484)" > > > -HOMEPAGE = "https://github.com/python/mypy"; > > > -LICENSE = "MIT & Python-2.0" > > > -LIC_FILES_CHKSUM = > "file://LICENSE;md5=6ba8ec528da02073b7e1f4124c0f836f" > > > - > > > -PYPI_PACKAGE = "mypy" > > > - > > > -inherit pypi python_setuptools_build_meta > > > - > > > -SRC_URI[sha256sum] = > "40b0f21484238269ae6a57200c807d80debc6459d444c0489a102d7c6a75fa56" > > > - > > > -BBCLASSEXTEND = "native" > > > - > > > -RDEPENDS:${PN} += " \ > > > -${PYTHON_PN}-mypy-extensions \ > > > -${PYTHON_PN}-typed-ast \ > > > -${PYTHON_PN}-typing-extensions \ > > > -${PYTHON_PN}-json \ > > > -${PYTHON_PN}-compression \ > > > -${PYTHON_PN}-pprint \ > > > -${PYTHON_PN}-difflib \ > > > -${PYTHON_PN}-toml \ > > > -" > > > -- > > > 2.41.0 > > > > > > > > > > > > > > > > > > > > -- > > Justin Bronder > > > > > > > > > > -- > Justin Bronder > > > > -=-=-=-=-=-=-=-=-=-=-=- Links: You receive all messages sent to this group. View/Reply Online (#104003): https://lists.openembedded.org/g/openembedded-devel/message/104003 Mute This Topic: https://lists.openembedded.org/mt/100336398/21656 Group Owner: openembedded-devel+ow...@lists.openembedded.org Unsubscribe: https://lists.openembedded.org/g/openembedded-devel/unsub [arch...@mail-archive.com] -=-=-=-=-=-=-=-=-=-=-=-
[oe] [meta-python][PATCH v2] python3-pandas: upgrade 1.5.3 -> 2.0.3
pandas now requires versioneer, so add that to the DEPENDS list. The LICENSE checksum changed but this was due to line endings and not a difference in content. Changelog: https://github.com/pandas-dev/pandas/releases Signed-off-by: Trevor Gamblin --- v2 fixes the recipe name in the subject line and clarifies why the LICENSE checksum changed. .../{python3-pandas_1.5.3.bb => python3-pandas_2.0.3.bb} | 8 +--- 1 file changed, 5 insertions(+), 3 deletions(-) rename meta-python/recipes-devtools/python/{python3-pandas_1.5.3.bb => python3-pandas_2.0.3.bb} (77%) diff --git a/meta-python/recipes-devtools/python/python3-pandas_1.5.3.bb b/meta-python/recipes-devtools/python/python3-pandas_2.0.3.bb similarity index 77% rename from meta-python/recipes-devtools/python/python3-pandas_1.5.3.bb rename to meta-python/recipes-devtools/python/python3-pandas_2.0.3.bb index 129c3147cf..87a173c8a2 100644 --- a/meta-python/recipes-devtools/python/python3-pandas_1.5.3.bb +++ b/meta-python/recipes-devtools/python/python3-pandas_2.0.3.bb @@ -4,14 +4,16 @@ high-performance, easy-to-use data structures and data analysis tools for \ the Python programming language." HOMEPAGE = "http://pandas.pydata.org/"; LICENSE = "BSD-3-Clause" -LIC_FILES_CHKSUM = "file://LICENSE;md5=c1cc9ab35a8b2aabf933cd6d245b5db3" +LIC_FILES_CHKSUM = "file://LICENSE;md5=cb819092901ddb13a7d0a4f5e05f098a" -SRC_URI[sha256sum] = "74a3fd7e5a7ec052f183273dc7b0acd3a863edf7520f5d3a1765c04ffdb3b0b1" +SRC_URI[sha256sum] = "c02f372a88e0d17f36d3093a644c73cfc1788e876a7c4bcb4020a77512e2043c" inherit pypi setuptools3 DEPENDS += " \ -${PYTHON_PN}-numpy-native ${PYTHON_PN}-cython-native \ +${PYTHON_PN}-cython-native \ +${PYTHON_PN}-numpy-native \ +${PYTHON_PN}-versioneer-native \ " PACKAGESPLITFUNCS =+ "fix_cythonized_sources" -- 2.41.0 -=-=-=-=-=-=-=-=-=-=-=- Links: You receive all messages sent to this group. View/Reply Online (#104002): https://lists.openembedded.org/g/openembedded-devel/message/104002 Mute This Topic: https://lists.openembedded.org/mt/100336616/21656 Group Owner: openembedded-devel+ow...@lists.openembedded.org Unsubscribe: https://lists.openembedded.org/g/openembedded-devel/unsub [arch...@mail-archive.com] -=-=-=-=-=-=-=-=-=-=-=-
Re: [oe] python3-mypy, python3-mypy-extensions: remove
On 24/07/23 15:18 -0400, Justin Bronder wrote: > On 24/07/23 12:58 -0400, Trevor Gamblin wrote: > > While attempting to upgrade mypy and mypy-extensions, it was discovered > > that it depends on new modules, some of which have no maintenance plan > > in place, e.g.: https://pypi.org/project/types-typed-ast/ > > That dependency has been dropped upstream as part of removing support for > python > 3.7 [1]. If there's other other problematic recipes, I think it'd be > beneficial > to have a type checker for python available. > > 1. > https://github.com/python/mypy/commit/2edaf35ec1f91c139dfe1930b1b0d1e1cac59599 1.5 looks like it'll be released soon. If there's interested in keeping mypy around, I'll volunteer to try to package it then. https://github.com/python/mypy/issues/15588 > > > > > > Since this is something we want to avoid adding to the ecosystem and > > mypy isn't a dependency for anything else in meta-python, remove the > > recipes. > > > > Signed-off-by: Trevor Gamblin > > --- > > v2 removes the recipes from the packagegroup as well. > > > > .../packagegroups/packagegroup-meta-python.bb | 2 -- > > .../python/python3-mypy-extensions_0.4.3.bb | 12 -- > > .../python/python3-mypy_0.971.bb | 23 --- > > 3 files changed, 37 deletions(-) > > delete mode 100644 > > meta-python/recipes-devtools/python/python3-mypy-extensions_0.4.3.bb > > delete mode 100644 > > meta-python/recipes-devtools/python/python3-mypy_0.971.bb > > > > diff --git > > a/meta-python/recipes-core/packagegroups/packagegroup-meta-python.bb > > b/meta-python/recipes-core/packagegroups/packagegroup-meta-python.bb > > index b23d24c6d4..c12d475047 100644 > > --- a/meta-python/recipes-core/packagegroups/packagegroup-meta-python.bb > > +++ b/meta-python/recipes-core/packagegroups/packagegroup-meta-python.bb > > @@ -245,8 +245,6 @@ RDEPENDS:packagegroup-meta-python3 = "\ > > python3-msk \ > > python3-msm \ > > python3-multidict \ > > -python3-mypy \ > > -python3-mypy-extensions \ > > python3-natsort \ > > python3-netaddr \ > > python3-netifaces \ > > diff --git > > a/meta-python/recipes-devtools/python/python3-mypy-extensions_0.4.3.bb > > b/meta-python/recipes-devtools/python/python3-mypy-extensions_0.4.3.bb > > deleted file mode 100644 > > index 83ac5362d6..00 > > --- a/meta-python/recipes-devtools/python/python3-mypy-extensions_0.4.3.bb > > +++ /dev/null > > @@ -1,12 +0,0 @@ > > -SUMMARY = "Experimental type system extensions for programs checked with > > the mypy typechecker" > > -HOMEPAGE = "https://github.com/python/mypy_extensions"; > > -LICENSE = "MIT" > > -LIC_FILES_CHKSUM = "file://LICENSE;md5=0fe3219e2470a78c0d1837019b8b426e" > > - > > -PYPI_PACKAGE = "mypy_extensions" > > - > > -inherit pypi setuptools3 > > - > > -SRC_URI[sha256sum] = > > "2d82818f5bb3e369420cb3c4060a7970edba416647068eb4c5343488a6c604a8" > > - > > -BBCLASSEXTEND = "native" > > diff --git a/meta-python/recipes-devtools/python/python3-mypy_0.971.bb > > b/meta-python/recipes-devtools/python/python3-mypy_0.971.bb > > deleted file mode 100644 > > index 31fcb06c9e..00 > > --- a/meta-python/recipes-devtools/python/python3-mypy_0.971.bb > > +++ /dev/null > > @@ -1,23 +0,0 @@ > > -SUMMARY = "Optional static typing for Python 3 and 2 (PEP 484)" > > -HOMEPAGE = "https://github.com/python/mypy"; > > -LICENSE = "MIT & Python-2.0" > > -LIC_FILES_CHKSUM = "file://LICENSE;md5=6ba8ec528da02073b7e1f4124c0f836f" > > - > > -PYPI_PACKAGE = "mypy" > > - > > -inherit pypi python_setuptools_build_meta > > - > > -SRC_URI[sha256sum] = > > "40b0f21484238269ae6a57200c807d80debc6459d444c0489a102d7c6a75fa56" > > - > > -BBCLASSEXTEND = "native" > > - > > -RDEPENDS:${PN} += " \ > > -${PYTHON_PN}-mypy-extensions \ > > -${PYTHON_PN}-typed-ast \ > > -${PYTHON_PN}-typing-extensions \ > > -${PYTHON_PN}-json \ > > -${PYTHON_PN}-compression \ > > -${PYTHON_PN}-pprint \ > > -${PYTHON_PN}-difflib \ > > -${PYTHON_PN}-toml \ > > -" > > -- > > 2.41.0 > > > > > > > > > > > > -- > Justin Bronder > > > -- Justin Bronder -=-=-=-=-=-=-=-=-=-=-=- Links: You receive all messages sent to this group. View/Reply Online (#104001): https://lists.openembedded.org/g/openembedded-devel/message/104001 Mute This Topic: https://lists.openembedded.org/mt/100336398/21656 Group Owner: openembedded-devel+ow...@lists.openembedded.org Unsubscribe: https://lists.openembedded.org/g/openembedded-devel/unsub [arch...@mail-archive.com] -=-=-=-=-=-=-=-=-=-=-=-
Re: [oe] python3-mypy, python3-mypy-extensions: remove
On 24/07/23 12:58 -0400, Trevor Gamblin wrote: > While attempting to upgrade mypy and mypy-extensions, it was discovered > that it depends on new modules, some of which have no maintenance plan > in place, e.g.: https://pypi.org/project/types-typed-ast/ That dependency has been dropped upstream as part of removing support for python 3.7 [1]. If there's other other problematic recipes, I think it'd be beneficial to have a type checker for python available. 1. https://github.com/python/mypy/commit/2edaf35ec1f91c139dfe1930b1b0d1e1cac59599 > > Since this is something we want to avoid adding to the ecosystem and > mypy isn't a dependency for anything else in meta-python, remove the > recipes. > > Signed-off-by: Trevor Gamblin > --- > v2 removes the recipes from the packagegroup as well. > > .../packagegroups/packagegroup-meta-python.bb | 2 -- > .../python/python3-mypy-extensions_0.4.3.bb | 12 -- > .../python/python3-mypy_0.971.bb | 23 --- > 3 files changed, 37 deletions(-) > delete mode 100644 > meta-python/recipes-devtools/python/python3-mypy-extensions_0.4.3.bb > delete mode 100644 meta-python/recipes-devtools/python/python3-mypy_0.971.bb > > diff --git > a/meta-python/recipes-core/packagegroups/packagegroup-meta-python.bb > b/meta-python/recipes-core/packagegroups/packagegroup-meta-python.bb > index b23d24c6d4..c12d475047 100644 > --- a/meta-python/recipes-core/packagegroups/packagegroup-meta-python.bb > +++ b/meta-python/recipes-core/packagegroups/packagegroup-meta-python.bb > @@ -245,8 +245,6 @@ RDEPENDS:packagegroup-meta-python3 = "\ > python3-msk \ > python3-msm \ > python3-multidict \ > -python3-mypy \ > -python3-mypy-extensions \ > python3-natsort \ > python3-netaddr \ > python3-netifaces \ > diff --git > a/meta-python/recipes-devtools/python/python3-mypy-extensions_0.4.3.bb > b/meta-python/recipes-devtools/python/python3-mypy-extensions_0.4.3.bb > deleted file mode 100644 > index 83ac5362d6..00 > --- a/meta-python/recipes-devtools/python/python3-mypy-extensions_0.4.3.bb > +++ /dev/null > @@ -1,12 +0,0 @@ > -SUMMARY = "Experimental type system extensions for programs checked with the > mypy typechecker" > -HOMEPAGE = "https://github.com/python/mypy_extensions"; > -LICENSE = "MIT" > -LIC_FILES_CHKSUM = "file://LICENSE;md5=0fe3219e2470a78c0d1837019b8b426e" > - > -PYPI_PACKAGE = "mypy_extensions" > - > -inherit pypi setuptools3 > - > -SRC_URI[sha256sum] = > "2d82818f5bb3e369420cb3c4060a7970edba416647068eb4c5343488a6c604a8" > - > -BBCLASSEXTEND = "native" > diff --git a/meta-python/recipes-devtools/python/python3-mypy_0.971.bb > b/meta-python/recipes-devtools/python/python3-mypy_0.971.bb > deleted file mode 100644 > index 31fcb06c9e..00 > --- a/meta-python/recipes-devtools/python/python3-mypy_0.971.bb > +++ /dev/null > @@ -1,23 +0,0 @@ > -SUMMARY = "Optional static typing for Python 3 and 2 (PEP 484)" > -HOMEPAGE = "https://github.com/python/mypy"; > -LICENSE = "MIT & Python-2.0" > -LIC_FILES_CHKSUM = "file://LICENSE;md5=6ba8ec528da02073b7e1f4124c0f836f" > - > -PYPI_PACKAGE = "mypy" > - > -inherit pypi python_setuptools_build_meta > - > -SRC_URI[sha256sum] = > "40b0f21484238269ae6a57200c807d80debc6459d444c0489a102d7c6a75fa56" > - > -BBCLASSEXTEND = "native" > - > -RDEPENDS:${PN} += " \ > -${PYTHON_PN}-mypy-extensions \ > -${PYTHON_PN}-typed-ast \ > -${PYTHON_PN}-typing-extensions \ > -${PYTHON_PN}-json \ > -${PYTHON_PN}-compression \ > -${PYTHON_PN}-pprint \ > -${PYTHON_PN}-difflib \ > -${PYTHON_PN}-toml \ > -" > -- > 2.41.0 > > > > -- Justin Bronder -=-=-=-=-=-=-=-=-=-=-=- Links: You receive all messages sent to this group. View/Reply Online (#104000): https://lists.openembedded.org/g/openembedded-devel/message/104000 Mute This Topic: https://lists.openembedded.org/mt/100336187/21656 Group Owner: openembedded-devel+ow...@lists.openembedded.org Unsubscribe: https://lists.openembedded.org/g/openembedded-devel/unsub [arch...@mail-archive.com] -=-=-=-=-=-=-=-=-=-=-=-
[oe] [meta-python][PATCH] python3-parse: upgrade 1.19.0 -> 1.19.1
Switch to using git and a SRCREV to make sure we can keep the ptests. Changelog (https://github.com/r1chardj0n3s/parse/releases): - Add support for sign specifiers in number formats. by @anntzer in #134 - Fix handling of unused alignment by @tomerha in #132 - modern packaging by @wimglenn in #151 - universal wheel by @wimglenn in #155 Signed-off-by: Trevor Gamblin --- ...-parse_1.19.0.bb => python3-parse_1.19.1.bb} | 17 +++-- 1 file changed, 11 insertions(+), 6 deletions(-) rename meta-python/recipes-devtools/python/{python3-parse_1.19.0.bb => python3-parse_1.19.1.bb} (63%) diff --git a/meta-python/recipes-devtools/python/python3-parse_1.19.0.bb b/meta-python/recipes-devtools/python/python3-parse_1.19.1.bb similarity index 63% rename from meta-python/recipes-devtools/python/python3-parse_1.19.0.bb rename to meta-python/recipes-devtools/python/python3-parse_1.19.1.bb index 94c1b53c94..9dc7f79318 100644 --- a/meta-python/recipes-devtools/python/python3-parse_1.19.0.bb +++ b/meta-python/recipes-devtools/python/python3-parse_1.19.1.bb @@ -3,9 +3,18 @@ HOMEPAGE = "https://github.com/r1chardj0n3s/parse"; LICENSE = "MIT" LIC_FILES_CHKSUM = "file://LICENSE;md5=8ab458ad281b60e6f1b39b3feafbfc05" -SRC_URI[sha256sum] = "9ff82852bcb65d139813e2a5197627a94966245c897796760a3a2a8eb66f020b" +SRC_URI[sha256sum] = "cc3a47236ff05da377617ddefa867b7ba983819c664e1afe46249e5b469be464" -inherit pypi setuptools3 ptest +SRC_URI += " \ +git://github.com/r1chardj0n3s/parse.git;branch=master;protocol=https \ +file://run-ptest \ +" + +SRCREV ?= "72776522285d516032faa0f80c4ee6a8964075e8" + +S = "${WORKDIR}/git" + +inherit python_setuptools_build_meta ptest RDEPENDS:${PN} += "\ python3-datetime \ @@ -13,10 +22,6 @@ RDEPENDS:${PN} += "\ python3-numbers \ " -SRC_URI += " \ -file://run-ptest \ -" - RDEPENDS:${PN}-ptest += " \ python3-pytest \ " -- 2.41.0 -=-=-=-=-=-=-=-=-=-=-=- Links: You receive all messages sent to this group. View/Reply Online (#103999): https://lists.openembedded.org/g/openembedded-devel/message/103999 Mute This Topic: https://lists.openembedded.org/mt/100335099/21656 Group Owner: openembedded-devel+ow...@lists.openembedded.org Unsubscribe: https://lists.openembedded.org/g/openembedded-devel/unsub [arch...@mail-archive.com] -=-=-=-=-=-=-=-=-=-=-=-
[oe] [meta-python][PATCH 1/2] python3-versioneer: add recipe
This module is required by newer versions of pandas, so add it as a recipe. Signed-off-by: Trevor Gamblin --- .../packagegroups/packagegroup-meta-python.bb | 1 + .../python/python3-versioneer_0.29.bb | 18 ++ 2 files changed, 19 insertions(+) create mode 100644 meta-python/recipes-devtools/python/python3-versioneer_0.29.bb diff --git a/meta-python/recipes-core/packagegroups/packagegroup-meta-python.bb b/meta-python/recipes-core/packagegroups/packagegroup-meta-python.bb index b23d24c6d4..9500f80e03 100644 --- a/meta-python/recipes-core/packagegroups/packagegroup-meta-python.bb +++ b/meta-python/recipes-core/packagegroups/packagegroup-meta-python.bb @@ -446,6 +446,7 @@ RDEPENDS:packagegroup-meta-python3 = "\ python3-unidiff \ python3-uritemplate \ python3-vcversioner \ +python3-versioneer \ python3-versiontools \ python3-visitor \ python3-waitress \ diff --git a/meta-python/recipes-devtools/python/python3-versioneer_0.29.bb b/meta-python/recipes-devtools/python/python3-versioneer_0.29.bb new file mode 100644 index 00..bdfbfd1be1 --- /dev/null +++ b/meta-python/recipes-devtools/python/python3-versioneer_0.29.bb @@ -0,0 +1,18 @@ +SUMMARY = "Easy VCS-based management of project version strings" +HOMEPAGE = "https://github.com/python-versioneer/python-versioneer"; +SECTION = "devel/python" + +LICENSE = "Unlicense" +LIC_FILES_CHKSUM = "file://LICENSE;md5=f4c62131f879a8445e16a7f265aea635" + +SRC_URI[sha256sum] = "5ab283b9857211d61b53318b7c792cf68e798e765ee17c27ade9f6c924235731" + +inherit pypi python_setuptools_build_meta + +RDEPENDS:${PN} += "\ +python3-json \ +python3-netclient \ +python3-tomllib \ +" + +BBCLASSEXTEND = "native nativesdk" -- 2.41.0 -=-=-=-=-=-=-=-=-=-=-=- Links: You receive all messages sent to this group. View/Reply Online (#103997): https://lists.openembedded.org/g/openembedded-devel/message/103997 Mute This Topic: https://lists.openembedded.org/mt/100334401/21656 Group Owner: openembedded-devel+ow...@lists.openembedded.org Unsubscribe: https://lists.openembedded.org/g/openembedded-devel/unsub [arch...@mail-archive.com] -=-=-=-=-=-=-=-=-=-=-=-
[oe] [meta-python][PATCH 2/2] python-pandas: upgrade 1.5.3 -> 2.0.3
pandas now requires versioneer, so add that to the DEPENDS list. Changelog: https://github.com/pandas-dev/pandas/releases Signed-off-by: Trevor Gamblin --- .../{python3-pandas_1.5.3.bb => python3-pandas_2.0.3.bb} | 8 +--- 1 file changed, 5 insertions(+), 3 deletions(-) rename meta-python/recipes-devtools/python/{python3-pandas_1.5.3.bb => python3-pandas_2.0.3.bb} (77%) diff --git a/meta-python/recipes-devtools/python/python3-pandas_1.5.3.bb b/meta-python/recipes-devtools/python/python3-pandas_2.0.3.bb similarity index 77% rename from meta-python/recipes-devtools/python/python3-pandas_1.5.3.bb rename to meta-python/recipes-devtools/python/python3-pandas_2.0.3.bb index 129c3147cf..87a173c8a2 100644 --- a/meta-python/recipes-devtools/python/python3-pandas_1.5.3.bb +++ b/meta-python/recipes-devtools/python/python3-pandas_2.0.3.bb @@ -4,14 +4,16 @@ high-performance, easy-to-use data structures and data analysis tools for \ the Python programming language." HOMEPAGE = "http://pandas.pydata.org/"; LICENSE = "BSD-3-Clause" -LIC_FILES_CHKSUM = "file://LICENSE;md5=c1cc9ab35a8b2aabf933cd6d245b5db3" +LIC_FILES_CHKSUM = "file://LICENSE;md5=cb819092901ddb13a7d0a4f5e05f098a" -SRC_URI[sha256sum] = "74a3fd7e5a7ec052f183273dc7b0acd3a863edf7520f5d3a1765c04ffdb3b0b1" +SRC_URI[sha256sum] = "c02f372a88e0d17f36d3093a644c73cfc1788e876a7c4bcb4020a77512e2043c" inherit pypi setuptools3 DEPENDS += " \ -${PYTHON_PN}-numpy-native ${PYTHON_PN}-cython-native \ +${PYTHON_PN}-cython-native \ +${PYTHON_PN}-numpy-native \ +${PYTHON_PN}-versioneer-native \ " PACKAGESPLITFUNCS =+ "fix_cythonized_sources" -- 2.41.0 -=-=-=-=-=-=-=-=-=-=-=- Links: You receive all messages sent to this group. View/Reply Online (#103998): https://lists.openembedded.org/g/openembedded-devel/message/103998 Mute This Topic: https://lists.openembedded.org/mt/100334402/21656 Group Owner: openembedded-devel+ow...@lists.openembedded.org Unsubscribe: https://lists.openembedded.org/g/openembedded-devel/unsub [arch...@mail-archive.com] -=-=-=-=-=-=-=-=-=-=-=-
[oe] [meta-python][PATCH v2] python3-mypy, python3-mypy-extensions: remove
While attempting to upgrade mypy and mypy-extensions, it was discovered that it depends on new modules, some of which have no maintenance plan in place, e.g.: https://pypi.org/project/types-typed-ast/ Since this is something we want to avoid adding to the ecosystem and mypy isn't a dependency for anything else in meta-python, remove the recipes. Signed-off-by: Trevor Gamblin --- v2 removes the recipes from the packagegroup as well. .../packagegroups/packagegroup-meta-python.bb | 2 -- .../python/python3-mypy-extensions_0.4.3.bb | 12 -- .../python/python3-mypy_0.971.bb | 23 --- 3 files changed, 37 deletions(-) delete mode 100644 meta-python/recipes-devtools/python/python3-mypy-extensions_0.4.3.bb delete mode 100644 meta-python/recipes-devtools/python/python3-mypy_0.971.bb diff --git a/meta-python/recipes-core/packagegroups/packagegroup-meta-python.bb b/meta-python/recipes-core/packagegroups/packagegroup-meta-python.bb index b23d24c6d4..c12d475047 100644 --- a/meta-python/recipes-core/packagegroups/packagegroup-meta-python.bb +++ b/meta-python/recipes-core/packagegroups/packagegroup-meta-python.bb @@ -245,8 +245,6 @@ RDEPENDS:packagegroup-meta-python3 = "\ python3-msk \ python3-msm \ python3-multidict \ -python3-mypy \ -python3-mypy-extensions \ python3-natsort \ python3-netaddr \ python3-netifaces \ diff --git a/meta-python/recipes-devtools/python/python3-mypy-extensions_0.4.3.bb b/meta-python/recipes-devtools/python/python3-mypy-extensions_0.4.3.bb deleted file mode 100644 index 83ac5362d6..00 --- a/meta-python/recipes-devtools/python/python3-mypy-extensions_0.4.3.bb +++ /dev/null @@ -1,12 +0,0 @@ -SUMMARY = "Experimental type system extensions for programs checked with the mypy typechecker" -HOMEPAGE = "https://github.com/python/mypy_extensions"; -LICENSE = "MIT" -LIC_FILES_CHKSUM = "file://LICENSE;md5=0fe3219e2470a78c0d1837019b8b426e" - -PYPI_PACKAGE = "mypy_extensions" - -inherit pypi setuptools3 - -SRC_URI[sha256sum] = "2d82818f5bb3e369420cb3c4060a7970edba416647068eb4c5343488a6c604a8" - -BBCLASSEXTEND = "native" diff --git a/meta-python/recipes-devtools/python/python3-mypy_0.971.bb b/meta-python/recipes-devtools/python/python3-mypy_0.971.bb deleted file mode 100644 index 31fcb06c9e..00 --- a/meta-python/recipes-devtools/python/python3-mypy_0.971.bb +++ /dev/null @@ -1,23 +0,0 @@ -SUMMARY = "Optional static typing for Python 3 and 2 (PEP 484)" -HOMEPAGE = "https://github.com/python/mypy"; -LICENSE = "MIT & Python-2.0" -LIC_FILES_CHKSUM = "file://LICENSE;md5=6ba8ec528da02073b7e1f4124c0f836f" - -PYPI_PACKAGE = "mypy" - -inherit pypi python_setuptools_build_meta - -SRC_URI[sha256sum] = "40b0f21484238269ae6a57200c807d80debc6459d444c0489a102d7c6a75fa56" - -BBCLASSEXTEND = "native" - -RDEPENDS:${PN} += " \ -${PYTHON_PN}-mypy-extensions \ -${PYTHON_PN}-typed-ast \ -${PYTHON_PN}-typing-extensions \ -${PYTHON_PN}-json \ -${PYTHON_PN}-compression \ -${PYTHON_PN}-pprint \ -${PYTHON_PN}-difflib \ -${PYTHON_PN}-toml \ -" -- 2.41.0 -=-=-=-=-=-=-=-=-=-=-=- Links: You receive all messages sent to this group. View/Reply Online (#103996): https://lists.openembedded.org/g/openembedded-devel/message/103996 Mute This Topic: https://lists.openembedded.org/mt/100333071/21656 Group Owner: openembedded-devel+ow...@lists.openembedded.org Unsubscribe: https://lists.openembedded.org/g/openembedded-devel/unsub [arch...@mail-archive.com] -=-=-=-=-=-=-=-=-=-=-=-
[oe] [meta-python][PATCH 2/2] python3-mypy, python3-mypy-extensions: remove
While attempting to upgrade mypy and mypy-extensions, it was discovered that it depends on new modules, some of which have no maintenance plan in place, e.g.: https://pypi.org/project/types-typed-ast/ Since this is something we want to avoid adding to the ecosystem and mypy isn't a dependency for anything else in meta-python, remove the recipes. Signed-off-by: Trevor Gamblin --- .../python/python3-mypy-extensions_0.4.3.bb | 12 -- .../python/python3-mypy_0.971.bb | 23 --- 2 files changed, 35 deletions(-) delete mode 100644 meta-python/recipes-devtools/python/python3-mypy-extensions_0.4.3.bb delete mode 100644 meta-python/recipes-devtools/python/python3-mypy_0.971.bb diff --git a/meta-python/recipes-devtools/python/python3-mypy-extensions_0.4.3.bb b/meta-python/recipes-devtools/python/python3-mypy-extensions_0.4.3.bb deleted file mode 100644 index 83ac5362d6..00 --- a/meta-python/recipes-devtools/python/python3-mypy-extensions_0.4.3.bb +++ /dev/null @@ -1,12 +0,0 @@ -SUMMARY = "Experimental type system extensions for programs checked with the mypy typechecker" -HOMEPAGE = "https://github.com/python/mypy_extensions"; -LICENSE = "MIT" -LIC_FILES_CHKSUM = "file://LICENSE;md5=0fe3219e2470a78c0d1837019b8b426e" - -PYPI_PACKAGE = "mypy_extensions" - -inherit pypi setuptools3 - -SRC_URI[sha256sum] = "2d82818f5bb3e369420cb3c4060a7970edba416647068eb4c5343488a6c604a8" - -BBCLASSEXTEND = "native" diff --git a/meta-python/recipes-devtools/python/python3-mypy_0.971.bb b/meta-python/recipes-devtools/python/python3-mypy_0.971.bb deleted file mode 100644 index 31fcb06c9e..00 --- a/meta-python/recipes-devtools/python/python3-mypy_0.971.bb +++ /dev/null @@ -1,23 +0,0 @@ -SUMMARY = "Optional static typing for Python 3 and 2 (PEP 484)" -HOMEPAGE = "https://github.com/python/mypy"; -LICENSE = "MIT & Python-2.0" -LIC_FILES_CHKSUM = "file://LICENSE;md5=6ba8ec528da02073b7e1f4124c0f836f" - -PYPI_PACKAGE = "mypy" - -inherit pypi python_setuptools_build_meta - -SRC_URI[sha256sum] = "40b0f21484238269ae6a57200c807d80debc6459d444c0489a102d7c6a75fa56" - -BBCLASSEXTEND = "native" - -RDEPENDS:${PN} += " \ -${PYTHON_PN}-mypy-extensions \ -${PYTHON_PN}-typed-ast \ -${PYTHON_PN}-typing-extensions \ -${PYTHON_PN}-json \ -${PYTHON_PN}-compression \ -${PYTHON_PN}-pprint \ -${PYTHON_PN}-difflib \ -${PYTHON_PN}-toml \ -" -- 2.41.0 -=-=-=-=-=-=-=-=-=-=-=- Links: You receive all messages sent to this group. View/Reply Online (#103995): https://lists.openembedded.org/g/openembedded-devel/message/103995 Mute This Topic: https://lists.openembedded.org/mt/100332892/21656 Group Owner: openembedded-devel+ow...@lists.openembedded.org Unsubscribe: https://lists.openembedded.org/g/openembedded-devel/unsub [arch...@mail-archive.com] -=-=-=-=-=-=-=-=-=-=-=-
[oe] [meta-python][PATCH 1/2] python3-humanize: upgrade 4.4.0 -> 4.7.0
humanize moved to hatchling as a build backend, so adjust the recipe to match. Changelog: https://github.com/python-humanize/humanize/releases Signed-off-by: Trevor Gamblin --- .../{python3-humanize_4.4.0.bb => python3-humanize_4.7.0.bb} | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) rename meta-python/recipes-devtools/python/{python3-humanize_4.4.0.bb => python3-humanize_4.7.0.bb} (71%) diff --git a/meta-python/recipes-devtools/python/python3-humanize_4.4.0.bb b/meta-python/recipes-devtools/python/python3-humanize_4.7.0.bb similarity index 71% rename from meta-python/recipes-devtools/python/python3-humanize_4.4.0.bb rename to meta-python/recipes-devtools/python/python3-humanize_4.7.0.bb index 7bb03b75f2..81654af875 100644 --- a/meta-python/recipes-devtools/python/python3-humanize_4.4.0.bb +++ b/meta-python/recipes-devtools/python/python3-humanize_4.7.0.bb @@ -5,12 +5,13 @@ SECTION = "devel/python" LICENSE = "MIT" LIC_FILES_CHKSUM = "file://LICENCE;md5=4ecc42519e84f6f3e23529464df7bd1d" -SRC_URI[sha256sum] = "efb2584565cc86b7ea87a977a15066de34cdedaf341b11c851cfcfd2b964779c" +SRC_URI[sha256sum] = "7ca0e43e870981fa684acb5b062deb307218193bca1a01f2b2676479df849b3a" -inherit pypi python_setuptools_build_meta +inherit pypi python_hatchling DEPENDS += "\ ${PYTHON_PN}-setuptools-scm-native \ +${PYTHON_PN}-hatch-vcs-native \ " RDEPENDS:${PN} += "\ -- 2.41.0 -=-=-=-=-=-=-=-=-=-=-=- Links: You receive all messages sent to this group. View/Reply Online (#103994): https://lists.openembedded.org/g/openembedded-devel/message/103994 Mute This Topic: https://lists.openembedded.org/mt/100332891/21656 Group Owner: openembedded-devel+ow...@lists.openembedded.org Unsubscribe: https://lists.openembedded.org/g/openembedded-devel/unsub [arch...@mail-archive.com] -=-=-=-=-=-=-=-=-=-=-=-
[oe] [meta-oe][dunfell][PATCH] nodejs-14: add -fpermissive BUILD_CXXFLAGS to fix build with gcc-13 on host
Fixes nodejs-native build with gcc-13 on host: http://errors.yoctoproject.org/Errors/Details/728221/ nodejs-12 doesn't need it yet and nodejs-16 doesn't need it as well '-DV8_TYPED_ARRAY_MAX_SIZE_IN_HEAP=64' '-D__STDC_FORMAT_MACROS' '-DOPENSSL_NO_PINSHARED' '-DOPENSSL_THREADS' '-DV8_TARGET_ARCH_X64' '-DV8_EMBEDDER_STRING="-node.84"' '-DENABLE_DISASSEMBLER' '-DV8_PROMISE_INTERNAL_FIELD_COUNT=1' '-DENABLE_MINOR_MC' '-DOBJECT_PRINT' '-DV8_INTL_SUPPORT' '-DV8_CONCURRENT_MARKING' '-DV8_ARRAY_BUFFER_EXTENSION' '-DV8_ENABLE_LAZY_SOURCE_POSITIONS' '-DV8_USE_SIPHASH' '-DDISABLE_UNTRUSTED_CODE_MITIGATIONS' '-DV8_WIN64_UNWINDING_INFO' '-DV8_ENABLE_REGEXP_INTERPRETER_THREADED_DISPATCH' '-DV8_SNAPSHOT_COMPRESSION' -ITOPDIR/tmp-glibc/work/x86_64-linux/nodejs-native/14.18.1-r0/recipe-sysroot-native/usr/include -I../deps/v8 -I../deps/v8/include -I.//Release/obj/gen/torque-output-root -I.//Release/obj/gen/generate-bytecode-output-root -pthread -Wno-unused-parameter -m64 -Wno-return-type -fno-strict-aliasing -m64 -O3 -fno-omit-frame-pointer -fdata-sections -ffunction-sections -O3 -fno-rtti -fno-exceptions -std=gnu++1y -MMD -MF .//Release/.deps/Release/obj.host/v8_initializers/gen/torque-output-root/torque-generated/../../deps/v8/src/builtins/array-find-tq-csa.o.d.raw -isystemTOPDIR/tmp-glibc/work/x86_64-linux/nodejs-native/14.18.1-r0/recipe-sysroot-native/usr/include -isystemTOPDIR/tmp-glibc/work/x86_64-linux/nodejs-native/14.18.1-r0/recipe-sysroot-native/usr/include -O2 -pipe -c In file included from /usr/lib/gcc/x86_64-pc-linux-gnu/13/include/g++-v13/bits/move.h:37, from /usr/lib/gcc/x86_64-pc-linux-gnu/13/include/g++-v13/bits/stl_function.h:60, from /usr/lib/gcc/x86_64-pc-linux-gnu/13/include/g++-v13/functional:49, from ../deps/v8/src/codegen/code-stub-assembler.h:8, from ../deps/v8/src/builtins/builtins-promise-gen.h:8, from ../deps/v8/src/builtins/builtins-async-gen.h:8, from ../deps/v8/src/builtins/builtins-async-function-gen.cc:5: /usr/lib/gcc/x86_64-pc-linux-gnu/13/include/g++-v13/type_traits: In instantiation of ‘struct std::is_convertible’: ../deps/v8/src/codegen/tnode.h:262:72: required from ‘const bool v8::internal::is_subtype::value’ ../deps/v8/src/codegen/tnode.h:346:75: required by substitution of ‘template::value, int>::type > v8::internal::TNode::TNode(const v8::internal::TNode&) [with U = v8::internal::Cell; typename std::enable_if::value, int>::type = ]’ ../deps/v8/src/codegen/code-stub-assembler.h:1868:33: required from here /usr/lib/gcc/x86_64-pc-linux-gnu/13/include/g++-v13/type_traits:1417:30: error: invalid use of incomplete type ‘class v8::internal::Cell’ [-fpermissive] 1417 | : public __bool_constant<__is_convertible(_From, _To)> | ^~~~ In file included from ../deps/v8/src/objects/objects.h:26, from ../deps/v8/src/objects/fixed-array.h:10, from ../deps/v8/src/objects/contexts.h:8, from ../deps/v8/src/execution/thread-local-top.h:10, from ../deps/v8/src/execution/isolate-data.h:12, from ../deps/v8/src/execution/isolate.h:24, from ../deps/v8/src/codegen/interface-descriptors.h:14, from ../deps/v8/src/codegen/callable.h:8, from ../deps/v8/src/codegen/code-factory.h:8, from ../deps/v8/src/compiler/code-assembler.h:17, from ../deps/v8/src/codegen/code-stub-assembler.h:15: ../deps/v8/src/objects/object-list-macros.h:19:7: note: forward declaration of ‘class v8::internal::Cell’ 19 | class Cell; | ^~~~ In file included from ../deps/v8/src/codegen/interface-descriptors.h:12: ../deps/v8/src/codegen/tnode.h: In instantiation of ‘const bool v8::internal::is_subtype::value’: ../deps/v8/src/codegen/tnode.h:346:75: required by substitution of ‘template::value, int>::type > v8::internal::TNode::TNode(const v8::internal::TNode&) [with U = v8::internal::Cell; typename std::enable_if::value, int>::type = ]’ ../deps/v8/src/codegen/code-stub-assembler.h:1868:33: required from here ../deps/v8/src/codegen/tnode.h:262:72: error: ‘value’ is not a member of ‘std::is_convertible’ 262 |std::is_convertible::value); | ^ Signed-off-by: Martin Jansa --- meta-oe/recipes-devtools/nodejs/nodejs_14.18.1.bb | 3 +++ 1 file changed, 3 insertions(+) diff --git a/meta-oe/recipes-devtools/nodejs/nodejs_14.18.1.bb b/meta-oe/recipes-devtools/nodejs/nodejs_14.18.1.bb index 882d3f6573..1d95e369da 100644 --- a/meta-oe/recipes-devtools/nodejs/nodejs_14.18.1.bb +++ b/meta-oe/recipes-devtools/nodejs/nodejs_14.18.1.bb @@ -135,6 +135,9 @@ python do_create_v8_qemu_wrapper () { do_create_v8_qemu_wrapper[dirs] = "${B}" addta
[oe] [meta-oe][PATCH] cve_check: convert CVE_CHECK_IGNORE to CVE_STATUS
From: Andrej Valek - Try to add convert and apply statuses for old CVEs - Drop some obsolete ignores, while they are not relevant for current version Signed-off-by: Andrej Valek --- .../recipes-devtools/dracut/dracut_056.bb | 3 +-- .../freeradius/freeradius_3.0.26.bb | 6 ++--- .../mbedtls/mbedtls_2.28.3.bb | 6 ++--- .../mbedtls/mbedtls_3.4.0.bb | 5 - .../openthread/wpantund_git.bb| 9 +++- .../samba/samba_4.18.4.bb | 7 +- .../recipes-protocols/mdns/mdns_1790.80.10.bb | 22 +-- .../recipes-protocols/openflow/openflow.inc | 12 -- .../recipes-support/dovecot/dovecot_2.3.20.bb | 3 +-- .../recipes-support/ntp/ntp_4.2.8p17.bb | 12 +- .../recipes-support/openvpn/openvpn_2.6.3.bb | 3 +-- .../recipes-support/spice/spice_git.bb| 6 + .../recipes-dbs/mongodb/mongodb_git.bb| 7 ++ .../libtorrent/libtorrent_git.bb | 4 +--- meta-oe/recipes-core/emlog/emlog_git.bb | 8 +++ .../recipes-dbs/postgresql/postgresql_15.3.bb | 4 +--- .../flatbuffers/flatbuffers.bb| 2 -- meta-oe/recipes-devtools/php/php_8.2.7.bb | 4 +++- .../recipes-devtools/uw-imap/uw-imap_2007f.bb | 4 +--- .../libimobiledevice/libplist_2.3.0.bb| 4 +++- .../libimobiledevice/libplist_git.bb | 4 +++- .../recipes-extended/libzip/libzip_1.10.0.bb | 3 --- .../recipes-extended/sanlock/sanlock_3.8.5.bb | 4 +--- .../sblim-sfcb/sblim-sfcb_1.4.9.bb| 4 +--- .../graphviz/graphviz_8.1.0.bb| 4 .../recipes-graphics/jasper/jasper_2.0.33.bb | 4 +--- .../recipes-graphics/libsdl/libsdl_1.2.15.bb | 3 +-- .../cyrus-sasl/cyrus-sasl_2.1.28.bb | 3 --- meta-oe/recipes-support/atop/atop_2.4.0.bb| 4 +--- meta-oe/recipes-support/emacs/emacs_28.2.bb | 4 +--- meta-oe/recipes-support/nss/nss_3.74.bb | 12 -- .../openldap/openldap_2.5.13.bb | 3 --- .../recipes-support/pidgin/pidgin_2.14.2.bb | 6 ++--- 33 files changed, 60 insertions(+), 129 deletions(-) diff --git a/meta-initramfs/recipes-devtools/dracut/dracut_056.bb b/meta-initramfs/recipes-devtools/dracut/dracut_056.bb index 364beec5d..23c9e13e0 100644 --- a/meta-initramfs/recipes-devtools/dracut/dracut_056.bb +++ b/meta-initramfs/recipes-devtools/dracut/dracut_056.bb @@ -69,5 +69,4 @@ RRECOMMENDS:${PN} = " \ coreutils \ " -# CVE-2010-4176 affects only Fedora -CVE_CHECK_IGNORE += "CVE-2010-4176" +CVE_STATUS[CVE-2010-4176] = "not-applicable-platform: Applies only to Fedora" diff --git a/meta-networking/recipes-connectivity/freeradius/freeradius_3.0.26.bb b/meta-networking/recipes-connectivity/freeradius/freeradius_3.0.26.bb index 9a2bbab39..35733c530 100644 --- a/meta-networking/recipes-connectivity/freeradius/freeradius_3.0.26.bb +++ b/meta-networking/recipes-connectivity/freeradius/freeradius_3.0.26.bb @@ -43,10 +43,8 @@ SRCREV = "d956f683d37ea40e7977cc5907361f3e6988a439" UPSTREAM_CHECK_GITTAGREGEX = "release_(?P\d+(\_\d+)+)" -CVE_CHECK_IGNORE = "\ -CVE-2002-0318 \ -CVE-2011-4966 \ -" +CVE_CHECK_STATUS[CVE-2002-0318] = "fixed-version: The CPE in the NVD database doesn't reflect correctly the vulnerable versions." +CVE_CHECK_STATUS[CVE-2011-4966] = "fixed-version: The CPE in the NVD database doesn't reflect correctly the vulnerable versions." PARALLEL_MAKE = "" diff --git a/meta-networking/recipes-connectivity/mbedtls/mbedtls_2.28.3.bb b/meta-networking/recipes-connectivity/mbedtls/mbedtls_2.28.3.bb index ce094d5af..fff320afd 100644 --- a/meta-networking/recipes-connectivity/mbedtls/mbedtls_2.28.3.bb +++ b/meta-networking/recipes-connectivity/mbedtls/mbedtls_2.28.3.bb @@ -57,10 +57,8 @@ BBCLASSEXTEND = "native nativesdk" CVE_PRODUCT = "mbed_tls" -# Fix merged upstream https://github.com/Mbed-TLS/mbedtls/pull/5310 -CVE_CHECK_IGNORE += "CVE-2021-43666" -# Fix merged upstream https://github.com/Mbed-TLS/mbedtls/commit/9a4a9c66a48edfe9ece03c7e4a53310adf73a86c -CVE_CHECK_IGNORE += "CVE-2021-45451" +CVE_STATUS[CVE-2021-43666] = "backported-patch: Fix merged upstream https://github.com/Mbed-TLS/mbedtls/pull/5310"; +CVE_STATUS[CVE-2021-43666] = "backported-patch: Fix merged upstream https://github.com/Mbed-TLS/mbedtls/commit/9a4a9c66a48edfe9ece03c7e4a53310adf73a86c"; # Strip host paths from autogenerated test files do_compile:append() { diff --git a/meta-networking/recipes-connectivity/mbedtls/mbedtls_3.4.0.bb b/meta-networking/recipes-connectivity/mbedtls/mbedtls_3.4.0.bb index b8c9662de..10fb7de8c 100644 --- a/meta-networking/recipes-connectivity/mbedtls/mbedtls_3.4.0.bb +++ b/meta-networking/recipes-connectivity/mbedtls/mbedtls_3.4.0.bb @@ -58,11 +58,6 @@ BBCLASSEXTEND = "native nativesdk" CVE_PRODUCT = "mbed_tls" -# Fix merged upstream https://github.com/Mbed-TLS/mbedtls/pull/5310 -CVE_CHECK_IGNORE