* [PATCH 1/2] pv: upgrade 1.6.20 -> 1.9.31
@ 2025-03-27 20:49 Randy.MacLeod
2025-03-27 20:49 ` [PATCH 2/2] syslog-ng: upgrade 4.7.0 -> 4.8.1 Randy.MacLeod
0 siblings, 1 reply; 2+ messages in thread
From: Randy.MacLeod @ 2025-03-27 20:49 UTC (permalink / raw)
To: openembedded-devel
From: Randy MacLeod <Randy.MacLeod@windriver.com>
License changed to GPL-3.0-or-later in: ??? is this right???
e5cc71b Switched licensing to GPLv3+.
and moved doc to docs directory in:
86feafb Rename "doc" directory to "docs" to match Debian standards.
Change the tarball suffix since the project now only provides .gz files.
Added 'inherit gettext' to fix:
QA Issue: AM_GNU_GETTEXT used but no inherit gettext [configure-gettext]
Drop:
0001-pv-display-handle-error-of-tcgetpgrp-in-pv_in_foregr.patch
which is covered by:
c5cd932 pv/display: handle error of tcgetpgrp() in pv_in_foreground()
Re-write the run-ptest wrapper since upstream switched to using 'make check'.
Skip some of the tests to get the recipe update merged.
---
1. Remove a failing 'make install' test entirely rather than with the
cross-compile flag XCTEST since it still tries the test and fails
and the test isn't relevant for cross-compile environments.
2. Skip Terminal_-_Detect_width.test since it is confused by our terminal PS1
or something:
root@qemux86-64:/usr/lib/pv/ptest# ./run-one
test requires a `tmux' that can resize a detached window (requested width 100, detected root@qemux86-64:/usr/lib/pv/ptest# 100)
FAIL: tests/Terminal_-_Detect_width.test
3. Skip all the Memory test since something may be wrong with our valgrind-3.24.
Tracked by: https://bugzilla.yoctoproject.org/show_bug.cgi?id=15817
For a self-hosted build, 44 tests pass and 1, the Terminal test, is skipped.
For qemux86-64, glibc: 37 tests pass, and the failures have been removed.
For qemux86-64, musl: 37 tests pass, and the failures have been removed.
Signed-off-by: Randy MacLeod <Randy.MacLeod@windriver.com>
---
...e-error-of-tcgetpgrp-in-pv_in_foregr.patch | 40 ------------------
.../pv/pv/pv-test-system-version.patch | 18 ++++++++
meta-oe/recipes-support/pv/pv/run-ptest | 25 ++++++++---
meta-oe/recipes-support/pv/pv_1.6.20.bb | 28 -------------
meta-oe/recipes-support/pv/pv_1.9.31.bb | 41 +++++++++++++++++++
5 files changed, 79 insertions(+), 73 deletions(-)
delete mode 100644 meta-oe/recipes-support/pv/pv/0001-pv-display-handle-error-of-tcgetpgrp-in-pv_in_foregr.patch
create mode 100644 meta-oe/recipes-support/pv/pv/pv-test-system-version.patch
delete mode 100644 meta-oe/recipes-support/pv/pv_1.6.20.bb
create mode 100644 meta-oe/recipes-support/pv/pv_1.9.31.bb
diff --git a/meta-oe/recipes-support/pv/pv/0001-pv-display-handle-error-of-tcgetpgrp-in-pv_in_foregr.patch b/meta-oe/recipes-support/pv/pv/0001-pv-display-handle-error-of-tcgetpgrp-in-pv_in_foregr.patch
deleted file mode 100644
index c51fb1cfdb..0000000000
--- a/meta-oe/recipes-support/pv/pv/0001-pv-display-handle-error-of-tcgetpgrp-in-pv_in_foregr.patch
+++ /dev/null
@@ -1,40 +0,0 @@
-From c5cd932fb08e7ce90cdbf9ae6c5cc7e65ac0738e Mon Sep 17 00:00:00 2001
-From: =?UTF-8?q?Michael=20Wei=C3=9F?= <michael.weiss@aisec.fraunhofer.de>
-Date: Tue, 9 May 2023 20:00:26 +0200
-Subject: [PATCH] pv/display: handle error of tcgetpgrp() in pv_in_foreground()
-MIME-Version: 1.0
-Content-Type: text/plain; charset=UTF-8
-Content-Transfer-Encoding: 8bit
-
-Show pv progress bar even if no terminal is set, e.g., in a busybox
-init script. The description of pv_in_forground() states it will
-return true "if we aren't outputting to a terminal". However, this
-is not the case since tcgetpgrg() will return an error and set ERRNO
-to ENOTTY if the output fd is not an tty. We now handle this error
-correctly and pv_in_foreground() returns also true in that case.
-
-Signed-off-by: Michael Weiß <michael.weiss@aisec.fraunhofer.de>
----
-Upstream-Status: Pending
-
- src/pv/display.c | 4 ++++
- 1 file changed, 4 insertions(+)
-
-diff --git a/src/pv/display.c b/src/pv/display.c
-index aff643b..8d1f4c9 100644
---- a/src/pv/display.c
-+++ b/src/pv/display.c
-@@ -48,6 +48,10 @@ bool pv_in_foreground(void)
-
- our_process_group = getpgrp();
- tty_process_group = tcgetpgrp(STDERR_FILENO);
-+
-+ if (tty_process_group == -1 && errno == ENOTTY)
-+ return true;
-+
- if (our_process_group == tty_process_group)
- return true;
-
---
-2.30.2
-
diff --git a/meta-oe/recipes-support/pv/pv/pv-test-system-version.patch b/meta-oe/recipes-support/pv/pv/pv-test-system-version.patch
new file mode 100644
index 0000000000..f5e2b05768
--- /dev/null
+++ b/meta-oe/recipes-support/pv/pv/pv-test-system-version.patch
@@ -0,0 +1,18 @@
+Use the version of pv installed on the system rather than the ./pv from
+the development tree as is done when running 'make check'.
+
+Upstream-Status: Inappropriate [x-compile specific]
+
+---
+diff -Naur pv-1.9.31.orig/tests/test-env.sh pv-1.9.31/tests/test-env.sh
+--- pv-1.9.31.orig/tests/test-env.sh 2024-12-07 08:59:43.000000000 -0500
++++ pv-1.9.31/tests/test-env.sh 2025-03-26 14:11:30.987123378 -0400
+@@ -9,7 +9,7 @@
+ true "${srcdir:?not set - call this from 'make check'}"
+
+ # Parameters.
+-testSubject="./pv"
++testSubject="pv"
+ sourcePath="${srcdir}"
+
+ # Set everything to the "C" locale.
diff --git a/meta-oe/recipes-support/pv/pv/run-ptest b/meta-oe/recipes-support/pv/pv/run-ptest
index 3f5956f4c0..b0370e0a99 100644
--- a/meta-oe/recipes-support/pv/pv/run-ptest
+++ b/meta-oe/recipes-support/pv/pv/run-ptest
@@ -1,7 +1,22 @@
#!/bin/sh
-rm -rf tests.log
-sh -e run-test.sh pv . > tests.log 2>&1
-sed -e 's|\(.*\):.*OK|PASS: \1|' \
- -e 's|\(.*\):.*FAILED|FAIL: \1|' \
- tests.log
+srcdir=/usr/lib/pv/ptest
+export srcdir
+
+source tests/test-env.sh
+
+num_fail=0
+
+# all pv tests are capitalized
+for test in tests/[A-Z]*
+do
+ ./"$test" \
+ && echo "PASS: $test" \
+ || {
+ echo "FAIL: $test"
+ num_fail=$(( ${num_fail} + 1))
+ }
+
+done
+
+exit $num_fail
diff --git a/meta-oe/recipes-support/pv/pv_1.6.20.bb b/meta-oe/recipes-support/pv/pv_1.6.20.bb
deleted file mode 100644
index ac26ef9365..0000000000
--- a/meta-oe/recipes-support/pv/pv_1.6.20.bb
+++ /dev/null
@@ -1,28 +0,0 @@
-SUMMARY = "Terminal-based tool for monitoring the progress of data through a pipeline"
-HOMEPAGE = "http://www.ivarch.com/programs/pv.shtml"
-
-LICENSE = "Artistic-2.0"
-LIC_FILES_CHKSUM = "file://doc/COPYING;md5=9c50db2589ee3ef10a9b7b2e50ce1d02"
-
-SRC_URI = "https://www.ivarch.com/programs/sources/${BP}.tar.bz2 \
- file://0001-pv-display-handle-error-of-tcgetpgrp-in-pv_in_foregr.patch \
- file://run-ptest \
-"
-SRC_URI[sha256sum] = "e831951eff0718fba9b1ef286128773b9d0e723e1fbfae88d5a3188814fdc603"
-
-UPSTREAM_CHECK_URI = "http://www.ivarch.com/programs/pv.shtml"
-UPSTREAM_CHECK_REGEX = "pv-(?P<pver>\d+(\.\d+)+).tar"
-
-inherit autotools ptest
-
-LDEMULATION:mipsarchn32 = "${@bb.utils.contains('TUNE_FEATURES', 'bigendian', 'elf32btsmipn32', 'elf32ltsmipn32', d)}"
-export LDEMULATION
-
-RDEPENDS:${PN}-ptest += "coreutils ${PN}"
-
-do_install_ptest() {
- install -d ${D}${PTEST_PATH}/tests
- cp -r ${S}/tests/* ${D}${PTEST_PATH}/tests
- cp -r ${S}/autoconf/scripts/run-test.sh ${D}${PTEST_PATH}
- # sed -i -e 's@\$SRCDIR/@./@g' ${D}${PTEST_PATH}/run-ptest
-}
diff --git a/meta-oe/recipes-support/pv/pv_1.9.31.bb b/meta-oe/recipes-support/pv/pv_1.9.31.bb
new file mode 100644
index 0000000000..2f1d38337f
--- /dev/null
+++ b/meta-oe/recipes-support/pv/pv_1.9.31.bb
@@ -0,0 +1,41 @@
+SUMMARY = "Terminal-based tool for monitoring the progress of data through a pipeline"
+HOMEPAGE = "http://www.ivarch.com/programs/pv.shtml"
+
+LICENSE = "GPL-3.0-or-later"
+LIC_FILES_CHKSUM = "file://docs/COPYING;md5=1ebbd3e34237af26da5dc08a4e440464"
+
+SRC_URI = "https://www.ivarch.com/programs/sources/${BP}.tar.gz \
+ file://pv-test-system-version.patch \
+ file://run-ptest \
+"
+SRC_URI[sha256sum] = "a35e92ec4ac0e8f380e8e840088167ae01014bfa008a3a9d6506b848079daedf"
+
+UPSTREAM_CHECK_URI = "http://www.ivarch.com/programs/pv.shtml"
+UPSTREAM_CHECK_REGEX = "pv-(?P<pver>\d+(\.\d+)+).tar"
+
+inherit autotools gettext ptest
+
+LDEMULATION:mipsarchn32 = "${@bb.utils.contains('TUNE_FEATURES', 'bigendian', 'elf32btsmipn32', 'elf32ltsmipn32', d)}"
+export LDEMULATION
+
+RDEPENDS:${PN}-ptest += "bash coreutils tmux valgrind"
+RDEPENDS:${PN}-ptest:append:libc-musl = " musl-locales"
+RDEPENDS:${PN}-ptest:append:libc-glibc = " glibc-binary-localedata-c"
+
+do_install_ptest() {
+ testsdir=${D}${PTEST_PATH}/tests
+ install -d ${testsdir}
+ cp -r ${S}/tests/* ${testsdir}
+ #
+ # remove self-hosted install test
+ rm -f ${testsdir}/Bug_-_Install_all_files.test
+ # skip the failing valgrind tests for now (March 2025).
+ # See: https://bugzilla.yoctoproject.org/show_bug.cgi?id=15817
+ rm -f ${testsdir}/Memory*
+ # test requires at least 3GB free on /tmp
+ rm -f ${testsdir}/Integrity_-_Large_file_support.test
+ # fails due to our prompt:
+ rm -f ${testsdir}/Terminal_-_Detect_width.test
+ #
+ # sed -i -e 's@\$SRCDIR/@./@g' ${D}${PTEST_PATH}/run-ptest
+}
--
2.34.1
^ permalink raw reply related [flat|nested] 2+ messages in thread* [PATCH 2/2] syslog-ng: upgrade 4.7.0 -> 4.8.1
2025-03-27 20:49 [PATCH 1/2] pv: upgrade 1.6.20 -> 1.9.31 Randy.MacLeod
@ 2025-03-27 20:49 ` Randy.MacLeod
0 siblings, 0 replies; 2+ messages in thread
From: Randy.MacLeod @ 2025-03-27 20:49 UTC (permalink / raw)
To: openembedded-devel
From: Randy MacLeod <Randy.MacLeod@windriver.com>
Release notes:
https://github.com/syslog-ng/syslog-ng/releases/tag/syslog-ng-4.8.1
https://github.com/syslog-ng/syslog-ng/releases/tag/syslog-ng-4.8.0
Update the syslog-ng.conf.[systemd|sysvinit] files to align with
upstream's 4.8 version. This involved changing from stats_freq(0)
to stats(freq(0)) to avoid:
> WARNING: Your configuration file uses an obsoleted keyword, ...
as was done in:
2d3a8c783 packaging: Update the sample Debian config to not throw warning
The comments and the greater authentication/encryption defaults kept.
Note that the latter are comment lines.
Also kept a line from the 'Sources' section:
file("/proc/kmsg" program_override("kernel"));
but it's not clear if that's needed. It was in the original meta-oe version of
the file from 2018, version 3.15 but not the upstream syslog-ng-3.15.1.
With systemd enabled using poky-altcfg, there's a warning:
/etc/tmpfiles.d/syslog-ng.conf:1:
Line references path below legacy directory /var/run/,
updating /var/run/syslog-ng → /run/syslog-ng;
please update the tmpfiles.d/ drop-in file accordingly.
but that was present in the previous version and I won't take time
to fix it right now since systemd + syslog-ng isn't a common combination.
Signed-off-by: Randy MacLeod <Randy.MacLeod@windriver.com>
---
.../syslog-ng/files/syslog-ng.conf.systemd | 11 ++++++-----
.../syslog-ng/files/syslog-ng.conf.sysvinit | 8 ++++----
.../{syslog-ng_4.7.0.bb => syslog-ng_4.8.1.bb} | 2 +-
3 files changed, 11 insertions(+), 10 deletions(-)
rename meta-oe/recipes-support/syslog-ng/{syslog-ng_4.7.0.bb => syslog-ng_4.8.1.bb} (98%)
diff --git a/meta-oe/recipes-support/syslog-ng/files/syslog-ng.conf.systemd b/meta-oe/recipes-support/syslog-ng/files/syslog-ng.conf.systemd
index 851bf252b7..d3f3730105 100644
--- a/meta-oe/recipes-support/syslog-ng/files/syslog-ng.conf.systemd
+++ b/meta-oe/recipes-support/syslog-ng/files/syslog-ng.conf.systemd
@@ -1,5 +1,6 @@
-@version: 3.36
-#
+@version: 4.8
+@include "scl.conf"
+
# Syslog-ng configuration file, compatible with default Debian syslogd
# installation. Originally written by anonymous (I can't find his name)
# Revised, and rewrited by me (SZALAY Attila <sasa@debian.org>)
@@ -10,9 +11,9 @@
# Joe Slater <joe.slater@windriver.com>
# First, set some global options.
-options { chain_hostnames(off); flush_lines(0); use_dns(no); dns_cache(no); use_fqdn(no);
- owner("root"); group("adm"); perm(0640); stats_freq(0);
- bad_hostname("^gconfd$");
+options { chain_hostnames(off); flush_lines(0); use_dns(no); use_fqdn(no);
+ dns_cache(no); owner("root"); group("adm"); perm(0640);
+ stats(freq(0)); bad_hostname("^gconfd$");
};
########################
diff --git a/meta-oe/recipes-support/syslog-ng/files/syslog-ng.conf.sysvinit b/meta-oe/recipes-support/syslog-ng/files/syslog-ng.conf.sysvinit
index 70afd0da84..2b18dce89c 100644
--- a/meta-oe/recipes-support/syslog-ng/files/syslog-ng.conf.sysvinit
+++ b/meta-oe/recipes-support/syslog-ng/files/syslog-ng.conf.sysvinit
@@ -1,4 +1,4 @@
-@version: 3.36
+@version: 4.8
#
# Syslog-ng configuration file, compatible with default Debian syslogd
# installation. Originally written by anonymous (I can't find his name)
@@ -10,9 +10,9 @@
# Joe Slater <joe.slater@windriver.com>
# First, set some global options.
-options { chain_hostnames(off); flush_lines(0); use_dns(no); dns_cache(no); use_fqdn(no);
- owner("root"); group("adm"); perm(0640); stats_freq(0);
- bad_hostname("^gconfd$");
+options { chain_hostnames(off); flush_lines(0); use_dns(no); use_fqdn(no);
+ dns_cache(no); owner("root"); group("adm"); perm(0640);
+ stats(freq(0)); bad_hostname("^gconfd$");
};
########################
diff --git a/meta-oe/recipes-support/syslog-ng/syslog-ng_4.7.0.bb b/meta-oe/recipes-support/syslog-ng/syslog-ng_4.8.1.bb
similarity index 98%
rename from meta-oe/recipes-support/syslog-ng/syslog-ng_4.7.0.bb
rename to meta-oe/recipes-support/syslog-ng/syslog-ng_4.8.1.bb
index e489287c5a..94f74d1eef 100644
--- a/meta-oe/recipes-support/syslog-ng/syslog-ng_4.7.0.bb
+++ b/meta-oe/recipes-support/syslog-ng/syslog-ng_4.8.1.bb
@@ -26,7 +26,7 @@ SRC_URI = "https://github.com/balabit/syslog-ng/releases/download/${BP}/${BP}.ta
"
SRC_URI:append:powerpc64le = " file://0001-plugin.c-workaround-powerpc64le-segfaults-error.patch"
-SRC_URI[sha256sum] = "b601265362c633a25f26c497a7e57592739d5a583b7963b722ff58f01b853506"
+SRC_URI[sha256sum] = "e8b8b98c60a5b68b25e3462c4104c35d05b975e6778d38d8a81b8ff7c0e64c5b"
UPSTREAM_CHECK_URI = "https://github.com/balabit/syslog-ng/releases"
--
2.34.1
^ permalink raw reply related [flat|nested] 2+ messages in thread
end of thread, other threads:[~2025-03-27 20:49 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-03-27 20:49 [PATCH 1/2] pv: upgrade 1.6.20 -> 1.9.31 Randy.MacLeod
2025-03-27 20:49 ` [PATCH 2/2] syslog-ng: upgrade 4.7.0 -> 4.8.1 Randy.MacLeod
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.