diff options
author | Javier Villavicencio <the_paya@gentoo.org> | 2009-01-22 20:59:52 +0000 |
---|---|---|
committer | Javier Villavicencio <the_paya@gentoo.org> | 2009-01-22 20:59:52 +0000 |
commit | 108ea7bd36e6c612e7902c860b655734d0f87fff (patch) | |
tree | 82dd52df8f67c05088ab82a281fa808631ac96d8 /sys-freebsd/boot0 | |
parent | EAPI=2; re-roll patch; work around for bug #237135 (diff) | |
download | gentoo-2-108ea7bd36e6c612e7902c860b655734d0f87fff.tar.gz gentoo-2-108ea7bd36e6c612e7902c860b655734d0f87fff.tar.bz2 gentoo-2-108ea7bd36e6c612e7902c860b655734d0f87fff.zip |
Import of the 7.1 ebuilds from gentoo-bsd overlay.
(Portage version: 2.2_rc23/cvs/FreeBSD i386)
Diffstat (limited to 'sys-freebsd/boot0')
-rw-r--r-- | sys-freebsd/boot0/ChangeLog | 10 | ||||
-rw-r--r-- | sys-freebsd/boot0/boot0-7.1.ebuild | 37 | ||||
-rw-r--r-- | sys-freebsd/boot0/files/boot0-7.0-gentoo.patch | 131 |
3 files changed, 176 insertions, 2 deletions
diff --git a/sys-freebsd/boot0/ChangeLog b/sys-freebsd/boot0/ChangeLog index 60d0ad342ea1..96b6a47809f4 100644 --- a/sys-freebsd/boot0/ChangeLog +++ b/sys-freebsd/boot0/ChangeLog @@ -1,6 +1,12 @@ # ChangeLog for sys-freebsd/boot0 -# Copyright 1999-2007 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/sys-freebsd/boot0/ChangeLog,v 1.21 2007/10/16 08:47:02 uberlord Exp $ +# Copyright 1999-2009 Gentoo Foundation; Distributed under the GPL v2 +# $Header: /var/cvsroot/gentoo-x86/sys-freebsd/boot0/ChangeLog,v 1.22 2009/01/22 20:59:52 the_paya Exp $ + +*boot0-7.1 (22 Jan 2009) + + 22 Jan 2009; Javier Villavicencio <the_paya@gentoo.org> + +files/boot0-7.0-gentoo.patch, +boot0-7.1.ebuild: + Import 7.1 ebuilds from gentoo-bsd overlay. 16 Oct 2007; Roy Marples <uberlord@gentoo.org> -files/freebsd-sources-6.2-sparc64.patch, boot0-6.2.ebuild: diff --git a/sys-freebsd/boot0/boot0-7.1.ebuild b/sys-freebsd/boot0/boot0-7.1.ebuild new file mode 100644 index 000000000000..13545f88d3b3 --- /dev/null +++ b/sys-freebsd/boot0/boot0-7.1.ebuild @@ -0,0 +1,37 @@ +# Copyright 1999-2009 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/sys-freebsd/boot0/boot0-7.1.ebuild,v 1.1 2009/01/22 20:59:52 the_paya Exp $ + +inherit bsdmk freebsd + +DESCRIPTION="FreeBSD's bootloader" +SLOT="0" +KEYWORDS="~sparc-fbsd ~x86-fbsd" + +IUSE="" + +SRC_URI="mirror://gentoo/${SYS}.tar.bz2" + +RDEPEND="" +DEPEND="=sys-freebsd/freebsd-mk-defs-${RV}* + =sys-freebsd/freebsd-lib-${RV}*" + +S="${WORKDIR}/sys/boot" + +PATCHES="${FILESDIR}/boot0-7.0-gentoo.patch" + +src_unpack() { + freebsd_src_unpack + + grep -lr --null -- -ffreestanding "${S}" | xargs -0 sed -i -e \ + "s:-ffreestanding:-ffreestanding $(test-flags -fno-stack-protector -fno-stack-protector-all):g" || die + sed -e '/-fomit-frame-pointer/d' -e '/-mno-align-long-strings/d' \ + -i "${S}"/i386/boot2/Makefile \ + -i "${S}"/i386/gptboot/Makefile || die +} + +src_install() { + dodir /boot/defaults + + mkinstall FILESDIR=/boot || die "mkinstall failed" +} diff --git a/sys-freebsd/boot0/files/boot0-7.0-gentoo.patch b/sys-freebsd/boot0/files/boot0-7.0-gentoo.patch new file mode 100644 index 000000000000..a5830c178f27 --- /dev/null +++ b/sys-freebsd/boot0/files/boot0-7.0-gentoo.patch @@ -0,0 +1,131 @@ +diff -ur ../src.orig/sys/boot/efi/libefi/Makefile sys/boot/efi/libefi/Makefile +--- ../src.orig/sys/boot/efi/libefi/Makefile 2006-11-05 23:03:03.000000000 +0100 ++++ sys/boot/efi/libefi/Makefile 2008-03-14 11:15:48.482695423 +0100 +@@ -8,7 +8,7 @@ + + CFLAGS+= -I${.CURDIR}/../include + CFLAGS+= -I${.CURDIR}/../include/${MACHINE_ARCH:S/amd64/i386/} +-CFLAGS+= -I${.CURDIR}/../../../../lib/libstand ++CFLAGS+= -I/usr/include/libstand + + # Pick up the bootstrap header for some interface items + CFLAGS+= -I${.CURDIR}/../../common +diff -ur ../src.orig/sys/boot/i386/boot2/Makefile sys/boot/i386/boot2/Makefile +--- ../src.orig/sys/boot/i386/boot2/Makefile 2007-05-19 07:07:47.000000000 +0200 ++++ sys/boot/i386/boot2/Makefile 2008-03-14 11:21:16.247014910 +0100 +@@ -24,7 +24,7 @@ + -fno-guess-branch-probability \ + -fomit-frame-pointer \ + -fno-unit-at-a-time \ +- -mno-align-long-strings \ ++ -march=i586 \ + -mrtd \ + -mno-mmx -mno-3dnow -mno-sse -mno-sse2 -mno-sse3 \ + -D${BOOT2_UFS} \ +diff -ur ../src.orig/sys/boot/i386/libfirewire/Makefile sys/boot/i386/libfirewire/Makefile +--- ../src.orig/sys/boot/i386/libfirewire/Makefile 2007-05-29 16:35:57.000000000 +0200 ++++ sys/boot/i386/libfirewire/Makefile 2008-03-14 11:15:48.502696288 +0100 +@@ -10,7 +10,7 @@ + CFLAGS+= -D_BOOT + + CFLAGS+= -I${.CURDIR}/../../common -I${.CURDIR}/../../.. -I. +-CFLAGS+= -I${.CURDIR}/../../../../lib/libstand ++CFLAGS+= -I/usr/include/libstand + CFLAGS+= -I${.CURDIR}/../btx/lib + CFLAGS+= -I${.CURDIR}/../libi386 + +diff -ur ../src.orig/sys/boot/i386/libi386/Makefile sys/boot/i386/libi386/Makefile +--- ../src.orig/sys/boot/i386/libi386/Makefile 2006-04-11 22:11:30.000000000 +0200 ++++ sys/boot/i386/libi386/Makefile 2008-03-14 11:15:48.506695959 +0100 +@@ -36,7 +36,7 @@ + -I${.CURDIR}/../../../contrib/dev/acpica \ + -I${.CURDIR}/../../.. -I. + # the location of libstand +-CFLAGS+= -I${.CURDIR}/../../../../lib/libstand/ ++CFLAGS+= -I/usr/include/libstand/ + + .if ${MACHINE_ARCH} == "amd64" + CLEANFILES+= machine +diff -ur ../src.orig/sys/boot/ia64/common/Makefile sys/boot/ia64/common/Makefile +--- ../src.orig/sys/boot/ia64/common/Makefile 2006-11-05 23:03:03.000000000 +0100 ++++ sys/boot/ia64/common/Makefile 2008-03-14 11:15:48.486695372 +0100 +@@ -10,7 +10,7 @@ + CFLAGS+= -I${.CURDIR}/../../efi/include + CFLAGS+= -I${.CURDIR}/../../efi/include/${MACHINE_ARCH} + CFLAGS+= -I${.CURDIR}/../../.. +-CFLAGS+= -I${.CURDIR}/../../../../lib/libstand ++CFLAGS+= -I/usr/include/libstand + + .if ${MK_FORTH} != "no" + BOOT_FORTH= yes +diff -ur ../src.orig/sys/boot/ia64/efi/Makefile sys/boot/ia64/efi/Makefile +--- ../src.orig/sys/boot/ia64/efi/Makefile 2006-11-05 23:03:03.000000000 +0100 ++++ sys/boot/ia64/efi/Makefile 2008-03-14 11:15:48.490695322 +0100 +@@ -15,7 +15,7 @@ + CFLAGS+= -I${.CURDIR}/../../efi/include + CFLAGS+= -I${.CURDIR}/../../efi/include/${MACHINE_ARCH} + CFLAGS+= -I${.CURDIR}/../../.. +-CFLAGS+= -I${.CURDIR}/../../../../lib/libstand ++CFLAGS+= -I/usr/include/libstand + + LDSCRIPT= ${.CURDIR}/ldscript.${MACHINE_ARCH} + LDFLAGS= -Wl,-T${LDSCRIPT} -shared -symbolic +diff -ur ../src.orig/sys/boot/ia64/ski/Makefile sys/boot/ia64/ski/Makefile +--- ../src.orig/sys/boot/ia64/ski/Makefile 2006-11-05 23:03:04.000000000 +0100 ++++ sys/boot/ia64/ski/Makefile 2008-03-14 11:15:48.494695551 +0100 +@@ -14,7 +14,7 @@ + CFLAGS+= -I${.CURDIR}/../common + CFLAGS+= -I${.CURDIR}/../../common + CFLAGS+= -I${.CURDIR}/../../.. +-CFLAGS+= -I${.CURDIR}/../../../../lib/libstand ++CFLAGS+= -I/usr/include/libstand + + LDSCRIPT= ${.CURDIR}/ldscript.${MACHINE_ARCH} + LDFLAGS= -Wl,-T${LDSCRIPT} +diff -ur ../src.orig/sys/boot/ofw/libofw/Makefile sys/boot/ofw/libofw/Makefile +--- ../src.orig/sys/boot/ofw/libofw/Makefile 2007-06-17 02:17:15.000000000 +0200 ++++ sys/boot/ofw/libofw/Makefile 2008-03-14 11:15:48.478695194 +0100 +@@ -7,7 +7,7 @@ + ofw_memory.c ofw_module.c ofw_net.c ofw_reboot.c \ + ofw_time.c openfirm.c + +-CFLAGS+= -I${.CURDIR}/../../../../lib/libstand/ ++CFLAGS+= -I/usr/include/libstand/ + + # Pick up the bootstrap header for some interface items + CFLAGS+= -I${.CURDIR}/../../common -I${.CURDIR}/../../.. -I. +diff -ur ../src.orig/sys/boot/pc98/libpc98/Makefile sys/boot/pc98/libpc98/Makefile +--- ../src.orig/sys/boot/pc98/libpc98/Makefile 2006-04-11 22:11:30.000000000 +0200 ++++ sys/boot/pc98/libpc98/Makefile 2008-03-14 11:15:48.510696188 +0100 +@@ -31,6 +31,6 @@ + -I${.CURDIR}/../../i386/libi386 \ + -I${.CURDIR}/../../.. -I. + # the location of libstand +-CFLAGS+= -I${.CURDIR}/../../../../lib/libstand/ ++CFLAGS+= -I/usr/include/libstand/ + + .include <bsd.lib.mk> +diff -ur ../src.orig/sys/boot/powerpc/loader/Makefile sys/boot/powerpc/loader/Makefile +--- ../src.orig/sys/boot/powerpc/loader/Makefile 2006-03-17 19:54:36.000000000 +0100 ++++ sys/boot/powerpc/loader/Makefile 2008-03-14 11:15:48.515695706 +0100 +@@ -82,7 +82,7 @@ + CFLAGS+= -I${.CURDIR}/../../ofw/libofw + + # where to get libstand from +-CFLAGS+= -I${.CURDIR}/../../../../lib/libstand/ ++CFLAGS+= -I/usr/include/libstand/ + + DPADD= ${LIBFICL} ${LIBOFW} ${LIBSTAND} + LDADD= ${LIBFICL} ${LIBOFW} -lstand +diff -ur ../src.orig/sys/boot/sparc64/loader/Makefile sys/boot/sparc64/loader/Makefile +--- ../src.orig/sys/boot/sparc64/loader/Makefile 2006-03-17 19:54:36.000000000 +0100 ++++ sys/boot/sparc64/loader/Makefile 2008-03-14 11:15:48.498695501 +0100 +@@ -65,7 +65,7 @@ + CFLAGS+= -I${.CURDIR}/../../ofw/libofw/ + + # where to get libstand from +-CFLAGS+= -I${.CURDIR}/../../../../lib/libstand/ ++CFLAGS+= -I/usr/include/libstand/ + + DPADD= ${LIBFICL} ${LIBOFW} ${LIBSTAND} + LDADD= ${LIBFICL} ${LIBOFW} -lstand |