From: "Sam James" <sam@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] repo/gentoo:master commit in: sys-process/psmisc/
Date: Mon, 30 Aug 2021 02:25:28 +0000 (UTC) [thread overview]
Message-ID: <1630290315.0498c7f2801e67309d52220fe1492e37d9434df9.sam@gentoo> (raw)
commit: 0498c7f2801e67309d52220fe1492e37d9434df9
Author: Sam James <sam <AT> gentoo <DOT> org>
AuthorDate: Mon Aug 30 02:24:06 2021 +0000
Commit: Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Mon Aug 30 02:25:15 2021 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=0498c7f2
sys-process/psmisc: add workaround for cross compiles
Force the value of the configure test given upstream
neglect the result and it builds fine with it. The test
is too aggressive in cross-compile situations and gives
unreliable results.
See also: https://lists.gnu.org/archive/html/autoconf/2011-04/msg00019.html
Signed-off-by: Sam James <sam <AT> gentoo.org>
sys-process/psmisc/psmisc-23.4-r1.ebuild | 12 ++++++++++++
1 file changed, 12 insertions(+)
diff --git a/sys-process/psmisc/psmisc-23.4-r1.ebuild b/sys-process/psmisc/psmisc-23.4-r1.ebuild
index 513db3dbf38..8f354d0fbc9 100644
--- a/sys-process/psmisc/psmisc-23.4-r1.ebuild
+++ b/sys-process/psmisc/psmisc-23.4-r1.ebuild
@@ -3,6 +3,8 @@
EAPI=7
+inherit toolchain-funcs
+
DESCRIPTION="A set of tools that use the proc filesystem"
HOMEPAGE="http://psmisc.sourceforge.net/"
SRC_URI="mirror://sourceforge/${PN}/${P}.tar.xz"
@@ -28,6 +30,16 @@ PATCHES=(
)
src_configure() {
+ if tc-is-cross-compiler ; then
+ # This isn't ideal but upstream don't provide a placement
+ # when malloc is missing anyway, leading to errors like:
+ # pslog.c:(.text.startup+0x108): undefined reference to `rpl_malloc'
+ # See https://sourceforge.net/p/psmisc/bugs/71/
+ # (and https://lists.gnu.org/archive/html/autoconf/2011-04/msg00019.html)
+ export ac_cv_func_malloc_0_nonnull=yes \
+ ac_cv_func_realloc_0_nonnull=yes
+ fi
+
local myeconfargs=(
--disable-harden-flags
$(use_enable ipv6)
next reply other threads:[~2021-08-30 2:25 UTC|newest]
Thread overview: 54+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-08-30 2:25 Sam James [this message]
-- strict thread matches above, loose matches on Subject: below --
2024-06-01 3:46 [gentoo-commits] repo/gentoo:master commit in: sys-process/psmisc/ Ionen Wolkens
2024-04-29 7:51 Jakov Smolić
2024-04-29 7:51 Jakov Smolić
2024-03-07 19:44 Sam James
2024-02-04 20:21 Ulrich Müller
2023-03-07 15:45 Sam James
2023-03-07 11:42 Sam James
2023-03-04 12:02 Arthur Zamarin
2023-03-04 8:54 Arthur Zamarin
2023-03-04 7:48 Arthur Zamarin
2023-03-04 7:17 Arthur Zamarin
2023-03-04 6:11 Arthur Zamarin
2023-03-04 5:52 Arthur Zamarin
2022-12-13 22:54 Sam James
2022-10-28 7:01 Sam James
2022-07-29 4:17 Sam James
2021-05-13 22:11 David Seifert
2021-05-13 21:17 Sam James
2021-05-13 18:58 Sam James
2021-05-13 18:56 Sam James
2021-05-13 18:36 Sergei Trofimovich
2021-05-13 17:15 Sam James
2021-05-13 16:37 Sam James
2021-02-07 17:01 Ulrich Müller
2021-02-06 15:18 Lars Wendler
2020-09-26 21:34 Sergei Trofimovich
2020-09-24 6:46 Agostino Sarubbo
2020-09-23 10:32 Agostino Sarubbo
2020-09-23 10:31 Agostino Sarubbo
2020-09-23 10:29 Agostino Sarubbo
2020-09-23 10:24 Agostino Sarubbo
2020-09-23 10:21 Agostino Sarubbo
2020-09-20 21:52 Thomas Deutschmann
2020-09-20 17:23 Sam James
2020-09-07 20:44 Mike Gilbert
2019-11-12 15:10 Lars Wendler
2019-10-26 11:27 Lars Wendler
2019-05-04 11:54 Mikle Kolyada
2018-08-14 13:03 Lars Wendler
2018-07-22 0:42 Mikle Kolyada
2018-06-30 18:16 Mikle Kolyada
2018-06-26 15:44 Tobias Klausmann
2018-06-23 15:19 Mart Raudsepp
2018-06-12 20:48 Sergei Trofimovich
2018-06-12 16:21 Mikle Kolyada
2018-06-12 11:36 Thomas Deutschmann
2018-06-12 8:44 Sergei Trofimovich
2018-06-11 19:15 Lars Wendler
2018-06-11 19:15 Lars Wendler
2017-06-17 8:50 Lars Wendler
2017-06-13 7:32 Lars Wendler
2017-01-29 20:14 Fabian Groffen
2016-10-27 6:06 Lars Wendler
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1630290315.0498c7f2801e67309d52220fe1492e37d9434df9.sam@gentoo \
--to=sam@gentoo.org \
--cc=gentoo-commits@lists.gentoo.org \
--cc=gentoo-dev@lists.gentoo.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox