1 |
commit: 1975eb868186fba89ce71397ecdeed5dfaad0c0b |
2 |
Author: Sergei Trofimovich <slyfox <AT> gentoo <DOT> org> |
3 |
AuthorDate: Fri Dec 25 22:21:27 2020 +0000 |
4 |
Commit: Sergei Trofimovich <slyfox <AT> gentoo <DOT> org> |
5 |
CommitDate: Fri Dec 25 22:21:47 2020 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=1975eb86 |
7 |
|
8 |
sys-boot/silo: fix USE=tilo-only, honot CC |
9 |
|
10 |
Reported-by: Rolf Eike Beer |
11 |
Bug: https://bugs.gentoo.org/759655 |
12 |
Package-Manager: Portage-3.0.12, Repoman-3.0.2 |
13 |
Signed-off-by: Sergei Trofimovich <slyfox <AT> gentoo.org> |
14 |
|
15 |
sys-boot/silo/silo-1.4.14_p20200602.ebuild | 26 ++++++++++++++++---------- |
16 |
1 file changed, 16 insertions(+), 10 deletions(-) |
17 |
|
18 |
diff --git a/sys-boot/silo/silo-1.4.14_p20200602.ebuild b/sys-boot/silo/silo-1.4.14_p20200602.ebuild |
19 |
index deeed7b293d..42f7fc37254 100644 |
20 |
--- a/sys-boot/silo/silo-1.4.14_p20200602.ebuild |
21 |
+++ b/sys-boot/silo/silo-1.4.14_p20200602.ebuild |
22 |
@@ -33,24 +33,30 @@ src_prepare() { |
23 |
sed -i -e '/^ $(STRIP) ieee32.b/d' first/Makefile || die |
24 |
} |
25 |
|
26 |
+_emake() { |
27 |
+ # We inject '-m32' / '-m elf32_sparc' to follow 'Rules.make' defaults. |
28 |
+ |
29 |
+ emake \ |
30 |
+ HOSTCC="$(tc-getBUILD_CC)" \ |
31 |
+ CC="$(tc-getCC) -m32" \ |
32 |
+ STRIP="$(tc-getSTRIP)" \ |
33 |
+ NM="$(tc-getNM)" \ |
34 |
+ LD="$(tc-getLD) -m elf32_sparc" \ |
35 |
+ TILO_ONLY=$(usex tilo-only yes no) |
36 |
+ \ |
37 |
+ "$@" |
38 |
+} |
39 |
+ |
40 |
src_compile() { |
41 |
filter-flags "-fstack-protector" |
42 |
|
43 |
- CC="$(tc-getCC)" \ |
44 |
- STRIP="$(tc-getSTRIP)" \ |
45 |
- NM="$(tc-getNM)" \ |
46 |
- LD="$(tc-getLD)" \ |
47 |
- emake $(usex tilo-only '-C tilo' '') |
48 |
+ _emake $(usex tilo-only '-C tilo' '') |
49 |
} |
50 |
|
51 |
src_install() { |
52 |
- default |
53 |
+ _emake DESTDIR="${D}" install |
54 |
|
55 |
dodoc first-isofs/README.SILO_ISOFS docs/README* |
56 |
- |
57 |
- # Fix maketilo manpage |
58 |
- rm "${D}"/usr/share/man/man1/maketilo.1 |
59 |
- dosym tilo.1 /usr/share/man/man1/maketilo.1 |
60 |
} |
61 |
|
62 |
pkg_postinst() { |