package/procps-ng: add wchar dependency
PATCH v2 1/2 package/procps-ng: add wchar dependency
Since procps-ng was bumped from 3.3.17 to 4.0.4 in commit d79f40dbbe98983bc657d4c82d46b38b8283351b ("package/procps-ng: security bump to version 4.0.4"), the build has been failing on !wchar configurations with:
src/ps/output.c:68:10: fatal error: wctype.h: No such file or directory
68 | #include <wctype.h>
| ^~~~~~~~~~
compilation terminated.
The problematic code has been added by upstream commit
https://gitlab.com/procps-ng/procps/-/commit/605ea4a8f7460920b6de9e432757bd13f80f0dba,
which landed in upstream release v4.0.0.
To solve this, we simply add a BR2_USE_WCHAR dependency, and update the comment related to this dependency on the only reverse dependency of procps-ng.
Fixes:
http://autobuild.buildroot.net/results/afc035e866bec6f2c14f9d52fa74a9c1897706de/
---
v1 -> v2: no changes
--- package/igt-gpu-tools/Config.in | 2 +- package/procps-ng/Config.in | 6 ++++++ 2 files changed, 7 insertions(+), 1 deletion(-)
package/igt-gpu-tools/Config.in +1 -1
@@ -5,7 +5,7 @@ config BR2_PACKAGE_IGT_GPU_TOOLS depends on !BR2_STATIC_LIBS depends on BR2_TOOLCHAIN_HAS_THREADS depends on BR2_PACKAGE_HAS_UDEV - depends on BR2_USE_WCHAR # elfutils + depends on BR2_USE_WCHAR # elfutils, procps-ng depends on BR2_TOOLCHAIN_HEADERS_AT_LEAST_4_11 # linux/dma-buf.h select BR2_PACKAGE_BUSYBOX_SHOW_OTHERS # procps-ng select BR2_PACKAGE_CAIRO
package/procps-ng/Config.in +6 -0
@@ -1,7 +1,13 @@ +comment "procps-ng needs a toolchain w/ wchar" + depends on BR2_USE_MMU + depends on BR2_PACKAGE_BUSYBOX_SHOW_OTHERS + depends on !BR2_USE_WCHAR + config BR2_PACKAGE_PROCPS_NG bool "procps-ng" depends on BR2_USE_MMU # fork() depends on BR2_PACKAGE_BUSYBOX_SHOW_OTHERS + depends on BR2_USE_WCHAR select BR2_PACKAGE_NCURSES help Standard informational utilities and process-handling tools.
Signature · 6 lines
2.47.1 _______________________________________________ buildroot mailing list [email protected] https://lists.buildroot.org/mailman/listinfo/buildroot
PATCH v2 2/2 package/procps-ng: bump version to 4.0.5
Patch 0001 is dropped as it's upstream as ofca004d4657d5e8b468a4552ede429be53193a3a9.
Patch 0002 is dropped as it's upstream as of263fe04f9ed6f3f40fdb7ce249221e03dc926c9b.
Patch 0003 is dropped as it's upstream as of2507bc475782ff5e0541d37c780dff1e293c9553.
Patch 0004 is dropped as it's upstream as of587efb47df7ddbfda4e6abdd1e7792a2531a238f.
Patch 0005 is dropped as it's upstream as of5acbb5dc1587d688de646d739a97251eb893bbb0.
Therefore AUTORECONF = YES can be dropped as we're no longer patching the package.
Release notes:
https://gitlab.com/procps-ng/procps/-/releases/v4.0.5
---
v1 -> v2: drop AUTORECONF, reported by Baruch.
--- ...1-build-sys-Add-systemd-elogind-to-w.patch | 48 --------- .../0002-fix-ncurses-h-include.patch | 55 ----------- ...03-build-sys-Fix-pidfd_open-checking.patch | 99 ------------------- ...ld-sys-Fix-define-of-HAVE_PIDFD_OPEN.patch | 37 ------- ...lude-sys-syscall.h-if-making-pidwait.patch | 41 -------- package/procps-ng/procps-ng.hash | 8 +- package/procps-ng/procps-ng.mk | 8 +- 7 files changed, 5 insertions(+), 291 deletions(-) delete mode 100644 package/procps-ng/0001-build-sys-Add-systemd-elogind-to-w.patch delete mode 100644 package/procps-ng/0002-fix-ncurses-h-include.patch delete mode 100644 package/procps-ng/0003-build-sys-Fix-pidfd_open-checking.patch delete mode 100644 package/procps-ng/0004-build-sys-Fix-define-of-HAVE_PIDFD_OPEN.patch delete mode 100644 package/procps-ng/0005-pgrep-Include-sys-syscall.h-if-making-pidwait.patch
package/procps-ng/0001-build-sys-Add-systemd-elogind-to-w.patch deleted +0 -48
@@ -1,48 +0,0 @@ -From 788248ee631b3b5f82073c36320fc3f4a3c8f9ba Mon Sep 17 00:00:00 2001 -From: Craig Small <[email protected]> -Date: Thu, 31 Aug 2023 22:24:23 +1000 -Subject: [PATCH] build-sys: Add systemd/elogind to w - -Depending on the compiler flags, w needs to be explictly linked -to libsystemd or elogind even though libproc2 is linked to it. - -Signed-off-by: Craig Small <[email protected]> -Upstream: https://gitlab.com/procps-ng/procps/-/commit/ca004d4657d5e8b468a4552ede429be53193a3a9 -Signed-off-by: Hugo Cornelis <[email protected]> ---- - Makefile.am | 7 +++++++ - NEWS | 3 +++ - 2 files changed, 10 insertions(+) - -diff --git a/Makefile.am b/Makefile.am -index f70c8fb1..ddfc0141 100644 ---- a/Makefile.am -+++ b/Makefile.am -@@ -149,6 +149,13 @@ endif - - dist_man_MANS += man/w.1 - src_w_SOURCES = src/w.c local/fileutils.c -+src_w_LDADD = $(LDADD) -+if WITH_SYSTEMD -+src_w_LDADD += @SYSTEMD_LIBS@ -+endif -+if WITH_ELOGIND -+src_w_LDADD += @ELOGIND_LIBS@ -+endif - else - EXTRA_DIST += man/w.1 - endif -diff --git a/NEWS b/NEWS -index 3f2158d4..4ad9f74e 100644 ---- a/NEWS -+++ b/NEWS -@@ -1,3 +1,6 @@ -+procps-ng-NEXT -+--------------- -+ - procps-ng-4.0.4 - --------------- - * library (API & ABI unchanged) --- -2.34.1 -
package/procps-ng/0002-fix-ncurses-h-include.patch deleted +0 -55
55 lines not on this page · raw message
package/procps-ng/0003-build-sys-Fix-pidfd_open-checking.patch deleted +0 -99
99 lines not on this page · raw message
package/procps-ng/0004-build-sys-Fix-define-of-HAVE_PIDFD_OPEN.patch deleted +0 -37
@@ -1,37 +0,0 @@ -From 1e2d53e1d86cb75e8f39b42b9a5c409e5d3261ed Mon Sep 17 00:00:00 2001 -From: oli-ben <[email protected]> -Date: Wed, 27 Nov 2024 20:17:11 +0000 -Subject: [PATCH] build-sys: Fix define of HAVE_PIDFD_OPEN - -Fix cross-compilation issues when using GCC-12.3 -* configure fails to detect that the sysroot does support the pidfd_open - syscall wrapper -* configure fails to define HAVE_PIDFD_OPEN which is used in pgrep.c, - so it fails building, because __NR_pidfd_open is then undefined - -Upstream: https://gitlab.com/procps-ng/procps/-/commit/587efb47df7ddbfda4e6abdd1e7792a2531a238f - -Signed-off-by: Scott Fan <[email protected]> -[Scott: backported to version 4.0.4] ---- - configure.ac | 4 ++-- - 1 file changed, 2 insertions(+), 2 deletions(-) - -diff --git a/configure.ac b/configure.ac -index 0719fcd1..6242a8f8 100644 ---- a/configure.ac -+++ b/configure.ac -@@ -317,8 +317,8 @@ AC_ARG_ENABLE([pidwait], - ) - AM_CONDITIONAL(BUILD_PIDWAIT, test "x$enable_pidwait" = xyes) - AC_MSG_CHECKING([for pidfd_open()]) --AC_LINK_IFELSE([AC_LANG_PROGRAM([], [[ [pidfd_open(1,1)]]])], -- have_pidfd_open=yes; AC_MSG_RESULT([yes]) , -+AC_LINK_IFELSE([AC_LANG_PROGRAM([], [[pidfd_open(1,1)]])], -+ have_pidfd_open=yes; AC_DEFINE(HAVE_PIDFD_OPEN, 1, [pidfd_open is defined]) AC_MSG_RESULT([yes]), - have_pidfd_open=no; AC_MSG_RESULT([no]) - ) - --- -2.43.0 -
package/procps-ng/0005-pgrep-Include-sys-syscall.h-if-making-pidwait.patch deleted +0 -41
41 lines not on this page · raw message
package/procps-ng/procps-ng.hash +4 -4
@@ -1,8 +1,8 @@ # From http://sourceforge.net/projects/procps-ng/files/Production/ -md5 2f747fc7df8ccf402d03e375c565cf96 procps-ng-4.0.4.tar.xz -sha1 2b859acd7060e9898ac457dbd26dbebf563cc44b procps-ng-4.0.4.tar.xz +md5 90803e64f51f192f3325d25c3335d057 procps-ng-4.0.5.tar.xz +sha1 a36b8ab95950addb4b34251fcf23195c45a63eda procps-ng-4.0.5.tar.xz # Locally calculated after checking signature -# http://downloads.sourceforge.net/project/procps-ng/Production/procps-ng-4.0.4.tar.xz.asc -sha256 22870d6feb2478adb617ce4f09a787addaf2d260c5a8aa7b17d889a962c5e42e procps-ng-4.0.4.tar.xz +# http://downloads.sourceforge.net/project/procps-ng/Production/procps-ng-4.0.5.tar.xz.asc +sha256 c2e6d193cc78f84cd6ddb72aaf6d5c6a9162f0470e5992092057f5ff518562fa procps-ng-4.0.5.tar.xz sha256 8177f97513213526df2cf6184d8ff986c675afb514d4e68a404010521b880643 COPYING sha256 681e386e44a19d7d0674b4320272c90e66b6610b741e7e6305f8219c42e85366 COPYING.LIB
package/procps-ng/procps-ng.mk +1 -7
@@ -4,7 +4,7 @@ # ################################################################################ -PROCPS_NG_VERSION = 4.0.4 +PROCPS_NG_VERSION = 4.0.5 PROCPS_NG_SOURCE = procps-ng-$(PROCPS_NG_VERSION).tar.xz PROCPS_NG_SITE = http://downloads.sourceforge.net/project/procps-ng/Production PROCPS_NG_LICENSE = GPL-2.0+, LGPL-2.0+ (libproc and libps)
@@ -14,12 +14,6 @@ PROCPS_NG_INSTALL_STAGING = YES PROCPS_NG_DEPENDENCIES = ncurses host-pkgconf $(TARGET_NLS_DEPENDENCIES) PROCPS_NG_CONF_OPTS = LIBS=$(TARGET_NLS_LIBS) -# Applying 0001-build-sys-Add-systemd-elogind-to-w.patch touches Makefile.am -# Applying 0002-fix-ncurses-h-include.patch touches configure.ac -# Applying 0003-build-sys-Fix-pidfd_open-checking.patch touches configure.ac -# Applying 0004-build-sys-Fix-define-of-HAVE_PIDFD_OPEN.patch touches configure.ac -PROCPS_NG_AUTORECONF = YES - ifeq ($(BR2_PACKAGE_SYSTEMD),y) PROCPS_NG_DEPENDENCIES += systemd PROCPS_NG_CONF_OPTS += --with-systemd
Signature · 6 lines
2.47.1 _______________________________________________ buildroot mailing list [email protected] https://lists.buildroot.org/mailman/listinfo/buildroot
Quoted 18 lines · Thomas Petazzoni via buildroot
Since procps-ng was bumped from 3.3.17 to 4.0.4 in commit
d79f40dbbe98983bc657d4c82d46b38b8283351b("package/procps-ng: security bump to version 4.0.4"), the build has been failing on !wchar configurations with:
src/ps/output.c:68:10: fatal error:wctype.h: No such file or directory
68 | #include <wctype.h>| ^~~~~~~~~~compilation terminated.
The problematic code has been added by upstream commit
https://gitlab.com/procps-ng/procps/-/commit/605ea4a8f7460920b6de9e432757bd13f80f0dba,
which landed in upstream release v4.0.0.To solve this, we simply add a
BR2_USE_WCHARdependency, and update the comment related to this dependency on the only reverse dependency of procps-ng.
Quoted 6 lines
Fixes:
http://autobuild.buildroot.net/results/afc035e866bec6f2c14f9d52fa74a9c1897706de/
Signed-off-by Thomas Petazzoni <[email protected]>
Series applied to master, thanks.
_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot
Quoted 18 lines · Thomas Petazzoni via buildroot
Since procps-ng was bumped from 3.3.17 to 4.0.4 in commit
d79f40dbbe98983bc657d4c82d46b38b8283351b("package/procps-ng: security bump to version 4.0.4"), the build has been failing on !wchar configurations with:
src/ps/output.c:68:10: fatal error:wctype.h: No such file or directory68 | #include <wctype.h> | ^~~~~~~~~~compilation terminated.
The problematic code has been added by upstream commit
https://gitlab.com/procps-ng/procps/-/commit/605ea4a8f7460920b6de9e432757bd13f80f0dba,
which landed in upstream release v4.0.0.To solve this, we simply add a
BR2_USE_WCHARdependency, and update the comment related to this dependency on the only reverse dependency of procps-ng.
Quoted 7 lines
Fixes:
http://autobuild.buildroot.net/results/afc035e866bec6f2c14f9d52fa74a9c1897706de/Signed-off-by Thomas Petazzoni <[email protected]>---
v1 -> v2: no changes
Committed to 2024.02.x and 2024.11.x, thanks.
Signature · 5 lines
Bye, Peter Korsgaard _______________________________________________ buildroot mailing list [email protected] https://lists.buildroot.org/mailman/listinfo/buildroot