public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
From: "James Le Cuirot" <chewi@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] repo/gentoo:master commit in: app-text/mandoc/
Date: Thu, 17 Apr 2025 15:39:26 +0000 (UTC)	[thread overview]
Message-ID: <1744904342.8c6a1df68f698376b7e5aa89a4850b803066c0ed.chewi@gentoo> (raw)

commit:     8c6a1df68f698376b7e5aa89a4850b803066c0ed
Author:     James Le Cuirot <chewi <AT> gentoo <DOT> org>
AuthorDate: Thu Apr 17 15:37:39 2025 +0000
Commit:     James Le Cuirot <chewi <AT> gentoo <DOT> 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 <chewi <AT> 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


             reply	other threads:[~2025-04-17 15:39 UTC|newest]

Thread overview: 40+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2025-04-17 15:39 James Le Cuirot [this message]
  -- strict thread matches above, loose matches on Subject: below --
2025-04-17 15:42 [gentoo-commits] repo/gentoo:master commit in: app-text/mandoc/ James Le Cuirot
2024-08-26  7:04 Arthur Zamarin
2023-08-02 15:11 Sam James
2023-07-16  6:27 Joonas Niilola
2023-07-09  4:47 Sam James
2023-06-28  7:50 Sam James
2023-02-08 17:13 Sam James
2022-08-30 16:09 Sam James
2022-08-30  9:25 Jakov Smolić
2022-08-30  5:07 Arthur Zamarin
2022-08-30  5:07 Arthur Zamarin
2022-08-30  4:35 Arthur Zamarin
2022-08-01 15:22 Mike Gilbert
2022-07-31 20:04 Mike Gilbert
2022-05-19 10:35 WANG Xuerui
2022-01-19  2:31 Yixun Lan
2021-09-29 13:05 Lars Wendler
2021-01-08  7:24 Sergei Trofimovich
2021-01-03 11:39 Sergei Trofimovich
2021-01-03  9:58 Sergei Trofimovich
2020-12-19 21:50 Sergei Trofimovich
2020-12-13 23:31 Sam James
2020-12-13 10:34 Sam James
2020-12-13  9:12 Sam James
2020-12-13  9:02 Sam James
2020-12-11 14:20 Lars Wendler
2020-09-14  1:34 Georgy Yakovlev
2020-01-23 15:33 Lars Wendler
2020-01-08 15:01 Mike Frysinger
2019-03-10 17:52 Lars Wendler
2019-03-10 17:52 Lars Wendler
2018-08-13  8:19 Lars Wendler
2018-08-13  8:19 Lars Wendler
2017-08-21  9:03 Lars Wendler
2017-08-21  8:58 Lars Wendler
2017-03-13 22:46 Mike Frysinger
2017-03-13 22:46 Mike Frysinger
2017-02-23 12:39 Lars Wendler
2017-01-28  6:51 Mike Frysinger

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=1744904342.8c6a1df68f698376b7e5aa89a4850b803066c0ed.chewi@gentoo \
    --to=chewi@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