Skip to contentSkip to conversation

procps-ng: bump to version 3.3.14

PATCH Superseded Baruch Siach 2 participants 7 messages Apr 17, 2018 – Apr 25, 2018

lore
Share & tools
lore
#0 lore raw

PATCH v2 1/1 procps-ng: bump to version 3.3.14

Drop upstream patches.

Add secure SHA256 hash.

Add license files hash.

---
v2: Actually add the license hashes.

Note: procps now uses fopencookie(). musl libc added support for this extension in version 1.1.19. autobuilder musl toolchains currently use version 1.1.16.

---
 package/procps-ng/0001-remove-index.patch     | 16 ------
 ...02-use-pkgconfig-for-ncursesw-cflags.patch | 57 -------------------
 ...-include-dlfcn.h-only-when-necessary.patch | 32 -----------
 package/procps-ng/procps-ng.hash              |  9 ++-
 package/procps-ng/procps-ng.mk                |  5 +-
 5 files changed, 8 insertions(+), 111 deletions(-)
 delete mode 100644 package/procps-ng/0001-remove-index.patch
 delete mode 100644 package/procps-ng/0002-use-pkgconfig-for-ncursesw-cflags.patch
 delete mode 100644 package/procps-ng/0003-ps-output.c-include-dlfcn.h-only-when-necessary.patch
package/procps-ng/0001-remove-index.patch deleted +0 -16
deleted file mode 100644
index 1d85b31cb5c8..000000000000
@@ -1,16 +0,0 @@
-sysctl: remove use of legacy index()
-
-[yann.morin.1998 at free.fr: adapt to procps-ng]
-Signed-off-by: "Yann E. MORIN" <[email protected]>
-diff -durN procps-v3.3.9.orig/sysctl.c procps-v3.3.9/sysctl.c
---- procps-v3.3.9.orig/sysctl.c	2013-12-03 12:16:18.000000000 +0100
-+++ procps-v3.3.9/sysctl.c	2014-05-31 00:45:00.869748741 +0200
-@@ -794,7 +794,7 @@
- 		      program_invocation_short_name);
- 
- 	for ( ; *argv; argv++) {
--		if (WriteMode || index(*argv, '='))
-+		if (WriteMode || strchr(*argv, '='))
- 			ReturnCode += WriteSetting(*argv);
- 		else
- 			ReturnCode += ReadSetting(*argv);
package/procps-ng/0002-use-pkgconfig-for-ncursesw-cflags.patch deleted +0 -57

57 lines not on this page · raw message

package/procps-ng/0003-ps-output.c-include-dlfcn.h-only-when-necessary.patch deleted +0 -32
deleted file mode 100644
index dca28fab1492..000000000000
@@ -1,32 +0,0 @@
-From 4fc9a348026a945aec8eddffc7613de9cb10b10c Mon Sep 17 00:00:00 2001
-From: Thomas Petazzoni <[email protected]>
-Date: Sun, 7 Aug 2016 11:08:26 +0200
-Subject: [PATCH] ps/output.c: include <dlfcn.h> only when necessary
-
-dlopen() functionality is only used when SELinux support is enabled, so
-<dlfcn.h> only needs to be included when ENABLE_LIBSELINUX is
-defined. This fixes the build in configurations where <dlfcn.h> is not
-available.
-
-Signed-off-by: Thomas Petazzoni <[email protected]>
----
- ps/output.c | 2 ++
- 1 file changed, 2 insertions(+)
-
-diff --git a/ps/output.c b/ps/output.c
-index 42c04cf..f540832 100644
---- a/ps/output.c
-+++ b/ps/output.c
-@@ -46,7 +46,9 @@
-  */
- 
- #include <ctype.h>
-+#if ENABLE_LIBSELINUX
- #include <dlfcn.h>
-+#endif
- #include <fcntl.h>
- #include <grp.h>
- #include <limits.h>
--- 
-2.7.4
-
package/procps-ng/procps-ng.hash +7 -2
index 62d61727b1fd..9488af2d9fb4 100644
@@ -1,3 +1,8 @@
 # From http://sourceforge.net/projects/procps-ng/files/Production/
-md5	957e42e8b193490b2111252e4a2b443c	procps-ng-3.3.12.tar.xz
-sha1	82c0745f150f1385ca01fe7d24f05f74e31c94c6	procps-ng-3.3.12.tar.xz
+md5	fce371ccc1c15a67af9d85e4057e559d	procps-ng-3.3.14.tar.xz
+sha1	fcc4631b1185f7250daecee2fcebe15efbbe0d65	procps-ng-3.3.14.tar.xz
+# Locally calculated after checking signature
+# http://downloads.sourceforge.net/project/procps-ng/Production/procps-ng-3.3.14.tar.xz.asc
+sha256 5eda0253999b7d786e690edfa73301b3113c7a67058478866e98e9ff6736726c  procps-ng-3.3.14.tar.xz
+sha256 8177f97513213526df2cf6184d8ff986c675afb514d4e68a404010521b880643  COPYING
+sha256 681e386e44a19d7d0674b4320272c90e66b6610b741e7e6305f8219c42e85366  COPYING.LIB
package/procps-ng/procps-ng.mk +1 -4
index 22ebc1a8fd5d..a6cf774d7bd2 100644
@@ -4,7 +4,7 @@
 #
 ################################################################################
 
-PROCPS_NG_VERSION = 3.3.12
+PROCPS_NG_VERSION = 3.3.14
 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)
@@ -12,9 +12,6 @@ PROCPS_NG_LICENSE_FILES = COPYING COPYING.LIB
 PROCPS_NG_INSTALL_STAGING = YES
 PROCPS_NG_DEPENDENCIES = ncurses host-pkgconf $(TARGET_NLS_DEPENDENCIES)
 PROCPS_NG_CONF_OPTS = LIBS=$(TARGET_NLS_LIBS)
-# For 0002-use-pkgconfig-for-ncursesw-cflags.patch
-PROCPS_NG_AUTORECONF = YES
-PROCPS_NG_GETTEXTIZE = YES
 
 # If both procps-ng and busybox are selected, make certain procps-ng
 # wins the fight over who gets to have their utils actually installed.
Signature · 1 line
2.17.0
#1 lore raw

PATCH v2 1/1 procps-ng: bump to version 3.3.14

Hello Baruch,

Quoted 3 lines · Baruch Siach

Note: procps now uses fopencookie(). musl libc added support for this extension in version 1.1.19. autobuilder musl toolchains currently use version 1.1.16.

I have started a new build of all the br-* pre-built toolchains with the latest Git master. I'll wait for this to finish, deploy the toolchains, and then apply this patch, if that's OK for you.

Best regards,

Thomas

Signature · 3 lines
Thomas Petazzoni, CTO, Bootlin (formerly Free Electrons)
Embedded Linux and Kernel engineering
https://bootlin.com
#2 lore raw

PATCH v2 1/1 procps-ng: bump to version 3.3.14

Hi Thomas,

Quoted 9 lines · Thomas Petazzoni
Quoted 3 lines · Baruch Siach

Note: procps now uses fopencookie(). musl libc added support for this extension in version 1.1.19. autobuilder musl toolchains currently use version 1.1.16.

I have started a new build of all the br-* pre-built toolchains with the latest Git master. I'll wait for this to finish, deploy the toolchains, and then apply this patch, if that's OK for you.

That's perfectly fine with me.

While at it, you might want to look into the issue of libgcc link failure in static musl toolchains. This issue currently affects lm-sensors and multicat. See http://patchwork.ozlabs.org/patch/883243/.

baruch

Signature · 3 lines
     http://baruch.siach.name/blog/                  ~. .~   Tk Open Systems
=}------------------------------------------------ooO--U--Ooo------------{=
   - baruch at tkos.co.il - tel: +972.52.368.4656, http://www.tkos.co.il -
#3 lore raw

PATCH v2 1/1 procps-ng: bump to version 3.3.14

Hello,

Quoted 5 lines · Baruch Siach
Quoted 3 lines

I have started a new build of all the br-* pre-built toolchains with the latest Git master. I'll wait for this to finish, deploy the toolchains, and then apply this patch, if that's OK for you.

That's perfectly fine with me.

OK, thanks.

Quoted 3 lines

While at it, you might want to look into the issue of libgcc link failure in static musl toolchains. This issue currently affects lm-sensors and multicat. See http://patchwork.ozlabs.org/patch/883243/.

I did have a look at this issue two weeks ago or so, and like you, I concluded that there was a toolchain issue. I guess it should be reported to musl upstream. It may not be a musl issue per-se, perhaps more a musl-into-gcc integration issue, but they might be able to help. Do you think you could contact the musl folks about this ?

Thanks!

Thomas

Signature · 3 lines
Thomas Petazzoni, CTO, Bootlin (formerly Free Electrons)
Embedded Linux and Kernel engineering
https://bootlin.com
#4 lore raw

PATCH v2 1/1 procps-ng: bump to version 3.3.14

Hi Thomas,

Quoted 10 lines · Thomas Petazzoni
Quoted 3 lines · Baruch Siach

While at it, you might want to look into the issue of libgcc link failure in static musl toolchains. This issue currently affects lm-sensors and multicat. See http://patchwork.ozlabs.org/patch/883243/.

I did have a look at this issue two weeks ago or so, and like you, I concluded that there was a toolchain issue. I guess it should be reported to musl upstream. It may not be a musl issue per-se, perhaps more a musl-into-gcc integration issue, but they might be able to help. Do you think you could contact the musl folks about this ?

Reverting recent musl libc version bumps does not help. I reproduced this issue with versions 1.1.18 and 1.1.16, with gcc 6.x and 7.x. Static only musl toolchain might be something that never actually worked. I wonder how the presence of shared libc in autobuilder pre-built musl toolchains makes static link work.

baruch

Signature · 3 lines
     http://baruch.siach.name/blog/                  ~. .~   Tk Open Systems
=}------------------------------------------------ooO--U--Ooo------------{=
   - baruch at tkos.co.il - tel: +972.52.368.4656, http://www.tkos.co.il -
#5 lore raw

PATCH v2 1/1 procps-ng: bump to version 3.3.14

Hi Thomas,

Quoted 12 lines · Baruch Siach
Quoted 10 lines · Thomas Petazzoni
Quoted 3 lines · Baruch Siach

While at it, you might want to look into the issue of libgcc link failure in static musl toolchains. This issue currently affects lm-sensors and multicat. See http://patchwork.ozlabs.org/patch/883243/.

I did have a look at this issue two weeks ago or so, and like you, I concluded that there was a toolchain issue. I guess it should be reported to musl upstream. It may not be a musl issue per-se, perhaps more a musl-into-gcc integration issue, but they might be able to help. Do you think you could contact the musl folks about this ?

Quoted 5 lines

Reverting recent musl libc version bumps does not help. I reproduced this issue with versions 1.1.18 and 1.1.16, with gcc 6.x and 7.x. Static only musl toolchain might be something that never actually worked. I wonder how the presence of shared libc in autobuilder pre-built musl toolchains makes static link work.

Answering my own wonder: the executables that the pre-built musl toolchain generates are not static. So adding -static seems like the right solution after all. What do you think?

baruch

Signature · 3 lines
     http://baruch.siach.name/blog/                  ~. .~   Tk Open Systems
=}------------------------------------------------ooO--U--Ooo------------{=
   - baruch at tkos.co.il - tel: +972.52.368.4656, http://www.tkos.co.il -
#6 lore raw

PATCH v2 1/1 procps-ng: bump to version 3.3.14

In reply to Baruch Siach

Hello,

Quoted 9 lines · Baruch Siach

Drop upstream patches.

Add secure SHA256 hash.

Add license files hash.

---
v2: Actually add the license hashes.

Applied to master, thanks.

Thomas

Signature · 3 lines
Thomas Petazzoni, CTO, Bootlin (formerly Free Electrons)
Embedded Linux and Kernel engineering
https://bootlin.com