From: "James Le Cuirot" <chewi@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] repo/gentoo:master commit in: sys-apps/groff/
Date: Fri, 25 Jan 2019 21:43:03 +0000 (UTC) [thread overview]
Message-ID: <1548452370.26d2abf134411ea9f80c5377c5609808663370c0.chewi@gentoo> (raw)
commit: 26d2abf134411ea9f80c5377c5609808663370c0
Author: James Le Cuirot <chewi <AT> gentoo <DOT> org>
AuthorDate: Fri Jan 25 21:38:47 2019 +0000
Commit: James Le Cuirot <chewi <AT> gentoo <DOT> org>
CommitDate: Fri Jan 25 21:39:30 2019 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=26d2abf1
sys-apps/groff: Fix cross-compiling following build file changes
Override the variables when calling make instead of changing the
Makefiles. The comment in the Makefiles suggests that this is how
upstream wants you to do it.
Using ${EPREFIX} as before is not correct as this refer to the target
prefix, not the build prefix. EAPI 7 provides ${BROOT} for this but
for tools in the path, it is better to use type -P instead.
groff is not in @system so there is no guarantee that it will actually
be present on the build system. EAPI 7 did not include EAPI
5-hdepend's targetroot USE flag feature, which prevents us from
putting groff in BDEPEND. The preferred approach is to do a native
build in tandem with a cross build but this makes the ebuild more
complex so I will attempt this in a separate fix.
Closes: https://bugs.gentoo.org/674866
Package-Manager: Portage-2.3.58, Repoman-2.3.12
Signed-off-by: James Le Cuirot <chewi <AT> gentoo.org>
sys-apps/groff/groff-1.22.4.ebuild | 25 ++++++++++++-------------
1 file changed, 12 insertions(+), 13 deletions(-)
diff --git a/sys-apps/groff/groff-1.22.4.ebuild b/sys-apps/groff/groff-1.22.4.ebuild
index 8ec07c8c1ad..3fa2e509662 100644
--- a/sys-apps/groff/groff-1.22.4.ebuild
+++ b/sys-apps/groff/groff-1.22.4.ebuild
@@ -47,18 +47,6 @@ src_prepare() {
Makefile.in \
|| die "failed to modify Makefile.in"
- # Make sure we can cross-compile this puppy
- if tc-is-cross-compiler ; then
- sed -i \
- -e '/^GROFFBIN=/s:=.*:=${EPREFIX}/usr/bin/groff:' \
- -e '/^TROFFBIN=/s:=.*:=${EPREFIX}/usr/bin/troff:' \
- -e '/^GROFF_BIN_PATH=/s:=.*:=:' \
- -e '/^GROFF_BIN_DIR=/s:=.*:=:' \
- contrib/*/Makefile.sub \
- doc/Makefile.in \
- doc/Makefile.sub || die "cross-compile sed failed"
- fi
-
local pfx=$(usex prefix ' Prefix' '')
cat <<-EOF >> tmac/mdoc.local
.ds volume-operating-system Gentoo${pfx}
@@ -80,7 +68,18 @@ src_configure() {
}
src_compile() {
- emake AR="$(tc-getAR)"
+ if tc-is-cross-compiler ; then
+ local CROSS_ARGS=(
+ GROFFBIN="$(type -P groff)"
+ TROFFBIN="$(type -P troff)"
+ GROFF_BIN_DIR=
+ GROFF_BIN_PATH=
+ )
+ else
+ unset CROSS_ARGS
+ fi
+
+ emake AR="$(tc-getAR)" "${CROSS_ARGS[@]}"
}
src_install() {
next reply other threads:[~2019-01-25 21:43 UTC|newest]
Thread overview: 58+ messages / expand[flat|nested] mbox.gz Atom feed top
2019-01-25 21:43 James Le Cuirot [this message]
-- strict thread matches above, loose matches on Subject: below --
2023-12-20 15:19 [gentoo-commits] repo/gentoo:master commit in: sys-apps/groff/ Sam James
2023-12-18 9:01 Arthur Zamarin
2023-12-16 20:56 Sam James
2023-12-16 19:16 Arthur Zamarin
2023-12-16 19:16 Arthur Zamarin
2023-12-16 11:33 Sam James
2023-12-16 11:29 Arthur Zamarin
2023-12-16 11:26 Sam James
2023-11-12 10:25 Fabian Groffen
2023-07-06 8:29 Sam James
2023-07-06 8:29 Sam James
2023-04-16 4:38 Sam James
2023-02-24 18:36 Sam James
2023-02-13 23:24 Sam James
2023-02-09 0:57 Sam James
2023-02-04 22:50 Sam James
2022-10-20 3:50 Sam James
2022-10-18 2:18 Sam James
2021-08-30 2:03 Sam James
2021-03-14 18:55 Mike Gilbert
2021-02-23 19:17 Fabian Groffen
2021-01-19 18:14 Georgy Yakovlev
2021-01-06 15:26 Fabian Groffen
2020-12-27 18:13 Fabian Groffen
2020-07-11 21:09 Sam James
2020-06-20 14:08 Thomas Deutschmann
2020-06-09 20:06 Michał Górny
2020-06-04 20:39 Mart Raudsepp
2020-05-30 19:20 Sergei Trofimovich
2020-05-30 8:45 Sergei Trofimovich
2020-05-25 12:21 Mikle Kolyada
2020-05-25 9:36 Sergei Trofimovich
2020-05-22 8:02 Sergei Trofimovich
2020-02-08 16:53 David Seifert
2019-05-04 13:18 Mikle Kolyada
2019-01-08 19:19 Thomas Deutschmann
2019-01-08 19:19 Thomas Deutschmann
2018-12-24 22:15 Lars Wendler
2018-12-23 9:47 Lars Wendler
2018-12-08 15:45 Mikle Kolyada
2018-12-03 0:08 Thomas Deutschmann
2018-11-28 21:22 Tobias Klausmann
2018-11-25 15:48 Mart Raudsepp
2018-11-18 16:01 Sergei Trofimovich
2018-11-18 11:36 Mikle Kolyada
2018-11-18 10:52 Sergei Trofimovich
2018-11-18 10:41 Sergei Trofimovich
2018-11-18 10:38 Sergei Trofimovich
2018-11-12 1:14 Thomas Deutschmann
2018-11-10 15:31 Sergei Trofimovich
2018-11-09 17:46 Mikle Kolyada
2018-11-09 13:35 Lars Wendler
2017-05-09 14:33 William Hubbs
2016-12-09 4:21 Mike Frysinger
2016-12-07 18:50 Mike Frysinger
2016-06-24 21:28 Ulrich Müller
2016-01-12 18:05 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=1548452370.26d2abf134411ea9f80c5377c5609808663370c0.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