procps-ng: Update to 4.0.5
--disable-pidwait due to: "error: Neither pidfd_open or __NR_pidfd_open found. Disable pidwait with configure option --disable-pidwait" two small patches to make it build with cygwin
This commit is contained in:
parent
c9cd9c7826
commit
bd43a2aa33
12
procps-ng/0001-duplicate-signal-build-error.patch
Normal file
12
procps-ng/0001-duplicate-signal-build-error.patch
Normal file
@ -0,0 +1,12 @@
|
||||
--- procps-ng-4.0.5/library/signames.c.orig 2024-12-26 16:11:12.020934500 +0100
|
||||
+++ procps-ng-4.0.5/library/signames.c 2024-12-26 16:12:31.274809200 +0100
|
||||
@@ -100,9 +100,6 @@
|
||||
SIGABBREV(PWR);
|
||||
#endif
|
||||
SIGABBREV(SYS);
|
||||
-#ifdef SIGLOST // Hurd (gitlab#93)
|
||||
- SIGABBREV(LOST);
|
||||
-#endif
|
||||
#if defined __sun || defined __SUN || defined __solaris__ || defined __SOLARIS__
|
||||
case 0: return "EXIT";
|
||||
#endif
|
||||
11
procps-ng/0002-no-hugetlb.patch
Normal file
11
procps-ng/0002-no-hugetlb.patch
Normal file
@ -0,0 +1,11 @@
|
||||
--- procps-ng-4.0.5/testsuite/ps.test/test-hugetlb.c.orig 2024-12-26 16:12:35.138200500 +0100
|
||||
+++ procps-ng-4.0.5/testsuite/ps.test/test-hugetlb.c 2024-12-26 16:12:43.726064700 +0100
|
||||
@@ -59,7 +59,7 @@
|
||||
usage(argv[0], "Invalid size");
|
||||
|
||||
if (MAP_FAILED == (addr = mmap(NULL, (kbytes*1024), (PROT_READ | PROT_WRITE),
|
||||
- (MAP_PRIVATE | MAP_ANONYMOUS | MAP_HUGETLB), 0, 0))) {
|
||||
+ (MAP_PRIVATE | MAP_ANONYMOUS), 0, 0))) {
|
||||
perror("mmap");
|
||||
exit(EXIT_FAILURE);
|
||||
}
|
||||
@ -1,5 +1,5 @@
|
||||
pkgname=procps-ng
|
||||
pkgver=4.0.4
|
||||
pkgver=4.0.5
|
||||
pkgrel=1
|
||||
pkgdesc='Utilities for monitoring your system and its processes'
|
||||
arch=('i686' 'x86_64')
|
||||
@ -18,12 +18,16 @@ replaces=('procps')
|
||||
source=("https://downloads.sourceforge.net/project/${pkgname}/Production/${pkgname}-${pkgver}.tar.xz"{,.asc}
|
||||
"procps-ng-4.0.4-manpage.patch"
|
||||
"procps-ng-4.0.4-wchan.patch"
|
||||
"procps-ng-4.0.4-LDADD.patch")
|
||||
sha256sums=('22870d6feb2478adb617ce4f09a787addaf2d260c5a8aa7b17d889a962c5e42e'
|
||||
"procps-ng-4.0.4-LDADD.patch"
|
||||
"0001-duplicate-signal-build-error.patch"
|
||||
"0002-no-hugetlb.patch")
|
||||
sha256sums=('c2e6d193cc78f84cd6ddb72aaf6d5c6a9162f0470e5992092057f5ff518562fa'
|
||||
'SKIP'
|
||||
'bbe3eacad042da824c78d634022c405f8900bc98b56744220f537216daa82bc7'
|
||||
'6b89d78b1d48d3f7d704d12da05c6bc6d95d009f0b6833fa7a527f9ec909cc18'
|
||||
'254768bf9fd844fd937df71f5201eda2f03dd7358ac365741de50c92afcccb41')
|
||||
'254768bf9fd844fd937df71f5201eda2f03dd7358ac365741de50c92afcccb41'
|
||||
'cfbf4614ef971a7ddfa65316e5aa80b98b8dc0645cda48d0aeaa7ed08f9db510'
|
||||
'3e26c3c925d25e7cf0a6c37923f15f8759d9b9612a72433dc02470d3cf2e44a5')
|
||||
validpgpkeys=('5D2FB320B825D93904D205193938F96BDF50FEA5') # Craig Small <csmall@debian.org>
|
||||
|
||||
prepare() {
|
||||
@ -34,6 +38,11 @@ prepare() {
|
||||
patch -p2 -i ${srcdir}/procps-ng-4.0.4-wchan.patch
|
||||
patch -p2 -i ${srcdir}/procps-ng-4.0.4-LDADD.patch
|
||||
|
||||
# cygwin is missing sigabbrev_np() and the fallback doesn't deal with duplicate signals
|
||||
patch -p1 -i ${srcdir}/0001-duplicate-signal-build-error.patch
|
||||
# cygwin doesn't have hugetlb
|
||||
patch -p1 -i ${srcdir}/0002-no-hugetlb.patch
|
||||
|
||||
autoreconf -fi
|
||||
}
|
||||
|
||||
@ -51,6 +60,7 @@ build() {
|
||||
--without-libiconv-prefix \
|
||||
--without-libintl-prefix \
|
||||
--enable-watch8bit \
|
||||
--disable-pidwait \
|
||||
--disable-numa \
|
||||
--disable-kill
|
||||
# kill is provided by util-linux
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user