Diff silo-1.4.14_p20170829 with a silo-1.4.14_p20200602

/usr/portage/sys-boot/silo/silo-1.4.14_p20200602.ebuild 2020-06-03 05:39:00.000000000 +0300
1
# Copyright 1999-2019 Gentoo Authors
1
# Copyright 1999-2020 Gentoo Authors
2 2
# Distributed under the terms of the GNU General Public License v2
3 3

  
4
EAPI=6
4
EAPI=7
5 5

  
6 6
inherit mount-boot flag-o-matic toolchain-funcs vcs-snapshot
7 7

  
8
MY_SNAPSHOT="${PN}-2506051d55dd5cb9fe10b4e978e22fa00363044b"
8
MY_SNAPSHOT="${PN}-9277bfd433e398d0a6eabec79edead52d4cb8125"
9 9

  
10 10
DESCRIPTION="SPARC/UltraSPARC Improved Loader, a boot loader for sparc"
11 11
SRC_URI="https://git.kernel.org/pub/scm/linux/kernel/git/davem/silo.git/snapshot/${MY_SNAPSHOT}.tar.gz -> ${P}.tar.gz"
......
13 13

  
14 14
SLOT="0"
15 15
LICENSE="GPL-2"
16
KEYWORDS="-* sparc"
17
IUSE=""
16
KEYWORDS="-* ~sparc"
17
IUSE="tilo-only"
18 18

  
19 19
DEPEND="sys-fs/e2fsprogs
20 20
	sys-apps/sparc-utils"
21 21
RDEPEND=""
22 22

  
23
ABI_ALLOW="sparc32"
24

  
25 23
src_prepare() {
26 24
	default
27 25

  
28 26
	# Set the correct version
29
	sed -i -e "s/1.4.14/1.4.14_git20170829/g" Rules.make || die
27
	sed -i -e "s/1.4.14/1.4.14_git20200602/g" Rules.make || die
30 28

  
31 29
	# Fix build failure
32
	# -fno-PIC is needed to shrink silo size back to manageable on
33
	# profiles where gcc has -fPIC default (via --enable-default-pie).
34
	sed -i -e "s/-fno-strict-aliasing/-fno-strict-aliasing -U_FORTIFY_SOURCE -mcpu=v9 -fno-PIC/g" Rules.make || die
30
	sed -i -e "s/-fno-strict-aliasing/-fno-strict-aliasing -mcpu=v9/g" Rules.make || die
35 31

  
36 32
	# Don't strip ieee32.b during compile
37 33
	sed -i -e '/^	$(STRIP) ieee32.b/d' first/Makefile || die
......
40 36
src_compile() {
41 37
	filter-flags "-fstack-protector"
42 38

  
43
	emake CC="$(tc-getCC)" \
44
		STRIP="$(tc-getSTRIP)" \
45
		NM="$(tc-getNM)" \
46
		LD="$(tc-getLD)"
39
	CC="$(tc-getCC)" \
40
	STRIP="$(tc-getSTRIP)" \
41
	NM="$(tc-getNM)" \
42
	LD="$(tc-getLD)" \
43
		emake $(usex tilo-only '-C tilo' '')
47 44
}
48 45

  
49 46
src_install() {
......
57 54
}
58 55

  
59 56
pkg_postinst() {
57
	use tilo-only && return
58

  
60 59
	mount-boot_pkg_postinst
61 60
	ewarn "NOTE: If this is an upgrade to an existing SILO install,"
62 61
	ewarn "      you will need to re-run silo as the /boot/second.b"
Thank you!