Gentoo Archives: gentoo-commits

From: Dave Hughes <davidhughes205@×××××.com>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] proj/musl:master commit in: sys-process/psmisc/, sys-process/psmisc/files/
Date: Thu, 15 Apr 2021 12:02:16
Message-Id: 1618487909.a62f26fff57075517cb58bd4ec7e6c5d7ce7bd09.xaero@gentoo
1 commit: a62f26fff57075517cb58bd4ec7e6c5d7ce7bd09
2 Author: Dave Hughes <davidhughes205 <AT> gmail <DOT> com>
3 AuthorDate: Thu Apr 15 11:40:35 2021 +0000
4 Commit: Dave Hughes <davidhughes205 <AT> gmail <DOT> com>
5 CommitDate: Thu Apr 15 11:58:29 2021 +0000
6 URL: https://gitweb.gentoo.org/proj/musl.git/commit/?id=a62f26ff
7
8 sys-process/psmisc: fix patches
9
10 Bug: https://bugs.gentoo.org/782832
11 Closes: https://bugs.gentoo.org/782832
12 Package-Manager: Portage-3.0.18, Repoman-3.0.3
13 Signed-off-by: Dave Hughes <davidhughes205 <AT> gmail.com>
14
15 sys-process/psmisc/files/include_limits.patch | 45 +++++++++++++++++++++++++++
16 sys-process/psmisc/psmisc-23.3-r1.ebuild | 6 +---
17 sys-process/psmisc/psmisc-23.4.ebuild | 5 +--
18 3 files changed, 47 insertions(+), 9 deletions(-)
19
20 diff --git a/sys-process/psmisc/files/include_limits.patch b/sys-process/psmisc/files/include_limits.patch
21 new file mode 100644
22 index 0000000..1b474bc
23 --- /dev/null
24 +++ b/sys-process/psmisc/files/include_limits.patch
25 @@ -0,0 +1,45 @@
26 +Author: Breno Leitao <brenohl@××××××.com>
27 +Date: Thu Apr 6 13:59:57 2017 -0300
28 +
29 + peekfd: Include headers for ppc64
30 +
31 + Currently peekfd fails to build on ppc64le architecture with musl
32 + because it does not find reference for __WORDSIZE.
33 +
34 + This patch just includes reference for this macro if it was not
35 + previously defined.
36 +
37 +Index: psmisc-22.21/src/peekfd.c
38 +===================================================================
39 +--- psmisc-22.21.orig/src/peekfd.c
40 ++++ psmisc-22.21/src/peekfd.c
41 +@@ -37,6 +37,14 @@
42 +
43 + #include "i18n.h"
44 +
45 ++#if !defined(PATH_MAX)
46 ++#include <limits.h>
47 ++#endif
48 ++
49 ++#if !defined(__WORDSIZE)
50 ++#include <bits/reg.h>
51 ++#endif
52 ++
53 + #ifdef I386
54 + #define REG_ORIG_ACCUM orig_eax
55 + #define REG_ACCUM eax
56 +Index: psmisc-22.21/src/pstree.c
57 +===================================================================
58 +--- psmisc-22.21.orig/src/pstree.c
59 ++++ psmisc-22.21/src/pstree.c
60 +@@ -45,6 +45,10 @@
61 + #include "i18n.h"
62 + #include "comm.h"
63 +
64 ++#if !defined(PATH_MAX)
65 ++#include <limits.h>
66 ++#endif
67 ++
68 + #ifdef WITH_SELINUX
69 + #include <selinux/selinux.h>
70 + #else
71
72 diff --git a/sys-process/psmisc/psmisc-23.3-r1.ebuild b/sys-process/psmisc/psmisc-23.3-r1.ebuild
73 index c4107d2..edc88ce 100644
74 --- a/sys-process/psmisc/psmisc-23.3-r1.ebuild
75 +++ b/sys-process/psmisc/psmisc-23.3-r1.ebuild
76 @@ -21,15 +21,11 @@ BDEPEND=">=sys-devel/libtool-2.2.6b
77
78 DOCS=( AUTHORS ChangeLog NEWS README )
79
80 -PATCHES=(
81 - "${FILESDIR}"/include_limits.patch
82 - "${FILESDIR}"/musl_ptregs.patch
83 -)
84 -
85 src_prepare() {
86 default
87
88 if use elibc_musl ; then
89 + eapply "${FILESDIR}"/include_limits.patch
90 eapply "${FILESDIR}"/musl_ptregs.patch
91 fi
92
93
94 diff --git a/sys-process/psmisc/psmisc-23.4.ebuild b/sys-process/psmisc/psmisc-23.4.ebuild
95 index be543f1..31edc94 100644
96 --- a/sys-process/psmisc/psmisc-23.4.ebuild
97 +++ b/sys-process/psmisc/psmisc-23.4.ebuild
98 @@ -22,14 +22,11 @@ BDEPEND=">=sys-devel/libtool-2.2.6b
99
100 DOCS=( AUTHORS ChangeLog NEWS README )
101
102 -PATCHES=(
103 - "${FILESDIR}"/include_limits.patch
104 -)
105 -
106 src_prepare() {
107 default
108
109 if use elibc_musl ; then
110 + "${FILESDIR}"/include_limits.patch
111 "${FILESDIR}"/musl_ptregs.patch
112 fi