/[gentoo-x86]/sys-boot/silo/silo-1.4.14.ebuild
Gentoo

Contents of /sys-boot/silo/silo-1.4.14.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.5 - (show annotations) (download)
Sat Jan 22 12:25:20 2011 UTC (9 years, 1 month ago) by armin76
Branch: MAIN
CVS Tags: HEAD
Changes since 1.4: +1 -1 lines
FILE REMOVED
sparc stable, remove old and add patch to fix build with >=e2fsprogs-1.4.14 from upstream, bug #350677

(Portage version: 2.1.9.25/cvs/Linux ia64)

1 # Copyright 1999-2011 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
3 # $Header: /var/cvsroot/gentoo-x86/sys-boot/silo/silo-1.4.14.ebuild,v 1.4 2011/01/09 03:25:11 vapier Exp $
4
5 inherit mount-boot flag-o-matic toolchain-funcs
6
7 DESCRIPTION="SPARC/UltraSPARC Improved Loader, a boot loader for sparc"
8 SRC_URI="mirror://ubuntu/pool/main/s/${PN}/${PN}_${PV}.orig.tar.gz"
9
10 # the sourceforge project is dead. there is no homepage other than gitweb :(
11 HOMEPAGE="http://git.kernel.org/?p=linux/kernel/git/bcollins/silo.git;a=summary"
12
13 SLOT="0"
14 LICENSE="GPL-2"
15 KEYWORDS="-* sparc"
16 IUSE="hardened"
17
18 PROVIDE="virtual/bootloader"
19
20 DEPEND="sys-fs/e2fsprogs
21 sys-apps/sparc-utils"
22
23 ABI_ALLOW="sparc32"
24
25 src_unpack() {
26 unpack ${A}
27
28 cd "${S}"
29
30 # Sanitized headers bug #162537
31 epatch "${FILESDIR}"/sanitized-linuxheaders.patch
32
33 epatch "${FILESDIR}"/silo-1.4.x-noglibc_time.patch
34
35 # make it compile with gcc 4.3
36 epatch "${FILESDIR}"/gcc-4.3-compile.patch
37
38 # don't strip binaries, let portage handle it!
39 epatch "${FILESDIR}"/qa-no-strip.patch
40
41 # Fix build failure
42 sed -i -e "s/-fno-strict-aliasing/-fno-strict-aliasing -U_FORTIFY_SOURCE/g" Rules.make
43
44 }
45
46 src_compile() {
47 filter-flags "-fstack-protector"
48
49 if use hardened
50 then
51 make ${MAKEOPTS} CC="$(tc-getCC) -fno-stack-protector -fno-pic"
52 else
53 make ${MAKEOPTS} CC="$(tc-getCC)" || die
54 fi
55 }
56
57 src_install() {
58 make DESTDIR="${D}" install || die
59 dodoc first-isofs/README.SILO_ISOFS docs/README*
60
61 # Fix maketilo manpage
62 rm "${D}"/usr/share/man/man1/maketilo.1
63 dosym /usr/share/man/man1/tilo.1 /usr/share/man/man1/maketilo.1
64 }
65
66 pkg_postinst() {
67 mount-boot_pkg_postinst
68 ewarn "NOTE: If this is an upgrade to an existing SILO install,"
69 ewarn " you will need to re-run silo as the /boot/second.b"
70 ewarn " file has changed, else the system will fail to load"
71 ewarn " SILO at the next boot."
72 }

  ViewVC Help
Powered by ViewVC 1.1.20