| 3 |
3 |
|
| 4 |
4 |
EAPI=8
|
| 5 |
5 |
|
| 6 |
|
inherit autotools flag-o-matic multilib-minimal toolchain-funcs
|
|
6 |
VERIFY_SIG_OPENPGP_KEY_PATH=/usr/share/openpgp-keys/craigsmall.asc
|
|
7 |
inherit autotools flag-o-matic multilib-minimal verify-sig toolchain-funcs
|
| 7 |
8 |
|
| 8 |
9 |
DESCRIPTION="Standard informational utilities and process-handling tools"
|
| 9 |
10 |
HOMEPAGE="https://gitlab.com/procps-ng/procps"
|
| 10 |
11 |
# Per e.g. https://gitlab.com/procps-ng/procps/-/releases/v4.0.5, the dist tarballs
|
| 11 |
12 |
# are still hosted on SF.
|
| 12 |
|
SRC_URI="https://downloads.sourceforge.net/${PN}-ng/${PN}-ng-${PV}.tar.xz"
|
|
13 |
SRC_URI="
|
|
14 |
https://downloads.sourceforge.net/${PN}-ng/${PN}-ng-${PV}.tar.xz
|
|
15 |
verify-sig? ( https://downloads.sourceforge.net/${PN}-ng/${PN}-ng-${PV}.tar.xz.asc )
|
|
16 |
"
|
| 13 |
17 |
S="${WORKDIR}"/${PN}-ng-${PV}
|
| 14 |
18 |
|
| 15 |
19 |
# See bug #913210
|
| 16 |
20 |
LICENSE="GPL-2+ LGPL-2+ LGPL-2.1+"
|
| 17 |
21 |
SLOT="0/1-ng"
|
| 18 |
|
KEYWORDS="~alpha amd64 arm arm64 ~hppa ~loong ~m68k ~mips ppc ppc64 ~riscv ~s390 ~sparc x86"
|
|
22 |
KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~loong ~m68k ~mips ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86"
|
| 19 |
23 |
IUSE="elogind +kill modern-top +ncurses nls selinux static-libs skill systemd test unicode"
|
| 20 |
24 |
RESTRICT="!test? ( test )"
|
| 21 |
25 |
|
| ... | ... | |
| 41 |
45 |
ncurses? ( virtual/pkgconfig )
|
| 42 |
46 |
systemd? ( virtual/pkgconfig )
|
| 43 |
47 |
test? ( dev-util/dejagnu )
|
|
48 |
verify-sig? ( sec-keys/openpgp-keys-craigsmall )
|
| 44 |
49 |
"
|
| 45 |
50 |
|
| 46 |
51 |
# bug #898830
|
| ... | ... | |
| 49 |
54 |
PATCHES=(
|
| 50 |
55 |
"${FILESDIR}"/${PN}-4.0.4-xfail-pmap-test.patch
|
| 51 |
56 |
"${FILESDIR}"/${PN}-4.0.5-sysctl-manpage.patch # bug #565304
|
| 52 |
|
"${FILESDIR}"/${PN}-4.0.5-fix-tests-multilib.patch
|
| 53 |
|
"${FILESDIR}"/${PN}-4.0.5-top-legacy-config-vuln.patch # bug #958286
|
| 54 |
|
"${FILESDIR}"/${PN}-4.0.5-macos.patch
|
| 55 |
|
"${FILESDIR}"/${PN}-4.0.5-pgrep-old-linux-headers.patch # bug #911375
|
| 56 |
|
"${FILESDIR}"/${PN}-4.0.5-pidwait-half.patch # bug #959706
|
| 57 |
|
"${FILESDIR}"/${PN}-4.0.5-pgrep-pidwait.patch
|
| 58 |
|
"${FILESDIR}"/${PN}-4.0.5-sysctl-ignore_failure.patch # bug #969014
|
|
57 |
"${FILESDIR}"/${PN}-4.0.6-sysctl-ignore_failure.patch
|
|
58 |
"${FILESDIR}"/${PN}-4.0.6-pid-off-by-one.patch
|
|
59 |
"${FILESDIR}"/${PN}-4.0.6-hurd.patch
|
| 59 |
60 |
)
|
| 60 |
61 |
|
| 61 |
62 |
src_prepare() {
|
| ... | ... | |
| 70 |
71 |
# bug #471102
|
| 71 |
72 |
append-lfs-flags
|
| 72 |
73 |
|
| 73 |
|
# Workaround for bug #947680, can be dropped w/ >4.0.5
|
|
74 |
# Workaround for bug 969592
|
| 74 |
75 |
if use elibc_musl ; then
|
| 75 |
76 |
append-cflags "$($(tc-getPKG_CONFIG) --cflags error-standalone)"
|
| 76 |
77 |
append-libs "$($(tc-getPKG_CONFIG) --libs error-standalone)"
|
| ... | ... | |
| 98 |
99 |
myeconfargs+=( $(multilib_native_use_enable unicode watch8bit) )
|
| 99 |
100 |
fi
|
| 100 |
101 |
|
|
102 |
# Needs epoll
|
|
103 |
if ! use kernel_linux ; then
|
|
104 |
myeconfargs+=(
|
|
105 |
--disable-pidwait
|
|
106 |
)
|
|
107 |
fi
|
|
108 |
|
|
109 |
if use kernel_Hurd ; then
|
|
110 |
# Provided by sys-kernel/hurd
|
|
111 |
myeconfargs+=(
|
|
112 |
--disable-w
|
|
113 |
)
|
|
114 |
fi
|
|
115 |
|
| 101 |
116 |
ECONF_SOURCE="${S}" econf "${myeconfargs[@]}"
|
| 102 |
117 |
}
|
| 103 |
118 |
|
| ... | ... | |
| 125 |
140 |
mv "${ED}"/usr/bin/kill "${ED}"/bin/ || die
|
| 126 |
141 |
fi
|
| 127 |
142 |
fi
|
|
143 |
|
|
144 |
if use kernel_Hurd ; then
|
|
145 |
# Provided by sys-kernel/hurd
|
|
146 |
rm "${ED}"/usr/bin/{uptime,vmstat} || die
|
|
147 |
rm "${ED}"/bin/ps || die
|
|
148 |
fi
|
| 128 |
149 |
}
|
| 129 |
150 |
|
| 130 |
151 |
multilib_src_install_all() {
|