From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id E8FA5158014 for ; Mon, 30 Aug 2021 02:40:38 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id D35C8E081B; Mon, 30 Aug 2021 02:40:36 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id B8A11E081B for ; Mon, 30 Aug 2021 02:40:36 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 9D778340A12 for ; Mon, 30 Aug 2021 02:40:35 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 948A976 for ; Mon, 30 Aug 2021 02:40:33 +0000 (UTC) From: "Sam James" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Sam James" Message-ID: <1630291204.3acf4b018951f502f6e4044f3a959c0d7aae6831.sam@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: sys-process/procps/ X-VCS-Repository: repo/gentoo X-VCS-Files: sys-process/procps/procps-3.3.17-r1.ebuild X-VCS-Directories: sys-process/procps/ X-VCS-Committer: sam X-VCS-Committer-Name: Sam James X-VCS-Revision: 3acf4b018951f502f6e4044f3a959c0d7aae6831 X-VCS-Branch: master Date: Mon, 30 Aug 2021 02:40:33 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-Archives-Salt: fd5ea432-bcac-475b-b65b-1ad21a4d26ec X-Archives-Hash: f467f75e973c90dff117da9aa551c4d5 commit: 3acf4b018951f502f6e4044f3a959c0d7aae6831 Author: Sam James gentoo org> AuthorDate: Mon Aug 30 02:40:04 2021 +0000 Commit: Sam James gentoo org> CommitDate: Mon Aug 30 02:40:04 2021 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=3acf4b01 sys-process/procps: 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: lists.gnu.org/archive/html/autoconf/2011-04/msg00019.html See: 0498c7f2801e67309d52220fe1492e37d9434df9 Signed-off-by: Sam James gentoo.org> sys-process/procps/procps-3.3.17-r1.ebuild | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/sys-process/procps/procps-3.3.17-r1.ebuild b/sys-process/procps/procps-3.3.17-r1.ebuild index 2fa54d22f40..7045b992c86 100644 --- a/sys-process/procps/procps-3.3.17-r1.ebuild +++ b/sys-process/procps/procps-3.3.17-r1.ebuild @@ -3,7 +3,7 @@ EAPI=7 -inherit flag-o-matic multilib-minimal usr-ldscript +inherit flag-o-matic multilib-minimal toolchain-funcs usr-ldscript DESCRIPTION="Standard informational utilities and process-handling tools" HOMEPAGE="http://procps-ng.sourceforge.net/ https://gitlab.com/procps-ng/procps" @@ -51,6 +51,16 @@ src_prepare() { } multilib_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 + # http://www.freelists.org/post/procps/PATCH-enable-transparent-large-file-support append-lfs-flags #471102 local myeconfargs=(