public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
From: "Sergei Trofimovich" <slyfox@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] repo/gentoo:master commit in: sys-boot/silo/
Date: Fri, 25 Dec 2020 22:21:51 +0000 (UTC)	[thread overview]
Message-ID: <1608934907.1975eb868186fba89ce71397ecdeed5dfaad0c0b.slyfox@gentoo> (raw)

commit:     1975eb868186fba89ce71397ecdeed5dfaad0c0b
Author:     Sergei Trofimovich <slyfox <AT> gentoo <DOT> org>
AuthorDate: Fri Dec 25 22:21:27 2020 +0000
Commit:     Sergei Trofimovich <slyfox <AT> gentoo <DOT> org>
CommitDate: Fri Dec 25 22:21:47 2020 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=1975eb86

sys-boot/silo: fix USE=tilo-only, honot CC

Reported-by: Rolf Eike Beer
Bug: https://bugs.gentoo.org/759655
Package-Manager: Portage-3.0.12, Repoman-3.0.2
Signed-off-by: Sergei Trofimovich <slyfox <AT> gentoo.org>

 sys-boot/silo/silo-1.4.14_p20200602.ebuild | 26 ++++++++++++++++----------
 1 file changed, 16 insertions(+), 10 deletions(-)

diff --git a/sys-boot/silo/silo-1.4.14_p20200602.ebuild b/sys-boot/silo/silo-1.4.14_p20200602.ebuild
index deeed7b293d..42f7fc37254 100644
--- a/sys-boot/silo/silo-1.4.14_p20200602.ebuild
+++ b/sys-boot/silo/silo-1.4.14_p20200602.ebuild
@@ -33,24 +33,30 @@ src_prepare() {
 	sed -i -e '/^	$(STRIP) ieee32.b/d' first/Makefile || die
 }
 
+_emake() {
+	# We inject '-m32' / '-m elf32_sparc' to follow 'Rules.make' defaults.
+
+	emake \
+		HOSTCC="$(tc-getBUILD_CC)" \
+		CC="$(tc-getCC) -m32" \
+		STRIP="$(tc-getSTRIP)" \
+		NM="$(tc-getNM)" \
+		LD="$(tc-getLD) -m elf32_sparc" \
+		TILO_ONLY=$(usex tilo-only yes no)
+		\
+		"$@"
+}
+
 src_compile() {
 	filter-flags "-fstack-protector"
 
-	CC="$(tc-getCC)" \
-	STRIP="$(tc-getSTRIP)" \
-	NM="$(tc-getNM)" \
-	LD="$(tc-getLD)" \
-		emake $(usex tilo-only '-C tilo' '')
+	_emake $(usex tilo-only '-C tilo' '')
 }
 
 src_install() {
-	default
+	_emake DESTDIR="${D}" install
 
 	dodoc first-isofs/README.SILO_ISOFS docs/README*
-
-	# Fix maketilo manpage
-	rm "${D}"/usr/share/man/man1/maketilo.1
-	dosym tilo.1 /usr/share/man/man1/maketilo.1
 }
 
 pkg_postinst() {


             reply	other threads:[~2020-12-25 22:21 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-12-25 22:21 Sergei Trofimovich [this message]
  -- strict thread matches above, loose matches on Subject: below --
2020-12-27 10:52 [gentoo-commits] repo/gentoo:master commit in: sys-boot/silo/ Sergei Trofimovich
2020-12-26  9:13 Sergei Trofimovich
2020-12-25 22:32 Sergei Trofimovich
2020-12-18  9:53 Sergei Trofimovich
2020-06-03  2:05 Matt Turner
2020-06-03  2:05 Matt Turner
2019-06-28 18:38 Ben Kohler
2018-05-07 16:14 Sergei Trofimovich
2018-04-04 22:26 Sergei Trofimovich
2018-04-04 22:26 Sergei Trofimovich
2018-02-13 19:59 Sergei Trofimovich

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=1608934907.1975eb868186fba89ce71397ecdeed5dfaad0c0b.slyfox@gentoo \
    --to=slyfox@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