Gentoo Archives: gentoo-commits

From: Matt Turner <mattst88@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: sys-boot/silo/
Date: Wed, 03 Jun 2020 02:06:28
Message-Id: 1591149946.ffdc2a3d24da099fce0afb76f9f6d2c8d2a5a254.mattst88@gentoo
1 commit: ffdc2a3d24da099fce0afb76f9f6d2c8d2a5a254
2 Author: Matt Turner <mattst88 <AT> gentoo <DOT> org>
3 AuthorDate: Wed Jun 3 02:03:41 2020 +0000
4 Commit: Matt Turner <mattst88 <AT> gentoo <DOT> org>
5 CommitDate: Wed Jun 3 02:05:46 2020 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=ffdc2a3d
7
8 sys-boot/silo: Version bump to 1.4.14_p20200602
9
10 Signed-off-by: Matt Turner <mattst88 <AT> gentoo.org>
11
12 sys-boot/silo/Manifest | 1 +
13 sys-boot/silo/metadata.xml | 3 ++
14 sys-boot/silo/silo-1.4.14_p20200602.ebuild | 65 ++++++++++++++++++++++++++++++
15 3 files changed, 69 insertions(+)
16
17 diff --git a/sys-boot/silo/Manifest b/sys-boot/silo/Manifest
18 index e0c4be194e0..70de039c957 100644
19 --- a/sys-boot/silo/Manifest
20 +++ b/sys-boot/silo/Manifest
21 @@ -1,3 +1,4 @@
22 DIST silo-1.4.14_p20170829.tar.gz 183612 BLAKE2B 88fb4b0ce4e9b8fa9518bcb6226f4fe9ec7011bf3f73d9f0f1562ff837217ca8d54ee783eed0b50096b009fc56527be8e4211623f5b0e4ef5372c38c0fe304f1 SHA512 bda31084ba2ee5b01d331fd390cbccf039dc812debe25f3af97dd5d2855668cbe7e160dee4ca45c16af1fa4aa86224daf3b474fd49b22a8b7f453584a12f3c2b
23 +DIST silo-1.4.14_p20200602.tar.gz 183668 BLAKE2B e229cdb9fbc5f0111aa49919f4b3b91c0770492fa06f91bda15c65af160b728b9409365c3ff0a93091b1e3011c60d0b0bec1101ffabaddbaef7e1083158830b1 SHA512 7a70fe25c1bb3ce655e4fbb85b00fe0d29fe0a6f98b80c1b8267b72bc9324ac0749cd050921163cc286e094f7d9bc81315d63ff02d2442b5c30ce350a537fcc1
24 DIST silo_1.4.14+git20120819-1.diff.gz 10711 BLAKE2B c44a0204e3aece4eec8355f88b3a195c1ba7019c0aa648cc4e28ff6cb85fc6d96634bd282e5aaea9123dbc5835820acf2fc15054c91842d6b1040fc13cb0033b SHA512 60719b672a0f1dd2a005e763efd232bbf7aeb00198e0b46827208b78f1b32acc3a730d43944382dec4b95fddfbb373b1eb69dc911ad28ec9d1d1e6c45d84db20
25 DIST silo_1.4.14+git20120819.orig.tar.gz 755510 BLAKE2B f1185086671c12c901704c2aa1f582a4e983d2d4a2d5ec18194aebcd43a7bdf9e7ad329efebaf4911d40f8a417ff8c8566b61be4eac5fea13235ac44d0edf852 SHA512 2d1dd8f805fb0a272877b5e8e19e5a645aa9fe02cf2b5ef43b5d2894c0c6a5a82483a0e41556af50f01dc795dc5e43350ae92139485c19d64cda75c2aca01a38
26
27 diff --git a/sys-boot/silo/metadata.xml b/sys-boot/silo/metadata.xml
28 index fd1c35f8fbe..a2966fc65e1 100644
29 --- a/sys-boot/silo/metadata.xml
30 +++ b/sys-boot/silo/metadata.xml
31 @@ -8,4 +8,7 @@
32 <longdescription>
33 SILO is the SPARC/UltraSPARC Improved Loader, a boot loader for sparc similar to LILO.
34 </longdescription>
35 +<use>
36 + <flag name="tilo-only">Install only the tilo netboot tool</flag>
37 +</use>
38 </pkgmetadata>
39
40 diff --git a/sys-boot/silo/silo-1.4.14_p20200602.ebuild b/sys-boot/silo/silo-1.4.14_p20200602.ebuild
41 new file mode 100644
42 index 00000000000..deeed7b293d
43 --- /dev/null
44 +++ b/sys-boot/silo/silo-1.4.14_p20200602.ebuild
45 @@ -0,0 +1,65 @@
46 +# Copyright 1999-2020 Gentoo Authors
47 +# Distributed under the terms of the GNU General Public License v2
48 +
49 +EAPI=7
50 +
51 +inherit mount-boot flag-o-matic toolchain-funcs vcs-snapshot
52 +
53 +MY_SNAPSHOT="${PN}-9277bfd433e398d0a6eabec79edead52d4cb8125"
54 +
55 +DESCRIPTION="SPARC/UltraSPARC Improved Loader, a boot loader for sparc"
56 +SRC_URI="https://git.kernel.org/pub/scm/linux/kernel/git/davem/silo.git/snapshot/${MY_SNAPSHOT}.tar.gz -> ${P}.tar.gz"
57 +HOMEPAGE="https://git.kernel.org/?p=linux/kernel/git/davem/silo.git;a=summary"
58 +
59 +SLOT="0"
60 +LICENSE="GPL-2"
61 +KEYWORDS="-* ~sparc"
62 +IUSE="tilo-only"
63 +
64 +DEPEND="sys-fs/e2fsprogs
65 + sys-apps/sparc-utils"
66 +RDEPEND=""
67 +
68 +src_prepare() {
69 + default
70 +
71 + # Set the correct version
72 + sed -i -e "s/1.4.14/1.4.14_git20200602/g" Rules.make || die
73 +
74 + # Fix build failure
75 + sed -i -e "s/-fno-strict-aliasing/-fno-strict-aliasing -mcpu=v9/g" Rules.make || die
76 +
77 + # Don't strip ieee32.b during compile
78 + sed -i -e '/^ $(STRIP) ieee32.b/d' first/Makefile || die
79 +}
80 +
81 +src_compile() {
82 + filter-flags "-fstack-protector"
83 +
84 + CC="$(tc-getCC)" \
85 + STRIP="$(tc-getSTRIP)" \
86 + NM="$(tc-getNM)" \
87 + LD="$(tc-getLD)" \
88 + emake $(usex tilo-only '-C tilo' '')
89 +}
90 +
91 +src_install() {
92 + default
93 +
94 + dodoc first-isofs/README.SILO_ISOFS docs/README*
95 +
96 + # Fix maketilo manpage
97 + rm "${D}"/usr/share/man/man1/maketilo.1
98 + dosym tilo.1 /usr/share/man/man1/maketilo.1
99 +}
100 +
101 +pkg_postinst() {
102 + use tilo-only && return
103 +
104 + mount-boot_pkg_postinst
105 + ewarn "NOTE: If this is an upgrade to an existing SILO install,"
106 + ewarn " you will need to re-run silo as the /boot/second.b"
107 + ewarn " file has changed, else the system will fail to load"
108 + ewarn " SILO at the next boot."
109 + ewarn
110 +}