Skip to contentSkip to conversation

exiv2: add ptest support

PATCH New [email protected] 1 participant 9 messages Nov 26, 2025

lore
Share & tools
lore
#0 lore raw

PATCH 1/9 exiv2: add ptest support

From: Gyorgy Sarvari <[email protected]>

The project has extensive runtime- and unittest suite - make use of it.

It takes around 10 seconds to run both suites.

Added two patches:
One is needed to convert python unittest output into automake output.

The other is required to be able to configure test data folder at compile time - otherwise the tests are looking for the test-data with absolute paths from the build machine.

(cherry picked from commit 35bc4860f18cd56a80ee29d492540acfcb620b59)
---
 .../include/ptest-packagelists-meta-oe.inc    |  1 +
 ...1-Allow-test-data-path-configuration.patch | 30 ++++++++++++++++
 .../0001-Use-automake-output-for-tests.patch  | 35 +++++++++++++++++++
 meta-oe/recipes-support/exiv2/exiv2/run-ptest |  6 ++++
 meta-oe/recipes-support/exiv2/exiv2_0.28.7.bb | 31 ++++++++++++++--
 5 files changed, 101 insertions(+), 2 deletions(-)
 create mode 100644 meta-oe/recipes-support/exiv2/exiv2/0001-Allow-test-data-path-configuration.patch
 create mode 100644 meta-oe/recipes-support/exiv2/exiv2/0001-Use-automake-output-for-tests.patch
 create mode 100644 meta-oe/recipes-support/exiv2/exiv2/run-ptest
meta-oe/conf/include/ptest-packagelists-meta-oe.inc +1 -0
index ea336f1058..0473b60504 100644
@@ -13,6 +13,7 @@ PTESTS_FAST_META_OE = "\
     cmocka \
     cunit \
     duktape \
+    exiv2 \
     fuse3 \
     function2 \
     fwupd \
meta-oe/recipes-support/exiv2/exiv2/0001-Allow-test-data-path-configuration.patch new file +30 -0
new file mode 100644
index 0000000000..a5345733fb
@@ -0,0 +1,30 @@
+From 2483e51df6e02ad0ad5ae636767279fa230da44f Mon Sep 17 00:00:00 2001
+From: Gyorgy Sarvari <[email protected]>
+Date: Sun, 23 Nov 2025 11:52:24 +0100
+Subject: [PATCH] Allow test data path configuration
+
+The unittests expect to the executed in the source folder before/after build,
+and they expect the test data to be in the source folder. However for ptests
+these folders are not available.
+
+This patch allows the test data folders to be configuration during build time.
+
+Upstream-Status: Inappropriate [ptest-specific]
+Signed-off-by: Gyorgy Sarvari <[email protected]>
+---
+ unitTests/CMakeLists.txt | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+diff --git a/unitTests/CMakeLists.txt b/unitTests/CMakeLists.txt
+index 51040c0e2..e2604d4a7 100644
+--- a/unitTests/CMakeLists.txt
++++ b/unitTests/CMakeLists.txt
+@@ -42,7 +42,7 @@ add_executable(unit_tests
+ target_compile_definitions(unit_tests
+   PRIVATE
+     exiv2lib_STATIC
+-    TESTDATA_PATH="${PROJECT_SOURCE_DIR}/test/data"
++    TESTDATA_PATH="${TEST_FOLDER}/test/data"
+ )
+ 
+ target_link_libraries(unit_tests
meta-oe/recipes-support/exiv2/exiv2/0001-Use-automake-output-for-tests.patch new file +35 -0
new file mode 100644
index 0000000000..6514ac07a3
@@ -0,0 +1,35 @@
+From 09e5f783b3d1dcb7db6e975e9662c8401a614539 Mon Sep 17 00:00:00 2001
+From: Gyorgy Sarvari <[email protected]>
+Date: Sun, 23 Nov 2025 11:35:50 +0100
+Subject: [PATCH] Use automake output for tests
+
+Convert the Python unittest output to automake output so ptest can
+ingest it.
+
+Upstream-Status: Inappropriate [oe-specific]
+Signed-off-by: Gyorgy Sarvari <[email protected]>
+---
+ tests/runner.py | 3 ++-
+ 1 file changed, 2 insertions(+), 1 deletion(-)
+
+diff --git a/tests/runner.py b/tests/runner.py
+index adebf83ba..9800cf971 100755
+--- a/tests/runner.py
++++ b/tests/runner.py
+@@ -4,6 +4,7 @@
+ import argparse
+ import functools
+ import os
++import putao.unittest
+ import sys
+ import unittest
+ from fnmatch import fnmatchcase
+@@ -93,7 +94,7 @@ if __name__ == '__main__':
+             DEFAULT_ROOT
+         )
+ 
+-    test_res = unittest.runner.TextTestRunner(verbosity=args.verbose)\
++    test_res = putao.unittest.TestRunner()\
+                               .run(discovered_tests)
+ 
+     sys.exit(0 if len(test_res.failures) + len(test_res.errors) == 0 else 1)
meta-oe/recipes-support/exiv2/exiv2/run-ptest new file +6 -0
new file mode 100644
index 0000000000..6c50a12fc1
@@ -0,0 +1,6 @@
+#!/bin/sh
+cd tests
+python3 ./runner.py
+
+cd ..
+./build/bin/unit_tests --gtest_print_time=0 | sed -E  '/^\[ RUN/d ; s/\[       OK \]/PASS: / ; s/\[ DISABLED \]/SKIP: / ; s/\[ FAILED \]/FAIL: /'
meta-oe/recipes-support/exiv2/exiv2_0.28.7.bb +29 -2
index e1f57ae8c7..82ee232fdc 100644
@@ -4,7 +4,34 @@ LIC_FILES_CHKSUM = "file://COPYING;md5=625f055f41728f84a8d7938acc35bdc2"
 
 DEPENDS = "zlib expat brotli libinih"
 
-SRC_URI = "git://github.com/Exiv2/exiv2.git;protocol=https;branch=0.28.x;tag=v${PV}"
+SRC_URI = "git://github.com/Exiv2/exiv2.git;protocol=https;branch=0.28.x;tag=v${PV} \
+           file://run-ptest \
+           file://0001-Use-automake-output-for-tests.patch \
+           file://0001-Allow-test-data-path-configuration.patch \
+           "
 SRCREV = "afcb7a8ba84a7de36d2f1ee7689394e078697956"
 
-inherit cmake gettext
+inherit cmake gettext ptest
+
+PACKAGECONFIG ??= "${@bb.utils.contains('PTEST_ENABLED', '1', 'test unittest', '', d)}"
+PACKAGECONFIG[test] = "-DEXIV2_BUILD_SAMPLES=ON -DEXIV2_ENABLE_WEBREADY=ON"
+PACKAGECONFIG[unittest] = "-DEXIV2_BUILD_UNIT_TESTS=ON -DTEST_FOLDER=${PTEST_PATH},,googletest"
+
+RDEPENDS:${PN}-ptest += " \
+    python3-html \
+    python3-lxml \
+    python3-multiprocessing \
+    python3-shell \
+    python3-unittest \
+    python3-unittest-automake-output"
+
+do_install_ptest(){
+    cp -r ${S}/tests ${D}${PTEST_PATH}/
+    cp -r ${S}/test ${D}${PTEST_PATH}/
+
+    install -d ${D}${PTEST_PATH}/build/bin
+    install ${B}/bin/* ${D}${PTEST_PATH}/build/bin
+
+    install -d ${D}${PTEST_PATH}/src
+    install ${S}/src/canonmn_int.cpp ${D}${PTEST_PATH}/src
+}
#1 lore raw

PATCH 2/9 xdebug: upgrade 3.4.6 -> 3.4.7

From: Jason Schonberg <[email protected]>

[2025-10-26] — Xdebug 3.4.7
Fixed bug #2359: PHP 8.4 Lazy Ghost Object inoperable/defunct when Xdebug is enabled Fixed bug #2371: Step debugging initialize lazy objects
Fixed bug #2375: Xdebug's exception trace conversion initialises lazy objects

(cherry picked from commit 8a04d45a4e32ee29a12db23e1359729d16549b12)
---
 .../recipes-php/xdebug/{xdebug_3.4.6.bb => xdebug_3.4.7.bb}     | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
 rename meta-webserver/recipes-php/xdebug/{xdebug_3.4.6.bb => xdebug_3.4.7.bb} (91%)
meta-webserver/recipes-php/xdebug/xdebug_3.4.7.bb renamed from meta-webserver/recipes-php/xdebug/xdebug_3.4.6.bb +1 -1
similarity index 91%
rename from meta-webserver/recipes-php/xdebug/xdebug_3.4.6.bb
rename to meta-webserver/recipes-php/xdebug/xdebug_3.4.7.bb
index 6f8540c0cf..a3947a8801 100644
@@ -6,7 +6,7 @@ DEPENDS = "php re2c-native"
 
 SRC_URI = "https://xdebug.org/files/xdebug-${PV}.tgz"
 
-SRC_URI[sha256sum] = "4cd6a2523d9c1576c818eb4d15fe0c1650a25dde4d31d1d20a616e9d9435cc20"
+SRC_URI[sha256sum] = "7592923501e3fdb9741ad35b90e08fc6b3c5dd31eadc4c83b7b3c9dda0627b24"
 
 UPSTREAM_CHECK_URI = "https://github.com/xdebug/xdebug/releases"
 UPSTREAM_CHECK_REGEX = "releases/tag/(?P<pver>\d+(\.\d+)+)$"
#2 lore raw

PATCH 3/9 php: upgrade 8.4.14 -> 8.4.15

In reply to [email protected]

From: Jason Schonberg <[email protected]>

This is a bug fix release.

Changelog: https://www.php.net/ChangeLog-8.php#8.4.15

(cherry picked from commit 53db086b3504fe9e92b39e5a74fe0ec760f28ed2)
---
 meta-oe/recipes-devtools/php/{php_8.4.14.bb => php_8.4.15.bb} | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
 rename meta-oe/recipes-devtools/php/{php_8.4.14.bb => php_8.4.15.bb} (99%)
meta-oe/recipes-devtools/php/php_8.4.15.bb renamed from meta-oe/recipes-devtools/php/php_8.4.14.bb +1 -1
similarity index 99%
rename from meta-oe/recipes-devtools/php/php_8.4.14.bb
rename to meta-oe/recipes-devtools/php/php_8.4.15.bb
index 086e7114fb..629eef0519 100644
@@ -32,7 +32,7 @@ UPSTREAM_CHECK_REGEX = "releases/tag/php-(?P<pver>\d+(\.\d+)+)"
 
 S = "${UNPACKDIR}/php-${PV}"
 
-SRC_URI[sha256sum] = "f2139ce4cb7a6c5643ee98caa34e5c32ba841c2ba293e34a3d0357faa84bb3e7"
+SRC_URI[sha256sum] = "b7155bdd498d60d63e4bc320dc224863976d31b5bd9339699726c961255a3197"
 
 CVE_STATUS_GROUPS += "CVE_STATUS_PHP"
 CVE_STATUS_PHP[status] = "fixed-version: The name of this product is exactly the same as github.com/emlog/emlog. CVE can be safely ignored."
#3 lore raw

PATCH 4/9 libao: ignore CVE-2017-11548

In reply to [email protected]

From: Gyorgy Sarvari <[email protected]>

Both Suse[1] and Debian[2] disputes that this is a vulnerability in libao. Based on their investigation while an issue exists, it is not in libao, however higher in the audio-toolchain, most likely in libmad or mpg321. There seem to be nothing to be fixed about this in libao - ignore this CVE due to this.

[1]: https://bugzilla.suse.com/show_bug.cgi?id=1081767
[2]: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=870608

(cherry picked from commit a993eb8b93f16e3a16c9a1ab2eb0939cb2331593)
---
 meta-multimedia/recipes-multimedia/libao/libao_1.2.0.bb | 2 ++
 1 file changed, 2 insertions(+)
meta-multimedia/recipes-multimedia/libao/libao_1.2.0.bb +2 -0
index 233b890711..42c0934b2e 100644
@@ -31,3 +31,5 @@ PACKAGECONFIG ?= "${@bb.utils.filter('DISTRO_FEATURES', 'alsa pulseaudio', d)}"
 PACKAGECONFIG[alsa] = "--enable-alsa,--disable-alsa,alsa-lib"
 PACKAGECONFIG[pulseaudio] = "--enable-pulse,--disable-pulse,pulseaudio"
 FILES:${BPN}-ckport = "${libdir}/ckport"
+
+CVE_STATUS[CVE-2017-11548] = "disputed: the referenced vulnerability is not in libao"
#4 lore raw

PATCH 5/9 gsoap: upgrade 2.8.135 -> 2.8.137

In reply to [email protected]

From: Jason Schonberg <[email protected]>

From the changelog.md file:

Version 2.8.137 (02/21/2025)
---
- Minor update to improve XML entity parsing within limits.

Version 2.8.136 (01/28/2025)
---
- Updated TLS/SSL demo server and client certificates and keys.

(cherry picked from commit 49894e57b05badb1416dc23e5ec3a02b2acde565)
---
 .../gsoap/{gsoap_2.8.135.bb => gsoap_2.8.137.bb}                | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
 rename meta-oe/recipes-support/gsoap/{gsoap_2.8.135.bb => gsoap_2.8.137.bb} (93%)
meta-oe/recipes-support/gsoap/gsoap_2.8.137.bb renamed from meta-oe/recipes-support/gsoap/gsoap_2.8.135.bb +1 -1
similarity index 93%
rename from meta-oe/recipes-support/gsoap/gsoap_2.8.135.bb
rename to meta-oe/recipes-support/gsoap/gsoap_2.8.137.bb
index 8ce4f17075..b91187c13f 100644
@@ -7,7 +7,7 @@ LIC_FILES_CHKSUM = "file://LICENSE.txt;md5=7eaf5d4df67c0db38549ba3c714a37d6 \
 
 SRC_URI = "https://prdownloads.sourceforge.net/${BPN}2/${BPN}_${PV}.zip \
            file://0001-Provide-strtod_l-signature-on-non-glibc-linux-musl-s.patch"
-SRC_URI[sha256sum] = "b11757e405d55d4674dfbf88c4fa6d7e24155cf64ed8ed578ccad2f2b555e98d"
+SRC_URI[sha256sum] = "a6c9fb9088efd60ad0e983fa83d8440fe128514db22297b5b3f2de302106e55c"
 
 inherit autotools
 
#5 lore raw

PATCH 6/9 mariadb: Upgrade 11.4.8 -> 11.4.9

In reply to [email protected]

From: Mingli Yu <[email protected]>

Remove the 0001-Ensure-compatibility-with-ARMv9-by-updating-.arch-di.patch patch as its logic included in new version [1].

Release notes: https://mariadb.com/docs/release-notes/community-server/11.4/11.4.9

[1] https://github.com/MariaDB/server/commit/e8026a50197cbfccd70a2072cbc0ae4728a4ab40

(cherry picked from commit a5ef451fb7c8dc4d428a4c243fd59565757d728b)
---
 ...ive_11.4.8.bb => mariadb-native_11.4.9.bb} |  0
 meta-oe/recipes-dbs/mysql/mariadb.inc         |  3 +-
 ...lity-with-ARMv9-by-updating-.arch-di.patch | 41 -------------------
 .../{mariadb_11.4.8.bb => mariadb_11.4.9.bb}  |  0
 4 files changed, 1 insertion(+), 43 deletions(-)
 rename meta-oe/recipes-dbs/mysql/{mariadb-native_11.4.8.bb => mariadb-native_11.4.9.bb} (100%)
 delete mode 100644 meta-oe/recipes-dbs/mysql/mariadb/0001-Ensure-compatibility-with-ARMv9-by-updating-.arch-di.patch
 rename meta-oe/recipes-dbs/mysql/{mariadb_11.4.8.bb => mariadb_11.4.9.bb} (100%)
meta-oe/recipes-dbs/mysql/mariadb-native_11.4.9.bb renamed from meta-oe/recipes-dbs/mysql/mariadb-native_11.4.8.bb +0 -0
similarity index 100%
rename from meta-oe/recipes-dbs/mysql/mariadb-native_11.4.8.bb
rename to meta-oe/recipes-dbs/mysql/mariadb-native_11.4.9.bb
meta-oe/recipes-dbs/mysql/mariadb.inc +1 -2
index 82479c248f..4fcb5a1e40 100644
@@ -22,14 +22,13 @@ SRC_URI = "https://archive.mariadb.org/${BP}/source/${BP}.tar.gz \
            file://0001-sql-CMakeLists.txt-fix-gen_lex_hash-not-found.patch \
            file://lfs64.patch \
            file://0001-Add-missing-includes-cstdint-and-cstdio.patch \
-           file://0001-Ensure-compatibility-with-ARMv9-by-updating-.arch-di.patch \
            file://riscv32.patch \
            file://0001-Remove-x86-specific-loop-in-my_convert.patch \
            file://0001-support-reproducible-builds.patch \
            file://0001-storage-mroonga-CMakeLists.txt-fix-reproducible-buil.patch \
            file://0001-MDEV-38029-my_tzinfo-t-fails-for-certain-TZ-values-o.patch \
           "
-SRC_URI[sha256sum] = "52fa4dca2c5f80afc1667d523a27c06176d98532298a6b0c31ed73505f49e15c"
+SRC_URI[sha256sum] = "8e481ca29b5a740444d45451c8ea2d93711cf525d6fa5d27bc9512cf8973b075"
 
 UPSTREAM_CHECK_URI = "https://github.com/MariaDB/server/tags"
 
meta-oe/recipes-dbs/mysql/mariadb/0001-Ensure-compatibility-with-ARMv9-by-updating-.arch-di.patch deleted +0 -41

41 lines not on this page · raw message

meta-oe/recipes-dbs/mysql/mariadb_11.4.9.bb renamed from meta-oe/recipes-dbs/mysql/mariadb_11.4.8.bb +0 -0
similarity index 100%
rename from meta-oe/recipes-dbs/mysql/mariadb_11.4.8.bb
rename to meta-oe/recipes-dbs/mysql/mariadb_11.4.9.bb
#6 lore raw

PATCH 7/9 cockpit: set correct CVE_PRODUCT

In reply to [email protected]

From: Gyorgy Sarvari <[email protected]>

(cherry picked from commit af4df551eec582844a8b56154117915ace1596cd)
---
 meta-webserver/recipes-webadmin/cockpit/cockpit_349.bb | 2 ++
 1 file changed, 2 insertions(+)
meta-webserver/recipes-webadmin/cockpit/cockpit_349.bb +2 -0
index 4726386f6c..f84b1c4c34 100644
@@ -197,3 +197,5 @@ do_install:append() {
         done
     fi
 }
+
+CVE_PRODUCT = "cockpit-project:cockpit"
#7 lore raw

PATCH 8/9 tigervnc: ignore CVE-2014-8241

In reply to [email protected]

From: Gyorgy Sarvari <[email protected]>

Details: https://nvd.nist.gov/vuln/detail/CVE-2014-8241

The vulnerability is about a potential null-pointer dereference, because of a malloc result is not verified[1].

The vulnerable code has been refactored since completely[2], and the code isn't present anymore in the codebase.

[1]: https://github.com/TigerVNC/tigervnc/issues/993#issuecomment-612874972 - attachment [2]: https://github.com/TigerVNC/tigervnc/commit/b8a24f055f1a29886d8b18bb3f0902144dc5bd14

(cherry picked from commit ed8a1038d227ee521cf2349d9f7f8e37eec6a64a)
---
 meta-oe/recipes-graphics/tigervnc/tigervnc_1.15.0.bb | 2 ++
 1 file changed, 2 insertions(+)
meta-oe/recipes-graphics/tigervnc/tigervnc_1.15.0.bb +2 -0
index dd4f79c314..d3159f8a88 100644
@@ -85,3 +85,5 @@ FILES:${PN} += " \
 "
 
 SYSTEMD_SERVICE:${PN} = "[email protected]"
+
+CVE_STATUS[2014-8241] = "fixed-version: The vulnerable code is not present in the used version (1.15.0)"
#8 lore raw

PATCH 9/9 rsyslog: upgrade 8.2506.0 -> 8.2510.0

In reply to [email protected]

From: Randy MacLeod <[email protected]>

Full Changelog:
https://github.com/rsyslog/rsyslog/blob/v8-stable/ChangeLog

Avoid buildpath error:
QA Issue: File /usr/lib/rsyslog/ptest/tests/.deps/liboverride_getaddrinfo_la-override_getaddrinfo.Plo
These .deps directories are created at configure time and mainly used
in an interactive development environment. Remove test/.deps to eliminate
the error.

Drop: use-pkgconfig-to-check-libgcrypt.patch
since it's implemented upstream by:
85e03c0e8 Replace libgcrypt-config with pkg-config 8ba35bf6c Add missing libraries to pkg-config call
as per: https://github.com/rsyslog/rsyslog/pull/5406/commits

For musl, drop: 0001-Include-sys-time-h.patch
which oddly doesn't seem to be required to build any of: qemux86-64, qemuarm64, and qemuarm.

Rebase other patches as needed.

ptest results for qemux86-64/kvm with extra FS space and 2 GB RAM:

   Version | Total | Passed | Failed | Skipped
   8.2506  |   485 |    479 |      0 |       6
   8.2510  |   497 |    491 |      0 |       6

rsyslog works when built with musl but there are lots of ptest failures:

   Version | Total | Passed | Failed | Skipped
   8.2506  |   485 |    306 |    172 |       7
   8.2510  |   497 |    310 |    180 |       7

Note that with this update the results are similarily bad. If someone is interested and has time, they can work on improving the musl ptest results.

(cherry picked from commit e730ee0c603df293ebe9218b8b9d79f8e617dd87)
---
 .../rsyslog/0001-Include-sys-time-h.patch     | 32 --------------
 ...-tests-disable-the-check-for-inotify.patch |  8 ++--
 ...-Pass-correct-parameter-type-to-send.patch | 18 ++++----
 .../use-pkgconfig-to-check-libgcrypt.patch    | 42 -------------------
 ...syslog_8.2506.0.bb => rsyslog_8.2510.0.bb} |  6 +--
 5 files changed, 16 insertions(+), 90 deletions(-)
 delete mode 100644 meta-oe/recipes-extended/rsyslog/rsyslog/0001-Include-sys-time-h.patch
 delete mode 100644 meta-oe/recipes-extended/rsyslog/rsyslog/use-pkgconfig-to-check-libgcrypt.patch
 rename meta-oe/recipes-extended/rsyslog/{rsyslog_8.2506.0.bb => rsyslog_8.2510.0.bb} (97%)
meta-oe/recipes-extended/rsyslog/rsyslog/0001-Include-sys-time-h.patch deleted +0 -32
deleted file mode 100644
index 6ce8b7a9c8..0000000000
@@ -1,32 +0,0 @@
-From 7baf35b88d742032a2dc456c396843e17e866f8e Mon Sep 17 00:00:00 2001
-From: Ming Liu <[email protected]>
-Date: Wed, 27 Jun 2018 14:04:57 +0800
-Subject: [PATCH] Include sys/time.h
-
-struct timeval is defined in sys/time.h with a musl libc.
-
-Upstream-Status: Inappropriate [musl libc specific]
-
-Signed-off-by: Ming Liu <[email protected]>
-Signed-off-by: Changqing Li <[email protected]>
----
- tests/msleep.c | 4 ----
- 1 file changed, 4 deletions(-)
-
-diff --git a/tests/msleep.c b/tests/msleep.c
-index 98dbece..96f6950 100644
---- a/tests/msleep.c
-+++ b/tests/msleep.c
-@@ -26,11 +26,7 @@
- #include "config.h"
- #include <stdio.h>
- #include <stdlib.h>
--#if defined(__FreeBSD__)
- #include <sys/time.h>
--#else
--#include <time.h>
--#endif
- #if defined(HAVE_SYS_SELECT_H)
- #include <sys/select.h>
- #endif
-2.7.4
meta-oe/recipes-extended/rsyslog/rsyslog/0001-tests-disable-the-check-for-inotify.patch +4 -4
index a506b7a6dc..728cdace0c 100644
@@ -23,19 +23,19 @@ diff --git a/tests/diag.sh b/tests/diag.sh
 index a9c2a75..0b017c5 100755
 --- a/tests/diag.sh
 +++ b/tests/diag.sh
-@@ -2979,7 +2979,7 @@ case $1 in
+@@ -3683,7 +3683,7 @@
  		fi
  		;;
- 	'check-inotify') # Check for inotify/fen support 
+ 	'check-inotify') # Check for inotify/fen support
 -		if [ -n "$(find /usr/include -name 'inotify.h' -print -quit)" ]; then
 +		if true; then
  			echo [inotify mode]
  		elif [ -n "$(find /usr/include/sys/ -name 'port.h' -print -quit)" ]; then
  			grep -qF "PORT_SOURCE_FILE" < /usr/include/sys/port.h
-@@ -2994,7 +2994,7 @@ case $1 in
+@@ -3698,7 +3698,7 @@
  		fi
  		;;
- 	'check-inotify-only') # Check for ONLY inotify support 
+ 	'check-inotify-only') # Check for ONLY inotify support
 -		if [ -n "$(find /usr/include -name 'inotify.h' -print -quit)" ]; then
 +		if true; then
  			echo [inotify mode]
meta-oe/recipes-extended/rsyslog/rsyslog/0001-tests-tcpflood.c-Pass-correct-parameter-type-to-send.patch +9 -9
index 884086bfc3..76749877b6 100644
@@ -21,12 +21,12 @@ diff --git a/tests/tcpflood.c b/tests/tcpflood.c
 index 5e6f13a..09cedbb 100644
 --- a/tests/tcpflood.c
 +++ b/tests/tcpflood.c
-@@ -836,7 +836,7 @@ int sendMessages(struct instdata *inst)
- 			}
- 			lenSend = sendPlainTCP(socknum, buf, lenBuf, &error_number);
- 		} else if(transport == TP_UDP) {
--			lenSend = sendto(udpsockout, buf, lenBuf, 0, &udpRcvr, sizeof(udpRcvr));
-+			lenSend = sendto(udpsockout, buf, lenBuf, 0, (const struct sockaddr *)&udpRcvr, sizeof(udpRcvr));
- 			error_number = errno;
- 		} else if(transport == TP_TLS) {
- 			if(sockArray[socknum] == -1) {
+@@ -865,7 +865,7 @@
+             }
+             lenSend = sendPlainTCP(socknum, buf, lenBuf, &error_number);
+         } else if (transport == TP_UDP) {
+-            lenSend = sendto(udpsockout, buf, lenBuf, 0, &udpRcvr, sizeof(udpRcvr));
++            lenSend = sendto(udpsockout, buf, lenBuf, 0, (const struct sockaddr *)&udpRcvr, sizeof(udpRcvr));
+             error_number = errno;
+         } else if (transport == TP_TLS) {
+             if (sockArray[socknum] == -1) {
meta-oe/recipes-extended/rsyslog/rsyslog/use-pkgconfig-to-check-libgcrypt.patch deleted +0 -42

42 lines not on this page · raw message

meta-oe/recipes-extended/rsyslog/rsyslog_8.2510.0.bb renamed from meta-oe/recipes-extended/rsyslog/rsyslog_8.2506.0.bb +3 -3
similarity index 97%
rename from meta-oe/recipes-extended/rsyslog/rsyslog_8.2506.0.bb
rename to meta-oe/recipes-extended/rsyslog/rsyslog_8.2510.0.bb
index bcac76a231..c92c11d8f3 100644
@@ -22,17 +22,15 @@ SRC_URI = "https://www.rsyslog.com/files/download/rsyslog/${BPN}-${PV}.tar.gz \
            file://rsyslog.conf \
            file://rsyslog.logrotate \
            file://rsyslog.service \
-           file://use-pkgconfig-to-check-libgcrypt.patch \
            file://run-ptest \
            file://0001-tests-disable-the-check-for-inotify.patch \
            file://0001-tests-tcpflood.c-Pass-correct-parameter-type-to-send.patch \
 "
 
 SRC_URI:append:libc-musl = " \
-    file://0001-Include-sys-time-h.patch \
     file://disable-omfile-outchannel.patch \
 "
-SRC_URI[sha256sum] = "6d6fd0257c95e756765d4d585a833d54dd3a0e5eeb8308b862a81b368a74bb7b"
+SRC_URI[sha256sum] = "a70a9834186859539a6a4d1c7b3f68c23897e805829b764a45e92cb0cc95e66a"
 
 UPSTREAM_CHECK_URI = "https://github.com/rsyslog/rsyslog/tags"
 UPSTREAM_CHECK_REGEX = "(?P<pver>\d+(\.\d+)+)"
@@ -92,6 +90,8 @@ TESTDIR = "tests"
 do_compile_ptest() {
     echo 'buildtest-TESTS: $(check_PROGRAMS)' >> ${TESTDIR}/Makefile
     oe_runmake -C ${TESTDIR} buildtest-TESTS
+    # buildpaths: remove .deps/*, an unneeded compile dependency automake artifact.
+    rm -rf ${B}/${TESTDIR}/.deps
 }
 
 do_install_ptest() {