Gentoo Archives: gentoo-commits

From: Sam James <sam@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: sys-process/procps/
Date: Mon, 30 Aug 2021 02:40:38
Message-Id: 1630291204.3acf4b018951f502f6e4044f3a959c0d7aae6831.sam@gentoo
1 commit: 3acf4b018951f502f6e4044f3a959c0d7aae6831
2 Author: Sam James <sam <AT> gentoo <DOT> org>
3 AuthorDate: Mon Aug 30 02:40:04 2021 +0000
4 Commit: Sam James <sam <AT> gentoo <DOT> org>
5 CommitDate: Mon Aug 30 02:40:04 2021 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=3acf4b01
7
8 sys-process/procps: add workaround for cross compiles
9
10 Force the value of the configure test given upstream
11 neglect the result and it builds fine with it. The test
12 is too aggressive in cross-compile situations and gives
13 unreliable results.
14
15 See also: lists.gnu.org/archive/html/autoconf/2011-04/msg00019.html
16 See: 0498c7f2801e67309d52220fe1492e37d9434df9
17 Signed-off-by: Sam James <sam <AT> gentoo.org>
18
19 sys-process/procps/procps-3.3.17-r1.ebuild | 12 +++++++++++-
20 1 file changed, 11 insertions(+), 1 deletion(-)
21
22 diff --git a/sys-process/procps/procps-3.3.17-r1.ebuild b/sys-process/procps/procps-3.3.17-r1.ebuild
23 index 2fa54d22f40..7045b992c86 100644
24 --- a/sys-process/procps/procps-3.3.17-r1.ebuild
25 +++ b/sys-process/procps/procps-3.3.17-r1.ebuild
26 @@ -3,7 +3,7 @@
27
28 EAPI=7
29
30 -inherit flag-o-matic multilib-minimal usr-ldscript
31 +inherit flag-o-matic multilib-minimal toolchain-funcs usr-ldscript
32
33 DESCRIPTION="Standard informational utilities and process-handling tools"
34 HOMEPAGE="http://procps-ng.sourceforge.net/ https://gitlab.com/procps-ng/procps"
35 @@ -51,6 +51,16 @@ src_prepare() {
36 }
37
38 multilib_src_configure() {
39 + if tc-is-cross-compiler ; then
40 + # This isn't ideal but upstream don't provide a placement
41 + # when malloc is missing anyway, leading to errors like:
42 + # pslog.c:(.text.startup+0x108): undefined reference to `rpl_malloc'
43 + # See https://sourceforge.net/p/psmisc/bugs/71/
44 + # (and https://lists.gnu.org/archive/html/autoconf/2011-04/msg00019.html)
45 + export ac_cv_func_malloc_0_nonnull=yes \
46 + ac_cv_func_realloc_0_nonnull=yes
47 + fi
48 +
49 # http://www.freelists.org/post/procps/PATCH-enable-transparent-large-file-support
50 append-lfs-flags #471102
51 local myeconfargs=(