Date   

[meta-gnome][PATCH 3/4] geocode-glib: build with libsoup-3.0

Markus Volk
 

Signed-off-by: Markus Volk <f_l_k@...>
---
meta-gnome/recipes-gnome/geocode-glib/geocode-glib_3.26.4.bb | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/meta-gnome/recipes-gnome/geocode-glib/geocode-glib_3.26.4.bb=
b/meta-gnome/recipes-gnome/geocode-glib/geocode-glib_3.26.4.bb
index 2b1ecad97..42659d0f6 100644
--- a/meta-gnome/recipes-gnome/geocode-glib/geocode-glib_3.26.4.bb
+++ b/meta-gnome/recipes-gnome/geocode-glib/geocode-glib_3.26.4.bb
@@ -11,9 +11,9 @@ inherit gnomebase gobject-introspection gettext gtk-doc=
upstream-version-is-even
=20
DEPENDS =3D " \
json-glib \
- libsoup-2.4 \
+ libsoup-3.0 \
"
=20
SRC_URI[archive.sha256sum] =3D "2d9a6826d158470449a173871221596da0f83ebd=
cff98b90c7049089056a37aa"
=20
-EXTRA_OEMESON =3D "-Denable-installed-tests=3Dfalse"
+EXTRA_OEMESON =3D "-Denable-installed-tests=3Dfalse -Dsoup2=3Dfalse"
--=20
2.34.1


[meta-gnome][PATCH 2/4] libgweather: update 4.0.0 -> 4.2.0

Markus Volk
 

- use gtk4
- build with libsoup-3.0

Signed-off-by: Markus Volk <f_l_k@...>
---
...w-building-gir-in-cross-environments.patch | 21 +++++++------------
...eather4_4.0.0.bb => libgweather4_4.2.0.bb} | 6 +++---
2 files changed, 10 insertions(+), 17 deletions(-)
rename meta-gnome/recipes-gnome/libgweather/{libgweather4_4.0.0.bb => libgweather4_4.2.0.bb} (82%)

diff --git a/meta-gnome/recipes-gnome/libgweather/libgweather4/0001-Allow-building-gir-in-cross-environments.patch b/meta-gnome/recipes-gnome/libgweather/libgweather4/0001-Allow-building-gir-in-cross-environments.patch
index 6c6a643ed..3a075de65 100644
--- a/meta-gnome/recipes-gnome/libgweather/libgweather4/0001-Allow-building-gir-in-cross-environments.patch
+++ b/meta-gnome/recipes-gnome/libgweather/libgweather4/0001-Allow-building-gir-in-cross-environments.patch
@@ -11,23 +11,16 @@ For us this works perfectly fine
Upstream-Status: Inappropriate [OE-specific]

Signed-off-by: Andreas Müller <schnitzeltony@...>
----
- libgweather/meson.build | 2 +-
- 1 file changed, 1 insertion(+), 1 deletion(-)
+Signed-off-by: Markus Volk <f_l_k@...>

-diff --git a/libgweather/meson.build b/libgweather/meson.build
-index 08311af..ef554f2 100644
---- a/libgweather/meson.build
-+++ b/libgweather/meson.build
-@@ -208,7 +208,7 @@ lib_libgweather = library('gweather-4',
- )
+--- a/meson.build 2022-09-18 14:48:53.000000000 +0200
++++ b/meson.build 2022-11-26 14:05:13.302487232 +0100
+@@ -51,7 +51,7 @@
+ gen_locations_variant = find_program('build-aux/meson/gen_locations_variant.py')

g_ir_scanner = find_program('g-ir-scanner', required: get_option('introspection'))
-build_gir = get_option('introspection') and g_ir_scanner.found() and not meson.is_cross_build()
+build_gir = get_option('introspection') and g_ir_scanner.found()
+ build_docs = get_option('gtk_doc') and build_gir

- enable_vala = get_option('enable_vala')
- vapigen = find_program('vapigen', required: enable_vala == 'true')
---
-2.34.1
-
+ schemas_srcdir = meson.project_source_root() / 'schemas'
diff --git a/meta-gnome/recipes-gnome/libgweather/libgweather4_4.0.0.bb b/meta-gnome/recipes-gnome/libgweather/libgweather4_4.2.0.bb
similarity index 82%
rename from meta-gnome/recipes-gnome/libgweather/libgweather4_4.0.0.bb
rename to meta-gnome/recipes-gnome/libgweather/libgweather4_4.2.0.bb
index 708d27a61..34d259ff3 100644
--- a/meta-gnome/recipes-gnome/libgweather/libgweather4_4.0.0.bb
+++ b/meta-gnome/recipes-gnome/libgweather/libgweather4_4.2.0.bb
@@ -10,15 +10,15 @@ S = "${WORKDIR}/${GNOMEBN}-${PV}"
inherit gnomebase gsettings gobject-introspection gettext gtk-doc vala

SRC_URI += "file://0001-Allow-building-gir-in-cross-environments.patch"
-SRC_URI[archive.sha256sum] = "440d44801b6f72b48c676e5e37f9109cfee1394fd74cc92725e1b1ba4fae834c"
+SRC_URI[archive.sha256sum] = "af8a812da0d8976a000e1d62572c256086a817323fbf35b066dbfdd8d2ca6203"

GTKDOC_MESON_OPTION = "gtk_doc"

DEPENDS = " \
geocode-glib \
- gtk+3 \
+ gtk4 \
json-glib \
- libsoup-2.4 \
+ libsoup-3.0 \
python3-pygobject-native \
"

--
2.34.1


[meta-gnome][PATCH 1/4] geary: use gtk4 by default

Markus Volk
 

---
meta-gnome/recipes-connectivity/geary/geary_43.0.bb | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/meta-gnome/recipes-connectivity/geary/geary_43.0.bb b/meta-g=
nome/recipes-connectivity/geary/geary_43.0.bb
index 8dd0ea67d..6d18867cf 100644
--- a/meta-gnome/recipes-connectivity/geary/geary_43.0.bb
+++ b/meta-gnome/recipes-connectivity/geary/geary_43.0.bb
@@ -15,7 +15,7 @@ DEPENDS =3D " \
gnome-online-accounts \
gsound \
gspell \
- gtk+3 \
+ gtk4 \
icu \
iso-codes \
json-glib \
--=20
2.34.1


Re: [master][PATCH v2] python3-inotify: add ptest

Qiu, Zheng
 


On Nov 25, 2022, at 5:37 PM, MacLeod, Randy <Randy.MacLeod@...> wrote:

On 2022-11-25 14:56, Zheng Qiu wrote:
Add ptest provided from the source code, and run it using pytest.
Since the tarball provided with pypi does not include ptest, switch the
source to be its git repo.
ptest result:
           PASS FAIL SKIP
qemux86-64 5    3    1
qemuarm64  5    3    1
This issue exists since inotify adds unit test support, and it is
reported here: https://github.com/dsoprea/PyInotify/issues/95

As you mentioned elsewhere:

 The two of the test are trying to make notifification using the package
 when a new directory has been created or a directory has been renamed.
 The issue occurs because the result in a list (i.e. ['IN_ISDIR', 'IN_CREATE'])
 is in different order but contains same components.

 The other test that is always failing is a test that makes a directory and
 trying to access those directories. The test is failing because a
 bunch of “width” variable is not as expected.

While further investigating it, I start doubting if the tests are failing because of some issue in the base code.



so while the tests should be fixed, they don't seem to problems with
the underlying functionality. We'll send fixes to upstream should they
ever come out of open source hibernation.

Furthermore, if I remember correctly, there are actually more failing tests with later commits.
I will double-check to find the best strategy.


I still think we should use the git/HEAD as I'm suggested in other email.


../Randy

Signed-off-by: Zheng Qiu <zheng.qiu@...>
---
 .../python/python3-inotify/run-ptest          |  3 ++
 .../python/python3-inotify_0.2.10.bb          | 14 --------
 .../python/python3-inotify_git.bb             | 35 +++++++++++++++++++
 3 files changed, 38 insertions(+), 14 deletions(-)
 create mode 100644 meta-python/recipes-devtools/python/python3-inotify/run-ptest
 delete mode 100644 meta-python/recipes-devtools/python/python3-inotify_0.2.10.bb
 create mode 100644 meta-python/recipes-devtools/python/python3-inotify_git.bb
diff --git a/meta-python/recipes-devtools/python/python3-inotify/run-ptest b/meta-python/recipes-devtools/python/python3-inotify/run-ptest
new file mode 100644
index 000000000..3385d6893
--- /dev/null
+++ b/meta-python/recipes-devtools/python/python3-inotify/run-ptest
@@ -0,0 +1,3 @@
+#!/bin/sh
+
+pytest -o log_cli=true -o log_cli_level=INFO | sed -e 's/\[...%\]//g'| sed -e 's/PASSED/PASS/g'| sed -e 's/FAILED/FAIL/g'|sed -e 's/SKIPED/SKIP/g'| awk '{if ($NF=="PASS" || $NF=="FAIL" || $NF=="SKIP" || $NF=="XFAIL" || $NF=="XPASS"){printf "%s: %s\n", $NF, $0}else{print}}'| awk '{if ($NF=="PASS" || $NF=="FAIL" || $NF=="SKIP" || $NF=="XFAIL" || $NF=="XPASS") {$NF="";print $0}else{print}}'
diff --git a/meta-python/recipes-devtools/python/python3-inotify_0.2.10.bb b/meta-python/recipes-devtools/python/python3-inotify_0.2.10.bb
deleted file mode 100644
index 524c3a0d2..000000000
--- a/meta-python/recipes-devtools/python/python3-inotify_0.2.10.bb
+++ /dev/null
@@ -1,14 +0,0 @@
-SUMMARY = "An adapter to Linux kernel support for inotify directory-watching."
-AUTHOR = "Dustin Oprea"
-HOMEPAGE = "https://pypi.org/project/inotify/"
-LICENSE = "GPL-2.0-only"
-LIC_FILES_CHKSUM = "file://setup.py;md5=79b7ec72aa0d446a552d3cceb5799e41;beginline=28;endline=28"
-
-SRC_URI[sha256sum] = "974a623a338482b62e16d4eb705fb863ed33ec178680fc3e96ccdf0df6c02a07"
-
-inherit pypi setuptools3
-
-RDEPENDS:${PN} += " \
-    python3-ctypes \
-    python3-logging \
-"
diff --git a/meta-python/recipes-devtools/python/python3-inotify_git.bb b/meta-python/recipes-devtools/python/python3-inotify_git.bb
new file mode 100644
index 000000000..22615a97e
--- /dev/null
+++ b/meta-python/recipes-devtools/python/python3-inotify_git.bb
@@ -0,0 +1,35 @@
+SUMMARY = "An adapter to Linux kernel support for inotify directory-watching."
+AUTHOR = "Dustin Oprea"
+HOMEPAGE = "https://pypi.org/project/inotify/"
+LICENSE = "GPL-2.0-only"
+LIC_FILES_CHKSUM = "file://setup.py;md5=79b7ec72aa0d446a552d3cceb5799e41;beginline=28;endline=28"
+
+SRC_URI[sha256sum] = "974a623a338482b62e16d4eb705fb863ed33ec178680fc3e96ccdf0df6c02a07"
+
+SRC_URI = " \
+    git://github.com/dsoprea/pyinotify.git;branch=master;protocol=https \
+    file://run-ptest \
+"
+
+SRCREV = "288a2b01fd4a726dc68d960f8351630aee788a13"
+
+S = "${WORKDIR}/git"
+
+inherit setuptools3 ptest
+PIP_INSTALL_PACKAGE = "inotify"
+PIP_INSTALL_DIST_PATH = "${S}/dist"
+
+
+RDEPENDS:${PN} += " \
+    python3-ctypes \
+    python3-logging \
+"
+
+RDEPENDS:${PN}-ptest += " \
+    ${PYTHON_PN}-pytest \
+"
+
+do_install_ptest() {
+    install -d ${D}${PTEST_PATH}/tests
+    cp -rf ${S}/tests/* ${D}${PTEST_PATH}/tests/
+}

-- 
# Randy MacLeod
# Wind River Linux


Re: langdale merge request Nov 24th

Khem Raj
 

merged thanks

On Thu, Nov 24, 2022 at 4:16 AM akuster808 <akuster808@...> wrote:

The following changes since commit c5668905a6d8a78fb72c2cbf8b20e91e686ceb86:

meta-openemnedded: Add myself as langdale maintainer (2022-10-22
15:59:34 -0700)

are available in the Git repository at:

https://git.openembedded.org/meta-openembedded langdale-next

for you to fetch changes up to c354f92778c1d4bcd3680af7e0fb0d1414de2344:

chrony: Remove the libcap and nss PACKAGECONFIGs (2022-11-18 10:11:45
-0500)

----------------------------------------------------------------
Alex Kiernan (1):
lldpd: Upgrade 1.0.14 -> 1.0.15

Armin Kuster (1):
meta-oe][PATCH] gst-editing-services: fix typo in LICENSE field.

Leon Anavi (1):
python3-pythonping: Upgrade 1.1.3 -> 1.1.4

Markus Volk (1):
libcamera: upgrade -> 0.0.1

Martin Jansa (1):
monkey: use git fetcher

Peter Kjellerstedt (2):
chrony: Make it possible to enable editline support again
chrony: Remove the libcap and nss PACKAGECONFIGs

Peter Marko (1):
cpputest: remove dev package dependency

Robert Joslyn (1):
fwupd: Fix plugin_gpio PACKAGECONFIG

Wang Mingyu (23):
bats: upgrade 1.8.0 -> 1.8.2
ctags: upgrade 5.9.20221009.0 -> 5.9.20221016.0
fvwm: upgrade 2.6.9 -> 2.7.0
makedumpfile: upgrade 1.7.1 -> 1.7.2
sanlock: upgrade 3.8.4 -> 3.8.5
python3-astroid: upgrade 2.12.11 -> 2.12.12
python3-charset-normalizer: upgrade 2.1.1 -> 3.0.0
python3-google-api-python-client: upgrade 2.64.0 -> 2.65.0
python3-google-auth: upgrade 2.12.0 -> 2.13.0
python3-huey: upgrade 2.4.3 -> 2.4.4
python3-oauthlib: upgrade 3.2.1 -> 3.2.2
python3-pandas: upgrade 1.5.0 -> 1.5.1
python3-pika: upgrade 1.3.0 -> 1.3.1
python3-protobuf: upgrade 4.21.7 -> 4.21.8
python3-pywbemtools: upgrade 1.0.0 -> 1.0.1
python3-socketio: upgrade 5.7.1 -> 5.7.2
python3-sqlalchemy: upgrade 1.4.41 -> 1.4.42
tracker: upgrade 3.4.0 -> 3.4.1
wolfssl: upgrade 5.5.1 -> 5.5.2
cglm: upgrade 0.8.5 -> 0.8.7
ctags: upgrade 5.9.20221016.0 -> 5.9.20221023.0
function2: upgrade 4.2.1 -> 4.2.2
poco: upgrade 1.12.2 -> 1.12.3

Xiangyu Chen (1):
ipmitool: fix typo in .bb file's comments, using = instead of =?

zhengruoqin (2):
tcpslice: upgrade 1.5 -> 1.6
tio: upgrade 2.1 -> 2.2

meta-gnome/recipes-gnome/tracker/{tracker_3.4.0.bb =>
tracker_3.4.1.bb} | 2 +-
.../recipes-multimedia/libcamera/{libcamera.bb =>
libcamera_0.0.1.bb} | 18 +++++-------------
.../recipes-connectivity/wolfssl/{wolfssl_5.5.1.bb =>
wolfssl_5.5.2.bb} | 2 +-
.../recipes-daemons/lldpd/{lldpd_1.0.14.bb =>
lldpd_1.0.15.bb} | 4 ++--
meta-networking/recipes-support/chrony/chrony_4.3.bb | 19
+++++++------------
.../recipes-support/tcpdump/{tcpslice_1.5.bb =>
tcpslice_1.6.bb} | 3 +--
meta-oe/recipes-bsp/fwupd/fwupd_1.8.4.bb | 2 +-
.../ctags/{ctags_5.9.20221009.0.bb =>
ctags_5.9.20221023.0.bb} | 2 +-
.../recipes-devtools/gst-editing-services/gst-editing-services_1.20.4.bb | 2 +-
meta-oe/recipes-extended/sanlock/sanlock/setuptools.patch | 18
------------------
meta-oe/recipes-extended/sanlock/{sanlock_3.8.4.bb =>
sanlock_3.8.5.bb} | 3 +--
meta-oe/recipes-graphics/cglm/{cglm_0.8.5.bb =>
cglm_0.8.7.bb} | 2 +-
meta-oe/recipes-graphics/fvwm/{fvwm_2.6.9.bb =>
fvwm_2.7.0.bb} | 2 +-
meta-oe/recipes-kernel/ipmitool/ipmitool_1.8.19.bb | 2 +-
.../makedumpfile/{makedumpfile_1.7.1.bb =>
makedumpfile_1.7.2.bb} | 2 +-
.../recipes-support/function2/{function2_4.2.1.bb =>
function2_4.2.2.bb} | 2 +-
meta-oe/recipes-support/poco/{poco_1.12.2.bb =>
poco_1.12.3.bb} | 2 +-
meta-oe/recipes-support/tio/{tio_2.1.bb =>
tio_2.2.bb} | 2 +-
meta-oe/recipes-test/bats/{bats_1.8.0.bb =>
bats_1.8.2.bb} | 2 +-
meta-oe/recipes-test/cpputest/cpputest_4.0.bb | 2 ++
.../python/{python3-astroid_2.12.11.bb =>
python3-astroid_2.12.12.bb} | 2 +-
...n3-charset-normalizer_2.1.1.bb =>
python3-charset-normalizer_3.0.0.bb} | 2 +-
...python-client_2.64.0.bb =>
python3-google-api-python-client_2.65.0.bb} | 2 +-
.../{python3-google-auth_2.12.0.bb =>
python3-google-auth_2.13.0.bb} | 2 +-
.../python/{python3-huey_2.4.3.bb =>
python3-huey_2.4.4.bb} | 2 +-
.../python/{python3-oauthlib_3.2.1.bb =>
python3-oauthlib_3.2.2.bb} | 2 +-
.../python/{python3-pandas_1.5.0.bb =>
python3-pandas_1.5.1.bb} | 2 +-
.../python/{python3-pika_1.3.0.bb =>
python3-pika_1.3.1.bb} | 2 +-
.../python/{python3-protobuf_4.21.7.bb =>
python3-protobuf_4.21.8.bb} | 2 +-
.../python/{python3-pythonping_1.1.3.bb =>
python3-pythonping_1.1.4.bb} | 2 +-
.../python/{python3-socketio_5.7.1.bb =>
python3-socketio_5.7.2.bb} | 2 +-
.../python/{python3-sqlalchemy_1.4.41.bb =>
python3-sqlalchemy_1.4.42.bb} | 2 +-
.../{python3-pywbemtools_1.0.0.bb =>
python3-pywbemtools_1.0.1.bb} | 2 +-
meta-webserver/recipes-httpd/monkey/monkey_1.6.9.bb | 5 +++--
34 files changed, 47 insertions(+), 77 deletions(-)
rename meta-gnome/recipes-gnome/tracker/{tracker_3.4.0.bb =>
tracker_3.4.1.bb} (93%)
rename meta-multimedia/recipes-multimedia/libcamera/{libcamera.bb =>
libcamera_0.0.1.bb} (74%)
rename meta-networking/recipes-connectivity/wolfssl/{wolfssl_5.5.1.bb
=> wolfssl_5.5.2.bb} (93%)
rename meta-networking/recipes-daemons/lldpd/{lldpd_1.0.14.bb =>
lldpd_1.0.15.bb} (95%)
rename meta-networking/recipes-support/tcpdump/{tcpslice_1.5.bb =>
tcpslice_1.6.bb} (80%)
rename meta-oe/recipes-devtools/ctags/{ctags_5.9.20221009.0.bb =>
ctags_5.9.20221023.0.bb} (95%)
delete mode 100644
meta-oe/recipes-extended/sanlock/sanlock/setuptools.patch
rename meta-oe/recipes-extended/sanlock/{sanlock_3.8.4.bb =>
sanlock_3.8.5.bb} (95%)
rename meta-oe/recipes-graphics/cglm/{cglm_0.8.5.bb => cglm_0.8.7.bb}
(93%)
rename meta-oe/recipes-graphics/fvwm/{fvwm_2.6.9.bb => fvwm_2.7.0.bb}
(98%)
rename meta-oe/recipes-kernel/makedumpfile/{makedumpfile_1.7.1.bb =>
makedumpfile_1.7.2.bb} (96%)
rename meta-oe/recipes-support/function2/{function2_4.2.1.bb =>
function2_4.2.2.bb} (92%)
rename meta-oe/recipes-support/poco/{poco_1.12.2.bb => poco_1.12.3.bb}
(98%)
rename meta-oe/recipes-support/tio/{tio_2.1.bb => tio_2.2.bb} (91%)
rename meta-oe/recipes-test/bats/{bats_1.8.0.bb => bats_1.8.2.bb} (95%)
rename meta-python/recipes-devtools/python/{python3-astroid_2.12.11.bb
=> python3-astroid_2.12.12.bb} (89%)
rename
meta-python/recipes-devtools/python/{python3-charset-normalizer_2.1.1.bb
=> python3-charset-normalizer_3.0.0.bb} (82%)
rename
meta-python/recipes-devtools/python/{python3-google-api-python-client_2.64.0.bb
=> python3-google-api-python-client_2.65.0.bb} (86%)
rename
meta-python/recipes-devtools/python/{python3-google-auth_2.12.0.bb =>
python3-google-auth_2.13.0.bb} (87%)
rename meta-python/recipes-devtools/python/{python3-huey_2.4.3.bb =>
python3-huey_2.4.4.bb} (78%)
rename meta-python/recipes-devtools/python/{python3-oauthlib_3.2.1.bb
=> python3-oauthlib_3.2.2.bb} (92%)
rename meta-python/recipes-devtools/python/{python3-pandas_1.5.0.bb =>
python3-pandas_1.5.1.bb} (89%)
rename meta-python/recipes-devtools/python/{python3-pika_1.3.0.bb =>
python3-pika_1.3.1.bb} (87%)
rename meta-python/recipes-devtools/python/{python3-protobuf_4.21.7.bb
=> python3-protobuf_4.21.8.bb} (92%)
rename
meta-python/recipes-devtools/python/{python3-pythonping_1.1.3.bb =>
python3-pythonping_1.1.4.bb} (77%)
rename meta-python/recipes-devtools/python/{python3-socketio_5.7.1.bb
=> python3-socketio_5.7.2.bb} (89%)
rename
meta-python/recipes-devtools/python/{python3-sqlalchemy_1.4.41.bb =>
python3-sqlalchemy_1.4.42.bb} (87%)
rename
meta-python/recipes-extended/pywbemtools/{python3-pywbemtools_1.0.0.bb
=> python3-pywbemtools_1.0.1.bb} (92%)


Re: [master][PATCH v2] python3-inotify: add ptest

Randy MacLeod
 

On 2022-11-25 14:56, Zheng Qiu wrote:
Add ptest provided from the source code, and run it using pytest.
Since the tarball provided with pypi does not include ptest, switch the
source to be its git repo.
ptest result:
PASS FAIL SKIP
qemux86-64 5 3 1
qemuarm64 5 3 1
This issue exists since inotify adds unit test support, and it is
reported here: https://github.com/dsoprea/PyInotify/issues/95
As you mentioned elsewhere:

The two of the test are trying to make notifification using the package
when a new directory has been created or a directory has been renamed.
The issue occurs because the result in a list (i.e. ['IN_ISDIR', 'IN_CREATE'])
is in different order but contains same components.

The other test that is always failing is a test that makes a directory and
trying to access those directories. The test is failing because a
bunch of “width” variable is not as expected.


so while the tests should be fixed, they don't seem to problems with
the underlying functionality. We'll send fixes to upstream should they
ever come out of open source hibernation.

I still think we should use the git/HEAD as I'm suggested in other email.


../Randy

Signed-off-by: Zheng Qiu <zheng.qiu@...>
---
.../python/python3-inotify/run-ptest | 3 ++
.../python/python3-inotify_0.2.10.bb | 14 --------
.../python/python3-inotify_git.bb | 35 +++++++++++++++++++
3 files changed, 38 insertions(+), 14 deletions(-)
create mode 100644 meta-python/recipes-devtools/python/python3-inotify/run-ptest
delete mode 100644 meta-python/recipes-devtools/python/python3-inotify_0.2.10.bb
create mode 100644 meta-python/recipes-devtools/python/python3-inotify_git.bb
diff --git a/meta-python/recipes-devtools/python/python3-inotify/run-ptest b/meta-python/recipes-devtools/python/python3-inotify/run-ptest
new file mode 100644
index 000000000..3385d6893
--- /dev/null
+++ b/meta-python/recipes-devtools/python/python3-inotify/run-ptest
@@ -0,0 +1,3 @@
+#!/bin/sh
+
+pytest -o log_cli=true -o log_cli_level=INFO | sed -e 's/\[...%\]//g'| sed -e 's/PASSED/PASS/g'| sed -e 's/FAILED/FAIL/g'|sed -e 's/SKIPED/SKIP/g'| awk '{if ($NF=="PASS" || $NF=="FAIL" || $NF=="SKIP" || $NF=="XFAIL" || $NF=="XPASS"){printf "%s: %s\n", $NF, $0}else{print}}'| awk '{if ($NF=="PASS" || $NF=="FAIL" || $NF=="SKIP" || $NF=="XFAIL" || $NF=="XPASS") {$NF="";print $0}else{print}}'
diff --git a/meta-python/recipes-devtools/python/python3-inotify_0.2.10.bb b/meta-python/recipes-devtools/python/python3-inotify_0.2.10.bb
deleted file mode 100644
index 524c3a0d2..000000000
--- a/meta-python/recipes-devtools/python/python3-inotify_0.2.10.bb
+++ /dev/null
@@ -1,14 +0,0 @@
-SUMMARY = "An adapter to Linux kernel support for inotify directory-watching."
-AUTHOR = "Dustin Oprea"
-HOMEPAGE = "https://pypi.org/project/inotify/"
-LICENSE = "GPL-2.0-only"
-LIC_FILES_CHKSUM = "file://setup.py;md5=79b7ec72aa0d446a552d3cceb5799e41;beginline=28;endline=28"
-
-SRC_URI[sha256sum] = "974a623a338482b62e16d4eb705fb863ed33ec178680fc3e96ccdf0df6c02a07"
-
-inherit pypi setuptools3
-
-RDEPENDS:${PN} += " \
- python3-ctypes \
- python3-logging \
-"
diff --git a/meta-python/recipes-devtools/python/python3-inotify_git.bb b/meta-python/recipes-devtools/python/python3-inotify_git.bb
new file mode 100644
index 000000000..22615a97e
--- /dev/null
+++ b/meta-python/recipes-devtools/python/python3-inotify_git.bb
@@ -0,0 +1,35 @@
+SUMMARY = "An adapter to Linux kernel support for inotify directory-watching."
+AUTHOR = "Dustin Oprea"
+HOMEPAGE = "https://pypi.org/project/inotify/"
+LICENSE = "GPL-2.0-only"
+LIC_FILES_CHKSUM = "file://setup.py;md5=79b7ec72aa0d446a552d3cceb5799e41;beginline=28;endline=28"
+
+SRC_URI[sha256sum] = "974a623a338482b62e16d4eb705fb863ed33ec178680fc3e96ccdf0df6c02a07"
+
+SRC_URI = " \
+ git://github.com/dsoprea/pyinotify.git;branch=master;protocol=https \
+ file://run-ptest \
+"
+
+SRCREV = "288a2b01fd4a726dc68d960f8351630aee788a13"
+
+S = "${WORKDIR}/git"
+
+inherit setuptools3 ptest
+PIP_INSTALL_PACKAGE = "inotify"
+PIP_INSTALL_DIST_PATH = "${S}/dist"
+
+
+RDEPENDS:${PN} += " \
+ python3-ctypes \
+ python3-logging \
+"
+
+RDEPENDS:${PN}-ptest += " \
+ ${PYTHON_PN}-pytest \
+"
+
+do_install_ptest() {
+ install -d ${D}${PTEST_PATH}/tests
+ cp -rf ${S}/tests/* ${D}${PTEST_PATH}/tests/
+}
--
# Randy MacLeod
# Wind River Linux


Re: [master][PATCH] python3-inotify: add ptest -> v2 please

Qiu, Zheng
 


On Nov 25, 2022, at 4:43 PM, MacLeod, Randy <Randy.MacLeod@...> wrote:

On 2022-11-25 14:55, Qiu, Zheng wrote:

+
+SRCREV = "f77596ae965e47124f38d7bd6587365924dcd8f7"
This is the current head, which is fine but add a note in the  long log
about that choice. It's
$ git log --oneline 0.2.10... | wc -l

14

commits ahead of 0.2.10

Will change it to the head of 0.2.10

Hmmm, here are the commits, most of which don't affect runtime:

$ git log --oneline 0.2.10...
f77596a (HEAD -> master, origin/master, origin/HEAD) Add Dockerfile
9be6a51 Fix constant in adapter to match with DELETE events
  ^^^^^-------- seems like a bug fix that we should pick up. <<----
269d541 etup.cfg: Add missing newline
8e79335 tests/test_inotify.py: Canonicalize import
f844ea2 Added setup.cfg option to make bdist_wheel create
       a universal wheel.
53fd4ea Increase test coverage of Inotify initializer (#76)
0d802dc Update README.rst
f0d5b98 Update README.rst
9075acc Fix for issue #66, removing 'nose' as a production requirement.
82d1439 .travis.yml: Use 4.x version of coverage package
ebffda0 .travis.yml: Drop 3.3 support. Add 3.6, 3.7, 3.8
983049a .gitignore: Add ignore
cd7b276 requirements.txt: Remove nose from requirements
7202fc4 Propagate superficial parameter to remove_watch_with_id


Here's that one, reformatted, patch:

commit 9be6a51d1660991562eefaaddefa757ca0e0e00f
Author: Raphaël Beamonte <raphael.beamonte@...>
Date:   Sun Jul 29 01:24:52 2018

   Fix constant in adapter to match with DELETE events

   The previous behavior was duplicating a block of code and making
   one of the two useless. This fixes that by replacing the constant to
   IN_DELETE instead of IN_MOVED_FROM in one of the two blocks.

   Signed-off-by: Raphaël Beamonte <raphael.beamonte@...>

diff --git a/inotify/adapters.py b/inotify/adapters.py
index 7f3f708..e8301da 100644
--- a/inotify/adapters.py
+++ b/inotify/adapters.py
@@ -299,7 +299,7 @@ class _BaseTree(object):

                 self._i.add_watch(full_path, self._mask)

-             if header.mask & inotify.constants.IN_MOVED_FROM:
+             if header.mask & inotify.constants.IN_DELETE:
                 _LOGGER.debug("A directory has been removed. We're "
                               "being recursive, but it would have "
                               "automatically been deregistered: [%s]",



What's the impact to users of not having this fix?
It seems like a bug fix that we should pick up by backport of
user _git and HEAD.

I will submit another patch for this…because I am worried about if some commit in between will produce further bugs.
This package seems like have very limited support right now.



--
# Randy MacLeod
# Wind River Linux



Re: [master][PATCH] python3-inotify: add ptest -> v2 please

Randy MacLeod
 

On 2022-11-25 14:55, Qiu, Zheng wrote:

+
+SRCREV = "f77596ae965e47124f38d7bd6587365924dcd8f7"
This is the current head, which is fine but add a note in the  long log
about that choice. It's
$ git log --oneline 0.2.10... | wc -l

14

commits ahead of 0.2.10
Will change it to the head of 0.2.10
Hmmm, here are the commits, most of which don't affect runtime:

$ git log --oneline 0.2.10...
f77596a (HEAD -> master, origin/master, origin/HEAD) Add Dockerfile
9be6a51 Fix constant in adapter to match with DELETE events
^^^^^-------- seems like a bug fix that we should pick up. <<----
269d541 etup.cfg: Add missing newline
8e79335 tests/test_inotify.py: Canonicalize import
f844ea2 Added setup.cfg option to make bdist_wheel create
a universal wheel.
53fd4ea Increase test coverage of Inotify initializer (#76)
0d802dc Update README.rst
f0d5b98 Update README.rst
9075acc Fix for issue #66, removing 'nose' as a production requirement.
82d1439 .travis.yml: Use 4.x version of coverage package
ebffda0 .travis.yml: Drop 3.3 support. Add 3.6, 3.7, 3.8
983049a .gitignore: Add ignore
cd7b276 requirements.txt: Remove nose from requirements
7202fc4 Propagate superficial parameter to remove_watch_with_id


Here's that one, reformatted, patch:

commit 9be6a51d1660991562eefaaddefa757ca0e0e00f
Author: Raphaël Beamonte <raphael.beamonte@...>
Date: Sun Jul 29 01:24:52 2018

Fix constant in adapter to match with DELETE events

The previous behavior was duplicating a block of code and making
one of the two useless. This fixes that by replacing the constant to
IN_DELETE instead of IN_MOVED_FROM in one of the two blocks.

Signed-off-by: Raphaël Beamonte <raphael.beamonte@...>

diff --git a/inotify/adapters.py b/inotify/adapters.py
index 7f3f708..e8301da 100644
--- a/inotify/adapters.py
+++ b/inotify/adapters.py
@@ -299,7 +299,7 @@ class _BaseTree(object):

self._i.add_watch(full_path, self._mask)

- if header.mask & inotify.constants.IN_MOVED_FROM:
+ if header.mask & inotify.constants.IN_DELETE:
_LOGGER.debug("A directory has been removed. We're "
"being recursive, but it would have "
"automatically been deregistered: [%s]",



What's the impact to users of not having this fix?
It seems like a bug fix that we should pick up by backport of
user _git and HEAD.


--
# Randy MacLeod
# Wind River Linux


[master][PATCH v2] python3-inotify: add ptest

Qiu, Zheng
 

Add ptest provided from the source code, and run it using pytest.

Since the tarball provided with pypi does not include ptest, switch the
source to be its git repo.

ptest result:
PASS FAIL SKIP
qemux86-64 5 3 1
qemuarm64 5 3 1

This issue exists since inotify adds unit test support, and it is
reported here: https://github.com/dsoprea/PyInotify/issues/95

Signed-off-by: Zheng Qiu <zheng.qiu@...>
---
.../python/python3-inotify/run-ptest | 3 ++
.../python/python3-inotify_0.2.10.bb | 14 --------
.../python/python3-inotify_git.bb | 35 +++++++++++++++++++
3 files changed, 38 insertions(+), 14 deletions(-)
create mode 100644 meta-python/recipes-devtools/python/python3-inotify/run-ptest
delete mode 100644 meta-python/recipes-devtools/python/python3-inotify_0.2.10.bb
create mode 100644 meta-python/recipes-devtools/python/python3-inotify_git.bb

diff --git a/meta-python/recipes-devtools/python/python3-inotify/run-ptest b/meta-python/recipes-devtools/python/python3-inotify/run-ptest
new file mode 100644
index 000000000..3385d6893
--- /dev/null
+++ b/meta-python/recipes-devtools/python/python3-inotify/run-ptest
@@ -0,0 +1,3 @@
+#!/bin/sh
+
+pytest -o log_cli=true -o log_cli_level=INFO | sed -e 's/\[...%\]//g'| sed -e 's/PASSED/PASS/g'| sed -e 's/FAILED/FAIL/g'|sed -e 's/SKIPED/SKIP/g'| awk '{if ($NF=="PASS" || $NF=="FAIL" || $NF=="SKIP" || $NF=="XFAIL" || $NF=="XPASS"){printf "%s: %s\n", $NF, $0}else{print}}'| awk '{if ($NF=="PASS" || $NF=="FAIL" || $NF=="SKIP" || $NF=="XFAIL" || $NF=="XPASS") {$NF="";print $0}else{print}}'
diff --git a/meta-python/recipes-devtools/python/python3-inotify_0.2.10.bb b/meta-python/recipes-devtools/python/python3-inotify_0.2.10.bb
deleted file mode 100644
index 524c3a0d2..000000000
--- a/meta-python/recipes-devtools/python/python3-inotify_0.2.10.bb
+++ /dev/null
@@ -1,14 +0,0 @@
-SUMMARY = "An adapter to Linux kernel support for inotify directory-watching."
-AUTHOR = "Dustin Oprea"
-HOMEPAGE = "https://pypi.org/project/inotify/"
-LICENSE = "GPL-2.0-only"
-LIC_FILES_CHKSUM = "file://setup.py;md5=79b7ec72aa0d446a552d3cceb5799e41;beginline=28;endline=28"
-
-SRC_URI[sha256sum] = "974a623a338482b62e16d4eb705fb863ed33ec178680fc3e96ccdf0df6c02a07"
-
-inherit pypi setuptools3
-
-RDEPENDS:${PN} += " \
- python3-ctypes \
- python3-logging \
-"
diff --git a/meta-python/recipes-devtools/python/python3-inotify_git.bb b/meta-python/recipes-devtools/python/python3-inotify_git.bb
new file mode 100644
index 000000000..22615a97e
--- /dev/null
+++ b/meta-python/recipes-devtools/python/python3-inotify_git.bb
@@ -0,0 +1,35 @@
+SUMMARY = "An adapter to Linux kernel support for inotify directory-watching."
+AUTHOR = "Dustin Oprea"
+HOMEPAGE = "https://pypi.org/project/inotify/"
+LICENSE = "GPL-2.0-only"
+LIC_FILES_CHKSUM = "file://setup.py;md5=79b7ec72aa0d446a552d3cceb5799e41;beginline=28;endline=28"
+
+SRC_URI[sha256sum] = "974a623a338482b62e16d4eb705fb863ed33ec178680fc3e96ccdf0df6c02a07"
+
+SRC_URI = " \
+ git://github.com/dsoprea/pyinotify.git;branch=master;protocol=https \
+ file://run-ptest \
+"
+
+SRCREV = "288a2b01fd4a726dc68d960f8351630aee788a13"
+
+S = "${WORKDIR}/git"
+
+inherit setuptools3 ptest
+PIP_INSTALL_PACKAGE = "inotify"
+PIP_INSTALL_DIST_PATH = "${S}/dist"
+
+
+RDEPENDS:${PN} += " \
+ python3-ctypes \
+ python3-logging \
+"
+
+RDEPENDS:${PN}-ptest += " \
+ ${PYTHON_PN}-pytest \
+"
+
+do_install_ptest() {
+ install -d ${D}${PTEST_PATH}/tests
+ cp -rf ${S}/tests/* ${D}${PTEST_PATH}/tests/
+}
--
2.33.0


Re: [master][PATCH] python3-inotify: add ptest -> v2 please

Qiu, Zheng
 


On Nov 25, 2022, at 2:02 PM, MacLeod, Randy <Randy.MacLeod@...> wrote:

On 2022-11-25 12:10, Zheng Qiu wrote:
Add ptest provided from the source code, and run it using pytest.
Super, can you add the ptest result summary in this log.
If any of the tests are failing also add upstream issue links.

Sure.


Since the tarball provided with pypi does not include ptest, switch the
s/does not include ptest/does not include the test code/

Okay.


source to be its git repo.

Signed-off-by: Zheng Qiu <zheng.qiu@...>
---
 .../python/python3-inotify/run-ptest          |  3 +++
 .../python/python3-inotify_0.2.10.bb          | 23 ++++++++++++++++++-
This should be renamed from python3-inotify_0.2.10.bb to
something like python3-inotify_git.bb

OK.

 2 files changed, 25 insertions(+), 1 deletion(-)
 create mode 100644 meta-python/recipes-devtools/python/python3-inotify/run-ptest

diff --git a/meta-python/recipes-devtools/python/python3-inotify/run-ptest b/meta-python/recipes-devtools/python/python3-inotify/run-ptest
new file mode 100644
index 000000000..3385d6893
--- /dev/null
+++ b/meta-python/recipes-devtools/python/python3-inotify/run-ptest
@@ -0,0 +1,3 @@
+#!/bin/sh
+
+pytest -o log_cli=true -o log_cli_level=INFO | sed -e 's/\[...%\]//g'| sed -e 's/PASSED/PASS/g'| sed -e 's/FAILED/FAIL/g'|sed -e 's/SKIPED/SKIP/g'| awk '{if ($NF=="PASS" || $NF=="FAIL" || $NF=="SKIP" || $NF=="XFAIL" || $NF=="XPASS"){printf "%s: %s\n", $NF, $0}else{print}}'| awk '{if ($NF=="PASS" || $NF=="FAIL" || $NF=="SKIP" || $NF=="XFAIL" || $NF=="XPASS") {$NF="";print $0}else{print}}'
diff --git a/meta-python/recipes-devtools/python/python3-inotify_0.2.10.bb b/meta-python/recipes-devtools/python/python3-inotify_0.2.10.bb
index 524c3a0d2..3306438a1 100644
--- a/meta-python/recipes-devtools/python/python3-inotify_0.2.10.bb
+++ b/meta-python/recipes-devtools/python/python3-inotify_0.2.10.bb
@@ -6,9 +6,30 @@ LIC_FILES_CHKSUM = "file://setup.py;md5=79b7ec72aa0d446a552d3cceb5799e41;beginli
   SRC_URI[sha256sum] = "974a623a338482b62e16d4eb705fb863ed33ec178680fc3e96ccdf0df6c02a07"
 -inherit pypi setuptools3
+SRC_URI = " \
+    git://github.com/dsoprea/pyinotify.git;branch=master;protocol=https \
+    file://run-ptest \
+"
+
+SRCREV = "f77596ae965e47124f38d7bd6587365924dcd8f7"
This is the current head, which is fine but add a note in the  long log
about that choice. It's
$ git log --oneline 0.2.10... | wc -l

14

commits ahead of 0.2.10


Will change it to the head of 0.2.10


+
+S = "${WORKDIR}/git"
+
+inherit setuptools3 ptest
+PIP_INSTALL_PACKAGE = "inotify"
+PIP_INSTALL_DIST_PATH = "${S}/dist"
Mostly harmless, I suppose. Any pippy pythonistas want to comment/explain?

Since this recipe does not inherit pypi anymore, setting this would help wheel build.

+
   RDEPENDS:${PN} += " \
     python3-ctypes \
     python3-logging \
 "
+
+RDEPENDS:${PN}-ptest += " \
+    ${PYTHON_PN}-pytest \
+"
+
+do_install_ptest() {
+    install -d ${D}${PTEST_PATH}/tests
+    cp -rf ${S}/tests/* ${D}${PTEST_PATH}/tests/
+}

v2 please.

-- 
# Randy MacLeod
# Wind River Linux


Re: [master][PATCH] python3-inotify: add ptest -> v2 please

Randy MacLeod
 

On 2022-11-25 12:10, Zheng Qiu wrote:
Add ptest provided from the source code, and run it using pytest.
Super, can you add the ptest result summary in this log.
If any of the tests are failing also add upstream issue links.

Since the tarball provided with pypi does not include ptest, switch the
s/does not include ptest/does not include the test code/
source to be its git repo.

Signed-off-by: Zheng Qiu <zheng.qiu@...>
---
.../python/python3-inotify/run-ptest | 3 +++
.../python/python3-inotify_0.2.10.bb | 23 ++++++++++++++++++-
This should be renamed from python3-inotify_0.2.10.bb to
something like python3-inotify_git.bb
2 files changed, 25 insertions(+), 1 deletion(-)
create mode 100644 meta-python/recipes-devtools/python/python3-inotify/run-ptest

diff --git a/meta-python/recipes-devtools/python/python3-inotify/run-ptest b/meta-python/recipes-devtools/python/python3-inotify/run-ptest
new file mode 100644
index 000000000..3385d6893
--- /dev/null
+++ b/meta-python/recipes-devtools/python/python3-inotify/run-ptest
@@ -0,0 +1,3 @@
+#!/bin/sh
+
+pytest -o log_cli=true -o log_cli_level=INFO | sed -e 's/\[...%\]//g'| sed -e 's/PASSED/PASS/g'| sed -e 's/FAILED/FAIL/g'|sed -e 's/SKIPED/SKIP/g'| awk '{if ($NF=="PASS" || $NF=="FAIL" || $NF=="SKIP" || $NF=="XFAIL" || $NF=="XPASS"){printf "%s: %s\n", $NF, $0}else{print}}'| awk '{if ($NF=="PASS" || $NF=="FAIL" || $NF=="SKIP" || $NF=="XFAIL" || $NF=="XPASS") {$NF="";print $0}else{print}}'
diff --git a/meta-python/recipes-devtools/python/python3-inotify_0.2.10.bb b/meta-python/recipes-devtools/python/python3-inotify_0.2.10.bb
index 524c3a0d2..3306438a1 100644
--- a/meta-python/recipes-devtools/python/python3-inotify_0.2.10.bb
+++ b/meta-python/recipes-devtools/python/python3-inotify_0.2.10.bb
@@ -6,9 +6,30 @@ LIC_FILES_CHKSUM = "file://setup.py;md5=79b7ec72aa0d446a552d3cceb5799e41;beginli
SRC_URI[sha256sum] = "974a623a338482b62e16d4eb705fb863ed33ec178680fc3e96ccdf0df6c02a07"
-inherit pypi setuptools3
+SRC_URI = " \
+ git://github.com/dsoprea/pyinotify.git;branch=master;protocol=https \
+ file://run-ptest \
+"
+
+SRCREV = "f77596ae965e47124f38d7bd6587365924dcd8f7"
This is the current head, which is fine but add a note in the  long log
about that choice. It's
$ git log --oneline 0.2.10... | wc -l

14

commits ahead of 0.2.10


+
+S = "${WORKDIR}/git"
+
+inherit setuptools3 ptest
+PIP_INSTALL_PACKAGE = "inotify"
+PIP_INSTALL_DIST_PATH = "${S}/dist"
Mostly harmless, I suppose. Any pippy pythonistas want to comment/explain?
+
RDEPENDS:${PN} += " \
python3-ctypes \
python3-logging \
"
+
+RDEPENDS:${PN}-ptest += " \
+ ${PYTHON_PN}-pytest \
+"
+
+do_install_ptest() {
+ install -d ${D}${PTEST_PATH}/tests
+ cp -rf ${S}/tests/* ${D}${PTEST_PATH}/tests/
+}
v2 please.

--
# Randy MacLeod
# Wind River Linux


Re: [master][PATCH v3] tiff: Security fix for CVE-2022-3970

Qiu, Zheng
 

Sent to the wrong list, please ignore it ....

Zheng Qiu
Linux Developer


M/ (437) 341-1849

-----Original Message-----
From: openembedded-devel@... <openembedded-
devel@...> On Behalf Of Qiu, Zheng via
lists.openembedded.org
Sent: Friday, November 25, 2022 12:48 PM
To: openembedded-devel@...
Cc: Qiu, Zheng <Zheng.Qiu@...>; MacLeod, Randy
<Randy.MacLeod@...>
Subject: [oe] [master][PATCH v3] tiff: Security fix for CVE-2022-3970

This patch contains a fix for CVE-2022-3970

Reference:
https://nvd.nist.gov/vuln/detail/CVE-2022-3970
https://security-tracker.debian.org/tracker/CVE-2022-3970

Patch generated from :
https://gitlab.com/libtiff/libtiff/-
/commit/227500897dfb07fb7d27f7aa570050e62617e3be

Upstream-Status: Accepted

Signed-off-by: Zheng Qiu <zheng.qiu@...>
---
.../libtiff/files/CVE-2022-3970.patch | 38 +++++++++++++++++++
meta/recipes-multimedia/libtiff/tiff_4.4.0.bb | 1 +
2 files changed, 39 insertions(+)
create mode 100644 meta/recipes-multimedia/libtiff/files/CVE-2022-
3970.patch

diff --git a/meta/recipes-multimedia/libtiff/files/CVE-2022-3970.patch
b/meta/recipes-multimedia/libtiff/files/CVE-2022-3970.patch
new file mode 100644
index 0000000000..e8f143933a
--- /dev/null
+++ b/meta/recipes-multimedia/libtiff/files/CVE-2022-3970.patch
@@ -0,0 +1,38 @@
+From 227500897dfb07fb7d27f7aa570050e62617e3be Mon Sep 17 00:00:00
2001
+From: Even Rouault <even.rouault@...>
+Date: Tue, 8 Nov 2022 15:16:58 +0100
+Subject: [PATCH] TIFFReadRGBATileExt(): fix (unsigned) integer overflow
+on strips/tiles > 2 GB
+
+Fixes https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=53137
+---
+ libtiff/tif_getimage.c | 8 ++++----
+ 1 file changed, 4 insertions(+), 4 deletions(-)
+
+diff --git a/libtiff/tif_getimage.c b/libtiff/tif_getimage.c index
+a4d0c1d6..60b94d8e 100644
+--- a/libtiff/tif_getimage.c
++++ b/libtiff/tif_getimage.c
+@@ -3016,15 +3016,15 @@ TIFFReadRGBATileExt(TIFF* tif, uint32_t col,
uint32_t row, uint32_t * raster, in
+ return( ok );
+
+ for( i_row = 0; i_row < read_ysize; i_row++ ) {
+- memmove( raster + (tile_ysize - i_row - 1) * tile_xsize,
+- raster + (read_ysize - i_row - 1) * read_xsize,
++ memmove( raster + (size_t)(tile_ysize - i_row - 1) * tile_xsize,
++ raster + (size_t)(read_ysize - i_row - 1) *
++ read_xsize,
+ read_xsize * sizeof(uint32_t) );
+- _TIFFmemset( raster + (tile_ysize - i_row - 1) * tile_xsize+read_xsize,
++ _TIFFmemset( raster + (size_t)(tile_ysize - i_row - 1) *
++ tile_xsize+read_xsize,
+ 0, sizeof(uint32_t) * (tile_xsize - read_xsize) );
+ }
+
+ for( i_row = read_ysize; i_row < tile_ysize; i_row++ ) {
+- _TIFFmemset( raster + (tile_ysize - i_row - 1) * tile_xsize,
++ _TIFFmemset( raster + (size_t)(tile_ysize - i_row - 1) *
++ tile_xsize,
+ 0, sizeof(uint32_t) * tile_xsize );
+ }
+
+--
+2.33.0
+
diff --git a/meta/recipes-multimedia/libtiff/tiff_4.4.0.bb b/meta/recipes-
multimedia/libtiff/tiff_4.4.0.bb
index 29cb4111d6..970aab5433 100644
--- a/meta/recipes-multimedia/libtiff/tiff_4.4.0.bb
+++ b/meta/recipes-multimedia/libtiff/tiff_4.4.0.bb
@@ -12,6 +12,7 @@ SRC_URI = "http://download.osgeo.org/libtiff/tiff-
${PV}.tar.gz \
file://0001-fix-the-FPE-in-tiffcrop-415-427-and-428.patch \
file://CVE-2022-34526.patch \
file://CVE-2022-2953.patch \
+ file://CVE-2022-3970.patch \
file://0001-Revised-handling-of-TIFFTAG_INKNAMES-and-related-
TIF.patch \
file://0001-tiffcrop-S-option-Make-decision-simpler.patch \
file://0001-tiffcrop-disable-incompatibility-of-Z-X-Y-z-options-.patch \
--
2.33.0


[master][PATCH v3] tiff: Security fix for CVE-2022-3970

Qiu, Zheng
 

This patch contains a fix for CVE-2022-3970

Reference:
https://nvd.nist.gov/vuln/detail/CVE-2022-3970
https://security-tracker.debian.org/tracker/CVE-2022-3970

Patch generated from :
https://gitlab.com/libtiff/libtiff/-/commit/227500897dfb07fb7d27f7aa570050e62617e3be

Upstream-Status: Accepted

Signed-off-by: Zheng Qiu <zheng.qiu@...>
---
.../libtiff/files/CVE-2022-3970.patch | 38 +++++++++++++++++++
meta/recipes-multimedia/libtiff/tiff_4.4.0.bb | 1 +
2 files changed, 39 insertions(+)
create mode 100644 meta/recipes-multimedia/libtiff/files/CVE-2022-3970.patch

diff --git a/meta/recipes-multimedia/libtiff/files/CVE-2022-3970.patch b/meta/recipes-multimedia/libtiff/files/CVE-2022-3970.patch
new file mode 100644
index 0000000000..e8f143933a
--- /dev/null
+++ b/meta/recipes-multimedia/libtiff/files/CVE-2022-3970.patch
@@ -0,0 +1,38 @@
+From 227500897dfb07fb7d27f7aa570050e62617e3be Mon Sep 17 00:00:00 2001
+From: Even Rouault <even.rouault@...>
+Date: Tue, 8 Nov 2022 15:16:58 +0100
+Subject: [PATCH] TIFFReadRGBATileExt(): fix (unsigned) integer overflow on
+ strips/tiles > 2 GB
+
+Fixes https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=53137
+---
+ libtiff/tif_getimage.c | 8 ++++----
+ 1 file changed, 4 insertions(+), 4 deletions(-)
+
+diff --git a/libtiff/tif_getimage.c b/libtiff/tif_getimage.c
+index a4d0c1d6..60b94d8e 100644
+--- a/libtiff/tif_getimage.c
++++ b/libtiff/tif_getimage.c
+@@ -3016,15 +3016,15 @@ TIFFReadRGBATileExt(TIFF* tif, uint32_t col, uint32_t row, uint32_t * raster, in
+ return( ok );
+
+ for( i_row = 0; i_row < read_ysize; i_row++ ) {
+- memmove( raster + (tile_ysize - i_row - 1) * tile_xsize,
+- raster + (read_ysize - i_row - 1) * read_xsize,
++ memmove( raster + (size_t)(tile_ysize - i_row - 1) * tile_xsize,
++ raster + (size_t)(read_ysize - i_row - 1) * read_xsize,
+ read_xsize * sizeof(uint32_t) );
+- _TIFFmemset( raster + (tile_ysize - i_row - 1) * tile_xsize+read_xsize,
++ _TIFFmemset( raster + (size_t)(tile_ysize - i_row - 1) * tile_xsize+read_xsize,
+ 0, sizeof(uint32_t) * (tile_xsize - read_xsize) );
+ }
+
+ for( i_row = read_ysize; i_row < tile_ysize; i_row++ ) {
+- _TIFFmemset( raster + (tile_ysize - i_row - 1) * tile_xsize,
++ _TIFFmemset( raster + (size_t)(tile_ysize - i_row - 1) * tile_xsize,
+ 0, sizeof(uint32_t) * tile_xsize );
+ }
+
+--
+2.33.0
+
diff --git a/meta/recipes-multimedia/libtiff/tiff_4.4.0.bb b/meta/recipes-multimedia/libtiff/tiff_4.4.0.bb
index 29cb4111d6..970aab5433 100644
--- a/meta/recipes-multimedia/libtiff/tiff_4.4.0.bb
+++ b/meta/recipes-multimedia/libtiff/tiff_4.4.0.bb
@@ -12,6 +12,7 @@ SRC_URI = "http://download.osgeo.org/libtiff/tiff-${PV}.tar.gz \
file://0001-fix-the-FPE-in-tiffcrop-415-427-and-428.patch \
file://CVE-2022-34526.patch \
file://CVE-2022-2953.patch \
+ file://CVE-2022-3970.patch \
file://0001-Revised-handling-of-TIFFTAG_INKNAMES-and-related-TIF.patch \
file://0001-tiffcrop-S-option-Make-decision-simpler.patch \
file://0001-tiffcrop-disable-incompatibility-of-Z-X-Y-z-options-.patch \
--
2.33.0


[master][PATCH] python3-inotify: add ptest

Qiu, Zheng
 

Add ptest provided from the source code, and run it using pytest.

Since the tarball provided with pypi does not include ptest, switch the
source to be its git repo.

Signed-off-by: Zheng Qiu <zheng.qiu@...>
---
.../python/python3-inotify/run-ptest | 3 +++
.../python/python3-inotify_0.2.10.bb | 23 ++++++++++++++++++-
2 files changed, 25 insertions(+), 1 deletion(-)
create mode 100644 meta-python/recipes-devtools/python/python3-inotify/run-ptest

diff --git a/meta-python/recipes-devtools/python/python3-inotify/run-ptest b/meta-python/recipes-devtools/python/python3-inotify/run-ptest
new file mode 100644
index 000000000..3385d6893
--- /dev/null
+++ b/meta-python/recipes-devtools/python/python3-inotify/run-ptest
@@ -0,0 +1,3 @@
+#!/bin/sh
+
+pytest -o log_cli=true -o log_cli_level=INFO | sed -e 's/\[...%\]//g'| sed -e 's/PASSED/PASS/g'| sed -e 's/FAILED/FAIL/g'|sed -e 's/SKIPED/SKIP/g'| awk '{if ($NF=="PASS" || $NF=="FAIL" || $NF=="SKIP" || $NF=="XFAIL" || $NF=="XPASS"){printf "%s: %s\n", $NF, $0}else{print}}'| awk '{if ($NF=="PASS" || $NF=="FAIL" || $NF=="SKIP" || $NF=="XFAIL" || $NF=="XPASS") {$NF="";print $0}else{print}}'
diff --git a/meta-python/recipes-devtools/python/python3-inotify_0.2.10.bb b/meta-python/recipes-devtools/python/python3-inotify_0.2.10.bb
index 524c3a0d2..3306438a1 100644
--- a/meta-python/recipes-devtools/python/python3-inotify_0.2.10.bb
+++ b/meta-python/recipes-devtools/python/python3-inotify_0.2.10.bb
@@ -6,9 +6,30 @@ LIC_FILES_CHKSUM = "file://setup.py;md5=79b7ec72aa0d446a552d3cceb5799e41;beginli

SRC_URI[sha256sum] = "974a623a338482b62e16d4eb705fb863ed33ec178680fc3e96ccdf0df6c02a07"

-inherit pypi setuptools3
+SRC_URI = " \
+ git://github.com/dsoprea/pyinotify.git;branch=master;protocol=https \
+ file://run-ptest \
+"
+
+SRCREV = "f77596ae965e47124f38d7bd6587365924dcd8f7"
+
+S = "${WORKDIR}/git"
+
+inherit setuptools3 ptest
+PIP_INSTALL_PACKAGE = "inotify"
+PIP_INSTALL_DIST_PATH = "${S}/dist"
+

RDEPENDS:${PN} += " \
python3-ctypes \
python3-logging \
"
+
+RDEPENDS:${PN}-ptest += " \
+ ${PYTHON_PN}-pytest \
+"
+
+do_install_ptest() {
+ install -d ${D}${PTEST_PATH}/tests
+ cp -rf ${S}/tests/* ${D}${PTEST_PATH}/tests/
+}
--
2.33.0


Re: [meta-oe][kirkstone][PATCH 1/1] Nodejs - Upgrade to 16.18.1

Martin Jansa
 

On Thu, Nov 24, 2022 at 8:19 PM Martin Jansa via lists.openembedded.org <Martin.Jansa=gmail.com@...> wrote:
There is one more failing from public layer:
but that's different issue, caused by the sysroot_stage_all:append() and new nodejs now installing node_gyp_bins with symlink to python3 causing:

ERROR: localization-tool-native-1.7.0-r7 do_populate_sysroot: sstate found an absolute path symlink /OE/work/x86_64-linux/localization-tool-native/1.7.0-r7/sysroot-destdir/OE/work/x86_64-linux/localization-tool-native/1.7.0-r7/recipe-sysroot-native/opt/js-loctool/node_modules/node-expat/build/node_gyp_bins/python3 pointing at /OE/hosttools/python3. Please replace this with a relative link.

But I haven't narrowed it down yet to see which exact nodejs/npm change caused this.

This change was introduced in:

and again, not sure how many node recipes might get broken by this, in my layers it was just one (and as work around I've deleted this new node_gyp_bins directory for now).


[meta-oe][PATCH] iwd: upgrade 1.30 -> 2.0

Markus Volk
 

ver 2.0:
Fix issue with handling P2P and limiting ciphers to CCMP.
Fix issue with scanning before forced roaming action.
Fix issue with provided scan frequencies from RRM.
Fix issue with handling Michael MIC failure message.
Fix issue with handling timestamp size in MPDU frames.
Fix issue with handling enablement of OCVC for FT AKMs.
Fix issue with handling FT work as highest priority.
Fix issue with handling roaming events and Multi-BSS.
Add support for utilizing roaming candidates list.
Add support for utilizing TLS session caching.
Add support for ciphers with 256 bits key size.
Add support for Access Point mode with legacy TKIP.
Add support for MAC address changes while powered.
Add support for IPv4 and IPv6 network configuration.

Signed-off-by: Markus Volk <f_l_k@...>
---
meta-oe/recipes-connectivity/iwd/{iwd_1.30.bb =3D> iwd_2.0.bb} | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
rename meta-oe/recipes-connectivity/iwd/{iwd_1.30.bb =3D> iwd_2.0.bb} (9=
4%)

diff --git a/meta-oe/recipes-connectivity/iwd/iwd_1.30.bb b/meta-oe/recip=
es-connectivity/iwd/iwd_2.0.bb
similarity index 94%
rename from meta-oe/recipes-connectivity/iwd/iwd_1.30.bb
rename to meta-oe/recipes-connectivity/iwd/iwd_2.0.bb
index 1f0bcd4f8..8ec211bd6 100644
--- a/meta-oe/recipes-connectivity/iwd/iwd_1.30.bb
+++ b/meta-oe/recipes-connectivity/iwd/iwd_2.0.bb
@@ -8,7 +8,7 @@ DEPENDS =3D "ell"
SRC_URI =3D "https://www.kernel.org/pub/linux/network/wireless/${BP}.tar=
.xz \
file://0001-build-Use-abs_top_srcdir-instead-of-abs_srcdir-fo=
r-e.patch \
"
-SRC_URI[sha256sum] =3D "9fd13512dc27d83efb8d341f7df98f5488f70131686021fc=
d0d93fc97af013b8"
+SRC_URI[sha256sum] =3D "5a0bfbc567092476d60a8f9700f68a273e39fd46e7177ce2=
d69bbc74255a930c"
=20
inherit autotools manpages pkgconfig python3native systemd
=20
--=20
2.34.1


[meta-multimedia][PATCH] pipewire: upgrade 0.3.60 -> 0.3.61

Markus Volk
 

PipeWire 0.3.61 (2022-11-24)
This is a bugfix release that is API and ABI compatible with previous
0.3.x releases.

Highlights

Fix a bug in audioadapter that could cause crashes when switching
bluetooth profiles.
Fix sound in QEMU, deadbeef and openal again.
libcamera plugin fixes, dynamic add and remove should now work with
the next wireplumber version.
Fix a regression in pw-midiplay where the first buffer would not
play and some events would be missing.
The network module now doesn't export other network sources
anymore.
pulse-server now detects clients that keep underrunning for a long time
and will pause them to save power.
Many more bugfixes and improvements.

PipeWire

Optimize away some useless graph recalculations.
Increase alternative sample rates from 16 to 32.
FreeBSD and musl build fixes.
Silence some module loading errors when the error can be ignored.
Fix initial buffer requested size for pw-stream when operating in
async mode. This also indirectly fixes the first buffer in
pw-midiplay. (#2843)

Modules

Set the network property on pulse-tunnel streams so that they are
not exported anymore. (#2384)
Filter-chain has optimized mix functions now.

SPA

Handle some errors in libcamera better.
Fix libcamera remove events. Fix the id allocation for devices.
Fix a bug in audioadapter where it would not renegotiate after
a port reconfiguration, leading to crashes, especially when
automatically switching profiles in bluetooth. (#2764)
Do ALSA probing in 44100Hz again. Some devices seem to fail
otherwise for some unknown reason. (#2718)
Force playback start when the ALSA buffer is full. This fixes sound
in QEMU. (#2830)
Support Digital 5.1 AC3 for Asus Xonar SE.
Improve format renegotiation in audioadapter. This makes the ALSA
plugin work again for deadbeef. (#2832)
Fix latency reporting on adapter DSP ports.

pulse-server

Fix a bug where openal based applications would hang. (#2821)
Improve zeroconf publish. Only publish on the address of the first
running server. This avoids duplicate entries for IPv4 and IPv6.
Add support for republish entries when new servers are started.
Add a pulse.idle.timeout option (default to 5 seconds) to pause
streams that have been underrunning for this amount of time. Badly
behaving clients will then not keep the graph and device busy so
that devices can be suspended to save battery. This should give
better default behaviour with speech-dispatcher. (#2839)

JACK

Add an option to configure the filter character.
Fix connect_callbacks. It was only called once for output ports.
(#2841)
Add option to set node.passive on jack clients. Make some quirks
for qsynth to make it suspend and fade out better.

Signed-off-by: Markus Volk <f_l_k@...>
---
.../pipewire/{pipewire_0.3.60.bb =3D> pipewire_0.3.61.bb} | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
rename meta-multimedia/recipes-multimedia/pipewire/{pipewire_0.3.60.bb =3D=
pipewire_0.3.61.bb} (99%)
diff --git a/meta-multimedia/recipes-multimedia/pipewire/pipewire_0.3.60.=
bb b/meta-multimedia/recipes-multimedia/pipewire/pipewire_0.3.61.bb
similarity index 99%
rename from meta-multimedia/recipes-multimedia/pipewire/pipewire_0.3.60.b=
b
rename to meta-multimedia/recipes-multimedia/pipewire/pipewire_0.3.61.bb
index b925cddf6..1d88fe92a 100644
--- a/meta-multimedia/recipes-multimedia/pipewire/pipewire_0.3.60.bb
+++ b/meta-multimedia/recipes-multimedia/pipewire/pipewire_0.3.61.bb
@@ -13,7 +13,7 @@ LIC_FILES_CHKSUM =3D " \
=20
DEPENDS =3D "dbus ncurses"
=20
-SRCREV =3D "38382d002d0905d60a964fc84dcaf4f8b507a473"
+SRCREV =3D "f038e3f23824f9319daaa9f9a31600fc6df49a39"
SRC_URI =3D "git://gitlab.freedesktop.org/pipewire/pipewire.git;branch=3D=
master;protocol=3Dhttps"
=20
S =3D "${WORKDIR}/git"
--=20
2.34.1


Re: [meta-java][PATCH] jsch: switch to inclusive language

Jacob Kroon
 

On 11/25/22 13:35, Ulrich Ölmann wrote:
Signed-off-by: Ulrich Ölmann <u.oelmann@...>
---
recipes-core/jcraft/jsch_0.1.40.bb | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/recipes-core/jcraft/jsch_0.1.40.bb b/recipes-core/jcraft/jsch_0.1.40.bb
index 07d5b9e3108e..259712661f4d 100644
--- a/recipes-core/jcraft/jsch_0.1.40.bb
+++ b/recipes-core/jcraft/jsch_0.1.40.bb
@@ -25,8 +25,8 @@ do_compile() {
SRC_URI[md5sum] = "b59cec19a487e95aed68378976b4b566"
SRC_URI[sha256sum] = "ca9d2ae08fd7a8983fb00d04f0f0c216a985218a5eb364ff9bee73870f28e097"
-# Whitelist the CVE because it only affects Windows platforms
-CVE_CHECK_WHITELIST += "CVE-2016-5725"
+# Ignore the CVE because it only affects Windows platforms
+CVE_CHECK_IGNORE += "CVE-2016-5725"
BBCLASSEXTEND = "native"
Also your commit:

3161106f0879a6be0a016df3a8bb8fa800bd6044
openjdk-8: refresh patches

seems to have *introduced* fuzz warnings, rather than fix any on master branch ...

Jacob


[meta-java][PATCH] jsch: switch to inclusive language

Ulrich Ölmann
 

Signed-off-by: Ulrich Ölmann <u.oelmann@...>
---
recipes-core/jcraft/jsch_0.1.40.bb | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/recipes-core/jcraft/jsch_0.1.40.bb b/recipes-core/jcraft/jsch_0.1.40.bb
index 07d5b9e3108e..259712661f4d 100644
--- a/recipes-core/jcraft/jsch_0.1.40.bb
+++ b/recipes-core/jcraft/jsch_0.1.40.bb
@@ -25,8 +25,8 @@ do_compile() {
SRC_URI[md5sum] = "b59cec19a487e95aed68378976b4b566"
SRC_URI[sha256sum] = "ca9d2ae08fd7a8983fb00d04f0f0c216a985218a5eb364ff9bee73870f28e097"

-# Whitelist the CVE because it only affects Windows platforms
-CVE_CHECK_WHITELIST += "CVE-2016-5725"
+# Ignore the CVE because it only affects Windows platforms
+CVE_CHECK_IGNORE += "CVE-2016-5725"

BBCLASSEXTEND = "native"

--
2.30.2


[meta-python][PATCH 2/2] python3-uefi-firmware: add recipe for version 1.9

tomzy
 

Install uefi-firmware-parser tool

Signed-off-by: Tomasz Żyjewski <tomasz.zyjewski@...>
---
.../python/python3-uefi-firmware_1.9.bb | 17 +++++++++++++++++
1 file changed, 17 insertions(+)
create mode 100644 meta-python/recipes-devtools/python/python3-uefi-firmware_1.9.bb

diff --git a/meta-python/recipes-devtools/python/python3-uefi-firmware_1.9.bb b/meta-python/recipes-devtools/python/python3-uefi-firmware_1.9.bb
new file mode 100644
index 000000000000..ba3124b36e60
--- /dev/null
+++ b/meta-python/recipes-devtools/python/python3-uefi-firmware_1.9.bb
@@ -0,0 +1,17 @@
+SUMMARY = "Various data structures and parsing tools for UEFI firmware."
+DESCRIPTION = "This package contains Python UEFI firmware parser tool. The \
+UEFI firmware parser is a simple module and set of scripts for parsing, \
+extracting, and recreating UEFI firmware volumes. This includes parsing \
+modules for BIOS, OptionROM, Intel ME and other formats too."
+HOMEPAGE = "https://github.com/theopolis/uefi-firmware-parser"
+AUTHOR = "Teddy Reed <teddy@...>"
+LICENSE = "BSD-2-Clause & BSD-3-Clause"
+LIC_FILES_CHKSUM = "file://setup.py;md5=90fa5bae1547550f1c1993f651eda955"
+
+SRC_URI = "https://files.pythonhosted.org/packages/7e/b4/a4ec646d24a1aad709fdb83de6e5eddd6cb24faec02f3a94a3af3b0aba28/uefi_firmware-${PV}.tar.gz"
+SRC_URI[md5sum] = "ee5011b4d0bcb0eb7c06295e0107894f"
+SRC_URI[sha256sum] = "234119dd92780c67cce3b664e86119c41d0b2af188d7f372b69789b32c5d5cd0"
+
+S = "${WORKDIR}/uefi_firmware-${PV}"
+
+inherit setuptools3
--
2.25.1