Diff silo-1.4.14_p20120819-r1 with a silo-1.4.14_p20170829

/usr/portage/sys-boot/silo/silo-1.4.14_p20170829.ebuild 2019-06-28 22:09:00.000000000 +0300
1
# Copyright 1999-2018 Gentoo Foundation
1
# Copyright 1999-2019 Gentoo Authors
2 2
# Distributed under the terms of the GNU General Public License v2
3 3

  
4 4
EAPI=6
5 5

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

  
8
DEB_PL="1"
9
MY_PV="${PV##*_p}"
10
MY_GIT="git${MY_PV%%_*}"
11
MY_PV="${PV%%_*}"
12
MY_P="${PN}_${MY_PV}+${MY_GIT}"
8
MY_SNAPSHOT="${PN}-2506051d55dd5cb9fe10b4e978e22fa00363044b"
13 9

  
14 10
DESCRIPTION="SPARC/UltraSPARC Improved Loader, a boot loader for sparc"
15
SRC_URI="mirror://debian/pool/main/s/${PN}/${MY_P}.orig.tar.gz
16
	mirror://debian/pool/main/s/${PN}/${MY_P}-${DEB_PL}.diff.gz"
11
SRC_URI="https://git.kernel.org/pub/scm/linux/kernel/git/davem/silo.git/snapshot/${MY_SNAPSHOT}.tar.gz -> ${P}.tar.gz"
17 12
HOMEPAGE="https://git.kernel.org/?p=linux/kernel/git/davem/silo.git;a=summary"
18 13

  
19 14
SLOT="0"
......
27 22

  
28 23
ABI_ALLOW="sparc32"
29 24

  
30
S="${WORKDIR}/${PN}"
31

  
32
PATCHES=(
33
	"${FILESDIR}"/${P}-gnu90-inline.patch
34
)
35

  
36 25
src_prepare() {
37 26
	default
38 27

  
39
	#Set the correct version
40
	sed -i -e "s/1.4.14/1.4.14_git20120819_p1/g" Rules.make || die
28
	# Set the correct version
29
	sed -i -e "s/1.4.14/1.4.14_git20170829/g" Rules.make || die
41 30

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

  
36
	# Don't strip ieee32.b during compile
37
	sed -i -e '/^	$(STRIP) ieee32.b/d' first/Makefile || die
46 38
}
47 39

  
48 40
src_compile() {
49 41
	filter-flags "-fstack-protector"
50 42

  
51
	emake CC="$(tc-getCC)"
43
	emake CC="$(tc-getCC)" \
44
		STRIP="$(tc-getSTRIP)" \
45
		NM="$(tc-getNM)" \
46
		LD="$(tc-getLD)"
52 47
}
53 48

  
54 49
src_install() {
Thank you!