diff options
Diffstat (limited to 'sys-boot/silo/silo-1.4.14_p20170829.ebuild')
-rw-r--r-- | sys-boot/silo/silo-1.4.14_p20170829.ebuild | 64 |
1 files changed, 64 insertions, 0 deletions
diff --git a/sys-boot/silo/silo-1.4.14_p20170829.ebuild b/sys-boot/silo/silo-1.4.14_p20170829.ebuild new file mode 100644 index 000000000000..dde2b3c9a733 --- /dev/null +++ b/sys-boot/silo/silo-1.4.14_p20170829.ebuild @@ -0,0 +1,64 @@ +# Copyright 1999-2018 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=6 + +inherit mount-boot flag-o-matic toolchain-funcs vcs-snapshot + +MY_SNAPSHOT="${PN}-2506051d55dd5cb9fe10b4e978e22fa00363044b" + +DESCRIPTION="SPARC/UltraSPARC Improved Loader, a boot loader for sparc" +SRC_URI="https://git.kernel.org/pub/scm/linux/kernel/git/davem/silo.git/snapshot/${MY_SNAPSHOT}.tar.gz -> ${P}.tar.gz" +HOMEPAGE="https://git.kernel.org/?p=linux/kernel/git/davem/silo.git;a=summary" + +SLOT="0" +LICENSE="GPL-2" +KEYWORDS="-* ~sparc" +IUSE="" + +DEPEND="sys-fs/e2fsprogs + sys-apps/sparc-utils" +RDEPEND="" + +ABI_ALLOW="sparc32" + +src_prepare() { + default + + # Set the correct version + sed -i -e "s/1.4.14/1.4.14_git20170829/g" Rules.make || die + + # Fix build failure + sed -i -e "s/-fno-strict-aliasing/-fno-strict-aliasing -U_FORTIFY_SOURCE -mcpu=v9/g" Rules.make || die + + # Don't strip ieee32.b during compile + sed -i -e '/^ $(STRIP) ieee32.b/d' first/Makefile || die +} + +src_compile() { + filter-flags "-fstack-protector" + + emake CC="$(tc-getCC)" \ + STRIP="$(tc-getSTRIP)" \ + NM="$(tc-getNM)" \ + LD="$(tc-getLD)" +} + +src_install() { + default + + 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() { + mount-boot_pkg_postinst + ewarn "NOTE: If this is an upgrade to an existing SILO install," + ewarn " you will need to re-run silo as the /boot/second.b" + ewarn " file has changed, else the system will fail to load" + ewarn " SILO at the next boot." + ewarn +} |