[oe] [PATCH v5] ydotool: Add new package

2024-03-07 Thread André Paiusco
Reviewed-by: Khem Raj 
Reviewed-by: Ross Burton 
Signed-off-by: Andre Paiusco 
---
 .../packagegroups/packagegroup-meta-oe.bb  |  1 +
 .../recipes-graphics/ydotool/ydotool_git.bb| 18 ++
 2 files changed, 19 insertions(+)
 create mode 100644 meta-oe/recipes-graphics/ydotool/ydotool_git.bb

diff --git a/meta-oe/recipes-core/packagegroups/packagegroup-meta-oe.bb 
b/meta-oe/recipes-core/packagegroups/packagegroup-meta-oe.bb
index 6e2012dae..dd033208b 100644
--- a/meta-oe/recipes-core/packagegroups/packagegroup-meta-oe.bb
+++ b/meta-oe/recipes-core/packagegroups/packagegroup-meta-oe.bb
@@ -611,6 +611,7 @@ RDEPENDS:packagegroup-meta-oe-graphics ="\
 xcursorgen \
 ${@bb.utils.contains("DISTRO_FEATURES", "x11 pam", "xscreensaver", "", d)} 
\
 yad \
+ydotool \
 parallel-deqp-runner \
 ${@bb.utils.contains("DISTRO_FEATURES", "opengl", "opengl-es-cts", "", d)} 
\
 ${@bb.utils.contains("DISTRO_FEATURES", "opengl vulkan", "vulkan-cts", "", 
d)} \
diff --git a/meta-oe/recipes-graphics/ydotool/ydotool_git.bb 
b/meta-oe/recipes-graphics/ydotool/ydotool_git.bb
new file mode 100644
index 0..de515e398
--- /dev/null
+++ b/meta-oe/recipes-graphics/ydotool/ydotool_git.bb
@@ -0,0 +1,18 @@
+SUMMARY = "Generic Linux command-line automation tool (no X!)"
+DESCRIPTION = "ydotool is not limited to Wayland. You can use it on anything 
as long as it accepts keyboard/mouse/whatever input."
+LICENSE = "AGPL-3.0-or-later"
+LIC_FILES_CHKSUM = "file://LICENSE;md5=eb1e647870add0502f8f010b19de32af"
+
+PV = "1.0.4+git"
+
+SRC_URI = "git://github.com/ReimuNotMoe/ydotool;protocol=https;branch=master"
+SRCREV = "c07ae72be46c40912023b91b8ba737630d8720e1"
+
+inherit cmake systemd
+
+EXTRA_OECMAKE = "\
+-DBUILD_DOCS=OFF \
+"
+
+SYSTEMD_SERVICE:${PN} = "ydotoold.service"
+SYSTEMD_AUTO_ENABLE = "disable"
-- 
2.44.0


-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#109225): 
https://lists.openembedded.org/g/openembedded-devel/message/109225
Mute This Topic: https://lists.openembedded.org/mt/104804851/21656
Group Owner: openembedded-devel+ow...@lists.openembedded.org
Unsubscribe: https://lists.openembedded.org/g/openembedded-devel/unsub 
[arch...@mail-archive.com]
-=-=-=-=-=-=-=-=-=-=-=-



Re: [oe] [PATCH v4] ydotool: Add new package

2024-03-07 Thread André Paiusco
[Edited Message Follows]

Hello,

Two things:

First, I had a patch that I forgot to add to this, where I make the 
ydotoold.service be installed as a system service instead of a user service, 
otherwise the rootfs recipe fails as it can't enable it. I'd like suggestions 
to what you feel better. Sorry for missing that. If there's a more generic 
option for systemd user services, let me know.  
One option is: have a patch that whenever we have systemd as a dependency, we 
install it as system service and not user service.  
Another option is: disable the service by default, with that I can remove the 
hard dependency as mentioned above (seems to work just fine)

> this is an unterminated string, bitbake would have told you during
> parsing. Please test the bits before sending for review.
> It saves time.

I have no idea how this went through as last time I was only changing the 
packagegroup, sorry.

 
Edit: 
I'm sending a new patch version (v5) applying the second option, just tested, 
and it works fine, the only downside is the need to manually having to enable 
the service. If we disagree, I can implement the fixes on top of that one.

-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#109224): 
https://lists.openembedded.org/g/openembedded-devel/message/109224
Mute This Topic: https://lists.openembedded.org/mt/104795496/21656
Group Owner: openembedded-devel+ow...@lists.openembedded.org
Unsubscribe: https://lists.openembedded.org/g/openembedded-devel/unsub 
[arch...@mail-archive.com]
-=-=-=-=-=-=-=-=-=-=-=-



Re: [oe] [PATCH v4] ydotool: Add new package

2024-03-07 Thread André Paiusco
Hello,

Two things:

First, I had a patch that I forgot to add to this, where I make the 
ydotoold.service be installed as a system service instead of a user service, 
otherwise the rootfs recipe fails as it can't enable it. I'd like suggestions 
to what you feel better. Sorry for missing that. If there's a more generic 
option for systemd user services, let me know.  
One option is: have a patch that whenever we have systemd as a dependency, we 
install it as system service and not user service.  
Another option is: disable the service by default, with that I can disable the 
hard dependency as mentioned above (seems to work just fine)

> this is an unterminated string, bitbake would have told you during
> parsing. Please test the bits before sending for review.
> It saves time.

I have no idea how this went through as last time I was only changing the 
packagegroup, sorry.

-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#109224): 
https://lists.openembedded.org/g/openembedded-devel/message/109224
Mute This Topic: https://lists.openembedded.org/mt/104795496/21656
Group Owner: openembedded-devel+ow...@lists.openembedded.org
Unsubscribe: https://lists.openembedded.org/g/openembedded-devel/unsub 
[arch...@mail-archive.com]
-=-=-=-=-=-=-=-=-=-=-=-



[oe] [meta-multimedia][PATCH 2/2] vlc: Upgrade to 3.0.20

2024-03-07 Thread Khem Raj
Fix build with taglib 2.0

Signed-off-by: Khem Raj 
---
 .../vlc/0001-make-opencv-configurable.patch   |  2 +-
 .../vlc/vlc/0002-use-vorbisidec.patch |  2 +-
 ...packageconfig-to-detect-mmal-support.patch |  2 +-
 ...ave-same-signature-between-glibc-and.patch | 11 +--
 ...e-incompatible-function-pointer-type.patch |  7 +-
 .../recipes-multimedia/vlc/vlc/taglib-2.patch | 67 +++
 .../vlc/{vlc_3.0.18.bb => vlc_3.0.20.bb}  |  7 +-
 7 files changed, 76 insertions(+), 22 deletions(-)
 create mode 100644 meta-multimedia/recipes-multimedia/vlc/vlc/taglib-2.patch
 rename meta-multimedia/recipes-multimedia/vlc/{vlc_3.0.18.bb => vlc_3.0.20.bb} 
(96%)

diff --git 
a/meta-multimedia/recipes-multimedia/vlc/vlc/0001-make-opencv-configurable.patch
 
b/meta-multimedia/recipes-multimedia/vlc/vlc/0001-make-opencv-configurable.patch
index cc65af009b..d6ff0b2dba 100644
--- 
a/meta-multimedia/recipes-multimedia/vlc/vlc/0001-make-opencv-configurable.patch
+++ 
b/meta-multimedia/recipes-multimedia/vlc/vlc/0001-make-opencv-configurable.patch
@@ -7,7 +7,7 @@ Signed-off-by: Tim Orling 
 
 --- a/configure.ac
 +++ b/configure.ac
-@@ -1892,7 +1892,16 @@ PKG_ENABLE_MODULES_VLC([BLURAY], [libblu
+@@ -1891,7 +1891,16 @@ PKG_ENABLE_MODULES_VLC([BLURAY], [libblu
  dnl
  dnl  OpenCV wrapper and example filters
  dnl
diff --git 
a/meta-multimedia/recipes-multimedia/vlc/vlc/0002-use-vorbisidec.patch 
b/meta-multimedia/recipes-multimedia/vlc/vlc/0002-use-vorbisidec.patch
index 8ecddd33c6..f68da33607 100644
--- a/meta-multimedia/recipes-multimedia/vlc/vlc/0002-use-vorbisidec.patch
+++ b/meta-multimedia/recipes-multimedia/vlc/vlc/0002-use-vorbisidec.patch
@@ -6,7 +6,7 @@ Signed-off-by: Tim Orling 
 
 --- a/modules/codec/Makefile.am
 +++ b/modules/codec/Makefile.am
-@@ -321,7 +321,7 @@ codec_LTLIBRARIES += $(LTLIBdaala)
+@@ -324,7 +324,7 @@ codec_LTLIBRARIES += $(LTLIBdaala)
  libtremor_plugin_la_SOURCES = codec/vorbis.c
  libtremor_plugin_la_CPPFLAGS = $(AM_CPPFLAGS) -DMODULE_NAME_IS_tremor
  libtremor_plugin_la_LDFLAGS = $(AM_LDFLAGS) -rpath '$(codecdir)'
diff --git 
a/meta-multimedia/recipes-multimedia/vlc/vlc/0004-Use-packageconfig-to-detect-mmal-support.patch
 
b/meta-multimedia/recipes-multimedia/vlc/vlc/0004-Use-packageconfig-to-detect-mmal-support.patch
index b9f5ad591c..6659a44a0a 100644
--- 
a/meta-multimedia/recipes-multimedia/vlc/vlc/0004-Use-packageconfig-to-detect-mmal-support.patch
+++ 
b/meta-multimedia/recipes-multimedia/vlc/vlc/0004-Use-packageconfig-to-detect-mmal-support.patch
@@ -16,7 +16,7 @@ Signed-off-by: Khem Raj 
 
 --- a/configure.ac
 +++ b/configure.ac
-@@ -3461,27 +3461,18 @@ AC_ARG_ENABLE(mmal,
+@@ -3460,27 +3460,18 @@ AC_ARG_ENABLE(mmal,
AS_HELP_STRING([--enable-mmal],
  [Multi-Media Abstraction Layer (MMAL) hardware plugin (default enable)]))
  if test "${enable_mmal}" != "no"; then
diff --git 
a/meta-multimedia/recipes-multimedia/vlc/vlc/0005-ioctl-does-not-have-same-signature-between-glibc-and.patch
 
b/meta-multimedia/recipes-multimedia/vlc/vlc/0005-ioctl-does-not-have-same-signature-between-glibc-and.patch
index cbf4f2b911..89e7d585d7 100644
--- 
a/meta-multimedia/recipes-multimedia/vlc/vlc/0005-ioctl-does-not-have-same-signature-between-glibc-and.patch
+++ 
b/meta-multimedia/recipes-multimedia/vlc/vlc/0005-ioctl-does-not-have-same-signature-between-glibc-and.patch
@@ -10,11 +10,9 @@ Signed-off-by: Khem Raj 
  modules/access/v4l2/v4l2.h | 4 
  2 files changed, 8 insertions(+)
 
-diff --git a/modules/access/v4l2/lib.c b/modules/access/v4l2/lib.c
-index b212e1bc5f..ff7c66bf35 100644
 --- a/modules/access/v4l2/lib.c
 +++ b/modules/access/v4l2/lib.c
-@@ -43,7 +43,11 @@ int (*v4l2_fd_open) (int, int) = fd_open;
+@@ -49,7 +49,11 @@ int (*v4l2_fd_open) (int, int) = fd_open
  //int (*v4l2_open) (const char *, int, ...) = open;
  //int (*v4l2_dup) (const char *, int, ...) = dup;
  int (*v4l2_close) (int) = close;
@@ -26,11 +24,9 @@ index b212e1bc5f..ff7c66bf35 100644
  ssize_t (*v4l2_read) (int, void *, size_t) = read;
  //ssize_t (*v4l2_write) (int, const void *, size_t) = write;
  void * (*v4l2_mmap) (void *, size_t, int, int, int, int64_t) = mmap;
-diff --git a/modules/access/v4l2/v4l2.h b/modules/access/v4l2/v4l2.h
-index ac4562e269..727e83e9b1 100644
 --- a/modules/access/v4l2/v4l2.h
 +++ b/modules/access/v4l2/v4l2.h
-@@ -23,7 +23,11 @@
+@@ -28,7 +28,11 @@
  /* libv4l2 functions */
  extern int (*v4l2_fd_open) (int, int);
  extern int (*v4l2_close) (int);
@@ -42,6 +38,3 @@ index ac4562e269..727e83e9b1 100644
  extern ssize_t (*v4l2_read) (int, void *, size_t);
  extern void * (*v4l2_mmap) (void *, size_t, int, int, int, int64_t);
  extern int (*v4l2_munmap) (void *, size_t);
--- 
-2.39.2
-
diff --git 
a/meta-multimedia/recipes-multimedia/vlc/vlc/0006-configure-Disable-incompatible-function-pointer-type.patch
 
b/meta-multimedia/recipes-multimedia/vlc/vlc/0006-configure-Disable-incompatible-function-pointer-type.patch
index 4128db1aea..b158328aa2 100644
--- 

[oe] [meta-gnome][PATCH 1/2] gnome-online-accounts: Fix build with libxml2 2.12

2024-03-07 Thread Khem Raj
Signed-off-by: Khem Raj 
---
 ...abackend-Fix-build-with-libxml2-2.12.patch | 28 +++
 .../gnome-online-accounts_3.48.0.bb   |  3 +-
 2 files changed, 30 insertions(+), 1 deletion(-)
 create mode 100644 
meta-gnome/recipes-gnome/gnome-online-accounts/gnome-online-accounts/0001-goabackend-Fix-build-with-libxml2-2.12.patch

diff --git 
a/meta-gnome/recipes-gnome/gnome-online-accounts/gnome-online-accounts/0001-goabackend-Fix-build-with-libxml2-2.12.patch
 
b/meta-gnome/recipes-gnome/gnome-online-accounts/gnome-online-accounts/0001-goabackend-Fix-build-with-libxml2-2.12.patch
new file mode 100644
index 00..3d13779c2e
--- /dev/null
+++ 
b/meta-gnome/recipes-gnome/gnome-online-accounts/gnome-online-accounts/0001-goabackend-Fix-build-with-libxml2-2.12.patch
@@ -0,0 +1,28 @@
+From a2867ebcf184695eed00aab4e7b47c1d4a53b2b2 Mon Sep 17 00:00:00 2001
+From: =?UTF-8?q?J=C3=BCrg=20Billeter?= 
+Date: Fri, 24 Nov 2023 16:19:47 +0100
+Subject: [PATCH] goabackend: Fix build with libxml2 2.12
+
+libxml/xmlIO.h no longer includes libxml/parser.h.
+
+Upstream-Status: Backport 
[https://github.com/GNOME/gnome-online-accounts/commit/b9638e2418408be4906752297e700506766dcf20]
+Signed-off-by: Khem Raj 
+---
+ src/goabackend/goaewsclient.c | 1 +
+ 1 file changed, 1 insertion(+)
+
+diff --git a/src/goabackend/goaewsclient.c b/src/goabackend/goaewsclient.c
+index 4cb2358..01a52d1 100644
+--- a/src/goabackend/goaewsclient.c
 b/src/goabackend/goaewsclient.c
+@@ -27,6 +27,7 @@
+ #include 
+ 
+ #include 
++#include 
+ #include 
+ 
+ #include "goaewsclient.h"
+-- 
+2.44.0
+
diff --git 
a/meta-gnome/recipes-gnome/gnome-online-accounts/gnome-online-accounts_3.48.0.bb
 
b/meta-gnome/recipes-gnome/gnome-online-accounts/gnome-online-accounts_3.48.0.bb
index 47b234e235..fd61d797d0 100644
--- 
a/meta-gnome/recipes-gnome/gnome-online-accounts/gnome-online-accounts_3.48.0.bb
+++ 
b/meta-gnome/recipes-gnome/gnome-online-accounts/gnome-online-accounts_3.48.0.bb
@@ -7,7 +7,8 @@ inherit gnomebase gsettings gobject-introspection 
gtk-icon-cache vala features_c
 
 DEPENDS = "gdk-pixbuf dbus glib-2.0"
 
-SRC_URI += "file://0001-Replace-filename-with-basename.patch"
+SRC_URI += "file://0001-Replace-filename-with-basename.patch \
+file://0001-goabackend-Fix-build-with-libxml2-2.12.patch"
 SRC_URI[archive.sha256sum] = 
"418bb9fcffdbd72a98205ad365137617fc1e3551a54de74f6a98d45d266175bf"
 
 PACKAGECONFIG ?= "goabackend kerberos owncloud lastfm google windows_live"
-- 
2.44.0


-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#109222): 
https://lists.openembedded.org/g/openembedded-devel/message/109222
Mute This Topic: https://lists.openembedded.org/mt/104804499/21656
Group Owner: openembedded-devel+ow...@lists.openembedded.org
Unsubscribe: https://lists.openembedded.org/g/openembedded-devel/unsub 
[arch...@mail-archive.com]
-=-=-=-=-=-=-=-=-=-=-=-



[oe] [meta-python][PATCH 3/3] python3-google-auth: add ptest and update runtime dependencies

2024-03-07 Thread Alper Ak
* Generally we want to keep images as small as possible. RDEPENDS should not 
contains nothing except what is absolutely needed for a recipe.

* Tested on qemux86-64 and qemuarm64

* Add ptest into PTESTS_SLOW_META_PYTHON

Ptest results:
==
qemux86-64:

Testsuite summary
TOTAL: 1074
PASS: 1074
SKIP: 0
XFAIL: 0
FAIL: 0
XPASS: 0
ERROR: 0
DURATION: 227
END: /usr/lib/python3-google-auth/ptest
2024-03-07T21:30
STOP: ptest-runner
TOTAL: 1 FAIL: 0

qemuarm64:

Testsuite summary
TOTAL: 1074
PASS: 1074
SKIP: 0
XFAIL: 0
FAIL: 0
XPASS: 0
ERROR: 0
DURATION: 184
END: /usr/lib/python3-google-auth/ptest
2024-03-07T21:15
STOP: ptest-runner
TOTAL: 1 FAIL: 0

Signed-off-by: alperak 
---
 .../ptest-packagelists-meta-python.inc|  1 +
 .../python/python3-google-auth/run-ptest  |  4 ++
 .../python/python3-google-auth_2.28.1.bb  | 43 +--
 3 files changed, 34 insertions(+), 14 deletions(-)
 create mode 100644 
meta-python/recipes-devtools/python/python3-google-auth/run-ptest

diff --git a/meta-python/conf/include/ptest-packagelists-meta-python.inc 
b/meta-python/conf/include/ptest-packagelists-meta-python.inc
index ce5ccf22d..63457189e 100644
--- a/meta-python/conf/include/ptest-packagelists-meta-python.inc
+++ b/meta-python/conf/include/ptest-packagelists-meta-python.inc
@@ -78,6 +78,7 @@ PTESTS_FAST_META_PYTHON = "\
 
 PTESTS_SLOW_META_PYTHON = "\
 python3-arrow \
+python3-google-auth \
 python3-lz4 \
 python3-marshmallow \
 python3-pytest-localserver \
diff --git a/meta-python/recipes-devtools/python/python3-google-auth/run-ptest 
b/meta-python/recipes-devtools/python/python3-google-auth/run-ptest
new file mode 100644
index 0..f1c8729f0
--- /dev/null
+++ b/meta-python/recipes-devtools/python/python3-google-auth/run-ptest
@@ -0,0 +1,4 @@
+#!/bin/sh
+
+pytest --automake
+
diff --git a/meta-python/recipes-devtools/python/python3-google-auth_2.28.1.bb 
b/meta-python/recipes-devtools/python/python3-google-auth_2.28.1.bb
index 4524cca48..1f37544d2 100644
--- a/meta-python/recipes-devtools/python/python3-google-auth_2.28.1.bb
+++ b/meta-python/recipes-devtools/python/python3-google-auth_2.28.1.bb
@@ -3,24 +3,39 @@ HOMEPAGE = 
"https://github.com/googleapis/google-auth-library-python;
 LICENSE = "Apache-2.0"
 LIC_FILES_CHKSUM = "file://LICENSE;md5=86d3f3a95c324c9479bd8986968f4327"
 
-inherit pypi setuptools3
+inherit pypi setuptools3 ptest
 
 SRC_URI[sha256sum] = 
"34fc3046c257cedcf1622fc4b31fc2be7923d9b4d44973d481125ecc50d83885"
 
-RDEPENDS:${PN} += "\
-python3-asyncio \
-python3-datetime \
-python3-io \
-python3-json \
-python3-logging \
-python3-netclient \
-python3-numbers \
+SRC_URI += " \
+file://run-ptest \
+"
+
+RDEPENDS:${PN}-ptest += " \
+python3-cryptography \
+python3-flask \
+python3-freezegun \
+python3-grpcio \
+python3-mock \
+python3-oauth2client \
+python3-pyopenssl \
+python3-pytest \
+python3-pytest-localserver \
+python3-pyu2f \
+python3-requests \
+python3-responses \
+python3-unittest-automake-output \
+python3-unixadmin \
 "
 
+do_install_ptest() {
+install -d ${D}${PTEST_PATH}/tests
+cp -rf ${S}/tests/* ${D}${PTEST_PATH}/tests/
+}
+
 RDEPENDS:${PN} += "\
-python3-aiohttp \
-python3-cachetools \
-python3-pyasn1-modules \
-python3-rsa \
-python3-six \
+python3-cachetools \
+python3-json \
+python3-pyasn1-modules \
+python3-rsa \
 "
-- 
2.25.1


-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#109221): 
https://lists.openembedded.org/g/openembedded-devel/message/109221
Mute This Topic: https://lists.openembedded.org/mt/104804152/21656
Group Owner: openembedded-devel+ow...@lists.openembedded.org
Unsubscribe: https://lists.openembedded.org/g/openembedded-devel/unsub 
[arch...@mail-archive.com]
-=-=-=-=-=-=-=-=-=-=-=-



[oe] [meta-python][PATCH 2/3] python3-responses: add recipe

2024-03-07 Thread Alper Ak
A utility library for mocking out the requests Python library.

Signed-off-by: alperak 
---
 Couldn't add ptest because throwing ERROR: Exited from signal Killed (9) after 
300 sec. 
 When I tried with tox after cloning the upstream in docker, there was no 
problem. Somehow this error is encountered in QEMU. 
 This could happen for a variety of reasons, such as running out of memory, 
being killed by the system due to resource constraints, or potentially due to a 
bug in the code.

 .../python/python3-responses_0.25.0.bb| 15 +++
 1 file changed, 15 insertions(+)
 create mode 100644 
meta-python/recipes-devtools/python/python3-responses_0.25.0.bb

diff --git a/meta-python/recipes-devtools/python/python3-responses_0.25.0.bb 
b/meta-python/recipes-devtools/python/python3-responses_0.25.0.bb
new file mode 100644
index 0..f4b59c750
--- /dev/null
+++ b/meta-python/recipes-devtools/python/python3-responses_0.25.0.bb
@@ -0,0 +1,15 @@
+DESCRIPTION = "A utility library for mocking out the requests Python library."
+HOMEPAGE = "https://github.com/getsentry/responses;
+LICENSE = "Apache-2.0"
+LIC_FILES_CHKSUM = "file://LICENSE;md5=0e601511a8517f4daf688a8eb95be7a2"
+
+inherit pypi setuptools3
+
+SRC_URI[sha256sum] = 
"01ae6a02b4f34e39bffceb0fc6786b67a25eae919c6368d05eabc8d9576c2a66"
+
+RDEPENDS:${PN} += " \
+   python3-mock \
+   python3-pyyaml \
+   python3-requests \
+   python3-urllib3 \
+"
-- 
2.25.1


-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#109220): 
https://lists.openembedded.org/g/openembedded-devel/message/109220
Mute This Topic: https://lists.openembedded.org/mt/104804151/21656
Group Owner: openembedded-devel+ow...@lists.openembedded.org
Unsubscribe: https://lists.openembedded.org/g/openembedded-devel/unsub 
[arch...@mail-archive.com]
-=-=-=-=-=-=-=-=-=-=-=-



[oe] [meta-python][PATCH 1/3] python3-pytest-localserver: added recipe which is also include ptest

2024-03-07 Thread Alper Ak
pytest-localserver is a plugin for the pytest testing framework which enables 
you to test server connections locally.

* Tested on qemux86-64 and qemuarm64

* Add ptest into PTESTS_SLOW_META_PYTHON

Ptest result:
==
qemux86-64:

Testsuite summary
TOTAL: 55
PASS: 54
SKIP: 1
XFAIL: 0
FAIL: 0
XPASS: 0
ERROR: 0
DURATION: 44
END: /usr/lib/python3-pytest-localserver/ptest
2024-03-07T20:33
STOP: ptest-runner
TOTAL: 1 FAIL: 0

qemuarm64:

Testsuite summary
TOTAL: 55
PASS: 54
SKIP: 1
XFAIL: 0
FAIL: 0
XPASS: 0
ERROR: 0
DURATION: 38
END: /usr/lib/python3-pytest-localserver/ptest
2024-03-07T20:41
STOP: ptest-runner
TOTAL: 1 FAIL: 0

Signed-off-by: alperak 
---
 .../ptest-packagelists-meta-python.inc|  1 +
 .../python3-pytest-localserver/run-ptest  |  3 ++
 .../python3-pytest-localserver_0.8.1.bb   | 29 +++
 3 files changed, 33 insertions(+)
 create mode 100644 
meta-python/recipes-devtools/python/python3-pytest-localserver/run-ptest
 create mode 100644 
meta-python/recipes-devtools/python/python3-pytest-localserver_0.8.1.bb

diff --git a/meta-python/conf/include/ptest-packagelists-meta-python.inc 
b/meta-python/conf/include/ptest-packagelists-meta-python.inc
index 20ca2763c..ce5ccf22d 100644
--- a/meta-python/conf/include/ptest-packagelists-meta-python.inc
+++ b/meta-python/conf/include/ptest-packagelists-meta-python.inc
@@ -80,6 +80,7 @@ PTESTS_SLOW_META_PYTHON = "\
 python3-arrow \
 python3-lz4 \
 python3-marshmallow \
+python3-pytest-localserver \
 python3-traitlets \
 python3-yappi \
 "
diff --git 
a/meta-python/recipes-devtools/python/python3-pytest-localserver/run-ptest 
b/meta-python/recipes-devtools/python/python3-pytest-localserver/run-ptest
new file mode 100644
index 0..8d2017d39
--- /dev/null
+++ b/meta-python/recipes-devtools/python/python3-pytest-localserver/run-ptest
@@ -0,0 +1,3 @@
+#!/bin/sh
+
+pytest --automake
diff --git 
a/meta-python/recipes-devtools/python/python3-pytest-localserver_0.8.1.bb 
b/meta-python/recipes-devtools/python/python3-pytest-localserver_0.8.1.bb
new file mode 100644
index 0..669817829
--- /dev/null
+++ b/meta-python/recipes-devtools/python/python3-pytest-localserver_0.8.1.bb
@@ -0,0 +1,29 @@
+SUMMARY = "pytest plugin to test server connections locally."
+HOMEPAGE = "https://github.com/pytest-dev/pytest-localserver;
+LICENSE = "MIT"
+LIC_FILES_CHKSUM = "file://LICENSE;md5=b8da7a541d738b054dcbf70c31530432"
+
+DEPENDS += "python3-setuptools-scm-native"
+
+inherit pypi python_setuptools_build_meta ptest
+
+SRC_URI[sha256sum] = 
"66569c34fef31a5750b16effd1cd1288a7a90b59155d005e7f916accd3dee4f1"
+
+SRC_URI += " \
+file://run-ptest \
+"
+
+RDEPENDS:${PN}-ptest += " \
+   python3-pytest \
+   python3-requests \
+   python3-unittest-automake-output \
+"
+
+do_install_ptest() {
+install -d ${D}${PTEST_PATH}/tests
+cp -rf ${S}/tests/* ${D}${PTEST_PATH}/tests/
+}
+
+RDEPENDS:${PN} += " \
+   python3-werkzeug \
+"
-- 
2.25.1


-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#109219): 
https://lists.openembedded.org/g/openembedded-devel/message/109219
Mute This Topic: https://lists.openembedded.org/mt/104804150/21656
Group Owner: openembedded-devel+ow...@lists.openembedded.org
Unsubscribe: https://lists.openembedded.org/g/openembedded-devel/unsub 
[arch...@mail-archive.com]
-=-=-=-=-=-=-=-=-=-=-=-



[oe] [meta-networking][PATCH] tcprelay: fix a minor cross compilation do_configure issue

2024-03-07 Thread Chen Qi via lists.openembedded.org
From: Chen Qi 

We're seeing errors like below in log.do_configure:

  ./conftest: cannot execute binary file: Exec format error

The tcprelay's configure have two places to execute ./conftest.
And the result happens to be correct even with the error above.

Instead of leaving the errors as they are, we explicitly skip
running ./conftest in case of cross compiling. The build will
continue to succeed and result will remain the same.

Signed-off-by: Chen Qi 
---
 ...not-run-conftest-in-case-of-cross-co.patch | 51 +++
 .../tcpreplay/tcpreplay_4.4.4.bb  |  1 +
 2 files changed, 52 insertions(+)
 create mode 100644 
meta-networking/recipes-support/tcpreplay/tcpreplay/0001-configure.ac-do-not-run-conftest-in-case-of-cross-co.patch

diff --git 
a/meta-networking/recipes-support/tcpreplay/tcpreplay/0001-configure.ac-do-not-run-conftest-in-case-of-cross-co.patch
 
b/meta-networking/recipes-support/tcpreplay/tcpreplay/0001-configure.ac-do-not-run-conftest-in-case-of-cross-co.patch
new file mode 100644
index 0..08cb3b88f
--- /dev/null
+++ 
b/meta-networking/recipes-support/tcpreplay/tcpreplay/0001-configure.ac-do-not-run-conftest-in-case-of-cross-co.patch
@@ -0,0 +1,51 @@
+From 42f7bbc1ce4913fe2c0bc76293c5445d31690f5d Mon Sep 17 00:00:00 2001
+From: Chen Qi 
+Date: Thu, 7 Mar 2024 21:02:07 -0800
+Subject: [PATCH] configure.ac: do not run conftest in case of cross
+ compilation
+
+It'll give us nothing but error like below:
+
+  ./conftest: cannot execute binary file: Exec format error
+  ...
+  ./configure: line 23950: test: -eq: unary operator expected
+
+The version check only has effect on Apple systems. We'd better
+avoid error like above when cross compilation.
+
+Also, in case of cross compilation, instead of having the above
+Exec format error and resulting in unaligned_cv_fail to yes, set
+it directly to yes.
+
+Upstream-Status: Submitted [https://github.com/appneta/tcpreplay/pull/849]
+
+Signed-off-by: Chen Qi 
+---
+ configure.ac | 4 ++--
+ 1 file changed, 2 insertions(+), 2 deletions(-)
+
+diff --git a/configure.ac b/configure.ac
+index 387219de..15201601 100644
+--- a/configure.ac
 b/configure.ac
+@@ -928,7 +928,7 @@ cat >conftest.c &1
+-if test -x conftest ; then
++if test -x conftest -a "$cross_compiling" != "yes"; then
+ full_libpcap_version=$(LD_LIBRARY_PATH="$LPCAP_LD_LIBRARY_PATH" 
./conftest)
+ libpcap_version=$(echo "$full_libpcap_version" | ${CUT} -d' ' -f3)
+ pcap_version_ok=yes
+@@ -1709,7 +1709,7 @@ case "$host_os" in
+ EOF
+ ${CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS \
+ conftest.c $LIBS >/dev/null 2>&1
+-if test ! -x conftest ; then
++if test ! -x conftest -o "$cross_compiling" = "yes" ; then
+ dnl failed to compile for some reason
+ unaligned_cv_fail=yes
+ else
+-- 
+2.42.0
+
diff --git a/meta-networking/recipes-support/tcpreplay/tcpreplay_4.4.4.bb 
b/meta-networking/recipes-support/tcpreplay/tcpreplay_4.4.4.bb
index 53f17c961..26de40a65 100644
--- a/meta-networking/recipes-support/tcpreplay/tcpreplay_4.4.4.bb
+++ b/meta-networking/recipes-support/tcpreplay/tcpreplay_4.4.4.bb
@@ -10,6 +10,7 @@ LIC_FILES_CHKSUM = 
"file://docs/LICENSE;md5=10f0474a2f0e5dccfca20f69d6598ad8"
 SRC_URI = 
"https://github.com/appneta/${BPN}/releases/download/v${PV}/${BP}.tar.gz \
 file://0001-libopts.m4-set-POSIX_SHELL-to-bin-sh.patch \
 file://0001-configure.ac-unify-search-dirs-for-pcap-and-add-lib3.patch \
+file://0001-configure.ac-do-not-run-conftest-in-case-of-cross-co.patch \
 "
 
 SRC_URI[sha256sum] = 
"44f18fb6d3470ecaf77a51b901a119dae16da5be4d4140ffbb2785e37ad6d4bf"
-- 
2.34.1


-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#109218): 
https://lists.openembedded.org/g/openembedded-devel/message/109218
Mute This Topic: https://lists.openembedded.org/mt/104804036/21656
Group Owner: openembedded-devel+ow...@lists.openembedded.org
Unsubscribe: https://lists.openembedded.org/g/openembedded-devel/unsub 
[arch...@mail-archive.com]
-=-=-=-=-=-=-=-=-=-=-=-



Re: [oe] [PATCH v4] ydotool: Add new package

2024-03-07 Thread Khem Raj
On Thu, Mar 7, 2024 at 12:07 PM Andre Paiusco  wrote:
>
> CC: Khem Raj 
> Signed-off-by: Andre Paiusco 
> ---
>  .../packagegroups/packagegroup-meta-oe.bb |  1 +
>  .../recipes-graphics/ydotool/ydotool_git.bb   | 20 +++
>  2 files changed, 21 insertions(+)
>  create mode 100644 meta-oe/recipes-graphics/ydotool/ydotool_git.bb
>
> diff --git a/meta-oe/recipes-core/packagegroups/packagegroup-meta-oe.bb 
> b/meta-oe/recipes-core/packagegroups/packagegroup-meta-oe.bb
> index 6e2012dae..16d919cb6 100644
> --- a/meta-oe/recipes-core/packagegroups/packagegroup-meta-oe.bb
> +++ b/meta-oe/recipes-core/packagegroups/packagegroup-meta-oe.bb
> @@ -611,6 +611,7 @@ RDEPENDS:packagegroup-meta-oe-graphics ="\
>  xcursorgen \
>  ${@bb.utils.contains("DISTRO_FEATURES", "x11 pam", "xscreensaver", "", 
> d)} \
>  yad \
> +${@bb.utils.contains("DISTRO_FEATURES", "systemd", "ydotool", "", d)} \
>  parallel-deqp-runner \
>  ${@bb.utils.contains("DISTRO_FEATURES", "opengl", "opengl-es-cts", "", 
> d)} \
>  ${@bb.utils.contains("DISTRO_FEATURES", "opengl vulkan", "vulkan-cts", 
> "", d)} \
> diff --git a/meta-oe/recipes-graphics/ydotool/ydotool_git.bb 
> b/meta-oe/recipes-graphics/ydotool/ydotool_git.bb
> new file mode 100644
> index 0..2525ea70b
> --- /dev/null
> +++ b/meta-oe/recipes-graphics/ydotool/ydotool_git.bb
> @@ -0,0 +1,20 @@
> +SUMMARY = "Generic Linux command-line automation tool (no X!)"
> +DESCRIPTION = "ydotool is not limited to Wayland. You can use it on anything 
> as long as it accepts keyboard/mouse/whatever input."
> +LICENSE = "AGPL-3.0-or-later"
> +LIC_FILES_CHKSUM = "file://LICENSE;md5=eb1e647870add0502f8f010b19de32af"
> +
> +DEPENDS = "systemd"
> +PV = "1.0.4+git"
> +
> +SRC_URI = "git://github.com/ReimuNotMoe/ydotool;protocol=https;branch=master"
> +SRCREV = "c07ae72be46c40912023b91b8ba737630d8720e1"
> +
> +inherit cmake systemd pkgconfig features_check
> +
> +REQUIRED_DISTRO_FEATURES = "systemd"
> +
> +EXTRA_OECMAKE = "\
> +-DBUILD_DOCS=OFF \
> +"
> +
> +SYSTEMD_SERVICE:${PN} = "ydotoold.service

this is an unterminated string, bitbake would have told you during
parsing. Please test the bits before sending for review.
It saves time.

> \ No newline at end of file
> --
> 2.44.0
>

-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#109217): 
https://lists.openembedded.org/g/openembedded-devel/message/109217
Mute This Topic: https://lists.openembedded.org/mt/104795496/21656
Group Owner: openembedded-devel+ow...@lists.openembedded.org
Unsubscribe: https://lists.openembedded.org/g/openembedded-devel/unsub 
[arch...@mail-archive.com]
-=-=-=-=-=-=-=-=-=-=-=-



[oe] [meta-gnome][PATCH 5/5] gnome-commander: Fix build with taglib 2.0

2024-03-07 Thread Khem Raj
Signed-off-by: Khem Raj 
---
 ...001-Build-fix-needed-with-taglib-2.0.patch | 37 +++
 .../gnome-commander/gnome-commander_1.16.1.bb |  1 +
 2 files changed, 38 insertions(+)
 create mode 100644 
meta-gnome/recipes-gnome/gnome-commander/gnome-commander/0001-Build-fix-needed-with-taglib-2.0.patch

diff --git 
a/meta-gnome/recipes-gnome/gnome-commander/gnome-commander/0001-Build-fix-needed-with-taglib-2.0.patch
 
b/meta-gnome/recipes-gnome/gnome-commander/gnome-commander/0001-Build-fix-needed-with-taglib-2.0.patch
new file mode 100644
index 00..8f6920c2cc
--- /dev/null
+++ 
b/meta-gnome/recipes-gnome/gnome-commander/gnome-commander/0001-Build-fix-needed-with-taglib-2.0.patch
@@ -0,0 +1,37 @@
+From dc3aa0ff5a41114b17816f1f36f6bb5631c6ab5c Mon Sep 17 00:00:00 2001
+From: Khem Raj 
+Date: Thu, 7 Mar 2024 17:17:29 -0800
+Subject: [PATCH] Build fix needed with taglib 2.0
+
+Fixes
+| ../gnome-commander-1.16.1/src/tags/gnome-cmd-tags-taglib.cc:153:29: error: 
no member named 'sampleWidth' in 'TagLib::FLAC::Properties'
+|   153 | if (flacProperties->sampleWidth())
+|   | ~~  ^
+| ../gnome-commander-1.16.1/src/tags/gnome-cmd-tags-taglib.cc:154:67: error: 
no member named 'sampleWidth' in 'TagLib::FLAC::Properties'
+|   154 | cout << "Audio.FLAC.SampleWidth  " << 
flacProperties->sampleWidth()<< endl;
+|   |   ~~  ^
+
+Upstream-Status: Pending
+Signed-off-by: Khem Raj 
+---
+ src/tags/gnome-cmd-tags-taglib.cc | 4 ++--
+ 1 file changed, 2 insertions(+), 2 deletions(-)
+
+diff --git a/src/tags/gnome-cmd-tags-taglib.cc 
b/src/tags/gnome-cmd-tags-taglib.cc
+index 9e65836..573f5eb 100644
+--- a/src/tags/gnome-cmd-tags-taglib.cc
 b/src/tags/gnome-cmd-tags-taglib.cc
+@@ -150,8 +150,8 @@ bool getAudioProperties(GnomeCmdFileMetadata , 
const TagLib::AudioPrope
+ if (flacProperties)
+ {
+ metadata.add(TAG_AUDIO_CODEC,"FLAC");
+-if (flacProperties->sampleWidth())
+-cout << "Audio.FLAC.SampleWidth  " << 
flacProperties->sampleWidth()<< endl;
++if (flacProperties->bitsPerSample())
++cout << "Audio.FLAC.BitsPerSample  " << 
flacProperties->bitsPerSample()<< endl;
+ 
+ return true;
+ }
+-- 
+2.44.0
+
diff --git a/meta-gnome/recipes-gnome/gnome-commander/gnome-commander_1.16.1.bb 
b/meta-gnome/recipes-gnome/gnome-commander/gnome-commander_1.16.1.bb
index 474512daa8..bb36d59e56 100644
--- a/meta-gnome/recipes-gnome/gnome-commander/gnome-commander_1.16.1.bb
+++ b/meta-gnome/recipes-gnome/gnome-commander/gnome-commander_1.16.1.bb
@@ -16,6 +16,7 @@ ANY_OF_DISTRO_FEATURES = "${GTK2DISTROFEATURES}"
 GIR_MESON_ENABLE_FLAG = 'enabled'
 GIR_MESON_DISABLE_FLAG = 'disabled'
 
+SRC_URI += "file://0001-Build-fix-needed-with-taglib-2.0.patch"
 SRC_URI[archive.sha256sum] = 
"3f1d00c4a650fe7902167648286b32c9ca4ef86e31a5d8ccca0139f12d10d0b3"
 
 PACKAGECONFIG ??= "exiv2 taglib libgsf poppler"
-- 
2.44.0


-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#109216): 
https://lists.openembedded.org/g/openembedded-devel/message/109216
Mute This Topic: https://lists.openembedded.org/mt/104801254/21656
Group Owner: openembedded-devel+ow...@lists.openembedded.org
Unsubscribe: https://lists.openembedded.org/g/openembedded-devel/unsub 
[arch...@mail-archive.com]
-=-=-=-=-=-=-=-=-=-=-=-



[oe] [meta-multimedia][PATCH 4/5] libmusicbrainz: Update to tip of trunk

2024-03-07 Thread Khem Raj
This brings the libxml2 2.12 fix

Signed-off-by: Khem Raj 
---
 .../recipes-multimedia/musicbrainz/libmusicbrainz_git.bb| 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git 
a/meta-multimedia/recipes-multimedia/musicbrainz/libmusicbrainz_git.bb 
b/meta-multimedia/recipes-multimedia/musicbrainz/libmusicbrainz_git.bb
index e8b10bc680..2b373d31e5 100644
--- a/meta-multimedia/recipes-multimedia/musicbrainz/libmusicbrainz_git.bb
+++ b/meta-multimedia/recipes-multimedia/musicbrainz/libmusicbrainz_git.bb
@@ -7,7 +7,7 @@ DEPENDS = "expat libxml2 libxml2-native neon neon-native 
libmusicbrainz-native"
 
 PV = "5.1.0+git"
 
-SRCREV = "8be45b12a86bc0e46f2f836c8ac88e1e98d82aee"
+SRCREV = "4655b571a70d73d41467091f59c518517c956198"
 SRC_URI = 
"git://github.com/metabrainz/libmusicbrainz.git;branch=master;protocol=https \

file://0001-http-fetch-Pass-a-non-null-buffer-to-ne_set_request_.patch \
"
-- 
2.44.0


-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#109215): 
https://lists.openembedded.org/g/openembedded-devel/message/109215
Mute This Topic: https://lists.openembedded.org/mt/104801253/21656
Group Owner: openembedded-devel+ow...@lists.openembedded.org
Unsubscribe: https://lists.openembedded.org/g/openembedded-devel/unsub 
[arch...@mail-archive.com]
-=-=-=-=-=-=-=-=-=-=-=-



[oe] [meta-oe][PATCH 3/5] mariadb: Fix build with libxml2 2.12 ABI changes

2024-03-07 Thread Khem Raj
Signed-off-by: Khem Raj 
---
 meta-oe/recipes-dbs/mysql/mariadb.inc |   1 +
 ...EV-33439-Fix-build-with-libxml2-2.12.patch | 170 ++
 2 files changed, 171 insertions(+)
 create mode 100644 
meta-oe/recipes-dbs/mysql/mariadb/0001-MDEV-33439-Fix-build-with-libxml2-2.12.patch

diff --git a/meta-oe/recipes-dbs/mysql/mariadb.inc 
b/meta-oe/recipes-dbs/mysql/mariadb.inc
index 9e6d490cbe..33da32fb28 100644
--- a/meta-oe/recipes-dbs/mysql/mariadb.inc
+++ b/meta-oe/recipes-dbs/mysql/mariadb.inc
@@ -24,6 +24,7 @@ SRC_URI = 
"https://archive.mariadb.org/${BP}/source/${BP}.tar.gz \
file://lfs64.patch \
file://0001-Add-missing-includes-cstdint-and-cstdio.patch \
file://0001-Remove-the-compile_time_assert-lines.patch \
+   file://0001-MDEV-33439-Fix-build-with-libxml2-2.12.patch \
   "
 SRC_URI:append:libc-musl = " file://ppc-remove-glibc-dep.patch"
 SRC_URI[sha256sum] = 
"5239a245ed90517e96396605cd01ccd8f73cd7442d1b3076b6ffe258110e5157"
diff --git 
a/meta-oe/recipes-dbs/mysql/mariadb/0001-MDEV-33439-Fix-build-with-libxml2-2.12.patch
 
b/meta-oe/recipes-dbs/mysql/mariadb/0001-MDEV-33439-Fix-build-with-libxml2-2.12.patch
new file mode 100644
index 00..3e42535dad
--- /dev/null
+++ 
b/meta-oe/recipes-dbs/mysql/mariadb/0001-MDEV-33439-Fix-build-with-libxml2-2.12.patch
@@ -0,0 +1,170 @@
+From dae52f5916ef59434c93f0b716270f59dd0c3a94 Mon Sep 17 00:00:00 2001
+From: Jan Tojnar 
+Date: Sun, 7 Jan 2024 10:19:54 +0100
+Subject: [PATCH] MDEV-33439 Fix build with libxml2 2.12
+MIME-Version: 1.0
+Content-Type: text/plain; charset=UTF-8
+Content-Transfer-Encoding: 8bit
+
+libxml2 2.12.0 made `xmlGetLastError()` return `const` pointer:
+
+https://gitlab.gnome.org/GNOME/libxml2/-/commit/61034116d0a3c8b295c6137956adc3ae55720711
+
+Clang 16 does not like this:
+
+error: assigning to 'xmlErrorPtr' (aka '_xmlError *') from 'const xmlError 
*' (aka 'const _xmlError *') discards qualifiers
+error: cannot initialize a variable of type 'xmlErrorPtr' (aka '_xmlError 
*') with an rvalue of type 'const xmlError *' (aka 'const _xmlError *')
+
+Let’s update the variables to `const`.
+For older versions, it will be automatically converted.
+
+But then `xmlResetError(xmlError*)` will not like the `const` pointer:
+
+error: no matching function for call to 'xmlResetError'
+note: candidate function not viable: 1st argument ('const xmlError *' (aka 
'const _xmlError *')) would lose const qualifier
+
+Let’s replace it with `xmlResetLastError()`.
+
+ALso remove `LIBXMLDOC::Xerr` protected member property.
+It was introduced in 65b0e5455b547a3d574fa77b34cce23ae3bea0a0
+along with the `xmlResetError` calls.
+It does not appear to be used for anything.
+
+Upstream-Status: Backport [https://github.com/MariaDB/server/pull/2983]
+Signed-off-by: Khem Raj 
+---
+ storage/connect/libdoc.cpp | 39 +++---
+ 1 file changed, 19 insertions(+), 20 deletions(-)
+
+diff --git a/storage/connect/libdoc.cpp b/storage/connect/libdoc.cpp
+index 67f22ce2..ab588dd4 100644
+--- a/storage/connect/libdoc.cpp
 b/storage/connect/libdoc.cpp
+@@ -93,7 +93,6 @@ class LIBXMLDOC : public XMLDOCUMENT {
+   xmlXPathContextPtr Ctxp;
+   xmlXPathObjectPtr  Xop;
+   xmlXPathObjectPtr  NlXop;
+-  xmlErrorPtrXerr;
+   char  *Buf;  // Temporary
+   bool   Nofreelist;
+ }; // end of class LIBXMLDOC
+@@ -327,7 +326,6 @@ LIBXMLDOC::LIBXMLDOC(char *nsl, char *nsdf, char *enc, 
PFBLOCK fp)
+   Ctxp = NULL;
+   Xop = NULL;
+   NlXop = NULL;
+-  Xerr = NULL;
+   Buf = NULL;
+   Nofreelist = false;
+   } // end of LIBXMLDOC constructor
+@@ -365,8 +363,8 @@ bool LIBXMLDOC::ParseFile(PGLOBAL g, char *fn)
+   Encoding = (char*)Docp->encoding;
+ 
+ return false;
+-  } else if ((Xerr = xmlGetLastError()))
+-xmlResetError(Xerr);
++  } else if (xmlGetLastError())
++xmlResetLastError();
+ 
+   return true;
+   } // end of ParseFile
+@@ -505,9 +503,9 @@ int LIBXMLDOC::DumpDoc(PGLOBAL g, char *ofn)
+ #if 1
+   // This function does not crash (
+   if (xmlSaveFormatFileEnc((const char *)ofn, Docp, Encoding, 0) < 0) {
+-xmlErrorPtr err = xmlGetLastError();
++const xmlError *err = xmlGetLastError();
+ strcpy(g->Message, (err) ? err->message : "Error saving XML doc");
+-xmlResetError(Xerr);
++xmlResetLastError();
+ rc = -1;
+ } // endif Save
+ //  rc = xmlDocDump(of, Docp);
+@@ -546,8 +544,8 @@ void LIBXMLDOC::CloseDoc(PGLOBAL g, PFBLOCK xp)
+ if (Nlist) {
+   xmlXPathFreeNodeSet(Nlist);
+ 
+-  if ((Xerr = xmlGetLastError()))
+-xmlResetError(Xerr);
++  if (xmlGetLastError())
++xmlResetLastError();
+ 
+   Nlist = NULL;
+   } // endif Nlist
+@@ -555,8 +553,8 @@ void LIBXMLDOC::CloseDoc(PGLOBAL g, PFBLOCK xp)
+ if (Xop) {
+   xmlXPathFreeObject(Xop);
+ 
+-  if ((Xerr = xmlGetLastError()))
+-xmlResetError(Xerr);
++  if 

[oe] [meta-oe][PATCH 2/5] xmlstarlet: Fix build with API breakage in libxml2 2.12

2024-03-07 Thread Khem Raj
Fixes
|   300 | xmlSetStructuredErrorFunc(, reportError);
|   |   ^~~
| 
/mnt/b/yoe/master/build/tmp/work/riscv64-yoe-linux/xmlstarlet/1.6.1/recipe-sysroot/usr/lib/../include/libxml2/libxml/xmlerror.h:898:29:
 note: passing argument to parameter 'handler' here
|   898 |  xmlStructuredErrorFunc handler);
|   | ^

Signed-off-by: Khem Raj 
---
 .../0001-Make-xmlError-struct-constant.patch  | 45 +++
 .../xmlstarlet/xmlstarlet_1.6.1.bb|  1 +
 2 files changed, 46 insertions(+)
 create mode 100644 
meta-oe/recipes-support/xmlstarlet/files/0001-Make-xmlError-struct-constant.patch

diff --git 
a/meta-oe/recipes-support/xmlstarlet/files/0001-Make-xmlError-struct-constant.patch
 
b/meta-oe/recipes-support/xmlstarlet/files/0001-Make-xmlError-struct-constant.patch
new file mode 100644
index 00..a9d98db69c
--- /dev/null
+++ 
b/meta-oe/recipes-support/xmlstarlet/files/0001-Make-xmlError-struct-constant.patch
@@ -0,0 +1,45 @@
+From f7a5ebc3a673b246a64c9a664df304c1520a3951 Mon Sep 17 00:00:00 2001
+From: Khem Raj 
+Date: Thu, 7 Mar 2024 12:35:17 -0800
+Subject: [PATCH] Make xmlError struct constant
+
+In libxml2 commit v2.12.0~14 the API changed so that
+xmlGetLastError() returns pointer to a constant xmlError struct.
+Reflect this change in our code.
+
+Upstream-Status: Pending
+Signed-off-by: Khem Raj 
+---
+ src/xml.c | 2 +-
+ src/xmlstar.h | 2 +-
+ 2 files changed, 2 insertions(+), 2 deletions(-)
+
+diff --git a/src/xml.c b/src/xml.c
+index cf47cc2..e6f19c1 100644
+--- a/src/xml.c
 b/src/xml.c
+@@ -104,7 +104,7 @@ void reportGenericError(void* ctx, const char * msg, ...) {
+ /* by default all errors are reported */
+ static ErrorInfo errorInfo = { NULL, NULL, VERBOSE, CONTINUE };
+ 
+-void reportError(void *ptr, xmlErrorPtr error)
++void reportError(void *ptr, const xmlError *error)
+ {
+ ErrorInfo *errorInfo = (ErrorInfo*) ptr;
+ assert(errorInfo);
+diff --git a/src/xmlstar.h b/src/xmlstar.h
+index 3e1eed3..7e41ac4 100644
+--- a/src/xmlstar.h
 b/src/xmlstar.h
+@@ -32,7 +32,7 @@ typedef struct _errorInfo {
+ ErrorStop stop;
+ } ErrorInfo;
+ 
+-void reportError(void *ptr, xmlErrorPtr error);
++void reportError(void *ptr, const xmlError* error);
+ void suppressErrors(void);
+ 
+ typedef struct _gOptions {
+-- 
+2.44.0
+
diff --git a/meta-oe/recipes-support/xmlstarlet/xmlstarlet_1.6.1.bb 
b/meta-oe/recipes-support/xmlstarlet/xmlstarlet_1.6.1.bb
index 930fbdd6c7..61eeaaa095 100644
--- a/meta-oe/recipes-support/xmlstarlet/xmlstarlet_1.6.1.bb
+++ b/meta-oe/recipes-support/xmlstarlet/xmlstarlet_1.6.1.bb
@@ -15,6 +15,7 @@ DEPENDS = "libxml2 libxslt"
 SRC_URI = "${SOURCEFORGE_MIRROR}/xmlstar/${BP}.tar.gz \
file://configure.ac.patch \
file://0001-usage2c.awk-fix-wrong-basename-regexp.patch \
+   file://0001-Make-xmlError-struct-constant.patch \
file://0001-Fix-hash_key_put-signature.patch"
 SRC_URI[sha256sum] = 
"15d838c4f3375332fd95554619179b69e4ec91418a3a5296e7c631b7ed19e7ca"
 
-- 
2.44.0


-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#109213): 
https://lists.openembedded.org/g/openembedded-devel/message/109213
Mute This Topic: https://lists.openembedded.org/mt/104801251/21656
Group Owner: openembedded-devel+ow...@lists.openembedded.org
Unsubscribe: https://lists.openembedded.org/g/openembedded-devel/unsub 
[arch...@mail-archive.com]
-=-=-=-=-=-=-=-=-=-=-=-



[oe] [meta-oe][PATCH 1/5] layer.conf: Update for the scarthgap release series

2024-03-07 Thread Khem Raj
Signed-off-by: Khem Raj 
---
 meta-filesystems/conf/layer.conf | 2 +-
 meta-gnome/conf/layer.conf   | 2 +-
 meta-initramfs/conf/layer.conf   | 2 +-
 meta-multimedia/conf/layer.conf  | 2 +-
 meta-networking/conf/layer.conf  | 2 +-
 meta-oe/conf/layer.conf  | 2 +-
 meta-perl/conf/layer.conf| 2 +-
 meta-python/conf/layer.conf  | 2 +-
 meta-webserver/conf/layer.conf   | 2 +-
 meta-xfce/conf/layer.conf| 2 +-
 10 files changed, 10 insertions(+), 10 deletions(-)

diff --git a/meta-filesystems/conf/layer.conf b/meta-filesystems/conf/layer.conf
index 4f13bd911c..c2263c899b 100644
--- a/meta-filesystems/conf/layer.conf
+++ b/meta-filesystems/conf/layer.conf
@@ -15,4 +15,4 @@ LAYERVERSION_filesystems-layer = "1"
 
 LAYERDEPENDS_filesystems-layer = "core openembedded-layer networking-layer"
 
-LAYERSERIES_COMPAT_filesystems-layer = "nanbield"
+LAYERSERIES_COMPAT_filesystems-layer = "scarthgap"
diff --git a/meta-gnome/conf/layer.conf b/meta-gnome/conf/layer.conf
index 1674283d51..75764e64c7 100644
--- a/meta-gnome/conf/layer.conf
+++ b/meta-gnome/conf/layer.conf
@@ -17,7 +17,7 @@ LAYERVERSION_gnome-layer = "1"
 
 LAYERDEPENDS_gnome-layer = "core openembedded-layer networking-layer 
meta-python"
 
-LAYERSERIES_COMPAT_gnome-layer = "nanbield"
+LAYERSERIES_COMPAT_gnome-layer = "scarthgap"
 
 SIGGEN_EXCLUDE_SAFE_RECIPE_DEPS += "\
   faenza-icon-theme->gdk-pixbuf \
diff --git a/meta-initramfs/conf/layer.conf b/meta-initramfs/conf/layer.conf
index ef12daf53f..25023cfc64 100644
--- a/meta-initramfs/conf/layer.conf
+++ b/meta-initramfs/conf/layer.conf
@@ -16,7 +16,7 @@ BBFILE_PATTERN_meta-initramfs := "^${LAYERDIR}/"
 BBFILE_PRIORITY_meta-initramfs = "5"
 LAYERDEPENDS_meta-initramfs = "core"
 
-LAYERSERIES_COMPAT_meta-initramfs = "nanbield"
+LAYERSERIES_COMPAT_meta-initramfs = "scarthgap"
 
 SIGGEN_EXCLUDE_SAFE_RECIPE_DEPS += " \
   dracut->virtual/kernel \
diff --git a/meta-multimedia/conf/layer.conf b/meta-multimedia/conf/layer.conf
index 99f4987179..82e6f3629f 100644
--- a/meta-multimedia/conf/layer.conf
+++ b/meta-multimedia/conf/layer.conf
@@ -31,4 +31,4 @@ LAYERVERSION_multimedia-layer = "1"
 
 LAYERDEPENDS_multimedia-layer = "core openembedded-layer meta-python"
 
-LAYERSERIES_COMPAT_multimedia-layer = "nanbield"
+LAYERSERIES_COMPAT_multimedia-layer = "scarthgap"
diff --git a/meta-networking/conf/layer.conf b/meta-networking/conf/layer.conf
index a9088eece4..ac5d15a0c0 100644
--- a/meta-networking/conf/layer.conf
+++ b/meta-networking/conf/layer.conf
@@ -15,7 +15,7 @@ LAYERVERSION_networking-layer = "1"
 
 LAYERDEPENDS_networking-layer = "core meta-python openembedded-layer"
 
-LAYERSERIES_COMPAT_networking-layer = "nanbield"
+LAYERSERIES_COMPAT_networking-layer = "scarthgap"
 
 LICENSE_PATH += "${LAYERDIR}/licenses"
 
diff --git a/meta-oe/conf/layer.conf b/meta-oe/conf/layer.conf
index 732a7e5d01..4d9acb8cc8 100644
--- a/meta-oe/conf/layer.conf
+++ b/meta-oe/conf/layer.conf
@@ -44,7 +44,7 @@ LAYERVERSION_openembedded-layer = "1"
 
 LAYERDEPENDS_openembedded-layer = "core"
 
-LAYERSERIES_COMPAT_openembedded-layer = "nanbield"
+LAYERSERIES_COMPAT_openembedded-layer = "scarthgap"
 
 LICENSE_PATH += "${LAYERDIR}/licenses"
 
diff --git a/meta-perl/conf/layer.conf b/meta-perl/conf/layer.conf
index 1b130b9e60..20a6a4239f 100644
--- a/meta-perl/conf/layer.conf
+++ b/meta-perl/conf/layer.conf
@@ -15,4 +15,4 @@ LAYERVERSION_perl-layer = "1"
 
 LAYERDEPENDS_perl-layer = "core openembedded-layer"
 
-LAYERSERIES_COMPAT_perl-layer = "nanbield"
+LAYERSERIES_COMPAT_perl-layer = "scarthgap"
diff --git a/meta-python/conf/layer.conf b/meta-python/conf/layer.conf
index add78013b9..f48b28b958 100644
--- a/meta-python/conf/layer.conf
+++ b/meta-python/conf/layer.conf
@@ -14,6 +14,6 @@ LAYERVERSION_meta-python = "1"
 
 LAYERDEPENDS_meta-python = "core (>= 12) openembedded-layer"
 
-LAYERSERIES_COMPAT_meta-python = "nanbield"
+LAYERSERIES_COMPAT_meta-python = "scarthgap"
 
 LICENSE_PATH += "${LAYERDIR}/licenses"
diff --git a/meta-webserver/conf/layer.conf b/meta-webserver/conf/layer.conf
index 066165b5d4..c0896f1a2d 100644
--- a/meta-webserver/conf/layer.conf
+++ b/meta-webserver/conf/layer.conf
@@ -17,7 +17,7 @@ LAYERVERSION_webserver = "1"
 
 LAYERDEPENDS_webserver = "core openembedded-layer"
 
-LAYERSERIES_COMPAT_webserver = "nanbield"
+LAYERSERIES_COMPAT_webserver = "scarthgap"
 
 LICENSE_PATH += "${LAYERDIR}/licenses"
 
diff --git a/meta-xfce/conf/layer.conf b/meta-xfce/conf/layer.conf
index aeaf9617ee..944bd57d1f 100644
--- a/meta-xfce/conf/layer.conf
+++ b/meta-xfce/conf/layer.conf
@@ -19,7 +19,7 @@ LAYERDEPENDS_xfce-layer += "multimedia-layer"
 LAYERDEPENDS_xfce-layer += "meta-python"
 LAYERDEPENDS_xfce-layer += "networking-layer"
 
-LAYERSERIES_COMPAT_xfce-layer = "nanbield"
+LAYERSERIES_COMPAT_xfce-layer = "scarthgap"
 
 SIGGEN_EXCLUDE_SAFE_RECIPE_DEPS += "\
   openzone->gdk-pixbuf \
-- 
2.44.0


-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#109212): 

[oe] [meta-oe] [PATCH V2] abseil-cpp: upgrade 20230802.1 -> 20240116.1

2024-03-07 Thread wangmy via lists.openembedded.org
From: Wang Mingyu 

0004-Avoid-using-both-Win32Waiter-and-PthreadWaiter-on-Mi.patch
revmoed since it's included in 20240116.1.

Changelog:
===
-Added absl::NoDestructor to simplify defining static types that do not need
 to be destructed upon program exit.
-Added configurable verbose logging (also known as VLOG).
-Added absl::Overload(), which returns a functor that provides overloads based
 on the functors passed to it.
-Bzlmod is now officially supported (previously it was supported by the 
community).

Signed-off-by: Wang Mingyu 
---
 ...-Win32Waiter-and-PthreadWaiter-on-Mi.patch | 62 ---
 ...20230802.1.bb => abseil-cpp_20240116.1.bb} | 37 +++
 2 files changed, 9 insertions(+), 90 deletions(-)
 delete mode 100644 
meta-oe/recipes-devtools/abseil-cpp/abseil-cpp/0004-Avoid-using-both-Win32Waiter-and-PthreadWaiter-on-Mi.patch
 rename meta-oe/recipes-devtools/abseil-cpp/{abseil-cpp_20230802.1.bb => 
abseil-cpp_20240116.1.bb} (59%)

diff --git 
a/meta-oe/recipes-devtools/abseil-cpp/abseil-cpp/0004-Avoid-using-both-Win32Waiter-and-PthreadWaiter-on-Mi.patch
 
b/meta-oe/recipes-devtools/abseil-cpp/abseil-cpp/0004-Avoid-using-both-Win32Waiter-and-PthreadWaiter-on-Mi.patch
deleted file mode 100644
index db559bb16..0
--- 
a/meta-oe/recipes-devtools/abseil-cpp/abseil-cpp/0004-Avoid-using-both-Win32Waiter-and-PthreadWaiter-on-Mi.patch
+++ /dev/null
@@ -1,62 +0,0 @@
-From cb7665f39e23e95e2466390c60ee5a410780a3ed Mon Sep 17 00:00:00 2001
-From: Derek Mauro 
-Date: Wed, 8 Nov 2023 09:55:31 -0800
-Subject: [PATCH] Avoid using both Win32Waiter and PthreadWaiter on MinGW, and
- use StdcppWaiter instead.
-
-There are various flavors of MinGW, some of which support pthread,
-and some of which support Win32. Instead of figuring out which
-platform is being used, just use the generic implementation.
-
-PiperOrigin-RevId: 580565507
-Change-Id: Ia85fd7496f1e6ebdeadb95202f0039e844826118
-Upstream-Status: Backport

- absl/synchronization/internal/pthread_waiter.h | 4 ++--
- absl/synchronization/internal/win32_waiter.h   | 6 --
- 2 files changed, 6 insertions(+), 4 deletions(-)
-
-diff --git a/absl/synchronization/internal/pthread_waiter.h 
b/absl/synchronization/internal/pthread_waiter.h
-index 206aefa4..23db76ad 100644
 a/absl/synchronization/internal/pthread_waiter.h
-+++ b/absl/synchronization/internal/pthread_waiter.h
-@@ -16,7 +16,7 @@
- #ifndef ABSL_SYNCHRONIZATION_INTERNAL_PTHREAD_WAITER_H_
- #define ABSL_SYNCHRONIZATION_INTERNAL_PTHREAD_WAITER_H_
- 
--#ifndef _WIN32
-+#if !defined(_WIN32) && !defined(__MINGW32__)
- #include 
- 
- #include "absl/base/config.h"
-@@ -55,6 +55,6 @@ class PthreadWaiter : public WaiterCrtp {
- ABSL_NAMESPACE_END
- }  // namespace absl
- 
--#endif  // ndef _WIN32
-+#endif  // !defined(_WIN32) && !defined(__MINGW32__)
- 
- #endif  // ABSL_SYNCHRONIZATION_INTERNAL_PTHREAD_WAITER_H_
-diff --git a/absl/synchronization/internal/win32_waiter.h 
b/absl/synchronization/internal/win32_waiter.h
-index 87eb617c..fdab264e 100644
 a/absl/synchronization/internal/win32_waiter.h
-+++ b/absl/synchronization/internal/win32_waiter.h
-@@ -20,7 +20,8 @@
- #include 
- #endif
- 
--#if defined(_WIN32) && _WIN32_WINNT >= _WIN32_WINNT_VISTA
-+#if defined(_WIN32) && !defined(__MINGW32__) && \
-+_WIN32_WINNT >= _WIN32_WINNT_VISTA
- 
- #include "absl/base/config.h"
- #include "absl/synchronization/internal/kernel_timeout.h"
-@@ -65,6 +66,7 @@ class Win32Waiter : public WaiterCrtp {
- ABSL_NAMESPACE_END
- }  // namespace absl
- 
--#endif  // defined(_WIN32) && _WIN32_WINNT >= _WIN32_WINNT_VISTA
-+#endif  // defined(_WIN32) && !defined(__MINGW32__) &&
-+// _WIN32_WINNT >= _WIN32_WINNT_VISTA
- 
- #endif  // ABSL_SYNCHRONIZATION_INTERNAL_WIN32_WAITER_H_
diff --git a/meta-oe/recipes-devtools/abseil-cpp/abseil-cpp_20230802.1.bb 
b/meta-oe/recipes-devtools/abseil-cpp/abseil-cpp_20240116.1.bb
similarity index 59%
rename from meta-oe/recipes-devtools/abseil-cpp/abseil-cpp_20230802.1.bb
rename to meta-oe/recipes-devtools/abseil-cpp/abseil-cpp_20240116.1.bb
index 17db7b2e4..82b2d20e0 100644
--- a/meta-oe/recipes-devtools/abseil-cpp/abseil-cpp_20230802.1.bb
+++ b/meta-oe/recipes-devtools/abseil-cpp/abseil-cpp_20240116.1.bb
@@ -1,24 +1,26 @@
 SUMMARY = "Abseil is a cpp library like STL"
 DESCRIPTION = "Abseil provides pieces missing from the C++ standard. Contains \
 additional useful libraries like algorithm, container, debugging, hash, 
memory, \
-meta, numeric, strings, synchronization, time, types and utility."
+meta, numeric, strings, synchronization, time, types and utility"
 HOMEPAGE = "https://abseil.io/;
 SECTION = "libs"
 LICENSE = "Apache-2.0"
 LIC_FILES_CHKSUM = "file://LICENSE;md5=df52c6edb7adc22e533b2bacc3bd3915"
 
-SRCREV = "fb3621f4f897824c0dbe0615fa94543df6192f30"
-BRANCH = "lts_2023_08_02"
+SRCREV = "2f9e432cce407ce0ae5067669f33a77d42ac"
+BRANCH = "lts_2024_01_16"
 SRC_URI = "git://github.com/abseil/abseil-cpp;branch=${BRANCH};protocol=https \
   

Re: [oe] [PATCH v4] ydotool: Add new package

2024-03-07 Thread Ross Burton
On 7 Mar 2024, at 20:07, André Paiusco via lists.openembedded.org 
 wrote:
> +DEPENDS = "systemd"

I can’t see where the in source this is a hard requirement?  It ships a systemd 
service file, but it can also ship an openrc service file.

Ross


-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#109210): 
https://lists.openembedded.org/g/openembedded-devel/message/109210
Mute This Topic: https://lists.openembedded.org/mt/104795496/21656
Group Owner: openembedded-devel+ow...@lists.openembedded.org
Unsubscribe: https://lists.openembedded.org/g/openembedded-devel/unsub 
[arch...@mail-archive.com]
-=-=-=-=-=-=-=-=-=-=-=-



[oe] [PATCH v4] ydotool: Add new package

2024-03-07 Thread André Paiusco
CC: Khem Raj 
Signed-off-by: Andre Paiusco 
---
 .../packagegroups/packagegroup-meta-oe.bb |  1 +
 .../recipes-graphics/ydotool/ydotool_git.bb   | 20 +++
 2 files changed, 21 insertions(+)
 create mode 100644 meta-oe/recipes-graphics/ydotool/ydotool_git.bb

diff --git a/meta-oe/recipes-core/packagegroups/packagegroup-meta-oe.bb 
b/meta-oe/recipes-core/packagegroups/packagegroup-meta-oe.bb
index 6e2012dae..16d919cb6 100644
--- a/meta-oe/recipes-core/packagegroups/packagegroup-meta-oe.bb
+++ b/meta-oe/recipes-core/packagegroups/packagegroup-meta-oe.bb
@@ -611,6 +611,7 @@ RDEPENDS:packagegroup-meta-oe-graphics ="\
 xcursorgen \
 ${@bb.utils.contains("DISTRO_FEATURES", "x11 pam", "xscreensaver", "", d)} 
\
 yad \
+${@bb.utils.contains("DISTRO_FEATURES", "systemd", "ydotool", "", d)} \
 parallel-deqp-runner \
 ${@bb.utils.contains("DISTRO_FEATURES", "opengl", "opengl-es-cts", "", d)} 
\
 ${@bb.utils.contains("DISTRO_FEATURES", "opengl vulkan", "vulkan-cts", "", 
d)} \
diff --git a/meta-oe/recipes-graphics/ydotool/ydotool_git.bb 
b/meta-oe/recipes-graphics/ydotool/ydotool_git.bb
new file mode 100644
index 0..2525ea70b
--- /dev/null
+++ b/meta-oe/recipes-graphics/ydotool/ydotool_git.bb
@@ -0,0 +1,20 @@
+SUMMARY = "Generic Linux command-line automation tool (no X!)"
+DESCRIPTION = "ydotool is not limited to Wayland. You can use it on anything 
as long as it accepts keyboard/mouse/whatever input."
+LICENSE = "AGPL-3.0-or-later"
+LIC_FILES_CHKSUM = "file://LICENSE;md5=eb1e647870add0502f8f010b19de32af"
+
+DEPENDS = "systemd"
+PV = "1.0.4+git"
+
+SRC_URI = "git://github.com/ReimuNotMoe/ydotool;protocol=https;branch=master"
+SRCREV = "c07ae72be46c40912023b91b8ba737630d8720e1"
+
+inherit cmake systemd pkgconfig features_check
+
+REQUIRED_DISTRO_FEATURES = "systemd"
+
+EXTRA_OECMAKE = "\
+-DBUILD_DOCS=OFF \
+"
+
+SYSTEMD_SERVICE:${PN} = "ydotoold.service
\ No newline at end of file
-- 
2.44.0


-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#109209): 
https://lists.openembedded.org/g/openembedded-devel/message/109209
Mute This Topic: https://lists.openembedded.org/mt/104795496/21656
Group Owner: openembedded-devel+ow...@lists.openembedded.org
Unsubscribe: https://lists.openembedded.org/g/openembedded-devel/unsub 
[arch...@mail-archive.com]
-=-=-=-=-=-=-=-=-=-=-=-



Re: [oe] [PATCH v3] ydotool: Add new package

2024-03-07 Thread Khem Raj
On Thu, Mar 7, 2024 at 11:20 AM Andre Paiusco  wrote:
>
> CC: Khem Raj 
> Signed-off-by: Andre Paiusco 
> ---
>  .../packagegroups/packagegroup-meta-oe.bb |  1 +
>  .../recipes-graphics/ydotool/ydotool_git.bb   | 20 +++
>  2 files changed, 21 insertions(+)
>  create mode 100644 meta-oe/recipes-graphics/ydotool/ydotool_git.bb
>
> diff --git a/meta-oe/recipes-core/packagegroups/packagegroup-meta-oe.bb 
> b/meta-oe/recipes-core/packagegroups/packagegroup-meta-oe.bb
> index 6e2012dae..dd033208b 100644
> --- a/meta-oe/recipes-core/packagegroups/packagegroup-meta-oe.bb
> +++ b/meta-oe/recipes-core/packagegroups/packagegroup-meta-oe.bb
> @@ -611,6 +611,7 @@ RDEPENDS:packagegroup-meta-oe-graphics ="\
>  xcursorgen \
>  ${@bb.utils.contains("DISTRO_FEATURES", "x11 pam", "xscreensaver", "", 
> d)} \
>  yad \
> +ydotool \

this should also be covered by DISTRO_FEATURE check

>  parallel-deqp-runner \
>  ${@bb.utils.contains("DISTRO_FEATURES", "opengl", "opengl-es-cts", "", 
> d)} \
>  ${@bb.utils.contains("DISTRO_FEATURES", "opengl vulkan", "vulkan-cts", 
> "", d)} \
> diff --git a/meta-oe/recipes-graphics/ydotool/ydotool_git.bb 
> b/meta-oe/recipes-graphics/ydotool/ydotool_git.bb
> new file mode 100644
> index 0..2525ea70b
> --- /dev/null
> +++ b/meta-oe/recipes-graphics/ydotool/ydotool_git.bb
> @@ -0,0 +1,20 @@
> +SUMMARY = "Generic Linux command-line automation tool (no X!)"
> +DESCRIPTION = "ydotool is not limited to Wayland. You can use it on anything 
> as long as it accepts keyboard/mouse/whatever input."
> +LICENSE = "AGPL-3.0-or-later"
> +LIC_FILES_CHKSUM = "file://LICENSE;md5=eb1e647870add0502f8f010b19de32af"
> +
> +DEPENDS = "systemd"
> +PV = "1.0.4+git"
> +
> +SRC_URI = "git://github.com/ReimuNotMoe/ydotool;protocol=https;branch=master"
> +SRCREV = "c07ae72be46c40912023b91b8ba737630d8720e1"
> +
> +inherit cmake systemd pkgconfig features_check
> +
> +REQUIRED_DISTRO_FEATURES = "systemd"
> +
> +EXTRA_OECMAKE = "\
> +-DBUILD_DOCS=OFF \
> +"
> +
> +SYSTEMD_SERVICE:${PN} = "ydotoold.service
> \ No newline at end of file
> --
> 2.44.0
>

-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#109207): 
https://lists.openembedded.org/g/openembedded-devel/message/109207
Mute This Topic: https://lists.openembedded.org/mt/104794570/21656
Group Owner: openembedded-devel+ow...@lists.openembedded.org
Unsubscribe: https://lists.openembedded.org/g/openembedded-devel/unsub 
[arch...@mail-archive.com]
-=-=-=-=-=-=-=-=-=-=-=-



[oe] [meta-oe][PATCH] libosinfo: Fix build with libxml2 v2.12

2024-03-07 Thread Khem Raj
Signed-off-by: Khem Raj 
Cc: Alexander Kanavin 
---
 ...rror-struct-constant-in-propagate_li.patch | 32 +++
 .../libosinfo/libosinfo_1.11.0.bb |  1 +
 2 files changed, 33 insertions(+)
 create mode 100644 
meta-oe/recipes-support/libosinfo/libosinfo/0001-osinfo-Make-xmlError-struct-constant-in-propagate_li.patch

diff --git 
a/meta-oe/recipes-support/libosinfo/libosinfo/0001-osinfo-Make-xmlError-struct-constant-in-propagate_li.patch
 
b/meta-oe/recipes-support/libosinfo/libosinfo/0001-osinfo-Make-xmlError-struct-constant-in-propagate_li.patch
new file mode 100644
index 00..467c6b4baf
--- /dev/null
+++ 
b/meta-oe/recipes-support/libosinfo/libosinfo/0001-osinfo-Make-xmlError-struct-constant-in-propagate_li.patch
@@ -0,0 +1,32 @@
+From 5bbdd06503456784c5ffa22409e8bab50470d673 Mon Sep 17 00:00:00 2001
+From: Michal Privoznik 
+Date: Mon, 27 Nov 2023 15:11:45 +0100
+Subject: [PATCH] osinfo: Make xmlError struct constant in
+ propagate_libxml_error()
+
+In libxml2 commit v2.12.0~14 the API changed so that
+xmlGetLastError() returns pointer to a constant xmlError struct.
+Reflect this change in our code.
+
+Upstream-Status: Backport 
[https://gitlab.com/libosinfo/libosinfo/-/merge_requests/155]
+Signed-off-by: Michal Privoznik 
+---
+ osinfo/osinfo_install_script.c | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+diff --git a/osinfo/osinfo_install_script.c b/osinfo/osinfo_install_script.c
+index 5800f37..303245a 100644
+--- a/osinfo/osinfo_install_script.c
 b/osinfo/osinfo_install_script.c
+@@ -769,7 +769,7 @@ static void propagate_libxml_error(GError **error, const 
char *format, ...) G_GN
+ 
+ static void propagate_libxml_error(GError **error, const char *format, ...)
+ {
+-xmlErrorPtr err = xmlGetLastError();
++const xmlError *err = xmlGetLastError();
+ char *prefix;
+ va_list ap;
+ 
+-- 
+2.44.0
+
diff --git a/meta-oe/recipes-support/libosinfo/libosinfo_1.11.0.bb 
b/meta-oe/recipes-support/libosinfo/libosinfo_1.11.0.bb
index 68d917ffe9..8ef7ac3df0 100644
--- a/meta-oe/recipes-support/libosinfo/libosinfo_1.11.0.bb
+++ b/meta-oe/recipes-support/libosinfo/libosinfo_1.11.0.bb
@@ -8,6 +8,7 @@ LIC_FILES_CHKSUM = 
"file://COPYING.LIB;md5=4fbd65380cdd255951079008b364516c"
 SRC_URI = " \
git://gitlab.com/libosinfo/libosinfo.git;branch=main;protocol=https \
file://0001-meson.build-allow-crosscompiling-gir.patch \
+   file://0001-osinfo-Make-xmlError-struct-constant-in-propagate_li.patch \
 "
 
 SRCREV = "ca9dd5b810dc04ea38048ae9be491654c8596ef9"
-- 
2.44.0


-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#109206): 
https://lists.openembedded.org/g/openembedded-devel/message/109206
Mute This Topic: https://lists.openembedded.org/mt/104794674/21656
Group Owner: openembedded-devel+ow...@lists.openembedded.org
Unsubscribe: https://lists.openembedded.org/g/openembedded-devel/unsub 
[arch...@mail-archive.com]
-=-=-=-=-=-=-=-=-=-=-=-



[oe] [PATCH v3] ydotool: Add new package

2024-03-07 Thread André Belmudes Paiusco
CC: Khem Raj 
Signed-off-by: Andre Paiusco 
---
 .../packagegroups/packagegroup-meta-oe.bb |  1 +
 .../recipes-graphics/ydotool/ydotool_git.bb   | 20 +++
 2 files changed, 21 insertions(+)
 create mode 100644 meta-oe/recipes-graphics/ydotool/ydotool_git.bb

diff --git a/meta-oe/recipes-core/packagegroups/packagegroup-meta-oe.bb 
b/meta-oe/recipes-core/packagegroups/packagegroup-meta-oe.bb
index 6e2012dae..dd033208b 100644
--- a/meta-oe/recipes-core/packagegroups/packagegroup-meta-oe.bb
+++ b/meta-oe/recipes-core/packagegroups/packagegroup-meta-oe.bb
@@ -611,6 +611,7 @@ RDEPENDS:packagegroup-meta-oe-graphics ="\
 xcursorgen \
 ${@bb.utils.contains("DISTRO_FEATURES", "x11 pam", "xscreensaver", "", d)} 
\
 yad \
+ydotool \
 parallel-deqp-runner \
 ${@bb.utils.contains("DISTRO_FEATURES", "opengl", "opengl-es-cts", "", d)} 
\
 ${@bb.utils.contains("DISTRO_FEATURES", "opengl vulkan", "vulkan-cts", "", 
d)} \
diff --git a/meta-oe/recipes-graphics/ydotool/ydotool_git.bb 
b/meta-oe/recipes-graphics/ydotool/ydotool_git.bb
new file mode 100644
index 0..2525ea70b
--- /dev/null
+++ b/meta-oe/recipes-graphics/ydotool/ydotool_git.bb
@@ -0,0 +1,20 @@
+SUMMARY = "Generic Linux command-line automation tool (no X!)"
+DESCRIPTION = "ydotool is not limited to Wayland. You can use it on anything 
as long as it accepts keyboard/mouse/whatever input."
+LICENSE = "AGPL-3.0-or-later"
+LIC_FILES_CHKSUM = "file://LICENSE;md5=eb1e647870add0502f8f010b19de32af"
+
+DEPENDS = "systemd"
+PV = "1.0.4+git"
+
+SRC_URI = "git://github.com/ReimuNotMoe/ydotool;protocol=https;branch=master"
+SRCREV = "c07ae72be46c40912023b91b8ba737630d8720e1"
+
+inherit cmake systemd pkgconfig features_check
+
+REQUIRED_DISTRO_FEATURES = "systemd"
+
+EXTRA_OECMAKE = "\
+-DBUILD_DOCS=OFF \
+"
+
+SYSTEMD_SERVICE:${PN} = "ydotoold.service
\ No newline at end of file
-- 
2.44.0


-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#109205): 
https://lists.openembedded.org/g/openembedded-devel/message/109205
Mute This Topic: https://lists.openembedded.org/mt/104794570/21656
Group Owner: openembedded-devel+ow...@lists.openembedded.org
Unsubscribe: https://lists.openembedded.org/g/openembedded-devel/unsub 
[arch...@mail-archive.com]
-=-=-=-=-=-=-=-=-=-=-=-



[oe] [meta-networking][PATCH] squid: Upgrade to 6.8

2024-03-07 Thread Khem Raj
Drop a patch which was needed for older gcc

Signed-off-by: Khem Raj 
---
 ...for-Wno-error-format-truncation-comp.patch | 120 --
 ...quid-conf-tests-run-on-target-device.patch |   4 -
 .../files/Set-up-for-cross-compilation.patch  |   2 -
 .../files/Skip-AC_RUN_IFELSE-tests.patch  |   6 +-
 ...-serial-tests-config-needed-by-ptest.patch |   2 -
 .../squid/{squid_6.7.bb => squid_6.8.bb}  |   7 +-
 6 files changed, 3 insertions(+), 138 deletions(-)
 delete mode 100644 
meta-networking/recipes-daemons/squid/files/0001-configure-Check-for-Wno-error-format-truncation-comp.patch
 rename meta-networking/recipes-daemons/squid/{squid_6.7.bb => squid_6.8.bb} 
(94%)

diff --git 
a/meta-networking/recipes-daemons/squid/files/0001-configure-Check-for-Wno-error-format-truncation-comp.patch
 
b/meta-networking/recipes-daemons/squid/files/0001-configure-Check-for-Wno-error-format-truncation-comp.patch
deleted file mode 100644
index a478dcd80d..00
--- 
a/meta-networking/recipes-daemons/squid/files/0001-configure-Check-for-Wno-error-format-truncation-comp.patch
+++ /dev/null
@@ -1,120 +0,0 @@
-From 38e7e90cc2075952c1b74f5fca826f9c6cadb2f0 Mon Sep 17 00:00:00 2001
-From: Khem Raj 
-Date: Sat, 22 Apr 2017 11:54:57 -0700
-Subject: [PATCH] configure: Check for -Wno-error=format-truncation compiler
- option
-
-If this option is supported by compiler then disable it ( gcc7+)
-Fixes
-client.c:834:23: error: '%s' directive output may be truncated writing up to 
1023 bytes into a region of size 1010 [-Werror=format-truncation=]
-
-Signed-off-by: Khem Raj 
-

-Upstream-Status: Pending
-
- acinclude/ax_check_compile_flag.m4 | 74 ++
- configure.ac   |  2 +
- 2 files changed, 76 insertions(+)
- create mode 100644 acinclude/ax_check_compile_flag.m4
-
-diff --git a/acinclude/ax_check_compile_flag.m4 
b/acinclude/ax_check_compile_flag.m4
-new file mode 100644
-index 000..dcabb92
 /dev/null
-+++ b/acinclude/ax_check_compile_flag.m4
-@@ -0,0 +1,74 @@
-+# ===
-+#  https://www.gnu.org/software/autoconf-archive/ax_check_compile_flag.html
-+# ===
-+#
-+# SYNOPSIS
-+#
-+#   AX_CHECK_COMPILE_FLAG(FLAG, [ACTION-SUCCESS], [ACTION-FAILURE], 
[EXTRA-FLAGS], [INPUT])
-+#
-+# DESCRIPTION
-+#
-+#   Check whether the given FLAG works with the current language's compiler
-+#   or gives an error.  (Warnings, however, are ignored)
-+#
-+#   ACTION-SUCCESS/ACTION-FAILURE are shell commands to execute on
-+#   success/failure.
-+#
-+#   If EXTRA-FLAGS is defined, it is added to the current language's default
-+#   flags (e.g. CFLAGS) when the check is done.  The check is thus made with
-+#   the flags: "CFLAGS EXTRA-FLAGS FLAG".  This can for example be used to
-+#   force the compiler to issue an error when a bad flag is given.
-+#
-+#   INPUT gives an alternative input source to AC_COMPILE_IFELSE.
-+#
-+#   NOTE: Implementation based on AX_CFLAGS_GCC_OPTION. Please keep this
-+#   macro in sync with AX_CHECK_{PREPROC,LINK}_FLAG.
-+#
-+# LICENSE
-+#
-+#   Copyright (c) 2008 Guido U. Draheim 
-+#   Copyright (c) 2011 Maarten Bosmans 
-+#
-+#   This program is free software: you can redistribute it and/or modify it
-+#   under the terms of the GNU General Public License as published by the
-+#   Free Software Foundation, either version 3 of the License, or (at your
-+#   option) any later version.
-+#
-+#   This program is distributed in the hope that it will be useful, but
-+#   WITHOUT ANY WARRANTY; without even the implied warranty of
-+#   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General
-+#   Public License for more details.
-+#
-+#   You should have received a copy of the GNU General Public License along
-+#   with this program. If not, see .
-+#
-+#   As a special exception, the respective Autoconf Macro's copyright owner
-+#   gives unlimited permission to copy, distribute and modify the configure
-+#   scripts that are the output of Autoconf when processing the Macro. You
-+#   need not follow the terms of the GNU General Public License when using
-+#   or distributing such scripts, even though portions of the text of the
-+#   Macro appear in them. The GNU General Public License (GPL) does govern
-+#   all other use of the material that constitutes the Autoconf Macro.
-+#
-+#   This special exception to the GPL applies to versions of the Autoconf
-+#   Macro released by the Autoconf Archive. When you make and distribute a
-+#   modified version of the Autoconf Macro, you may extend this special
-+#   exception to the GPL to apply to your modified version as well.
-+
-+#serial 5
-+
-+AC_DEFUN([AX_CHECK_COMPILE_FLAG],
-+[AC_PREREQ(2.64)dnl for _AC_LANG_PREFIX and AS_VAR_IF
-+AS_VAR_PUSHDEF([CACHEVAR],[ax_cv_check_[]_AC_LANG_ABBREV[]flags_$4_$1])dnl

Re: [oe] [meta-oe][PATCH] ydotool: Add new package

2024-03-07 Thread Khem Raj
On Thu, Mar 7, 2024 at 8:28 AM André Belmudes Paiusco <
andre.paiu...@gmail.com> wrote:

> CC: Khem Raj 
> Signed-off-by: Andre Paiusco 
> ---
>  .../packagegroups/packagegroup-meta-oe.bb  |  1 +
>  .../recipes-graphics/ydotool/ydotool_git.bb| 18 ++
>  2 files changed, 19 insertions(+)
>  create mode 100644 meta-oe/recipes-graphics/ydotool/ydotool_git.bb
>
> diff --git a/meta-oe/recipes-core/packagegroups/packagegroup-meta-oe.bb
> b/meta-oe/recipes-core/packagegroups/packagegroup-meta-oe.bb
> index 6e2012dae..dd033208b 100644
> --- a/meta-oe/recipes-core/packagegroups/packagegroup-meta-oe.bb
> +++ b/meta-oe/recipes-core/packagegroups/packagegroup-meta-oe.bb
> @@ -611,6 +611,7 @@ RDEPENDS:packagegroup-meta-oe-graphics ="\
>  xcursorgen \
>  ${@bb.utils.contains("DISTRO_FEATURES", "x11 pam", "xscreensaver",
> "", d)} \
>  yad \
> +ydotool \
>  parallel-deqp-runner \
>  ${@bb.utils.contains("DISTRO_FEATURES", "opengl", "opengl-es-cts",
> "", d)} \
>  ${@bb.utils.contains("DISTRO_FEATURES", "opengl vulkan",
> "vulkan-cts", "", d)} \
> diff --git a/meta-oe/recipes-graphics/ydotool/ydotool_git.bb
> b/meta-oe/recipes-graphics/ydotool/ydotool_git.bb
> new file mode 100644
> index 0..928f5f79b
> --- /dev/null
> +++ b/meta-oe/recipes-graphics/ydotool/ydotool_git.bb
> @@ -0,0 +1,18 @@
> +SUMMARY = "Generic Linux command-line automation tool (no X!)"
> +DESCRIPTION = "ydotool is not limited to Wayland. You can use it on
> anything as long as it accepts keyboard/mouse/whatever input."
> +LICENSE = "AGPL-3.0-or-later"
> +LIC_FILES_CHKSUM = "file://LICENSE;md5=eb1e647870add0502f8f010b19de32af"
> +
> +DEPENDS = "systemd"


This means it can only be used when systemd is in distro features so please
add that check as well


> +PV = "1.0.4+git"
> +
> +SRC_URI = "git://
> github.com/ReimuNotMoe/ydotool;protocol=https;branch=master"
> +SRCREV = "c07ae72be46c40912023b91b8ba737630d8720e1"
> +
> +inherit cmake systemd pkgconfig
> +
> +EXTRA_OECMAKE = "\
> +-DBUILD_DOCS=OFF \
> +"
> +
> +SYSTEMD_SERVICE:${PN} = "ydotoold.service
> \ No newline at end of file
> --
> 2.44.0
>
>
> 
>
>

-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#109203): 
https://lists.openembedded.org/g/openembedded-devel/message/109203
Mute This Topic: https://lists.openembedded.org/mt/104790839/21656
Group Owner: openembedded-devel+ow...@lists.openembedded.org
Unsubscribe: https://lists.openembedded.org/g/openembedded-devel/unsub 
[arch...@mail-archive.com]
-=-=-=-=-=-=-=-=-=-=-=-



[oe] [meta-oe][PATCH] ydotool: Add new package

2024-03-07 Thread André Belmudes Paiusco
CC: Khem Raj 
Signed-off-by: Andre Paiusco 
---
 .../packagegroups/packagegroup-meta-oe.bb  |  1 +
 .../recipes-graphics/ydotool/ydotool_git.bb| 18 ++
 2 files changed, 19 insertions(+)
 create mode 100644 meta-oe/recipes-graphics/ydotool/ydotool_git.bb

diff --git a/meta-oe/recipes-core/packagegroups/packagegroup-meta-oe.bb 
b/meta-oe/recipes-core/packagegroups/packagegroup-meta-oe.bb
index 6e2012dae..dd033208b 100644
--- a/meta-oe/recipes-core/packagegroups/packagegroup-meta-oe.bb
+++ b/meta-oe/recipes-core/packagegroups/packagegroup-meta-oe.bb
@@ -611,6 +611,7 @@ RDEPENDS:packagegroup-meta-oe-graphics ="\
 xcursorgen \
 ${@bb.utils.contains("DISTRO_FEATURES", "x11 pam", "xscreensaver", "", d)} 
\
 yad \
+ydotool \
 parallel-deqp-runner \
 ${@bb.utils.contains("DISTRO_FEATURES", "opengl", "opengl-es-cts", "", d)} 
\
 ${@bb.utils.contains("DISTRO_FEATURES", "opengl vulkan", "vulkan-cts", "", 
d)} \
diff --git a/meta-oe/recipes-graphics/ydotool/ydotool_git.bb 
b/meta-oe/recipes-graphics/ydotool/ydotool_git.bb
new file mode 100644
index 0..928f5f79b
--- /dev/null
+++ b/meta-oe/recipes-graphics/ydotool/ydotool_git.bb
@@ -0,0 +1,18 @@
+SUMMARY = "Generic Linux command-line automation tool (no X!)"
+DESCRIPTION = "ydotool is not limited to Wayland. You can use it on anything 
as long as it accepts keyboard/mouse/whatever input."
+LICENSE = "AGPL-3.0-or-later"
+LIC_FILES_CHKSUM = "file://LICENSE;md5=eb1e647870add0502f8f010b19de32af"
+
+DEPENDS = "systemd"
+PV = "1.0.4+git"
+
+SRC_URI = "git://github.com/ReimuNotMoe/ydotool;protocol=https;branch=master"
+SRCREV = "c07ae72be46c40912023b91b8ba737630d8720e1"
+
+inherit cmake systemd pkgconfig
+
+EXTRA_OECMAKE = "\
+-DBUILD_DOCS=OFF \
+"
+
+SYSTEMD_SERVICE:${PN} = "ydotoold.service
\ No newline at end of file
-- 
2.44.0


-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#109202): 
https://lists.openembedded.org/g/openembedded-devel/message/109202
Mute This Topic: https://lists.openembedded.org/mt/104790839/21656
Group Owner: openembedded-devel+ow...@lists.openembedded.org
Unsubscribe: https://lists.openembedded.org/g/openembedded-devel/unsub 
[arch...@mail-archive.com]
-=-=-=-=-=-=-=-=-=-=-=-



[oe] [PATCH v2] ydotool: Add new package

2024-03-07 Thread André Belmudes Paiusco
CC: Khem Raj 
Signed-off-by: Andre Paiusco 
---
 .../packagegroups/packagegroup-meta-oe.bb  |  1 +
 .../recipes-graphics/ydotool/ydotool_git.bb| 18 ++
 2 files changed, 19 insertions(+)
 create mode 100644 meta-oe/recipes-graphics/ydotool/ydotool_git.bb

diff --git a/meta-oe/recipes-core/packagegroups/packagegroup-meta-oe.bb 
b/meta-oe/recipes-core/packagegroups/packagegroup-meta-oe.bb
index 6e2012dae..dd033208b 100644
--- a/meta-oe/recipes-core/packagegroups/packagegroup-meta-oe.bb
+++ b/meta-oe/recipes-core/packagegroups/packagegroup-meta-oe.bb
@@ -611,6 +611,7 @@ RDEPENDS:packagegroup-meta-oe-graphics ="\
 xcursorgen \
 ${@bb.utils.contains("DISTRO_FEATURES", "x11 pam", "xscreensaver", "", d)} 
\
 yad \
+ydotool \
 parallel-deqp-runner \
 ${@bb.utils.contains("DISTRO_FEATURES", "opengl", "opengl-es-cts", "", d)} 
\
 ${@bb.utils.contains("DISTRO_FEATURES", "opengl vulkan", "vulkan-cts", "", 
d)} \
diff --git a/meta-oe/recipes-graphics/ydotool/ydotool_git.bb 
b/meta-oe/recipes-graphics/ydotool/ydotool_git.bb
new file mode 100644
index 0..928f5f79b
--- /dev/null
+++ b/meta-oe/recipes-graphics/ydotool/ydotool_git.bb
@@ -0,0 +1,18 @@
+SUMMARY = "Generic Linux command-line automation tool (no X!)"
+DESCRIPTION = "ydotool is not limited to Wayland. You can use it on anything 
as long as it accepts keyboard/mouse/whatever input."
+LICENSE = "AGPL-3.0-or-later"
+LIC_FILES_CHKSUM = "file://LICENSE;md5=eb1e647870add0502f8f010b19de32af"
+
+DEPENDS = "systemd"
+PV = "1.0.4+git"
+
+SRC_URI = "git://github.com/ReimuNotMoe/ydotool;protocol=https;branch=master"
+SRCREV = "c07ae72be46c40912023b91b8ba737630d8720e1"
+
+inherit cmake systemd pkgconfig
+
+EXTRA_OECMAKE = "\
+-DBUILD_DOCS=OFF \
+"
+
+SYSTEMD_SERVICE:${PN} = "ydotoold.service
\ No newline at end of file
-- 
2.44.0


-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#109201): 
https://lists.openembedded.org/g/openembedded-devel/message/109201
Mute This Topic: https://lists.openembedded.org/mt/104790834/21656
Group Owner: openembedded-devel+ow...@lists.openembedded.org
Unsubscribe: https://lists.openembedded.org/g/openembedded-devel/unsub 
[arch...@mail-archive.com]
-=-=-=-=-=-=-=-=-=-=-=-



[oe] [v2.5][meta-oe][PATCH 1/1] googletest: allow for shared libraries

2024-03-07 Thread Joe Slater via lists.openembedded.org
From: Joe Slater 

Change the -dev RDEPENDS because -staticdev is not created
if shared libraries are built.

Signed-off-by: Joe Slater 
---
 meta-oe/recipes-test/googletest/googletest_1.14.0.bb | 6 --
 1 file changed, 4 insertions(+), 2 deletions(-)

diff --git a/meta-oe/recipes-test/googletest/googletest_1.14.0.bb 
b/meta-oe/recipes-test/googletest/googletest_1.14.0.bb
index 1b05f3d336..e9df082d32 100644
--- a/meta-oe/recipes-test/googletest/googletest_1.14.0.bb
+++ b/meta-oe/recipes-test/googletest/googletest_1.14.0.bb
@@ -20,8 +20,10 @@ PACKAGECONFIG[shared] = 
"-DBUILD_SHARED_LIBS=ON,-DBUILD_SHARED_LIBS=OFF,,"
 ALLOW_EMPTY:${PN} = "1"
 ALLOW_EMPTY:${PN}-dbg = "1"
 
-ALLOW_EMPTY:${PN}-staticdev = "1"
-RDEPENDS:${PN}-dev += "${PN}-staticdev"
+# -staticdev will not be implicitly put into an SDK, so we add an rdepend
+# if we are not building shared libraries
+#
+RDEPENDS:${PN}-dev += 
"${@bb.utils.contains("PACKAGECONFIG","shared","","${PN}-staticdev",d)}"
 
 BBCLASSEXTEND = "native nativesdk"
 
-- 
2.25.1


-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#109200): 
https://lists.openembedded.org/g/openembedded-devel/message/109200
Mute This Topic: https://lists.openembedded.org/mt/104790408/21656
Group Owner: openembedded-devel+ow...@lists.openembedded.org
Unsubscribe: https://lists.openembedded.org/g/openembedded-devel/unsub 
[arch...@mail-archive.com]
-=-=-=-=-=-=-=-=-=-=-=-



[oe] [meta-oe][PATCH] libnice: Disable the examples and the tests

2024-03-07 Thread Peter Kjellerstedt
They are not used, and if the `gstreamer` PACKAGECONFIG is enabled, the
tests require gstreamer-check-1.0 to be available, which it isn't if
gstreamer-1.0 is built without the `check` PACKAGECONFIG.

Also remove adding -Dgstreamer=disabled to EXTRA_OEMESON as it is
already covered by the `gstreamer` PACKAGECONFIG.

Signed-off-by: Peter Kjellerstedt 
---
 meta-oe/recipes-support/farsight/libnice_0.1.21.bb | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/meta-oe/recipes-support/farsight/libnice_0.1.21.bb 
b/meta-oe/recipes-support/farsight/libnice_0.1.21.bb
index 4a5227f20..646dcb28c 100644
--- a/meta-oe/recipes-support/farsight/libnice_0.1.21.bb
+++ b/meta-oe/recipes-support/farsight/libnice_0.1.21.bb
@@ -18,14 +18,14 @@ PACKAGECONFIG[gupnp] = 
"-Dgupnp=enabled,-Dgupnp=disabled,gupnp"
 PACKAGECONFIG[gstreamer] = 
"-Dgstreamer=enabled,-Dgstreamer=disabled,gstreamer1.0"
 PACKAGECONFIG[introspection] = 
"-Dintrospection=enabled,-Dintrospection=disabled,"
 
-EXTRA_OEMESON = "-Dgstreamer=disabled"
-
 GTKDOC_MESON_OPTION = "gtk_doc"
 GTKDOC_MESON_ENABLE_FLAG = "enabled"
 GTKDOC_MESON_DISABLE_FLAG = "disabled"
 
 inherit meson gtk-doc gobject-introspection
 
+EXTRA_OEMESON = "-Dexamples=disabled -Dtests=disabled"
+
 FILES:${PN} += "${libdir}/gstreamer-1.0/*.so"
 FILES:${PN}-dev += "${libdir}/gstreamer-1.0/*.la"
 FILES:${PN}-staticdev += "${libdir}/gstreamer-1.0/*.a"

-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#109199): 
https://lists.openembedded.org/g/openembedded-devel/message/109199
Mute This Topic: https://lists.openembedded.org/mt/104790070/21656
Group Owner: openembedded-devel+ow...@lists.openembedded.org
Unsubscribe: https://lists.openembedded.org/g/openembedded-devel/unsub 
[arch...@mail-archive.com]
-=-=-=-=-=-=-=-=-=-=-=-



[oe] [meta-oe][kirkstone][PATCH] opencv: fix reproducibility issues

2024-03-07 Thread Martin Jansa
From: Anuj Mittal 

Download and unpack contrib modules and other repositories in S instead
of WORKDIR so they don't escape file-prefix-map substitutions.

Fixes a number of reproducibility problems because of OpenCV check
macros that were embedding path to files in contrib/.

MJ: this is backport from langdale and fixes not only reproducibility
issues but also pseudo aborts in do_install when do_install
is executed again after do_package (in incremental builds):

  | DEBUG: Executing shell function do_install
  | NOTE: DESTDIR=opencv/4.5.5-r0/image VERBOSE=1 cmake --build 
opencv/4.5.5-r0/build --target install --
  | abort()ing pseudo client by server request. See 
https://wiki.yoctoproject.org/wiki/Pseudo_Abort for more details on this.
  | Check logfile: opencv/4.5.5-r0/pseudo//pseudo.log
  | Subprocess aborted

  and pseudo.log file shows:
  path mismatch [3 links]: ino 214373575 db 
'opencv/4.5.5-r0/package/usr/src/debug/lib32-opencv/4.5.5-r0/contrib/modules/intensity_transform/src/bimef.cpp'
 req 'opencv/4.5.5-r0/contrib/modules/intensity_transform/src/bimef.cpp'.

  easily reproducible with:
  bitbake -c cleansstate opencv; bitbake -c package opencv; bitbake -c install 
-f opencv

  unlike ${S} ${WORKDIR}/contrib isn't in default PSEUDO_IGNORE_PATHS

Signed-off-by: Anuj Mittal 
Signed-off-by: Khem Raj 
Signed-off-by: Martin Jansa 
---
 .../recipes-support/opencv/opencv_4.5.5.bb| 34 +--
 1 file changed, 17 insertions(+), 17 deletions(-)

diff --git a/meta-oe/recipes-support/opencv/opencv_4.5.5.bb 
b/meta-oe/recipes-support/opencv/opencv_4.5.5.bb
index a7700a3743..5b5685f990 100644
--- a/meta-oe/recipes-support/opencv/opencv_4.5.5.bb
+++ b/meta-oe/recipes-support/opencv/opencv_4.5.5.bb
@@ -39,12 +39,12 @@ IPP_MD5 = "${@ipp_md5sum(d)}"
 
 SRCREV_FORMAT = "opencv_contrib_ipp_boostdesc_vgg"
 SRC_URI = 
"git://github.com/opencv/opencv.git;name=opencv;branch=master;protocol=https \
-   
git://github.com/opencv/opencv_contrib.git;destsuffix=contrib;name=contrib;branch=master;protocol=https
 \
-   
git://github.com/opencv/opencv_3rdparty.git;branch=ippicv/master_20191018;destsuffix=ipp;name=ipp;protocol=https
 \
-   
git://github.com/opencv/opencv_3rdparty.git;branch=contrib_xfeatures2d_boostdesc_20161012;destsuffix=boostdesc;name=boostdesc;protocol=https
 \
-   
git://github.com/opencv/opencv_3rdparty.git;branch=contrib_xfeatures2d_vgg_20160317;destsuffix=vgg;name=vgg;protocol=https
 \
-   
git://github.com/opencv/opencv_3rdparty.git;branch=contrib_face_alignment_20170818;destsuffix=face;name=face;protocol=https
 \
-   
git://github.com/WeChatCV/opencv_3rdparty.git;branch=wechat_qrcode;destsuffix=wechat_qrcode;name=wechat-qrcode;protocol=https
 \
+   
git://github.com/opencv/opencv_contrib.git;destsuffix=git/contrib;name=contrib;branch=master;protocol=https
 \
+   
git://github.com/opencv/opencv_3rdparty.git;branch=ippicv/master_20191018;destsuffix=git/ipp;name=ipp;protocol=https
 \
+   
git://github.com/opencv/opencv_3rdparty.git;branch=contrib_xfeatures2d_boostdesc_20161012;destsuffix=git/boostdesc;name=boostdesc;protocol=https
 \
+   
git://github.com/opencv/opencv_3rdparty.git;branch=contrib_xfeatures2d_vgg_20160317;destsuffix=git/vgg;name=vgg;protocol=https
 \
+   
git://github.com/opencv/opencv_3rdparty.git;branch=contrib_face_alignment_20170818;destsuffix=git/face;name=face;protocol=https
 \
+   
git://github.com/WeChatCV/opencv_3rdparty.git;branch=wechat_qrcode;destsuffix=git/wechat_qrcode;name=wechat-qrcode;protocol=https
 \
file://0001-3rdparty-ippicv-Use-pre-downloaded-ipp.patch \
file://0003-To-fix-errors-as-following.patch \

file://0001-Temporarliy-work-around-deprecated-ffmpeg-RAW-functi.patch \
@@ -52,10 +52,10 @@ SRC_URI = 
"git://github.com/opencv/opencv.git;name=opencv;branch=master;protocol
file://download.patch \
file://0001-Make-ts-module-external.patch \
file://0001-core-vsx-update-vec_absd-workaround-condition.patch \
-   file://CVE-2023-2617.patch;patchdir=../contrib \
-   file://CVE-2023-2618.patch;patchdir=../contrib \
+   file://CVE-2023-2617.patch;patchdir=contrib \
+   file://CVE-2023-2618.patch;patchdir=contrib \
"
-SRC_URI:append:riscv64 = " 
file://0001-Use-Os-to-compile-tinyxml2.cpp.patch;patchdir=../contrib"
+SRC_URI:append:riscv64 = " 
file://0001-Use-Os-to-compile-tinyxml2.cpp.patch;patchdir=contrib"
 
 S = "${WORKDIR}/git"
 
@@ -64,7 +64,7 @@ S = "${WORKDIR}/git"
 OPENCV_DLDIR = "${WORKDIR}/downloads"
 
 do_unpack_extra() {
-tar xzf ${WORKDIR}/ipp/ippicv/${IPP_FILENAME} -C ${WORKDIR}
+tar xzf ${S}/ipp/ippicv/${IPP_FILENAME} -C ${S}
 
 md5() {
 # Return the MD5 of $1
@@ -79,22 +79,22 @@ do_unpack_extra() {
 test -e $DEST || ln -s $F $DEST
 done
 }
-cache xfeatures2d/boostdesc 

Re: [oe][meta-oe][kirkstone][PATCH 1/1] openvpn: ignore CVE-2023-7235

2024-03-07 Thread Yoann Congal
Hi,

Le jeu. 7 mars 2024 à 10:21, Soumya via lists.openembedded.org
 a écrit :

> From: Soumya Sambu 
>
> This CVE is related to OpenVPN 2.x GUI on Windows.
>
> References:
> https://community.openvpn.net/openvpn/wiki/CVE-2023-7235
> https://security-tracker.debian.org/tracker/CVE-2023-7235
>
> Signed-off-by: Soumya Sambu 
> ---
>  meta-networking/recipes-support/openvpn/openvpn_2.5.6.bb | 3 +++
>  1 file changed, 3 insertions(+)
>
> diff --git a/meta-networking/recipes-support/openvpn/openvpn_2.5.6.bb
> b/meta-networking/recipes-support/openvpn/openvpn_2.5.6.bb
> index 218e72b7a..828cd5033 100644
> --- a/meta-networking/recipes-support/openvpn/openvpn_2.5.6.bb
> +++ b/meta-networking/recipes-support/openvpn/openvpn_2.5.6.bb
> @@ -19,6 +19,9 @@ SRC_URI[sha256sum] =
> "333a7ef3d5b317968aca2c77bdc29aa7c6d6bb3316eb3f79743b59c532
>  # CVE-2020-7224 and CVE-2020-27569 are for Aviatrix OpenVPN client, not
> for openvpn.
>  CVE_CHECK_IGNORE += "CVE-2020-7224 CVE-2020-27569"
>
> +# CVE-2023-7235 is specific to Windows platform
> +CVE_CHECK_IGNORE += "CVE-2023-7235"
>

That's weird, this CVE does not appear as applicable neither locally for me
or on the AB:
https://autobuilder.yocto.io/pub/non-release/patchmetrics-meta-oe/cve-status-kirkstone.txt
Did you do something specific to see this CVE?


> +
>  SYSTEMD_SERVICE:${PN} += "openvpn@loopback-server.service
> openvpn@loopback-client.service"
>  SYSTEMD_AUTO_ENABLE = "disable"
>
> --
> 2.40.0
>
>
> 
>
>

-- 
Yoann Congal
Smile ECS - Tech expert

-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#109196): 
https://lists.openembedded.org/g/openembedded-devel/message/109196
Mute This Topic: https://lists.openembedded.org/mt/104784192/21656
Group Owner: openembedded-devel+ow...@lists.openembedded.org
Unsubscribe: https://lists.openembedded.org/g/openembedded-devel/unsub 
[arch...@mail-archive.com]
-=-=-=-=-=-=-=-=-=-=-=-



[oe][meta-oe][kirkstone][PATCH 1/1] postgresql: Fix CVE-2024-0985

2024-03-07 Thread Soumya via lists.openembedded.org
From: Soumya Sambu 

Late privilege drop in REFRESH MATERIALIZED VIEW CONCURRENTLY in PostgreSQL
allows an object creator to execute arbitrary SQL functions as the command
issuer. The command intends to run SQL functions as the owner of the
materialized view, enabling safe refresh of untrusted materialized views.
The victim is a superuser or member of one of the attacker's roles. The
attack requires luring the victim into running REFRESH MATERIALIZED VIEW
CONCURRENTLY on the attacker's materialized view. As part of exploiting
this vulnerability, the attacker creates functions that use CREATE RULE to
convert the internally-built temporary table to a view. Versions before
PostgreSQL 15.6, 14.11, 13.14, and 12.18 are affected. The only known
exploit does not work in PostgreSQL 16 and later. For defense in depth,
PostgreSQL 16.2 adds the protections that older branches are using to fix
their vulnerability.

Upstream commit have wrong CVE mentioned but the correct one is CVE-2024-0985

References:
https://nvd.nist.gov/vuln/detail/CVE-2024-0985
https://security-tracker.debian.org/tracker/CVE-2024-0985

Signed-off-by: Soumya Sambu 
---
 .../postgresql/files/CVE-2024-0985.patch  | 98 +++
 .../recipes-dbs/postgresql/postgresql_14.9.bb |  1 +
 2 files changed, 99 insertions(+)
 create mode 100644 meta-oe/recipes-dbs/postgresql/files/CVE-2024-0985.patch

diff --git a/meta-oe/recipes-dbs/postgresql/files/CVE-2024-0985.patch 
b/meta-oe/recipes-dbs/postgresql/files/CVE-2024-0985.patch
new file mode 100644
index 0..24245406c
--- /dev/null
+++ b/meta-oe/recipes-dbs/postgresql/files/CVE-2024-0985.patch
@@ -0,0 +1,98 @@
+From f2fdea198b3d0ab30b9e8478a762488ecebabd88 Mon Sep 17 00:00:00 2001
+From: Heikki Linnakangas 
+Date: Mon, 5 Feb 2024 11:01:23 +0200
+Subject: [PATCH] Run REFRESH MATERIALIZED VIEW CONCURRENTLY in right security
+ context
+
+The internal commands in REFRESH MATERIALIZED VIEW CONCURRENTLY are
+correctly executed in SECURITY_RESTRICTED_OPERATION mode, except for
+creating the temporary "diff" table, because you cannot create
+temporary tables in SRO mode. But creating the temporary "diff" table
+is a pretty complex CTAS command that selects from another temporary
+table created earlier in the command. If you can cajole that CTAS
+command to execute code defined by the table owner, the table owner
+can run code with the privileges of the user running the REFRESH
+command.
+
+The proof-of-concept reported to the security team relied on CREATE
+RULE to convert the internally-built temp table to a view. That's not
+possible since commit b23cd185fd, and I was not able to find a
+different way to turn the SELECT on the temp table into code
+execution, so as far as I know this is only exploitable in v15 and
+below. That's a fiddly assumption though, so apply this patch to
+master and all stable versions.
+
+Thanks to Pedro Gallegos for the report.
+
+Security: CVE-2023-5869
+Reviewed-by: Noah Misch
+
+CVE: CVE-2024-0985
+
+Upstream-Status: Backport 
[https://git.postgresql.org/gitweb/?p=postgresql.git;a=patch;h=f2fdea198b3d0ab30b9e8478a762488ecebabd88]
+
+Signed-off-by: Soumya Sambu 
+---
+ src/backend/commands/matview.c | 33 ++---
+ 1 file changed, 26 insertions(+), 7 deletions(-)
+
+diff --git a/src/backend/commands/matview.c b/src/backend/commands/matview.c
+index 3fc50e8..0aa0a74 100644
+--- a/src/backend/commands/matview.c
 b/src/backend/commands/matview.c
+@@ -655,13 +655,35 @@ refresh_by_match_merge(Oid matviewOid, Oid tempOid, Oid 
relowner,
+  
SPI_getvalue(SPI_tuptable->vals[0], SPI_tuptable->tupdesc, 1;
+   }
+
++  /*
++   * Create the temporary "diff" table.
++   *
++   * Temporarily switch out of the SECURITY_RESTRICTED_OPERATION context,
++   * because you cannot create temp tables in SRO context.  For extra
++   * paranoia, add the composite type column only after switching back to
++   * SRO context.
++   */
+   SetUserIdAndSecContext(relowner,
+  save_sec_context | 
SECURITY_LOCAL_USERID_CHANGE);
++  resetStringInfo();
++  appendStringInfo(,
++   "CREATE TEMP TABLE %s (tid 
pg_catalog.tid)",
++   diffname);
++  if (SPI_exec(querybuf.data, 0) != SPI_OK_UTILITY)
++  elog(ERROR, "SPI_exec failed: %s", querybuf.data);
++  SetUserIdAndSecContext(relowner,
++ save_sec_context | 
SECURITY_RESTRICTED_OPERATION);
++  resetStringInfo();
++  appendStringInfo(,
++   "ALTER TABLE %s ADD COLUMN newdata %s",
++   diffname, tempname);
++  if (SPI_exec(querybuf.data, 0) != SPI_OK_UTILITY)
++  elog(ERROR, "SPI_exec failed: %s", querybuf.data);
+
+-  /* Start building the 

[oe][meta-oe][kirkstone][PATCH 1/1] openvpn: ignore CVE-2023-7235

2024-03-07 Thread Soumya via lists.openembedded.org
From: Soumya Sambu 

This CVE is related to OpenVPN 2.x GUI on Windows.

References:
https://community.openvpn.net/openvpn/wiki/CVE-2023-7235
https://security-tracker.debian.org/tracker/CVE-2023-7235

Signed-off-by: Soumya Sambu 
---
 meta-networking/recipes-support/openvpn/openvpn_2.5.6.bb | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/meta-networking/recipes-support/openvpn/openvpn_2.5.6.bb 
b/meta-networking/recipes-support/openvpn/openvpn_2.5.6.bb
index 218e72b7a..828cd5033 100644
--- a/meta-networking/recipes-support/openvpn/openvpn_2.5.6.bb
+++ b/meta-networking/recipes-support/openvpn/openvpn_2.5.6.bb
@@ -19,6 +19,9 @@ SRC_URI[sha256sum] = 
"333a7ef3d5b317968aca2c77bdc29aa7c6d6bb3316eb3f79743b59c532
 # CVE-2020-7224 and CVE-2020-27569 are for Aviatrix OpenVPN client, not for 
openvpn.
 CVE_CHECK_IGNORE += "CVE-2020-7224 CVE-2020-27569"
 
+# CVE-2023-7235 is specific to Windows platform
+CVE_CHECK_IGNORE += "CVE-2023-7235"
+
 SYSTEMD_SERVICE:${PN} += "openvpn@loopback-server.service 
openvpn@loopback-client.service"
 SYSTEMD_AUTO_ENABLE = "disable"
 
-- 
2.40.0


-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#109193): 
https://lists.openembedded.org/g/openembedded-devel/message/109193
Mute This Topic: https://lists.openembedded.org/mt/104784192/21656
Group Owner: openembedded-devel+ow...@lists.openembedded.org
Unsubscribe: https://lists.openembedded.org/g/openembedded-devel/unsub 
[arch...@mail-archive.com]
-=-=-=-=-=-=-=-=-=-=-=-