From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from smtp.gentoo.org (woodpecker.gentoo.org [140.211.166.183]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id B14661584AD for ; Thu, 17 Apr 2025 15:39:29 +0000 (UTC) Received: from lists.gentoo.org (bobolink.gentoo.org [140.211.166.189]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) (Authenticated sender: relay-lists.gentoo.org@gentoo.org) by smtp.gentoo.org (Postfix) with ESMTPSA id 9710634300F for ; Thu, 17 Apr 2025 15:39:29 +0000 (UTC) Received: from bobolink.gentoo.org (localhost [127.0.0.1]) by bobolink.gentoo.org (Postfix) with ESMTP id 97B88110494; Thu, 17 Apr 2025 15:39:28 +0000 (UTC) Received: from smtp.gentoo.org (woodpecker.gentoo.org [IPv6:2001:470:ea4a:1:5054:ff:fec7:86e4]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) by bobolink.gentoo.org (Postfix) with ESMTPS id 8D143110494 for ; Thu, 17 Apr 2025 15:39:28 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 38AA634300F for ; Thu, 17 Apr 2025 15:39:28 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 98A2A19B9 for ; Thu, 17 Apr 2025 15:39:26 +0000 (UTC) From: "James Le Cuirot" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "James Le Cuirot" Message-ID: <1744904342.8c6a1df68f698376b7e5aa89a4850b803066c0ed.chewi@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: app-text/mandoc/ X-VCS-Repository: repo/gentoo X-VCS-Files: app-text/mandoc/mandoc-1.14.6.ebuild X-VCS-Directories: app-text/mandoc/ X-VCS-Committer: chewi X-VCS-Committer-Name: James Le Cuirot X-VCS-Revision: 8c6a1df68f698376b7e5aa89a4850b803066c0ed X-VCS-Branch: master Date: Thu, 17 Apr 2025 15:39:26 +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: 2d5335c3-18e4-4e37-9242-263e53e5be71 X-Archives-Hash: 8f927a5c2f59de07c73cea97cf0b1dfd commit: 8c6a1df68f698376b7e5aa89a4850b803066c0ed Author: James Le Cuirot gentoo org> AuthorDate: Thu Apr 17 15:37:39 2025 +0000 Commit: James Le Cuirot gentoo org> CommitDate: Thu Apr 17 15:39:02 2025 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=8c6a1df6 app-text/mandoc: Pre-configure test results when cross-compiling This should cover modern Linux with glibc or musl. It's not great, but this is what upstream have given us to work with. Signed-off-by: James Le Cuirot gentoo.org> app-text/mandoc/mandoc-1.14.6.ebuild | 43 +++++++++++++++++++++++++++++++++++- 1 file changed, 42 insertions(+), 1 deletion(-) diff --git a/app-text/mandoc/mandoc-1.14.6.ebuild b/app-text/mandoc/mandoc-1.14.6.ebuild index e66c4176eec6..68fe015de4e6 100644 --- a/app-text/mandoc/mandoc-1.14.6.ebuild +++ b/app-text/mandoc/mandoc-1.14.6.ebuild @@ -1,4 +1,4 @@ -# Copyright 1999-2024 Gentoo Authors +# Copyright 1999-2025 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 EAPI=7 @@ -92,6 +92,47 @@ src_prepare() { MANM_TBL=mandoc_tbl MANM_MANCONF=mman.conf EOF + # Assuming modern Linux + glibc/musl and not BSD. + tc-is-cross-compiler && cat <<-EOF >> "configure.local" + HAVE_ATTRIBUTE=1 + HAVE_CMSG=1 + HAVE_DIRENT_NAMLEN=0 + HAVE_EFTYPE=0 + HAVE_ENDIAN=1 + HAVE_ERR=1 + HAVE_FTS_COMPARE_CONST=0 + HAVE_FTS=$(usex elibc_glibc 1 0) + HAVE_GETLINE=1 + HAVE_GETSUBOPT=1 + HAVE_ISBLANK=1 + HAVE_LESS_T=1 + HAVE_MKDTEMP=1 + HAVE_MKSTEMPS=1 + HAVE_NANOSLEEP=1 + HAVE_NTOHL=1 + HAVE_O_DIRECTORY=1 + HAVE_OHASH=0 + HAVE_PATH_MAX=0 + HAVE_PLEDGE=0 + HAVE_PROGNAME=0 + HAVE_REALLOCARRAY=1 + HAVE_RECALLOCARRAY=0 + HAVE_RECVMSG=1 + HAVE_REWB_BSD=0 + HAVE_REWB_SYSV=1 + HAVE_SANDBOX_INIT=0 + HAVE_STRCASESTR=$(usex elibc_glibc 1 0) + HAVE_STRINGLIST=0 + HAVE_STRLCAT=$(usex elibc_glibc 1 0) + HAVE_STRLCPY=$(usex elibc_glibc 1 0) + HAVE_STRPTIME=1 + HAVE_STRSEP=1 + HAVE_STRTONUM=0 + HAVE_SYS_ENDIAN=0 + HAVE_VASPRINTF=1 + HAVE_WCHAR=1 + NEED_GNU_SOURCE=1 + EOF if use cgi; then cp cgi.h{.example,} || die fi