psmisc: bump to version 23.1
PATCH 1/2 psmisc: bump to version 23.1
Forward port 0001-link-against-libintl.patch. Since now autoreconf works, move the patch from Makefile.in to Makefile.am. Also, convert to git format.
Remove 0002-no-__progname.patch. Buildroot default uClibc and musl now provide __progname.
Add a patch that adds the git-version-gen script to fix autoreconf.
Remove upstream patch.
Upstream switched to .xz tarballs.
Add upstream provided hashes.
--- package/psmisc/0001-link-against-libintl.patch | 44 +++--- package/psmisc/0002-add-git-version-get.patch | 198 +++++++++++++++++++++++++ package/psmisc/0002-no-__progname.patch | 47 ------ package/psmisc/psmisc.hash | 6 +- package/psmisc/psmisc.mk | 12 +- 5 files changed, 235 insertions(+), 72 deletions(-) create mode 100644 package/psmisc/0002-add-git-version-get.patch delete mode 100644 package/psmisc/0002-no-__progname.patch
package/psmisc/0001-link-against-libintl.patch +24 -20
@@ -1,4 +1,7 @@ -Link against libintl if needed +From f2b6f342325824399da3525df182031475b5c4dd Mon Sep 17 00:00:00 2001 +From: Thomas Petazzoni <[email protected]> +Date: Thu, 22 Jun 2017 13:56:03 +0300 +Subject: [PATCH] Link against libintl if needed When built against a C library that has locale support, but for which intl support is provided by an external libintl library, psmisc
@@ -8,26 +11,27 @@ properly checks that. This patch therefore ensure that we link against libintl when needed, thanks to the @INTLLIBS@ variable provided by the configure script. -We do not modify the Makefile.am file, because autoreconfiguring this -package doesn't work: because of its usage of gettext, it wants to run -the "autopoint" program, which itself depends on CVS being installed, -for some strange reasons. That's the reason why we fall back to the -hacky solution of modifying the Makefile.in file. - Forward-ported Thomas's patch to psmisc 22.16 from commit f066ed70cd6939838d4057f66798cbc1d972cc73 - Signed-off-by: Gustavo Zacarias <[email protected]> +[baruch: move from Makefile.in to Makefile.am for 23.1] +Signed-off-by: Baruch Siach <[email protected]> +--- + Makefile.am | 1 + + 1 file changed, 1 insertion(+) + +diff --git a/Makefile.am b/Makefile.am +index 9f61ab4f2f70..8ce284e65124 100644 +--- a/Makefile.am ++++ b/Makefile.am +@@ -65,6 +65,7 @@ src_fuser_LDADD = @LIBINTL@ + src_killall_SOURCES = src/killall.c src/comm.h src/signals.c src/signals.h src/i18n.h + src_killall_LDADD = @LIBINTL@ @SELINUX_LIB@ + src_peekfd_SOURCES = src/peekfd.c ++src_peekfd_LDADD = @LIBINTL@ + src_pslog_SOURCES = src/pslog.c + src_pstree_SOURCES = src/pstree.c src/comm.h src/i18n.h + src_pstree_LDADD = @LIBINTL@ @TERMCAP_LIB@ @SELINUX_LIB@ +-- +2.11.0 -diff -Nura psmisc-22.16.orig/src/Makefile.in psmisc-22.16/src/Makefile.in ---- psmisc-22.16.orig/src/Makefile.in 2012-03-28 22:27:33.106660358 -0300 -+++ psmisc-22.16/src/Makefile.in 2012-03-28 22:28:55.752219349 -0300 -@@ -76,7 +76,7 @@ - killall_DEPENDENCIES = - am_peekfd_OBJECTS = peekfd.$(OBJEXT) - peekfd_OBJECTS = $(am_peekfd_OBJECTS) --peekfd_LDADD = $(LDADD) -+peekfd_LDADD = $(LDADD) @LIBINTL@ - am_prtstat_OBJECTS = prtstat.$(OBJEXT) - prtstat_OBJECTS = $(am_prtstat_OBJECTS) - prtstat_DEPENDENCIES =
package/psmisc/0002-add-git-version-get.patch new file +198 -0
198 lines not on this page · raw message
package/psmisc/0002-no-__progname.patch deleted +0 -47
47 lines not on this page · raw message
package/psmisc/psmisc.hash +4 -2
@@ -1,3 +1,5 @@ +# From https://sourceforge.net/projects/psmisc/files/psmisc/ +md5 bbba1f701c02fb50d59540d1ff90d8d1 psmisc-23.1.tar.xz +sha1 d19031a5ba18a530aa0bb768cb74593f9af74b08 psmisc-23.1.tar.xz # Locally computed: -sha256 97323cad619210845b696d7d722c383852b2acb5c49b5b0852c4f29c77a8145a psmisc-22.21.tar.gz -sha256 4f1cb11c7182ad96e682ec50a2d9a6a22079a2b11dffde3bb3cb67823b679422 e7203c36a2a4dc10cd8268a5dc036fc9c2a73b6c.diff +sha256 2e84d474cf75dfbe3ecdacfb797bbfab71a35c7c2639d1b9f6d5f18b2149ba30 psmisc-23.1.tar.xz
package/psmisc/psmisc.mk +9 -3
@@ -4,13 +4,19 @@ # ################################################################################ -PSMISC_VERSION = 22.21 +PSMISC_VERSION = 23.1 PSMISC_SITE = http://downloads.sourceforge.net/project/psmisc/psmisc -PSMISC_PATCH = \ - https://gitlab.com/psmisc/psmisc/commit/e7203c36a2a4dc10cd8268a5dc036fc9c2a73b6c.diff +PSMISC_SOURCE = psmisc-$(PSMISC_VERSION).tar.xz PSMISC_LICENSE = GPL-2.0 PSMISC_LICENSE_FILES = COPYING PSMISC_DEPENDENCIES = ncurses $(if $(BR2_NEEDS_GETTEXT_IF_LOCALE),gettext) +# Patching Makefile.am +PSMISC_AUTORECONF = YES + +define PSMISC_GIT_VERSION_EXEC + chmod +x $(@D)/misc/git-version-gen +endef +PSMISC_POST_PATCH_HOOKS += PSMISC_GIT_VERSION_EXEC ifeq ($(BR2_TOOLCHAIN_HAS_SSP),) # Don't force -fstack-protector when SSP is not available in toolchain
Signature · 1 line
2.11.0
PATCH 2/2 psmisc: update homepage link
The gitlab repo is much more informative and updated.
--- package/psmisc/Config.in | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
package/psmisc/Config.in +1 -1
@@ -6,4 +6,4 @@ config BR2_PACKAGE_PSMISC help Helpful /proc related utilities such as pstree, fuser, and killall - http://psmisc.sourceforge.net/ + https://gitlab.com/psmisc/psmisc
Signature · 1 line
2.11.0
PATCH 1/2 psmisc: bump to version 23.1
In reply to Baruch SiachHello,
Quoted 15 lines · Baruch Siach
Forward port 0001-link-against-libintl.patch. Since now autoreconf works, move the patch from Makefile.in to Makefile.am. Also, convert to git format.
Remove 0002-no-__progname.patch. Buildroot default uClibc and musl now provide
__progname.Add a patch that adds the git-version-gen script to fix autoreconf.
Remove upstream patch.
Upstream switched to .xz tarballs.
Add upstream provided hashes.
Signed-off-by Baruch Siach <[email protected]>
Quoted 9 lines
--- package/psmisc/0001-link-against-libintl.patch | 44 +++--- package/psmisc/0002-add-git-version-get.patch | 198 +++++++++++++++++++++++++ package/psmisc/0002-no-__progname.patch | 47 ------ package/psmisc/psmisc.hash | 6 +- package/psmisc/psmisc.mk | 12 +- 5 files changed, 235 insertions(+), 72 deletions(-) create mode 100644 package/psmisc/0002-add-git-version-get.patch delete mode 100644 package/psmisc/0002-no-__progname.patch
Both applied to master. Thanks!
Thomas
Signature · 3 lines
Thomas Petazzoni, CTO, Free Electrons Embedded Linux, Kernel and Android engineering http://free-electrons.com