Date   

Re: [meta-oe][dunfell][PATCH] duktape: Add ptest

Armin Kuster
 

On 5/19/22 05:58, nikhil wrote:
From: Nikhil R <nikhilar2410@...>

The Ptest for duktape executes below tests:

1. hello - a helloworld example is basic compilation test
that test the APIs - duk_get_top(), duk_push_c_function(),
duk_eval_string()

2. eval - a very simple for evaluating expressions from
command line which test the APIs - duk_push_string(),
duk_insert(), duk_join(), duk_pop()

3. evloop - a basic eventloop implementation test
that test the APIs - duk_is_object(), duk_compile()
duk_push_c_function(), duk_safe_call()
pkg not in Dunfell.  Ptest missing from master so it should land there first.

-armin

Test Summary:
Execution time = 46 sec

Signed-off-by: Nikhil R <nikhilar2410@...>
---
.../recipes-extended/duktape/duktape_2.7.0.bb | 22 ++++++++++++-
.../recipes-extended/duktape/files/run-ptest | 32 +++++++++++++++++++
2 files changed, 53 insertions(+), 1 deletion(-)
create mode 100644 meta-oe/recipes-extended/duktape/files/run-ptest

diff --git a/meta-oe/recipes-extended/duktape/duktape_2.7.0.bb b/meta-oe/recipes-extended/duktape/duktape_2.7.0.bb
index 767478543..583e8337e 100644
--- a/meta-oe/recipes-extended/duktape/duktape_2.7.0.bb
+++ b/meta-oe/recipes-extended/duktape/duktape_2.7.0.bb
@@ -4,7 +4,11 @@ HOMEPAGE = "https://duktape.org"
LICENSE = "MIT"
LIC_FILES_CHKSUM = "file://LICENSE.txt;md5=3b7825df97b52f926fc71300f7880408"
-SRC_URI = "https://duktape.org/duktape-${PV}.tar.xz"
+SRC_URI = "https://duktape.org/duktape-${PV}.tar.xz \
+ file://run-ptest \
+ "
+inherit ptest
+
SRC_URI[sha256sum] = "90f8d2fa8b5567c6899830ddef2c03f3c27960b11aca222fa17aa7ac613c2890"
EXTRA_OEMAKE = "INSTALL_PREFIX='${prefix}' DESTDIR='${D}' LIBDIR='/${baselib}'"
@@ -13,8 +17,24 @@ do_compile () {
oe_runmake -f Makefile.sharedlibrary INSTALL_PREFIX="${prefix}" DESTDIR="${D}"
}
+do_compile_ptest() {
+ oe_runmake -f Makefile.hello INSTALL_PREFIX="${prefix}" DESTDIR="${D}"
+ oe_runmake -f Makefile.eval INSTALL_PREFIX="${prefix}" DESTDIR="${D}"
+ oe_runmake -f Makefile.eventloop INSTALL_PREFIX="${prefix}" DESTDIR="${D}"
+}
+
do_install () {
oe_runmake -f Makefile.sharedlibrary INSTALL_PREFIX="${prefix}" DESTDIR="${D}" install
# libduktaped is identical to libduktape but has an hard-coded -g build flags, remove it
rm -f ${D}${libdir}/libduktaped.so*
}
+
+do_install_ptest() {
+ install -m 0755 "${WORKDIR}/duktape-2.7.0/hello" "${D}${PTEST_PATH}"
+ install -m 0755 "${WORKDIR}/duktape-2.7.0/eval" "${D}${PTEST_PATH}"
+ install -m 0755 "${WORKDIR}/duktape-2.7.0/evloop" "${D}${PTEST_PATH}"
+ install -m 0755 "${WORKDIR}/duktape-2.7.0/examples/eventloop/timer-test.js" "${D}${PTEST_PATH}"
+ install -m 0755 "${WORKDIR}/duktape-2.7.0/examples/eventloop/ecma_eventloop.js" "${D}${PTEST_PATH}"
+}
+
+RDEPENDS_${PN}-ptest += "make"
diff --git a/meta-oe/recipes-extended/duktape/files/run-ptest b/meta-oe/recipes-extended/duktape/files/run-ptest
new file mode 100644
index 000000000..852fb15de
--- /dev/null
+++ b/meta-oe/recipes-extended/duktape/files/run-ptest
@@ -0,0 +1,32 @@
+#!/bin/sh
+
+./hello &> $test.output 2>&1
+out="Hello world!"
+
+if grep -i "$out" $test.output 2>&1 ; then
+ echo "PASS: Hello duktape"
+else
+ echo "FAIL: Hello duktape"
+fi
+rm -f $test.output
+
+./eval "print('Hello world!'); 123;" > out.log
+
+sed -n '2p' out.log > eval.log
+sed -n '3p' out.log >> eval.log
+
+if grep -w 'Hello world!\|123' eval.log 2>&1; then
+ echo "PASS: eval duktape"
+else
+ echo "FAIL: eval duktape"
+fi
+rm -f eval.log out.log
+
+./evloop timer-test.js > evloop.log 2>&1
+
+if grep -i "no active timers and no sockets to poll" evloop.log 2>&1; then
+ echo "PASS: evloop duktape"
+else
+ echo "FAIL: evloop duktape"
+fi
+rm -f evloop.log


[meta-python][PATCH] python3-uinput: new package

Bartosz Golaszewski
 

Add a recipe for python3-uinput: a python module for controlling the
virtual input devices on linux.

Signed-off-by: Bartosz Golaszewski <brgl@...>
---
.../packagegroups/packagegroup-meta-python.bb | 1 +
...-use-setuptools-instead-of-distutils.patch | 28 +++++++++++++++++++
.../python/python3-uinput_0.11.2.bb | 18 ++++++++++++
3 files changed, 47 insertions(+)
create mode 100644 meta-python/recipes-devtools/python/python3-uinput/0001-setup-use-setuptools-instead-of-distutils.patch
create mode 100644 meta-python/recipes-devtools/python/python3-uinput_0.11.2.bb

diff --git a/meta-python/recipes-core/packagegroups/packagegroup-meta-python.bb b/meta-python/recipes-core/packagegroups/packagegroup-meta-python.bb
index 6ca652e12..e3ae050ec 100644
--- a/meta-python/recipes-core/packagegroups/packagegroup-meta-python.bb
+++ b/meta-python/recipes-core/packagegroups/packagegroup-meta-python.bb
@@ -436,6 +436,7 @@ RDEPENDS:packagegroup-meta-python3 = "\
python3-typeguard \
python3-tzlocal \
python3-u-msgpack-python \
+ python3-uinput \
python3-ujson \
python3-unidiff \
python3-uritemplate \
diff --git a/meta-python/recipes-devtools/python/python3-uinput/0001-setup-use-setuptools-instead-of-distutils.patch b/meta-python/recipes-devtools/python/python3-uinput/0001-setup-use-setuptools-instead-of-distutils.patch
new file mode 100644
index 000000000..54a3c1867
--- /dev/null
+++ b/meta-python/recipes-devtools/python/python3-uinput/0001-setup-use-setuptools-instead-of-distutils.patch
@@ -0,0 +1,28 @@
+From 7a4dde83a9584adb42c7f810d882b1fbf5767e2c Mon Sep 17 00:00:00 2001
+From: Bartosz Golaszewski <brgl@...>
+Date: Tue, 24 May 2022 21:43:35 +0200
+Subject: [PATCH] setup: use setuptools instead of distutils
+
+The latter is deprecated, use setuptools instead.
+
+Signed-off-by: Bartosz Golaszewski <brgl@...>
+---
+ setup.py | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+diff --git a/setup.py b/setup.py
+index 3fa3343..4900b8b 100644
+--- a/setup.py
++++ b/setup.py
+@@ -3,7 +3,7 @@
+ import errno
+ import subprocess
+
+-from distutils.core import setup, Extension
++from setuptools import setup, Extension
+
+ libudev_so = "libudev.so.1"
+
+--
+2.34.1
+
diff --git a/meta-python/recipes-devtools/python/python3-uinput_0.11.2.bb b/meta-python/recipes-devtools/python/python3-uinput_0.11.2.bb
new file mode 100644
index 000000000..737bbfe2c
--- /dev/null
+++ b/meta-python/recipes-devtools/python/python3-uinput_0.11.2.bb
@@ -0,0 +1,18 @@
+SUMMARY = "Python interface to Linux uinput kernel module."
+HOMEPAGE = "https://pypi.org/project/python-uinput/"
+LICENSE = "GPL-3.0-only"
+LIC_FILES_CHKSUM = "file://COPYING;md5=f27defe1e96c2e1ecd4e0c9be8967949"
+
+SRC_URI[sha256sum] = "99392b676c77b5795b86b7d75274db33fe754fd1e06fb3d58b167c797dc47f0c"
+SRC_URI += "file://0001-setup-use-setuptools-instead-of-distutils.patch"
+
+PYPI_PACKAGE = "python-uinput"
+
+inherit pypi setuptools3
+
+DEPENDS += "udev"
+RDEPENDS:${PN} += " \
+ python3-ctypes \
+ python3-distutils \
+"
+RRECOMMENDS:${PN} += "kernel-module-uinput"
--
2.34.1


Re: [PATCH][meta-filesystems][dunfell] fuse: set CVE_PRODUCT to "fuse_project:fuse"

Armin Kuster
 

On 5/24/22 08:23, Ranjitsinh Rathod wrote:
Hi Armin,

May I know why this was not taken into dunfell branch?
I can not find this request in patchwork.yoctoproject.org, the Lore archives nor in my email client.  I have no idea what went wrong.

I will cherry-pick this from another branch.

Thanks for the followup.

- armin

This will fix the wrong CVE for the fuse component.

Thanks,
Ranjitsinh


OpenEmbedded Happy Hour May 25 5pm/1700 UTC

Tim Orling
 

All,

You are cordially invited to the next OpenEmbedded Happy Hour on May 25
for Europe/Americas time zones @ 1700/5pm UTC (1pm ET / 10am PT).


Regards,
Tim "moto-timo" Orling


[meta-oe][PATCHv2] p8platform: unbreak do_populate_sdk

Markus Volk
 

Error:
Problem: package libcec-dev-6.0.2-r0.corei7_64 requires p8platform-dev, =
but none of the providers can be installed
- conflicting requests
- nothing provides p8platform =3D 2.1.0.1-r0 needed by p8platform-dev-2=
.1.0.1-r0.corei7_64
(try to add '--skip-broken' to skip uninstallable packages)

Signed-off-by: Markus Volk <f_l_k@...>
---
meta-oe/recipes-extended/p8platform/p8platform_git.bb | 2 ++
1 file changed, 2 insertions(+)

diff --git a/meta-oe/recipes-extended/p8platform/p8platform_git.bb b/meta=
-oe/recipes-extended/p8platform/p8platform_git.bb
index 8a0699057..1307f6dc4 100644
--- a/meta-oe/recipes-extended/p8platform/p8platform_git.bb
+++ b/meta-oe/recipes-extended/p8platform/p8platform_git.bb
@@ -17,3 +17,5 @@ inherit cmake pkgconfig
EXTRA_OECMAKE +=3D "-DCMAKE_INSTALL_LIBDIR=3D${libdir} -DCMAKE_INSTALL_L=
IBDIR_NOARCH=3D${libdir}"
=20
FILES:${PN}-dev +=3D "${libdir}/p8-platform"
+
+RDEPENDS:${PN}-dev =3D ""
--=20
2.25.1


Re: [meta-oe][PATCH] p8platform: unbreak do_populate_sdk

Martin Jansa
 

Replace this with

RDEPENDS:${PN}-dev = ""

On Tue, May 24, 2022 at 5:19 PM Markus Volk <f_l_k@...> wrote:
Error:
 Problem: package libcec-dev-6.0.2-r0.corei7_64 requires p8platform-dev, but none of the providers can be installed
  - conflicting requests
  - nothing provides p8platform = 2.1.0.1-r0 needed by p8platform-dev-2.1.0.1-r0.corei7_64
(try to add '--skip-broken' to skip uninstallable packages)

Signed-off-by: Markus Volk <f_l_k@...>
---
 meta-oe/recipes-extended/p8platform/p8platform_git.bb | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/meta-oe/recipes-extended/p8platform/p8platform_git.bb b/meta-oe/recipes-extended/p8platform/p8platform_git.bb
index 8a0699057..777c6c7ca 100644
--- a/meta-oe/recipes-extended/p8platform/p8platform_git.bb
+++ b/meta-oe/recipes-extended/p8platform/p8platform_git.bb
@@ -17,3 +17,5 @@ inherit cmake pkgconfig
 EXTRA_OECMAKE += "-DCMAKE_INSTALL_LIBDIR=${libdir} -DCMAKE_INSTALL_LIBDIR_NOARCH=${libdir}"

 FILES:${PN}-dev += "${libdir}/p8-platform"
+
+ALLOW_EMPTY:${PN} = "1"
--
2.25.1





Re: [PATCH 1/2] lzo: add (from oe-core)

Khem Raj
 

Thanks. I have seen the relevant patches in core.

On Tue, May 24, 2022 at 8:29 AM Ross Burton <ross.burton@...> wrote:

Obviously, don’t merge this until the recipes are removed from oe-core.

Ross

On 24 May 2022, at 16:24, Ross Burton via lists.openembedded.org <ross.burton=arm.com@...> wrote:

lzo is being removed from oe-core, so add it here for people who still
want to use it.

Signed-off-by: Ross Burton <ross.burton@...>
---
...onfigdir-to-solve-the-undefine-error.patch | 27 +++++++
...Use-memcpy-instead-of-reinventing-it.patch | 70 +++++++++++++++++++
meta-oe/recipes-support/lzo/lzo/run-ptest | 33 +++++++++
meta-oe/recipes-support/lzo/lzo_2.10.bb | 35 ++++++++++
4 files changed, 165 insertions(+)
create mode 100644 meta-oe/recipes-support/lzo/lzo/0001-Add-pkgconfigdir-to-solve-the-undefine-error.patch
create mode 100644 meta-oe/recipes-support/lzo/lzo/0001-Use-memcpy-instead-of-reinventing-it.patch
create mode 100644 meta-oe/recipes-support/lzo/lzo/run-ptest
create mode 100644 meta-oe/recipes-support/lzo/lzo_2.10.bb

diff --git a/meta-oe/recipes-support/lzo/lzo/0001-Add-pkgconfigdir-to-solve-the-undefine-error.patch b/meta-oe/recipes-support/lzo/lzo/0001-Add-pkgconfigdir-to-solve-the-undefine-error.patch
new file mode 100644
index 0000000000..5235a15dc9
--- /dev/null
+++ b/meta-oe/recipes-support/lzo/lzo/0001-Add-pkgconfigdir-to-solve-the-undefine-error.patch
@@ -0,0 +1,27 @@
+From e730bfd7c2d3a4b5f3605878599cb9b20d31b1fd Mon Sep 17 00:00:00 2001
+From: Fan Xin <fan.xin@...>
+Date: Fri, 2 Jun 2017 11:52:25 +0900
+Subject: [PATCH] Add pkgconfigdir to solve the undefine error.
+
+Upstream-Status: Pending
+
+Signed-off-by: Fan Xin <fan.xin@...>
+---
+ Makefile.am | 1 +
+ 1 file changed, 1 insertion(+)
+
+diff --git a/Makefile.am b/Makefile.am
+index e4d383b..c75023d 100644
+--- a/Makefile.am
++++ b/Makefile.am
+@@ -14,6 +14,7 @@ AM_CPPFLAGS = -I$(top_srcdir)/include -I$(top_srcdir)
+ LDADD = src/liblzo2.la
+ lib_LTLIBRARIES =
+ noinst_PROGRAMS =
++pkgconfigdir = $(libdir)/pkgconfig
+ pkgconfig_DATA = lzo2.pc
+
+
+--
+1.9.1
+
diff --git a/meta-oe/recipes-support/lzo/lzo/0001-Use-memcpy-instead-of-reinventing-it.patch b/meta-oe/recipes-support/lzo/lzo/0001-Use-memcpy-instead-of-reinventing-it.patch
new file mode 100644
index 0000000000..db3a70e803
--- /dev/null
+++ b/meta-oe/recipes-support/lzo/lzo/0001-Use-memcpy-instead-of-reinventing-it.patch
@@ -0,0 +1,70 @@
+From: Simon McVittie <smcv@...>
+Date: Sun, 23 Nov 2014 22:50:33 +0000
+Subject: Use memcpy() instead of reinventing it
+
+gcc inlines memcpy() with results as fast as handwritten code (at
+least in my brief testing with lzop), and knows the alignment
+constraints for our architectures.
+
+Change suggested by Julian Taylor.
+
+Bug-Debian: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=757037
+
+Upstream-Status: Pending
+Signed-off-by: Saul Wold <sgw@...>
+---
+ minilzo/minilzo.c | 14 ++++++++++++++
+ src/lzo_func.h | 14 ++++++++++++++
+ 2 files changed, 28 insertions(+)
+
+
+diff --git a/minilzo/minilzo.c b/minilzo/minilzo.c
+index ab2be5f..6913c2f 100644
+--- a/minilzo/minilzo.c
++++ b/minilzo/minilzo.c
+@@ -3523,6 +3523,20 @@ LZO_COMPILE_TIME_ASSERT_HEADER(sizeof(*(lzo_memops_TU8p)0)==8)
+ if ((void)0, n__n > 0) do { *d__n++ = *s__n++; } while (--n__n > 0); \
+ LZO_BLOCK_END
+
++/* Debian-specific change: we know that our compiler inlines memcpy() with
++ * constant n to be as fast as handwritten code, and knows which architectures
++ * need things correctly aligned. */
++#undef LZO_MEMOPS_COPY1
++#undef LZO_MEMOPS_COPY2
++#undef LZO_MEMOPS_COPY4
++#undef LZO_MEMOPS_COPY8
++#undef LZO_MEMOPS_COPYN
++#define LZO_MEMOPS_COPY1(dd,ss) memcpy(dd, ss, 1)
++#define LZO_MEMOPS_COPY2(dd,ss) memcpy(dd, ss, 2)
++#define LZO_MEMOPS_COPY4(dd,ss) memcpy(dd, ss, 4)
++#define LZO_MEMOPS_COPY8(dd,ss) memcpy(dd, ss, 8)
++#define LZO_MEMOPS_COPYN(dd,ss,nn) memcpy(dd, ss, nn)
++
+ __lzo_static_forceinline lzo_uint16_t lzo_memops_get_le16(const lzo_voidp ss)
+ {
+ lzo_uint16_t v;
+diff --git a/src/lzo_func.h b/src/lzo_func.h
+index dfaa676..1cc1b53 100644
+--- a/src/lzo_func.h
++++ b/src/lzo_func.h
+@@ -333,6 +333,20 @@ LZO_COMPILE_TIME_ASSERT_HEADER(sizeof(*(lzo_memops_TU8p)0)==8)
+ if ((void)0, n__n > 0) do { *d__n++ = *s__n++; } while (--n__n > 0); \
+ LZO_BLOCK_END
+
++/* Debian-specific change: we know that our compiler inlines memcpy() with
++ * constant n to be as fast as handwritten code, and knows which architectures
++ * need things correctly aligned. */
++#undef LZO_MEMOPS_COPY1
++#undef LZO_MEMOPS_COPY2
++#undef LZO_MEMOPS_COPY4
++#undef LZO_MEMOPS_COPY8
++#undef LZO_MEMOPS_COPYN
++#define LZO_MEMOPS_COPY1(dd,ss) memcpy(dd, ss, 1)
++#define LZO_MEMOPS_COPY2(dd,ss) memcpy(dd, ss, 2)
++#define LZO_MEMOPS_COPY4(dd,ss) memcpy(dd, ss, 4)
++#define LZO_MEMOPS_COPY8(dd,ss) memcpy(dd, ss, 8)
++#define LZO_MEMOPS_COPYN(dd,ss,nn) memcpy(dd, ss, nn)
++
+ __lzo_static_forceinline lzo_uint16_t lzo_memops_get_le16(const lzo_voidp ss)
+ {
+ lzo_uint16_t v;
diff --git a/meta-oe/recipes-support/lzo/lzo/run-ptest b/meta-oe/recipes-support/lzo/lzo/run-ptest
new file mode 100644
index 0000000000..6acb89fc1f
--- /dev/null
+++ b/meta-oe/recipes-support/lzo/lzo/run-ptest
@@ -0,0 +1,33 @@
+#!/bin/sh
+
+./lzotest -mavail -n10 -q /etc/services
+if [ $? -eq 0 ]; then
+ echo 'PASS: lzotest'
+else
+ echo 'FAIL: lzotest'
+fi
+LZOTEST=./lzotest /bin/sh -e "./check.sh" "/etc"
+./align
+if [ $? -eq 0 ]; then
+ echo 'PASS: align'
+else
+ echo 'FAIL: align'
+fi
+./chksum
+if [ $? -eq 0 ]; then
+ echo 'PASS: chksum'
+else
+ echo 'FAIL: chksum'
+fi
+./simple
+if [ $? -eq 0 ]; then
+ echo 'PASS: simple'
+else
+ echo 'FAIL: simple'
+fi
+./testmini
+if [ $? -eq 0 ]; then
+ echo 'PASS: testmini'
+else
+ echo 'FAIL: testmini'
+fi
diff --git a/meta-oe/recipes-support/lzo/lzo_2.10.bb b/meta-oe/recipes-support/lzo/lzo_2.10.bb
new file mode 100644
index 0000000000..195c2f2939
--- /dev/null
+++ b/meta-oe/recipes-support/lzo/lzo_2.10.bb
@@ -0,0 +1,35 @@
+SUMMARY = "Lossless data compression library"
+DESCRIPTION = "A portable lossless data compression library written in \
+ANSI C that offers pretty fast compression and *extremely* fast decompression. "
+HOMEPAGE = "http://www.oberhumer.com/opensource/lzo/"
+SECTION = "libs"
+LICENSE = "GPL-2.0-or-later"
+LIC_FILES_CHKSUM = "file://COPYING;md5=b234ee4d69f5fce4486a80fdaf4a4263 \
+ file://src/lzo_init.c;beginline=5;endline=25;md5=9ae697ca01829b0a383c5d2d163e0108"
+
+SRC_URI = "http://www.oberhumer.com/opensource/lzo/download/lzo-${PV}.tar.gz \
+ file://0001-Use-memcpy-instead-of-reinventing-it.patch \
+ file://0001-Add-pkgconfigdir-to-solve-the-undefine-error.patch \
+ file://run-ptest \
+ "
+
+SRC_URI[md5sum] = "39d3f3f9c55c87b1e5d6888e1420f4b5"
+SRC_URI[sha256sum] = "c0f892943208266f9b6543b3ae308fab6284c5c90e627931446fb49b4221a072"
+
+inherit autotools ptest
+
+CVE_PRODUCT = "lzo oberhumer:lzo2"
+
+EXTRA_OECONF = "--enable-shared"
+
+do_install_ptest() {
+ t=${D}${PTEST_PATH}
+ cp ${S}/util/check.sh $t
+ cp ${B}/minilzo/testmini $t
+ for i in tests/align tests/chksum lzotest/lzotest examples/simple
+ do cp ${B}/`dirname $i`/.libs/`basename $i` $t; \
+ done
+}
+
+
+BBCLASSEXTEND = "native nativesdk"
--
2.25.1






Re: [meta-python][PATCH 1/2] python3-speedtest-cli: fix RDEPENDS

Khem Raj
 

On Tue, May 24, 2022 at 7:49 AM Bartosz Golaszewski <brgl@...> wrote:

On Thu, May 19, 2022 at 3:18 PM Bartosz Golaszewski <brgl@...> wrote:

There are packages missing in RDEPENDS needed to run speedtest-cli. Add
them and use += for the assignment as we don't know what inherited
classes may have added.

Signed-off-by: Bartosz Golaszewski <brgl@...>
---
.../recipes-devtools/python/python3-speedtest-cli_2.1.3.bb | 6 +++++-
1 file changed, 5 insertions(+), 1 deletion(-)

diff --git a/meta-python/recipes-devtools/python/python3-speedtest-cli_2.1.3.bb b/meta-python/recipes-devtools/python/python3-speedtest-cli_2.1.3.bb
index 06d98cbe1..472113b05 100644
--- a/meta-python/recipes-devtools/python/python3-speedtest-cli_2.1.3.bb
+++ b/meta-python/recipes-devtools/python/python3-speedtest-cli_2.1.3.bb
@@ -7,4 +7,8 @@ SRC_URI[sha256sum] = "5e2773233cedb5fa3d8120eb7f97bcc4974b5221b254d33ff16e2f1d41

inherit pypi setuptools3

-RDEPENDS:${PN} = "${PYTHON_PN}-misc"
+RDEPENDS:${PN} += " \
+ python3-misc \
+ python3-threading \
+ python3-xml \
+"
--
2.34.1
Hi!

This has been in master-next for days but didn't get into master
proper. Just a gentle ping.
Thanks for reminder, if you have not heard on it causing issues then
It will be in master in due course soon. Sometimes its other recipes being
sorted with current master etc. that delays merges


Bart


Re: [PATCH 1/2] lzo: add (from oe-core)

Ross Burton
 

Obviously, don’t merge this until the recipes are removed from oe-core.

Ross

On 24 May 2022, at 16:24, Ross Burton via lists.openembedded.org <ross.burton=arm.com@...> wrote:

lzo is being removed from oe-core, so add it here for people who still
want to use it.

Signed-off-by: Ross Burton <ross.burton@...>
---
...onfigdir-to-solve-the-undefine-error.patch | 27 +++++++
...Use-memcpy-instead-of-reinventing-it.patch | 70 +++++++++++++++++++
meta-oe/recipes-support/lzo/lzo/run-ptest | 33 +++++++++
meta-oe/recipes-support/lzo/lzo_2.10.bb | 35 ++++++++++
4 files changed, 165 insertions(+)
create mode 100644 meta-oe/recipes-support/lzo/lzo/0001-Add-pkgconfigdir-to-solve-the-undefine-error.patch
create mode 100644 meta-oe/recipes-support/lzo/lzo/0001-Use-memcpy-instead-of-reinventing-it.patch
create mode 100644 meta-oe/recipes-support/lzo/lzo/run-ptest
create mode 100644 meta-oe/recipes-support/lzo/lzo_2.10.bb

diff --git a/meta-oe/recipes-support/lzo/lzo/0001-Add-pkgconfigdir-to-solve-the-undefine-error.patch b/meta-oe/recipes-support/lzo/lzo/0001-Add-pkgconfigdir-to-solve-the-undefine-error.patch
new file mode 100644
index 0000000000..5235a15dc9
--- /dev/null
+++ b/meta-oe/recipes-support/lzo/lzo/0001-Add-pkgconfigdir-to-solve-the-undefine-error.patch
@@ -0,0 +1,27 @@
+From e730bfd7c2d3a4b5f3605878599cb9b20d31b1fd Mon Sep 17 00:00:00 2001
+From: Fan Xin <fan.xin@...>
+Date: Fri, 2 Jun 2017 11:52:25 +0900
+Subject: [PATCH] Add pkgconfigdir to solve the undefine error.
+
+Upstream-Status: Pending
+
+Signed-off-by: Fan Xin <fan.xin@...>
+---
+ Makefile.am | 1 +
+ 1 file changed, 1 insertion(+)
+
+diff --git a/Makefile.am b/Makefile.am
+index e4d383b..c75023d 100644
+--- a/Makefile.am
++++ b/Makefile.am
+@@ -14,6 +14,7 @@ AM_CPPFLAGS = -I$(top_srcdir)/include -I$(top_srcdir)
+ LDADD = src/liblzo2.la
+ lib_LTLIBRARIES =
+ noinst_PROGRAMS =
++pkgconfigdir = $(libdir)/pkgconfig
+ pkgconfig_DATA = lzo2.pc
+
+
+--
+1.9.1
+
diff --git a/meta-oe/recipes-support/lzo/lzo/0001-Use-memcpy-instead-of-reinventing-it.patch b/meta-oe/recipes-support/lzo/lzo/0001-Use-memcpy-instead-of-reinventing-it.patch
new file mode 100644
index 0000000000..db3a70e803
--- /dev/null
+++ b/meta-oe/recipes-support/lzo/lzo/0001-Use-memcpy-instead-of-reinventing-it.patch
@@ -0,0 +1,70 @@
+From: Simon McVittie <smcv@...>
+Date: Sun, 23 Nov 2014 22:50:33 +0000
+Subject: Use memcpy() instead of reinventing it
+
+gcc inlines memcpy() with results as fast as handwritten code (at
+least in my brief testing with lzop), and knows the alignment
+constraints for our architectures.
+
+Change suggested by Julian Taylor.
+
+Bug-Debian: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=757037
+
+Upstream-Status: Pending
+Signed-off-by: Saul Wold <sgw@...>
+---
+ minilzo/minilzo.c | 14 ++++++++++++++
+ src/lzo_func.h | 14 ++++++++++++++
+ 2 files changed, 28 insertions(+)
+
+
+diff --git a/minilzo/minilzo.c b/minilzo/minilzo.c
+index ab2be5f..6913c2f 100644
+--- a/minilzo/minilzo.c
++++ b/minilzo/minilzo.c
+@@ -3523,6 +3523,20 @@ LZO_COMPILE_TIME_ASSERT_HEADER(sizeof(*(lzo_memops_TU8p)0)==8)
+ if ((void)0, n__n > 0) do { *d__n++ = *s__n++; } while (--n__n > 0); \
+ LZO_BLOCK_END
+
++/* Debian-specific change: we know that our compiler inlines memcpy() with
++ * constant n to be as fast as handwritten code, and knows which architectures
++ * need things correctly aligned. */
++#undef LZO_MEMOPS_COPY1
++#undef LZO_MEMOPS_COPY2
++#undef LZO_MEMOPS_COPY4
++#undef LZO_MEMOPS_COPY8
++#undef LZO_MEMOPS_COPYN
++#define LZO_MEMOPS_COPY1(dd,ss) memcpy(dd, ss, 1)
++#define LZO_MEMOPS_COPY2(dd,ss) memcpy(dd, ss, 2)
++#define LZO_MEMOPS_COPY4(dd,ss) memcpy(dd, ss, 4)
++#define LZO_MEMOPS_COPY8(dd,ss) memcpy(dd, ss, 8)
++#define LZO_MEMOPS_COPYN(dd,ss,nn) memcpy(dd, ss, nn)
++
+ __lzo_static_forceinline lzo_uint16_t lzo_memops_get_le16(const lzo_voidp ss)
+ {
+ lzo_uint16_t v;
+diff --git a/src/lzo_func.h b/src/lzo_func.h
+index dfaa676..1cc1b53 100644
+--- a/src/lzo_func.h
++++ b/src/lzo_func.h
+@@ -333,6 +333,20 @@ LZO_COMPILE_TIME_ASSERT_HEADER(sizeof(*(lzo_memops_TU8p)0)==8)
+ if ((void)0, n__n > 0) do { *d__n++ = *s__n++; } while (--n__n > 0); \
+ LZO_BLOCK_END
+
++/* Debian-specific change: we know that our compiler inlines memcpy() with
++ * constant n to be as fast as handwritten code, and knows which architectures
++ * need things correctly aligned. */
++#undef LZO_MEMOPS_COPY1
++#undef LZO_MEMOPS_COPY2
++#undef LZO_MEMOPS_COPY4
++#undef LZO_MEMOPS_COPY8
++#undef LZO_MEMOPS_COPYN
++#define LZO_MEMOPS_COPY1(dd,ss) memcpy(dd, ss, 1)
++#define LZO_MEMOPS_COPY2(dd,ss) memcpy(dd, ss, 2)
++#define LZO_MEMOPS_COPY4(dd,ss) memcpy(dd, ss, 4)
++#define LZO_MEMOPS_COPY8(dd,ss) memcpy(dd, ss, 8)
++#define LZO_MEMOPS_COPYN(dd,ss,nn) memcpy(dd, ss, nn)
++
+ __lzo_static_forceinline lzo_uint16_t lzo_memops_get_le16(const lzo_voidp ss)
+ {
+ lzo_uint16_t v;
diff --git a/meta-oe/recipes-support/lzo/lzo/run-ptest b/meta-oe/recipes-support/lzo/lzo/run-ptest
new file mode 100644
index 0000000000..6acb89fc1f
--- /dev/null
+++ b/meta-oe/recipes-support/lzo/lzo/run-ptest
@@ -0,0 +1,33 @@
+#!/bin/sh
+
+./lzotest -mavail -n10 -q /etc/services
+if [ $? -eq 0 ]; then
+ echo 'PASS: lzotest'
+else
+ echo 'FAIL: lzotest'
+fi
+LZOTEST=./lzotest /bin/sh -e "./check.sh" "/etc"
+./align
+if [ $? -eq 0 ]; then
+ echo 'PASS: align'
+else
+ echo 'FAIL: align'
+fi
+./chksum
+if [ $? -eq 0 ]; then
+ echo 'PASS: chksum'
+else
+ echo 'FAIL: chksum'
+fi
+./simple
+if [ $? -eq 0 ]; then
+ echo 'PASS: simple'
+else
+ echo 'FAIL: simple'
+fi
+./testmini
+if [ $? -eq 0 ]; then
+ echo 'PASS: testmini'
+else
+ echo 'FAIL: testmini'
+fi
diff --git a/meta-oe/recipes-support/lzo/lzo_2.10.bb b/meta-oe/recipes-support/lzo/lzo_2.10.bb
new file mode 100644
index 0000000000..195c2f2939
--- /dev/null
+++ b/meta-oe/recipes-support/lzo/lzo_2.10.bb
@@ -0,0 +1,35 @@
+SUMMARY = "Lossless data compression library"
+DESCRIPTION = "A portable lossless data compression library written in \
+ANSI C that offers pretty fast compression and *extremely* fast decompression. "
+HOMEPAGE = "http://www.oberhumer.com/opensource/lzo/"
+SECTION = "libs"
+LICENSE = "GPL-2.0-or-later"
+LIC_FILES_CHKSUM = "file://COPYING;md5=b234ee4d69f5fce4486a80fdaf4a4263 \
+ file://src/lzo_init.c;beginline=5;endline=25;md5=9ae697ca01829b0a383c5d2d163e0108"
+
+SRC_URI = "http://www.oberhumer.com/opensource/lzo/download/lzo-${PV}.tar.gz \
+ file://0001-Use-memcpy-instead-of-reinventing-it.patch \
+ file://0001-Add-pkgconfigdir-to-solve-the-undefine-error.patch \
+ file://run-ptest \
+ "
+
+SRC_URI[md5sum] = "39d3f3f9c55c87b1e5d6888e1420f4b5"
+SRC_URI[sha256sum] = "c0f892943208266f9b6543b3ae308fab6284c5c90e627931446fb49b4221a072"
+
+inherit autotools ptest
+
+CVE_PRODUCT = "lzo oberhumer:lzo2"
+
+EXTRA_OECONF = "--enable-shared"
+
+do_install_ptest() {
+ t=${D}${PTEST_PATH}
+ cp ${S}/util/check.sh $t
+ cp ${B}/minilzo/testmini $t
+ for i in tests/align tests/chksum lzotest/lzotest examples/simple
+ do cp ${B}/`dirname $i`/.libs/`basename $i` $t; \
+ done
+}
+
+
+BBCLASSEXTEND = "native nativesdk"
--
2.25.1




[PATCH 2/2] lzop: add (from oe-core)

Ross Burton
 

lzop is being removed from oe-core, so add it here for people who still
want to use it.

Signed-off-by: Ross Burton <ross.burton@...>
---
.../recipes-support/lzop/lzop/acinclude.m4 | 390 ++++++++++++++++++
meta-oe/recipes-support/lzop/lzop_1.04.bb | 27 ++
2 files changed, 417 insertions(+)
create mode 100644 meta-oe/recipes-support/lzop/lzop/acinclude.m4
create mode 100644 meta-oe/recipes-support/lzop/lzop_1.04.bb

diff --git a/meta-oe/recipes-support/lzop/lzop/acinclude.m4 b/meta-oe/rec=
ipes-support/lzop/lzop/acinclude.m4
new file mode 100644
index 0000000000..0029c19c7d
--- /dev/null
+++ b/meta-oe/recipes-support/lzop/lzop/acinclude.m4
@@ -0,0 +1,390 @@
+
+AC_DEFUN([mfx_ACC_CHECK_ENDIAN], [
+AC_C_BIGENDIAN([AC_DEFINE(ACC_ABI_BIG_ENDIAN,1,[Define to 1 if your mach=
ine is big endian.])],[AC_DEFINE(ACC_ABI_LITTLE_ENDIAN,1,[Define to 1 if =
your machine is little endian.])])
+])#
+
+AC_DEFUN([mfx_ACC_CHECK_HEADERS], [
+AC_HEADER_TIME
+AC_CHECK_HEADERS([assert.h ctype.h dirent.h errno.h fcntl.h float.h limi=
ts.h malloc.h memory.h setjmp.h signal.h stdarg.h stddef.h stdint.h stdio=
.h stdlib.h string.h strings.h time.h unistd.h utime.h sys/stat.h sys/tim=
e.h sys/types.h sys/wait.h])
+])#
+
+AC_DEFUN([mfx_ACC_CHECK_FUNCS], [
+AC_CHECK_FUNCS(access alloca atexit atoi atol chmod chown ctime difftime=
fstat gettimeofday gmtime localtime longjmp lstat memcmp memcpy memmove =
memset mktime qsort raise setjmp signal snprintf strcasecmp strchr strdup=
strerror strftime stricmp strncasecmp strnicmp strrchr strstr time umask=
utime vsnprintf)
+])#
+
+
+AC_DEFUN([mfx_ACC_CHECK_SIZEOF], [
+AC_CHECK_SIZEOF(short)
+AC_CHECK_SIZEOF(int)
+AC_CHECK_SIZEOF(long)
+
+AC_CHECK_SIZEOF(long long)
+AC_CHECK_SIZEOF(__int16)
+AC_CHECK_SIZEOF(__int32)
+AC_CHECK_SIZEOF(__int64)
+
+AC_CHECK_SIZEOF(void *)
+AC_CHECK_SIZEOF(size_t)
+AC_CHECK_SIZEOF(ptrdiff_t)
+])#
+
+
+# /*********************************************************************=
**
+# // Check for ACC_conformance
+# **********************************************************************=
**/
+
+AC_DEFUN([mfx_ACC_ACCCHK], [
+mfx_tmp=3D$1
+mfx_save_CPPFLAGS=3D$CPPFLAGS
+dnl in Makefile.in $(INCLUDES) will be before $(CPPFLAGS), so we mimic t=
his here
+test "X$mfx_tmp" =3D "X" || CPPFLAGS=3D"$mfx_tmp $CPPFLAGS"
+
+AC_MSG_CHECKING([whether your compiler passes the ACC conformance test])
+
+AC_LANG_CONFTEST([AC_LANG_PROGRAM(
+[[#define ACC_CONFIG_NO_HEADER 1
+#include "acc/acc.h"
+#include "acc/acc_incd.h"
+#undef ACCCHK_ASSERT
+#define ACCCHK_ASSERT(expr) ACC_COMPILE_TIME_ASSERT_HEADER(expr)
+#include "acc/acc_chk.ch"
+#undef ACCCHK_ASSERT
+static void test_acc_compile_time_assert(void) {
+#define ACCCHK_ASSERT(expr) ACC_COMPILE_TIME_ASSERT(expr)
+#include "acc/acc_chk.ch"
+#undef ACCCHK_ASSERT
+}
+#undef NDEBUG
+#include <assert.h>
+static int test_acc_run_time_assert(int r) {
+#define ACCCHK_ASSERT(expr) assert(expr);
+#include "acc/acc_chk.ch"
+#undef ACCCHK_ASSERT
+return r;
+}
+]], [[
+test_acc_compile_time_assert();
+if (test_acc_run_time_assert(1) !=3D 1) return 1;
+]]
+)])
+
+mfx_tmp=3DFAILED
+_AC_COMPILE_IFELSE([], [mfx_tmp=3Dyes])
+rm -f conftest.$ac_ext conftest.$ac_objext
+
+CPPFLAGS=3D$mfx_save_CPPFLAGS
+
+AC_MSG_RESULT([$mfx_tmp])
+case x$mfx_tmp in
+ xpassed | xyes) ;;
+ *)
+ AC_MSG_NOTICE([])
+ AC_MSG_NOTICE([Your compiler failed the ACC conformance test - for d=
etails see ])
+ AC_MSG_NOTICE([`config.log'. Please check that log file and consider=
sending])
+ AC_MSG_NOTICE([a patch or bug-report to <${PACKAGE_BUGREPORT}>.])
+ AC_MSG_NOTICE([Thanks for your support.])
+ AC_MSG_NOTICE([])
+ AC_MSG_ERROR([ACC conformance test failed. Stop.])
+dnl AS_EXIT
+ ;;
+esac
+])# mfx_ACC_ACCCHK
+
+
+# /*********************************************************************=
**
+# // Check for ACC_conformance
+# **********************************************************************=
**/
+
+AC_DEFUN([mfx_MINIACC_ACCCHK], [
+mfx_tmp=3D$1
+mfx_save_CPPFLAGS=3D$CPPFLAGS
+dnl in Makefile.in $(INCLUDES) will be before $(CPPFLAGS), so we mimic t=
his here
+test "X$mfx_tmp" =3D "X" || CPPFLAGS=3D"$mfx_tmp $CPPFLAGS"
+
+AC_MSG_CHECKING([whether your compiler passes the ACC conformance test])
+
+AC_LANG_CONFTEST([AC_LANG_PROGRAM(
+[[#define ACC_CONFIG_NO_HEADER 1
+#define ACC_WANT_ACC_INCD_H 1
+#include $2
+
+#define ACC_WANT_ACC_CHK_CH 1
+#undef ACCCHK_ASSERT
+#define ACCCHK_ASSERT(expr) ACC_COMPILE_TIME_ASSERT_HEADER(expr)
+#include $2
+
+#define ACC_WANT_ACC_CHK_CH 1
+#undef ACCCHK_ASSERT
+#define ACCCHK_ASSERT(expr) ACC_COMPILE_TIME_ASSERT(expr)
+static void test_acc_compile_time_assert(void) {
+#include $2
+}
+
+#undef NDEBUG
+#include <assert.h>
+#define ACC_WANT_ACC_CHK_CH 1
+#undef ACCCHK_ASSERT
+#define ACCCHK_ASSERT(expr) assert(expr);
+static int test_acc_run_time_assert(int r) {
+#include $2
+return r;
+}
+]], [[
+test_acc_compile_time_assert();
+if (test_acc_run_time_assert(1) !=3D 1) return 1;
+]]
+)])
+
+mfx_tmp=3DFAILED
+_AC_COMPILE_IFELSE([], [mfx_tmp=3Dyes])
+rm -f conftest.$ac_ext conftest.$ac_objext
+
+CPPFLAGS=3D$mfx_save_CPPFLAGS
+
+AC_MSG_RESULT([$mfx_tmp])
+case x$mfx_tmp in
+ xpassed | xyes) ;;
+ *)
+ AC_MSG_NOTICE([])
+ AC_MSG_NOTICE([Your compiler failed the ACC conformance test - for d=
etails see ])
+ AC_MSG_NOTICE([`config.log'. Please check that log file and consider=
sending])
+ AC_MSG_NOTICE([a patch or bug-report to <${PACKAGE_BUGREPORT}>.])
+ AC_MSG_NOTICE([Thanks for your support.])
+ AC_MSG_NOTICE([])
+ AC_MSG_ERROR([ACC conformance test failed. Stop.])
+dnl AS_EXIT
+ ;;
+esac
+])# mfx_MINIACC_ACCCHK
+
+
+
+# serial 1
+
+AC_DEFUN([mfx_PROG_CPPFLAGS], [
+AC_MSG_CHECKING([whether the C preprocessor needs special flags])
+
+AC_LANG_CONFTEST([AC_LANG_PROGRAM(
+[[#include <limits.h>
+#if (32767 >=3D 4294967295ul) || (65535u >=3D 4294967295ul)
+# include "your C preprocessor is broken 1"
+#elif (0xffffu =3D=3D 0xfffffffful)
+# include "your C preprocessor is broken 2"
+#elif (32767 >=3D ULONG_MAX) || (65535u >=3D ULONG_MAX)
+# include "your C preprocessor is broken 3"
+#endif
+]], [[ ]]
+)])
+
+mfx_save_CPPFLAGS=3D$CPPFLAGS
+mfx_tmp=3DERROR
+for mfx_arg in "" -no-cpp-precomp
+do
+ CPPFLAGS=3D"$mfx_arg $mfx_save_CPPFLAGS"
+ _AC_COMPILE_IFELSE([],
+[mfx_tmp=3D$mfx_arg
+break])
+done
+CPPFLAGS=3D$mfx_save_CPPFLAGS
+rm -f conftest.$ac_ext conftest.$ac_objext
+case x$mfx_tmp in
+ x)
+ AC_MSG_RESULT([none needed]) ;;
+ xERROR)
+ AC_MSG_RESULT([ERROR])
+ AC_MSG_ERROR([your C preprocessor is broken - for details see config=
.log])
+ ;;
+ *)
+ AC_MSG_RESULT([$mfx_tmp])
+ CPPFLAGS=3D"$mfx_tmp $CPPFLAGS"
+ ;;
+esac
+])# mfx_PROG_CPPFLAGS
+
+
+
+# serial 3
+
+AC_DEFUN([mfx_CHECK_HEADER_SANE_LIMITS_H], [
+AC_CACHE_CHECK([whether limits.h is sane],
+mfx_cv_header_sane_limits_h,
+[AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[#include <limits.h>
+#if (32767 >=3D 4294967295ul) || (65535u >=3D 4294967295ul)
+# if defined(__APPLE__) && defined(__GNUC__)
+# error "your preprocessor is broken - use compiler option -no-cpp-pr=
ecomp"
+# else
+# include "your preprocessor is broken"
+# endif
+#endif
+#define MFX_0xffff 0xffff
+#define MFX_0xffffffffL 4294967295ul
+#if !defined(CHAR_BIT) || (CHAR_BIT !=3D 8)
+# include "error CHAR_BIT"
+#endif
+#if !defined(UCHAR_MAX)
+# include "error UCHAR_MAX 1"
+#endif
+#if !defined(USHRT_MAX)
+# include "error USHRT_MAX 1"
+#endif
+#if !defined(UINT_MAX)
+# include "error UINT_MAX 1"
+#endif
+#if !defined(ULONG_MAX)
+# include "error ULONG_MAX 1"
+#endif
+#if !defined(SHRT_MAX)
+# include "error SHRT_MAX 1"
+#endif
+#if !defined(INT_MAX)
+# include "error INT_MAX 1"
+#endif
+#if !defined(LONG_MAX)
+# include "error LONG_MAX 1"
+#endif
+#if (UCHAR_MAX < 1)
+# include "error UCHAR_MAX 2"
+#endif
+#if (USHRT_MAX < 1)
+# include "error USHRT_MAX 2"
+#endif
+#if (UINT_MAX < 1)
+# include "error UINT_MAX 2"
+#endif
+#if (ULONG_MAX < 1)
+# include "error ULONG_MAX 2"
+#endif
+#if (UCHAR_MAX < 0xff)
+# include "error UCHAR_MAX 3"
+#endif
+#if (USHRT_MAX < MFX_0xffff)
+# include "error USHRT_MAX 3"
+#endif
+#if (UINT_MAX < MFX_0xffff)
+# include "error UINT_MAX 3"
+#endif
+#if (ULONG_MAX < MFX_0xffffffffL)
+# include "error ULONG_MAX 3"
+#endif
+#if (USHRT_MAX > UINT_MAX)
+# include "error USHRT_MAX vs UINT_MAX"
+#endif
+#if (UINT_MAX > ULONG_MAX)
+# include "error UINT_MAX vs ULONG_MAX"
+#endif
+]], [[
+#if (USHRT_MAX =3D=3D MFX_0xffff)
+{ typedef char a_short2a[1 - 2 * !(sizeof(short) =3D=3D 2)]; }
+#elif (USHRT_MAX >=3D MFX_0xffff)
+{ typedef char a_short2b[1 - 2 * !(sizeof(short) > 2)]; }
+#endif
+#if (UINT_MAX =3D=3D MFX_0xffff)
+{ typedef char a_int2a[1 - 2 * !(sizeof(int) =3D=3D 2)]; }
+#elif (UINT_MAX >=3D MFX_0xffff)
+{ typedef char a_int2b[1 - 2 * !(sizeof(int) > 2)]; }
+#endif
+#if (ULONG_MAX =3D=3D MFX_0xffff)
+{ typedef char a_long2a[1 - 2 * !(sizeof(long) =3D=3D 2)]; }
+#elif (ULONG_MAX >=3D MFX_0xffff)
+{ typedef char a_long2b[1 - 2 * !(sizeof(long) > 2)]; }
+#endif
+#if (USHRT_MAX =3D=3D MFX_0xffffffffL)
+{ typedef char a_short4a[1 - 2 * !(sizeof(short) =3D=3D 4)]; }
+#elif (USHRT_MAX >=3D MFX_0xffffffffL)
+{ typedef char a_short4b[1 - 2 * !(sizeof(short) > 4)]; }
+#endif
+#if (UINT_MAX =3D=3D MFX_0xffffffffL)
+{ typedef char a_int4a[1 - 2 * !(sizeof(int) =3D=3D 4)]; }
+#elif (UINT_MAX >=3D MFX_0xffffffffL)
+{ typedef char a_int4b[1 - 2 * !(sizeof(int) > 4)]; }
+#endif
+#if (ULONG_MAX =3D=3D MFX_0xffffffffL)
+{ typedef char a_long4a[1 - 2 * !(sizeof(long) =3D=3D 4)]; }
+#elif (ULONG_MAX >=3D MFX_0xffffffffL)
+{ typedef char a_long4b[1 - 2 * !(sizeof(long) > 4)]; }
+#endif
+]])],
+[mfx_cv_header_sane_limits_h=3Dyes],
+[mfx_cv_header_sane_limits_h=3Dno])])
+])
+
+# /*********************************************************************=
**
+# // standard
+# **********************************************************************=
**/
+
+AC_DEFUN([mfx_LZO_CHECK_ENDIAN], [
+AC_C_BIGENDIAN([AC_DEFINE(LZO_ABI_BIG_ENDIAN,1,[Define to 1 if your mach=
ine is big endian.])],[AC_DEFINE(LZO_ABI_LITTLE_ENDIAN,1,[Define to 1 if =
your machine is little endian.])])
+])#
+
+
+# /*********************************************************************=
**
+# //
+# **********************************************************************=
**/
+
+dnl more types which are not yet covered by ACC
+
+AC_DEFUN([mfx_CHECK_SIZEOF], [
+AC_CHECK_SIZEOF(__int32)
+AC_CHECK_SIZEOF(intmax_t)
+AC_CHECK_SIZEOF(uintmax_t)
+AC_CHECK_SIZEOF(intptr_t)
+AC_CHECK_SIZEOF(uintptr_t)
+
+AC_CHECK_SIZEOF(float)
+AC_CHECK_SIZEOF(double)
+AC_CHECK_SIZEOF(long double)
+
+AC_CHECK_SIZEOF(dev_t)
+AC_CHECK_SIZEOF(fpos_t)
+AC_CHECK_SIZEOF(mode_t)
+AC_CHECK_SIZEOF(off_t)
+AC_CHECK_SIZEOF(ssize_t)
+AC_CHECK_SIZEOF(time_t)
+])#
+
+
+
+AC_DEFUN([mfx_CHECK_LIB_WINMM], [
+if test "X$GCC" =3D Xyes; then
+case $host_os in
+cygwin* | mingw* | pw32*)
+ test "X$LIBS" !=3D "X" && LIBS=3D"$LIBS "
+ LIBS=3D"${LIBS}-lwinmm" ;;
+*)
+ ;;
+esac
+fi
+])#
+
+#serial 6
+
+dnl From Paul Eggert.
+
+# Define ST_MTIM_NSEC to be the nanoseconds member of struct stat's st_m=
tim,
+# if it exists.
+
+AC_DEFUN([AC_STRUCT_ST_MTIM_NSEC],
+ [AC_CACHE_CHECK([for nanoseconds member of struct stat.st_mtim],
+ ac_cv_struct_st_mtim_nsec,
+ [ac_save_CPPFLAGS=3D"$CPPFLAGS"
+ ac_cv_struct_st_mtim_nsec=3Dno
+ # tv_nsec -- the usual case
+ # _tv_nsec -- Solaris 2.6, if
+ # (defined _XOPEN_SOURCE && _XOPEN_SOURCE_EXTENDED =3D=3D 1
+ # && !defined __EXTENSIONS__)
+ # st__tim.tv_nsec -- UnixWare 2.1.2
+ for ac_val in tv_nsec _tv_nsec st__tim.tv_nsec; do
+ CPPFLAGS=3D"$ac_save_CPPFLAGS -DST_MTIM_NSEC=3D$ac_val"
+ AC_TRY_COMPILE([#include <sys/types.h>
+#include <sys/stat.h>], [struct stat s; s.st_mtim.ST_MTIM_NSEC;],
+ [ac_cv_struct_st_mtim_nsec=3D$ac_val; break])
+ done
+ CPPFLAGS=3D"$ac_save_CPPFLAGS"])
+
+ if test $ac_cv_struct_st_mtim_nsec !=3D no; then
+ AC_DEFINE_UNQUOTED(ST_MTIM_NSEC, $ac_cv_struct_st_mtim_nsec,
+ [Define to be the nanoseconds member of struct stat's st_mtim,
+ if it exists.])
+ fi
+ ]
+)
diff --git a/meta-oe/recipes-support/lzop/lzop_1.04.bb b/meta-oe/recipes-=
support/lzop/lzop_1.04.bb
new file mode 100644
index 0000000000..d9b3524b67
--- /dev/null
+++ b/meta-oe/recipes-support/lzop/lzop_1.04.bb
@@ -0,0 +1,27 @@
+SUMMARY =3D "Real-time file compressor"
+DESCRIPTION =3D "lzop is a compression utility which is designed to be a=
companion to gzip. \n\
+It is based on the LZO data compression library and its main advantages =
over \n\
+gzip are much higher compression and decompression speed at the cost of =
some \n\
+compression ratio. The lzop compression utility was designed with the go=
als \n\
+of reliability, speed, portability and with reasonable drop-in compatibi=
lity \n\
+to gzip."
+HOMEPAGE =3D "http://www.lzop.org/"
+DEPENDS +=3D "lzo"
+
+LICENSE =3D "GPL-2.0-or-later"
+LIC_FILES_CHKSUM =3D "file://COPYING;md5=3Db234ee4d69f5fce4486a80fdaf4a4=
263 \
+ file://src/lzop.c;beginline=3D5;endline=3D21;md5=3D2=
3d767de7754eb24b9e900b025cf7fc8"
+
+SRC_URI =3D "http://www.lzop.org/download/${BP}.tar.gz \
+ file://acinclude.m4 \
+ "
+SRC_URI[md5sum] =3D "271eb10fde77a0a96b9cbf745e719ddf"
+SRC_URI[sha256sum] =3D "7e72b62a8a60aff5200a047eea0773a8fb205caf7acbe177=
4d95147f305a2f41"
+
+inherit autotools
+
+do_configure:prepend () {
+ install -Dm 0644 ${WORKDIR}/acinclude.m4 ${S}/acinclude.m4
+}
+
+BBCLASSEXTEND =3D "native nativesdk"
--=20
2.25.1


[PATCH 1/2] lzo: add (from oe-core)

Ross Burton
 

lzo is being removed from oe-core, so add it here for people who still
want to use it.

Signed-off-by: Ross Burton <ross.burton@...>
---
...onfigdir-to-solve-the-undefine-error.patch | 27 +++++++
...Use-memcpy-instead-of-reinventing-it.patch | 70 +++++++++++++++++++
meta-oe/recipes-support/lzo/lzo/run-ptest | 33 +++++++++
meta-oe/recipes-support/lzo/lzo_2.10.bb | 35 ++++++++++
4 files changed, 165 insertions(+)
create mode 100644 meta-oe/recipes-support/lzo/lzo/0001-Add-pkgconfigdir=
-to-solve-the-undefine-error.patch
create mode 100644 meta-oe/recipes-support/lzo/lzo/0001-Use-memcpy-inste=
ad-of-reinventing-it.patch
create mode 100644 meta-oe/recipes-support/lzo/lzo/run-ptest
create mode 100644 meta-oe/recipes-support/lzo/lzo_2.10.bb

diff --git a/meta-oe/recipes-support/lzo/lzo/0001-Add-pkgconfigdir-to-sol=
ve-the-undefine-error.patch b/meta-oe/recipes-support/lzo/lzo/0001-Add-pk=
gconfigdir-to-solve-the-undefine-error.patch
new file mode 100644
index 0000000000..5235a15dc9
--- /dev/null
+++ b/meta-oe/recipes-support/lzo/lzo/0001-Add-pkgconfigdir-to-solve-the-=
undefine-error.patch
@@ -0,0 +1,27 @@
+From e730bfd7c2d3a4b5f3605878599cb9b20d31b1fd Mon Sep 17 00:00:00 2001
+From: Fan Xin <fan.xin@...>
+Date: Fri, 2 Jun 2017 11:52:25 +0900
+Subject: [PATCH] Add pkgconfigdir to solve the undefine error.
+
+Upstream-Status: Pending
+
+Signed-off-by: Fan Xin <fan.xin@...>
+---
+ Makefile.am | 1 +
+ 1 file changed, 1 insertion(+)
+
+diff --git a/Makefile.am b/Makefile.am
+index e4d383b..c75023d 100644
+--- a/Makefile.am
++++ b/Makefile.am
+@@ -14,6 +14,7 @@ AM_CPPFLAGS =3D -I$(top_srcdir)/include -I$(top_srcdir=
)
+ LDADD =3D src/liblzo2.la
+ lib_LTLIBRARIES =3D
+ noinst_PROGRAMS =3D
++pkgconfigdir =3D $(libdir)/pkgconfig
+ pkgconfig_DATA =3D lzo2.pc
+=20
+=20
+--=20
+1.9.1
+
diff --git a/meta-oe/recipes-support/lzo/lzo/0001-Use-memcpy-instead-of-r=
einventing-it.patch b/meta-oe/recipes-support/lzo/lzo/0001-Use-memcpy-ins=
tead-of-reinventing-it.patch
new file mode 100644
index 0000000000..db3a70e803
--- /dev/null
+++ b/meta-oe/recipes-support/lzo/lzo/0001-Use-memcpy-instead-of-reinvent=
ing-it.patch
@@ -0,0 +1,70 @@
+From: Simon McVittie <smcv@...>
+Date: Sun, 23 Nov 2014 22:50:33 +0000
+Subject: Use memcpy() instead of reinventing it
+
+gcc inlines memcpy() with results as fast as handwritten code (at
+least in my brief testing with lzop), and knows the alignment
+constraints for our architectures.
+
+Change suggested by Julian Taylor.
+
+Bug-Debian: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=3D757037
+
+Upstream-Status: Pending
+Signed-off-by: Saul Wold <sgw@...>
+---
+ minilzo/minilzo.c | 14 ++++++++++++++
+ src/lzo_func.h | 14 ++++++++++++++
+ 2 files changed, 28 insertions(+)
+
+
+diff --git a/minilzo/minilzo.c b/minilzo/minilzo.c
+index ab2be5f..6913c2f 100644
+--- a/minilzo/minilzo.c
++++ b/minilzo/minilzo.c
+@@ -3523,6 +3523,20 @@ LZO_COMPILE_TIME_ASSERT_HEADER(sizeof(*(lzo_memop=
s_TU8p)0)=3D=3D8)
+ if ((void)0, n__n > 0) do { *d__n++ =3D *s__n++; } while (--n__n > =
0); \
+ LZO_BLOCK_END
+=20
++/* Debian-specific change: we know that our compiler inlines memcpy() w=
ith
++ * constant n to be as fast as handwritten code, and knows which archit=
ectures
++ * need things correctly aligned. */
++#undef LZO_MEMOPS_COPY1
++#undef LZO_MEMOPS_COPY2
++#undef LZO_MEMOPS_COPY4
++#undef LZO_MEMOPS_COPY8
++#undef LZO_MEMOPS_COPYN
++#define LZO_MEMOPS_COPY1(dd,ss) memcpy(dd, ss, 1)
++#define LZO_MEMOPS_COPY2(dd,ss) memcpy(dd, ss, 2)
++#define LZO_MEMOPS_COPY4(dd,ss) memcpy(dd, ss, 4)
++#define LZO_MEMOPS_COPY8(dd,ss) memcpy(dd, ss, 8)
++#define LZO_MEMOPS_COPYN(dd,ss,nn) memcpy(dd, ss, nn)
++
+ __lzo_static_forceinline lzo_uint16_t lzo_memops_get_le16(const lzo_voi=
dp ss)
+ {
+ lzo_uint16_t v;
+diff --git a/src/lzo_func.h b/src/lzo_func.h
+index dfaa676..1cc1b53 100644
+--- a/src/lzo_func.h
++++ b/src/lzo_func.h
+@@ -333,6 +333,20 @@ LZO_COMPILE_TIME_ASSERT_HEADER(sizeof(*(lzo_memops_=
TU8p)0)=3D=3D8)
+ if ((void)0, n__n > 0) do { *d__n++ =3D *s__n++; } while (--n__n > =
0); \
+ LZO_BLOCK_END
+=20
++/* Debian-specific change: we know that our compiler inlines memcpy() w=
ith
++ * constant n to be as fast as handwritten code, and knows which archit=
ectures
++ * need things correctly aligned. */
++#undef LZO_MEMOPS_COPY1
++#undef LZO_MEMOPS_COPY2
++#undef LZO_MEMOPS_COPY4
++#undef LZO_MEMOPS_COPY8
++#undef LZO_MEMOPS_COPYN
++#define LZO_MEMOPS_COPY1(dd,ss) memcpy(dd, ss, 1)
++#define LZO_MEMOPS_COPY2(dd,ss) memcpy(dd, ss, 2)
++#define LZO_MEMOPS_COPY4(dd,ss) memcpy(dd, ss, 4)
++#define LZO_MEMOPS_COPY8(dd,ss) memcpy(dd, ss, 8)
++#define LZO_MEMOPS_COPYN(dd,ss,nn) memcpy(dd, ss, nn)
++
+ __lzo_static_forceinline lzo_uint16_t lzo_memops_get_le16(const lzo_voi=
dp ss)
+ {
+ lzo_uint16_t v;
diff --git a/meta-oe/recipes-support/lzo/lzo/run-ptest b/meta-oe/recipes-=
support/lzo/lzo/run-ptest
new file mode 100644
index 0000000000..6acb89fc1f
--- /dev/null
+++ b/meta-oe/recipes-support/lzo/lzo/run-ptest
@@ -0,0 +1,33 @@
+#!/bin/sh
+
+./lzotest -mavail -n10 -q /etc/services
+if [ $? -eq 0 ]; then
+ echo 'PASS: lzotest'
+else
+ echo 'FAIL: lzotest'
+fi
+LZOTEST=3D./lzotest /bin/sh -e "./check.sh" "/etc"
+./align
+if [ $? -eq 0 ]; then
+ echo 'PASS: align'
+else
+ echo 'FAIL: align'
+fi
+./chksum
+if [ $? -eq 0 ]; then
+ echo 'PASS: chksum'
+else
+ echo 'FAIL: chksum'
+fi
+./simple
+if [ $? -eq 0 ]; then
+ echo 'PASS: simple'
+else
+ echo 'FAIL: simple'
+fi
+./testmini
+if [ $? -eq 0 ]; then
+ echo 'PASS: testmini'
+else
+ echo 'FAIL: testmini'
+fi
diff --git a/meta-oe/recipes-support/lzo/lzo_2.10.bb b/meta-oe/recipes-su=
pport/lzo/lzo_2.10.bb
new file mode 100644
index 0000000000..195c2f2939
--- /dev/null
+++ b/meta-oe/recipes-support/lzo/lzo_2.10.bb
@@ -0,0 +1,35 @@
+SUMMARY =3D "Lossless data compression library"
+DESCRIPTION =3D "A portable lossless data compression library written in=
\
+ANSI C that offers pretty fast compression and *extremely* fast decompre=
ssion. "
+HOMEPAGE =3D "http://www.oberhumer.com/opensource/lzo/"
+SECTION =3D "libs"
+LICENSE =3D "GPL-2.0-or-later"
+LIC_FILES_CHKSUM =3D "file://COPYING;md5=3Db234ee4d69f5fce4486a80fdaf4a4=
263 \
+ file://src/lzo_init.c;beginline=3D5;endline=3D25;md5=
=3D9ae697ca01829b0a383c5d2d163e0108"
+
+SRC_URI =3D "http://www.oberhumer.com/opensource/lzo/download/lzo-${PV}.=
tar.gz \
+ file://0001-Use-memcpy-instead-of-reinventing-it.patch \
+ file://0001-Add-pkgconfigdir-to-solve-the-undefine-error.patch \
+ file://run-ptest \
+ "
+
+SRC_URI[md5sum] =3D "39d3f3f9c55c87b1e5d6888e1420f4b5"
+SRC_URI[sha256sum] =3D "c0f892943208266f9b6543b3ae308fab6284c5c90e627931=
446fb49b4221a072"
+
+inherit autotools ptest
+
+CVE_PRODUCT =3D "lzo oberhumer:lzo2"
+
+EXTRA_OECONF =3D "--enable-shared"
+
+do_install_ptest() {
+ t=3D${D}${PTEST_PATH}
+ cp ${S}/util/check.sh $t
+ cp ${B}/minilzo/testmini $t
+ for i in tests/align tests/chksum lzotest/lzotest examples/simple
+ do cp ${B}/`dirname $i`/.libs/`basename $i` $t; \
+ done
+}
+
+
+BBCLASSEXTEND =3D "native nativesdk"
--=20
2.25.1


Re: [PATCH][meta-filesystems][dunfell] fuse: set CVE_PRODUCT to "fuse_project:fuse"

Ranjitsinh Rathod
 

Hi Armin,

May I know why this was not taken into dunfell branch?
This will fix the wrong CVE for the fuse component.

Thanks,
Ranjitsinh


[meta-oe][PATCH] p8platform: unbreak do_populate_sdk

Markus Volk
 

Error:
Problem: package libcec-dev-6.0.2-r0.corei7_64 requires p8platform-dev, =
but none of the providers can be installed
- conflicting requests
- nothing provides p8platform =3D 2.1.0.1-r0 needed by p8platform-dev-2=
.1.0.1-r0.corei7_64
(try to add '--skip-broken' to skip uninstallable packages)

Signed-off-by: Markus Volk <f_l_k@...>
---
meta-oe/recipes-extended/p8platform/p8platform_git.bb | 2 ++
1 file changed, 2 insertions(+)

diff --git a/meta-oe/recipes-extended/p8platform/p8platform_git.bb b/meta=
-oe/recipes-extended/p8platform/p8platform_git.bb
index 8a0699057..777c6c7ca 100644
--- a/meta-oe/recipes-extended/p8platform/p8platform_git.bb
+++ b/meta-oe/recipes-extended/p8platform/p8platform_git.bb
@@ -17,3 +17,5 @@ inherit cmake pkgconfig
EXTRA_OECMAKE +=3D "-DCMAKE_INSTALL_LIBDIR=3D${libdir} -DCMAKE_INSTALL_L=
IBDIR_NOARCH=3D${libdir}"
=20
FILES:${PN}-dev +=3D "${libdir}/p8-platform"
+
+ALLOW_EMPTY:${PN} =3D "1"
--=20
2.25.1


Re: [meta-python][PATCH] python3-traitlets: Upgrade to 5.2.1

Khem Raj
 

On Tue, May 24, 2022 at 3:25 AM Ross Burton <Ross.Burton@...> wrote:

I have genuinely no idea how this builds: the recipe says to use setuptools_build_meta but 5.2.1 deletes all the setuptools files and has ported to a new build system called hatchling.



Maybe setuptools_build_meta infers a lot and it sort of works, but this is not the correct fix. I have a branch locally which is almost complete to add hatchling (and it’s dependencies) so this can be built properly.
yeah hatching would be an improvement for sure. I was just trying to
bring it back to where it was. I will wait for your fix



Ross



From: openembedded-devel@... <openembedded-devel@...> on behalf of Khem Raj via lists.openembedded.org <raj.khem=gmail.com@...>
Date: Monday, 23 May 2022 at 19:22
To: openembedded-devel@... <openembedded-devel@...>
Cc: Khem Raj <raj.khem@...>
Subject: [oe] [meta-python][PATCH] python3-traitlets: Upgrade to 5.2.1

Fix build with latest setuptools while here.

Signed-off-by: Khem Raj <raj.khem@...>
---
.../dynamic_description.patch | 36 +++++++++++++++++++
...ts_5.2.0.bb => python3-traitlets_5.2.1.bb} | 3 +-
2 files changed, 38 insertions(+), 1 deletion(-)
create mode 100644 meta-python/recipes-devtools/python/python3-traitlets/dynamic_description.patch
rename meta-python/recipes-devtools/python/{python3-traitlets_5.2.0.bb => python3-traitlets_5.2.1.bb} (74%)

diff --git a/meta-python/recipes-devtools/python/python3-traitlets/dynamic_description.patch b/meta-python/recipes-devtools/python/python3-traitlets/dynamic_description.patch
new file mode 100644
index 0000000000..6d8e4b1f50
--- /dev/null
+++ b/meta-python/recipes-devtools/python/python3-traitlets/dynamic_description.patch
@@ -0,0 +1,36 @@
+New setuptools turns on autodiscovery of modules which ends up in funny errors like
+
+error: Multiple top-level packages discovered in a flat-layout: ['patches', 'traitlets'].
+
+To avoid accidental inclusion of unwanted files or directories,
+setuptools will not proceed with this build.
+
+
+this is becasue patches/ folder is created by quilt. Secondly, define description and version
+statically since new setuptools complain about it.
+
+Upstream-Status: Pending
+
+Signed-off-by: Khem Raj <raj.khem@...>
+--- a/pyproject.toml
++++ b/pyproject.toml
+@@ -4,6 +4,8 @@ build-backend = "hatchling.build"
+
+ [project]
+ name = "traitlets"
++version = "5.2.1"
++description = "A lightweight Traits like module"
+ authors = [{name = "IPython Development Team", email = "ipython-dev@..."}]
+ license = {file = "COPYING.md"}
+ readme = "README.md"
+@@ -18,7 +20,9 @@ classifiers = [
+ ]
+ urls = {Homepage = "https://github.com/ipython/traitlets"}
+ requires-python = ">=3.7"
+-dynamic = ["description", "version"]
++
++[tool.setuptools]
++py-modules = []
+
+ [project.optional-dependencies]
+ test = ["pytest", "pre-commit"]
diff --git a/meta-python/recipes-devtools/python/python3-traitlets_5.2.0.bb b/meta-python/recipes-devtools/python/python3-traitlets_5.2.1.bb
similarity index 74%
rename from meta-python/recipes-devtools/python/python3-traitlets_5.2.0.bb
rename to meta-python/recipes-devtools/python/python3-traitlets_5.2.1.bb
index 56ebaac675..588bddbd74 100644
--- a/meta-python/recipes-devtools/python/python3-traitlets_5.2.0.bb
+++ b/meta-python/recipes-devtools/python/python3-traitlets_5.2.1.bb
@@ -6,7 +6,8 @@ LIC_FILES_CHKSUM = "file://COPYING.md;md5=9c125dfc5ff5364d40b5f56f02cd9de3"

PYPI_PACKAGE = "traitlets"

-SRC_URI[sha256sum] = "60474f39bf1d39a11e0233090b99af3acee93bbc2281777e61dd8c87da8a0014"
+SRC_URI += "file://dynamic_description.patch"
+SRC_URI[sha256sum] = "a415578cde1985f1b773faefe49e9f078d345f38665ce3e9e914ec7b41150ce9"

RDEPENDS:${PN} = "\
${PYTHON_PN}-ipython-genutils \
--
2.36.1

IMPORTANT NOTICE: The contents of this email and any attachments are confidential and may also be privileged. If you are not the intended recipient, please notify the sender immediately and do not disclose the contents to any other person, use it for any purpose, or store or copy the information in any medium. Thank you.


Re: [meta-python][PATCH 1/2] python3-speedtest-cli: fix RDEPENDS

Bartosz Golaszewski
 

On Thu, May 19, 2022 at 3:18 PM Bartosz Golaszewski <brgl@...> wrote:

There are packages missing in RDEPENDS needed to run speedtest-cli. Add
them and use += for the assignment as we don't know what inherited
classes may have added.

Signed-off-by: Bartosz Golaszewski <brgl@...>
---
.../recipes-devtools/python/python3-speedtest-cli_2.1.3.bb | 6 +++++-
1 file changed, 5 insertions(+), 1 deletion(-)

diff --git a/meta-python/recipes-devtools/python/python3-speedtest-cli_2.1.3.bb b/meta-python/recipes-devtools/python/python3-speedtest-cli_2.1.3.bb
index 06d98cbe1..472113b05 100644
--- a/meta-python/recipes-devtools/python/python3-speedtest-cli_2.1.3.bb
+++ b/meta-python/recipes-devtools/python/python3-speedtest-cli_2.1.3.bb
@@ -7,4 +7,8 @@ SRC_URI[sha256sum] = "5e2773233cedb5fa3d8120eb7f97bcc4974b5221b254d33ff16e2f1d41

inherit pypi setuptools3

-RDEPENDS:${PN} = "${PYTHON_PN}-misc"
+RDEPENDS:${PN} += " \
+ python3-misc \
+ python3-threading \
+ python3-xml \
+"
--
2.34.1
Hi!

This has been in master-next for days but didn't get into master
proper. Just a gentle ping.

Bart


[PATCH 7/7] python3-cppy: fix inherits and DEPENDS

Ross Burton
 

This recipe inherited python_flit_core, but actually builds with setuptoo=
ls.

Signed-off-by: Ross Burton <ross.burton@...>
---
meta-python/recipes-devtools/python/python3-cppy_1.2.1.bb | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/meta-python/recipes-devtools/python/python3-cppy_1.2.1.bb b/=
meta-python/recipes-devtools/python/python3-cppy_1.2.1.bb
index 57ef3b2776..270f74963d 100644
--- a/meta-python/recipes-devtools/python/python3-cppy_1.2.1.bb
+++ b/meta-python/recipes-devtools/python/python3-cppy_1.2.1.bb
@@ -7,11 +7,11 @@ SRC_URI[sha256sum] =3D "83b43bf17b1085ac15c5debdb42154f=
138b928234b21447358981f69d0
=20
RDEPENDS:${PN} +=3D "python3-setuptools python3-distutils"
=20
-inherit pypi python_flit_core=20
+inherit pypi python_setuptools_build_meta
=20
SRC_URI +=3D " file://0001-Fix-build-error-as-following.patch \
"
=20
-DEPENDS +=3D "python3-setuptools-native"
+DEPENDS +=3D "python3-setuptools-scm-native"
=20
BBCLASSEXTEND =3D "native nativesdk"
--=20
2.25.1


[PATCH 6/7] python3-traitlets: upgrade to 5.2.1

Ross Burton
 

This now uses hatching to build.

Also remove redundant PYPI_PACKAGE assignment.

Signed-off-by: Ross Burton <ross.burton@...>
---
...ython3-traitlets_5.2.0.bb =3D> python3-traitlets_5.2.1.bb} | 6 ++----
1 file changed, 2 insertions(+), 4 deletions(-)
rename meta-python/recipes-devtools/python/{python3-traitlets_5.2.0.bb =3D=
python3-traitlets_5.2.1.bb} (67%)
diff --git a/meta-python/recipes-devtools/python/python3-traitlets_5.2.0.=
bb b/meta-python/recipes-devtools/python/python3-traitlets_5.2.1.bb
similarity index 67%
rename from meta-python/recipes-devtools/python/python3-traitlets_5.2.0.b=
b
rename to meta-python/recipes-devtools/python/python3-traitlets_5.2.1.bb
index 56ebaac675..3bc977279a 100644
--- a/meta-python/recipes-devtools/python/python3-traitlets_5.2.0.bb
+++ b/meta-python/recipes-devtools/python/python3-traitlets_5.2.1.bb
@@ -4,13 +4,11 @@ AUTHOR =3D "IPython Development Team <ipython-dev@scipy=
.org>"
LICENSE =3D "BSD-3-Clause"
LIC_FILES_CHKSUM =3D "file://COPYING.md;md5=3D9c125dfc5ff5364d40b5f56f02=
cd9de3"
=20
-PYPI_PACKAGE =3D "traitlets"
+SRC_URI[sha256sum] =3D "a415578cde1985f1b773faefe49e9f078d345f38665ce3e9=
e914ec7b41150ce9"
=20
-SRC_URI[sha256sum] =3D "60474f39bf1d39a11e0233090b99af3acee93bbc2281777e=
61dd8c87da8a0014"
+inherit pypi python_hatchling
=20
RDEPENDS:${PN} =3D "\
${PYTHON_PN}-ipython-genutils \
${PYTHON_PN}-decorator \
"
-
-inherit pypi python_setuptools_build_meta
--=20
2.25.1


[PATCH 5/7] python3-hatchling: add new recipe and build class

Ross Burton
 

Hatchling is the build backend used by the Hatch tool. Add the recipe
and a pep517 build class.

Signed-off-by: Ross Burton <ross.burton@...>
---
meta-python/classes/python_hatchling.bbclass | 5 +++++
.../packagegroups/packagegroup-meta-python.bb | 1 +
.../python/python3-hatchling_1.3.0.bb | 21 +++++++++++++++++++
3 files changed, 27 insertions(+)
create mode 100644 meta-python/classes/python_hatchling.bbclass
create mode 100644 meta-python/recipes-devtools/python/python3-hatchling=
_1.3.0.bb

diff --git a/meta-python/classes/python_hatchling.bbclass b/meta-python/c=
lasses/python_hatchling.bbclass
new file mode 100644
index 0000000000..b3cbe23601
--- /dev/null
+++ b/meta-python/classes/python_hatchling.bbclass
@@ -0,0 +1,5 @@
+inherit python_pep517 python3native python3-dir setuptools3-base
+
+DEPENDS +=3D "python3-hatchling-native"
+
+PEP517_BUILD_API =3D "hatchling.build"
diff --git a/meta-python/recipes-core/packagegroups/packagegroup-meta-pyt=
hon.bb b/meta-python/recipes-core/packagegroups/packagegroup-meta-python.=
bb
index 2fcf34260c..80ec0720fd 100644
--- a/meta-python/recipes-core/packagegroups/packagegroup-meta-python.bb
+++ b/meta-python/recipes-core/packagegroups/packagegroup-meta-python.bb
@@ -168,6 +168,7 @@ RDEPENDS:packagegroup-meta-python3 =3D "\
python3-h11 \
python3-h2 \
python3-h5py \
+ python3-hatchling \
python3-haversine \
python3-hpack \
python3-html2text \
diff --git a/meta-python/recipes-devtools/python/python3-hatchling_1.3.0.=
bb b/meta-python/recipes-devtools/python/python3-hatchling_1.3.0.bb
new file mode 100644
index 0000000000..a6550a9732
--- /dev/null
+++ b/meta-python/recipes-devtools/python/python3-hatchling_1.3.0.bb
@@ -0,0 +1,21 @@
+SUMMARY =3D "The extensible, standards compliant build backend used by H=
atch"
+HOMEPAGE =3D "https://hatch.pypa.io/latest/"
+LICENSE =3D "MIT"
+LIC_FILES_CHKSUM =3D "file://LICENSE.txt;md5=3Dcbe2fd33fc9297692812fc94b=
7d27fd9"
+
+inherit pypi python_hatchling
+
+DEPENDS +=3D "python3-pluggy-native python3-tomli-native python3-pathspe=
c-native python3-packaging-native python3-editables-native"
+DEPENDS:remove:class-native =3D "python3-hatchling-native"
+
+SRC_URI[sha256sum] =3D "1401d45d3dd6a5910f64d539acaa943486d5e8b7dda1a97f=
2b0040fdddc5b85e"
+
+# Until we have a proper tool to invoke PEP517 builds, hatchling can't
+# bootstrap itself automatically.
+PEP517_BUILD_API =3D "hatchling.ouroboros"
+
+do_compile:prepend() {
+ export PYTHONPATH=3Dsrc
+}
+
+BBCLASSEXTEND =3D "native nativesdk"
--=20
2.25.1


[PATCH 4/7] python3-pathspec: add new recipe

Ross Burton
 

Signed-off-by: Ross Burton <ross.burton@...>
---
.../packagegroups/packagegroup-meta-python.bb | 1 +
.../recipes-devtools/python/python3-pathspec_0.9.0.bb | 11 +++++++++++
2 files changed, 12 insertions(+)
create mode 100644 meta-python/recipes-devtools/python/python3-pathspec_=
0.9.0.bb

diff --git a/meta-python/recipes-core/packagegroups/packagegroup-meta-pyt=
hon.bb b/meta-python/recipes-core/packagegroups/packagegroup-meta-python.=
bb
index 7836853cd5..2fcf34260c 100644
--- a/meta-python/recipes-core/packagegroups/packagegroup-meta-python.bb
+++ b/meta-python/recipes-core/packagegroups/packagegroup-meta-python.bb
@@ -270,6 +270,7 @@ RDEPENDS:packagegroup-meta-python3 =3D "\
python3-parso \
python3-passlib \
python3-pastedeploy \
+ python3-pathspec \
python3-pathtools3 \
python3-pep8 \
python3-periphery \
diff --git a/meta-python/recipes-devtools/python/python3-pathspec_0.9.0.b=
b b/meta-python/recipes-devtools/python/python3-pathspec_0.9.0.bb
new file mode 100644
index 0000000000..641f1cfd87
--- /dev/null
+++ b/meta-python/recipes-devtools/python/python3-pathspec_0.9.0.bb
@@ -0,0 +1,11 @@
+SUMMARY =3D "Utility library for gitignore style pattern matching of fil=
e paths."
+HOMEPAGE =3D "https://github.com/cpburnz/python-path-specification"
+SECTION =3D "devel/python"
+LICENSE =3D "MPL-2.0"
+LIC_FILES_CHKSUM =3D "file://LICENSE;md5=3D815ca599c9df247a0c7f619bab123=
dad"
+
+SRC_URI[sha256sum] =3D "e564499435a2673d586f6b2130bb5b95f04a3ba06f81b8f8=
95b651a3c76aabb1"
+
+inherit pypi setuptools3
+
+BBCLASSEXTEND =3D "native nativesdk"
--=20
2.25.1


[PATCH 3/7] python3-editables: add new recipe

Ross Burton
 

Signed-off-by: Ross Burton <ross.burton@...>
---
.../packagegroups/packagegroup-meta-python.bb | 1 +
.../recipes-devtools/python/python3-editables_0.3.bb | 11 +++++++++++
2 files changed, 12 insertions(+)
create mode 100644 meta-python/recipes-devtools/python/python3-editables=
_0.3.bb

diff --git a/meta-python/recipes-core/packagegroups/packagegroup-meta-pyt=
hon.bb b/meta-python/recipes-core/packagegroups/packagegroup-meta-python.=
bb
index 594a72f526..7836853cd5 100644
--- a/meta-python/recipes-core/packagegroups/packagegroup-meta-python.bb
+++ b/meta-python/recipes-core/packagegroups/packagegroup-meta-python.bb
@@ -106,6 +106,7 @@ RDEPENDS:packagegroup-meta-python3 =3D "\
python3-dominate \
python3-dynamic-dispatch \
python3-ecdsa \
+ python3-editables \
python3-editor \
python3-email-validator \
python3-engineio \
diff --git a/meta-python/recipes-devtools/python/python3-editables_0.3.bb=
b/meta-python/recipes-devtools/python/python3-editables_0.3.bb
new file mode 100644
index 0000000000..b42ff06872
--- /dev/null
+++ b/meta-python/recipes-devtools/python/python3-editables_0.3.bb
@@ -0,0 +1,11 @@
+SUMMARY =3D "A Python library for creating editable wheels"
+HOMEPAGE =3D "https://github.com/pfmoore/editables"
+SECTION =3D "devel/python"
+LICENSE =3D "MIT"
+LIC_FILES_CHKSUM =3D "file://LICENSE.txt;md5=3D41bc1be47b7bb8240db3ef928=
c7cb0bf"
+
+SRC_URI[sha256sum] =3D "167524e377358ed1f1374e61c268f0d7a4bf7dbd046c656f=
7b410cde16161b1a"
+
+inherit pypi python_setuptools_build_meta
+
+BBCLASSEXTEND =3D "native nativesdk"
--=20
2.25.1

1741 - 1760 of 99001