diff options
author | Mike Gilbert <floppym@gentoo.org> | 2012-04-01 21:28:06 +0000 |
---|---|---|
committer | Mike Gilbert <floppym@gentoo.org> | 2012-04-01 21:28:06 +0000 |
commit | 139cec766ddf745dd223a91664c91ee07e8d220d (patch) | |
tree | a149419a89ddff31ff5a1410fd51037e9f6e6d05 /sys-boot | |
parent | Fix typo in death hook check. (diff) | |
download | historical-139cec766ddf745dd223a91664c91ee07e8d220d.tar.gz historical-139cec766ddf745dd223a91664c91ee07e8d220d.tar.bz2 historical-139cec766ddf745dd223a91664c91ee07e8d220d.zip |
Version bump.
Package-Manager: portage-2.2.0_alpha98/cvs/Linux x86_64
Diffstat (limited to 'sys-boot')
-rw-r--r-- | sys-boot/grub/ChangeLog | 7 | ||||
-rw-r--r-- | sys-boot/grub/Manifest | 10 | ||||
-rw-r--r-- | sys-boot/grub/grub-2.00_beta3.ebuild | 269 |
3 files changed, 281 insertions, 5 deletions
diff --git a/sys-boot/grub/ChangeLog b/sys-boot/grub/ChangeLog index 89eead864f4d..c38ce91cd4fc 100644 --- a/sys-boot/grub/ChangeLog +++ b/sys-boot/grub/ChangeLog @@ -1,6 +1,11 @@ # ChangeLog for sys-boot/grub # Copyright 1999-2012 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/sys-boot/grub/ChangeLog,v 1.193 2012/03/24 04:22:46 floppym Exp $ +# $Header: /var/cvsroot/gentoo-x86/sys-boot/grub/ChangeLog,v 1.194 2012/04/01 21:28:06 floppym Exp $ + +*grub-2.00_beta3 (01 Apr 2012) + + 01 Apr 2012; Mike Gilbert <floppym@gentoo.org> +grub-2.00_beta3.ebuild: + Version bump. 24 Mar 2012; Mike Gilbert <floppym@gentoo.org> grub-2.00_beta2-r1.ebuild, grub-9999.ebuild: diff --git a/sys-boot/grub/Manifest b/sys-boot/grub/Manifest index 48b91c7e83a5..cce610533807 100644 --- a/sys-boot/grub/Manifest +++ b/sys-boot/grub/Manifest @@ -29,6 +29,7 @@ DIST grub-1.99.tar.xz 2639224 RMD160 d59a47fa40b2be0d5ea5b2b00ff5538cfa147747 SH DIST grub-2.00~beta0.tar.xz 4833964 RMD160 8c3f6b1a54d028c4fa4e181e1b1bfc4e401e4414 SHA1 de5aadcfb8e0a52de8870560ebfb30dc62adaf44 SHA256 e96e81341e7cf931721cbdd2cff1f4aeb643566aad6ab0bcf97173821409019a DIST grub-2.00~beta1.tar.xz 4893780 RMD160 5bff1bbcfb6e7fb3aad5289bd2947891d299c077 SHA1 b1eb0ca9349e59098cec0f4873a8689b7e9c57c3 SHA256 c99332bbf666ea4a4adc0cd900ec9d3ab2018f3ea7ce108b16773fc0fc78bfe9 DIST grub-2.00~beta2.tar.xz 4984612 RMD160 5f3905a1c0e813183394e4063ea51c8ff3c71950 SHA1 2ba583f9466fb676b0ae3d7a9a82d1299b153a98 SHA256 45d6fda26441b24215aabd83ab3797cde3fd4a4d511e37457464587805431b28 +DIST grub-2.00~beta3.tar.xz 5069092 RMD160 ba29fd56637ed5d872442abab5267d131d566f93 SHA1 96bfdf4d53767faaf2c744ee82d4d703e4b672a2 SHA256 b0953e0b65767751fd9308374eecd26ba71d9b73425824a865708176ec0b8e94 DIST splash.xpm.gz 33856 RMD160 2fead61f91c368429e80936248bb02af2bdf15ff SHA1 98e679f9698be43426f971f89a088c053e8c804a SHA256 b95600f777331b0dd31d51c68f60f0e846e4c8b628857a41165f4e6b30e6acaf EBUILD grub-0.92-r1.ebuild 2605 RMD160 5229d164def7c4bd6dc43923e91e064bcbdcc43b SHA1 14503ef04599d61b3cdd1a02ea0d78eb36109215 SHA256 cd42e232b3d1e3ce99fa391907df1019f38a853f574cfb812346d9b1db0c7596 EBUILD grub-0.94-r1.ebuild 3340 RMD160 38b586e0a6f7a97cb6ea5fbff6f0c64a6e505052 SHA1 272d005f296a5089c29857a050a4c013735793b9 SHA256 d9d07a2c87d1d6656e42559244e1c4f06e47aa7dfdbc644f2a3eeefabf3b784e @@ -49,14 +50,15 @@ EBUILD grub-2.00_beta0.ebuild 5993 RMD160 88832dcfd48236a47039c12c89c0099f2033b1 EBUILD grub-2.00_beta1.ebuild 5837 RMD160 7269e69d2c57d79f3299dded2b9ac26c9c625e10 SHA1 d3b629db5ae54b3f8e9e168bcca51949e54a6136 SHA256 9b159e68d77c414e5b8e131ab3b18fe009e116ec78a7721a267f1ddd0bf91db9 EBUILD grub-2.00_beta2-r1.ebuild 6572 RMD160 358eced67e79b91738abfb362b3920cd3b17d38e SHA1 7d51a484673ea6028c8a36b3048c82b379f4f9ba SHA256 9711a3d05e4f0e0a6bf5a83aef3995b356ac5ffc5d4a0d47f1c0eddbe6f919a9 EBUILD grub-2.00_beta2.ebuild 6476 RMD160 43557ca6eb3e61f66fe4d8c2977d9ac1e4db2d96 SHA1 0d7d68e9869b646275d28e1acd3badbe80b33559 SHA256 d60330fd91721d586fe4254bbaa02add8accc2ea729fff1c376aa544ed4f96ca +EBUILD grub-2.00_beta3.ebuild 6488 RMD160 d0cbccc50d81e7b6e70c27c5309c2faec2ff3b44 SHA1 a2c074dcd6c535fb66a0ffb189dcf00394528772 SHA256 d39abf04dc1d6b4e03511647c3585ab8950b5778ec3a1fe0fe87de615b334477 EBUILD grub-9999.ebuild 6483 RMD160 748fe0ae667575da0ac5343e4d8843395ea0221f SHA1 9d542764857f04fe57a9a1090404347851b38ef3 SHA256 86dbfcf375e6660306bb78e1bbb3ab800865379ea19e496f8de71d9b8e480ef8 -MISC ChangeLog 38852 RMD160 0fbb0d771bfd13824116beae50a2c82c65f65480 SHA1 e2c5ff158d9e5b692a9fd9ed60470df36158c6cb SHA256 cb5c0ac5d7375c8377f7ddfd20e74dd370214b976631520384fab7129410cb44 +MISC ChangeLog 38975 RMD160 c9af7a8d1668bd20e3424f9f9fb89ddce1ee33c5 SHA1 c7c92d7fed56e6f725f9fd627c513d6f6b8393e6 SHA256 af9e1d77be244dd19b995d50268ae81bcd24a1d5d1076fce372038a86f7f71ca MISC grub-9999.ebuild.orig 6471 RMD160 44a6134970c488856e0df8f637e99768bdb00181 SHA1 c3c8c14032951bcc8a2350f97674e2156476c972 SHA256 d7ea52eca2b187d6d256bade46e0ba30def79e7d416c3ced1c63a72f4b308a4b MISC metadata.xml 673 RMD160 2181a768c776eed3e76c3604a2a0c03be360aa06 SHA1 0434ff5fb3b8702ca4a4661240ed08cfb06c529c SHA256 e14e5e46b726a3645b85217a2afbd5b04adb54990c7db837e01a50a8322d81b9 -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.17 (GNU/Linux) -iF4EAREIAAYFAk9tTBwACgkQC77qH+pIQ6T8lgEAyO1wN7vMI/4olyiYrONzMXOm -eADki0LkvxABtWyeGrkA/jhxGQGPqbHNlQfYA9s8Ox2p5eVpU0HSSVtzHNbCybSy -=3cw0 +iF4EAREIAAYFAk94yG8ACgkQC77qH+pIQ6R6rQD6A3tNUS87jC8jii+hrbUWwvZf +Drk1KD5EX+KPxC2oFioBAL27BQHgHLUXYFKnoU/PkxqiJnLZsGxjkGZ5xjspY3D4 +=PkBE -----END PGP SIGNATURE----- diff --git a/sys-boot/grub/grub-2.00_beta3.ebuild b/sys-boot/grub/grub-2.00_beta3.ebuild new file mode 100644 index 000000000000..4f66682c78f0 --- /dev/null +++ b/sys-boot/grub/grub-2.00_beta3.ebuild @@ -0,0 +1,269 @@ +# Copyright 1999-2012 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/sys-boot/grub/grub-2.00_beta3.ebuild,v 1.1 2012/04/01 21:28:06 floppym Exp $ + +EAPI=4 + +if [[ ${PV} == "9999" ]] ; then + EBZR_REPO_URI="http://bzr.savannah.gnu.org/r/grub/trunk/grub/" + LIVE_ECLASS="bzr" + SRC_URI="" + DO_AUTORECONF="true" +else + MY_P=${P/_/\~} + if [[ ${PV} == *_alpha* || ${PV} == *_beta* ]]; then + SRC_URI="mirror://gnu-alpha/${PN}/${MY_P}.tar.xz" + else + SRC_URI="mirror://gnu/${PN}/${MY_P}.tar.xz + mirror://gentoo/${MY_P}.tar.xz" + fi + # Masked until documentation guys consolidate the guide and approve + # it for usage. + #KEYWORDS="~amd64 ~mips ~x86" + S=${WORKDIR}/${MY_P} +fi + +inherit eutils flag-o-matic pax-utils toolchain-funcs ${DO_AUTORECONF:+autotools} ${LIVE_ECLASS} +unset LIVE_ECLASS + +DESCRIPTION="GNU GRUB boot loader" +HOMEPAGE="http://www.gnu.org/software/grub/" + +LICENSE="GPL-3" +SLOT="2" +IUSE="custom-cflags debug device-mapper efiemu mount nls static sdl truetype libzfs" + +GRUB_PLATFORMS=( + # everywhere: + emu + # mips only: + qemu-mips yeeloong + # amd64, x86, ppc, ppc64: + ieee1275 + # amd64, x86: + coreboot multiboot efi-32 pc qemu + # amd64, ia64: + efi-64 +) +IUSE+=" ${GRUB_PLATFORMS[@]/#/grub_platforms_}" + +# os-prober: Used on runtime to detect other OSes +# xorriso (dev-libs/libisoburn): Used on runtime for mkrescue +RDEPEND=" + dev-libs/libisoburn + dev-libs/lzo + sys-boot/os-prober + >=sys-libs/ncurses-5.2-r5 + debug? ( + sdl? ( media-libs/libsdl ) + ) + device-mapper? ( >=sys-fs/lvm2-2.02.45 ) + libzfs? ( sys-fs/zfs ) + mount? ( sys-fs/fuse ) + truetype? ( media-libs/freetype >=media-fonts/unifont-5 )" +DEPEND="${RDEPEND} + >=dev-lang/python-2.5.2 + sys-devel/flex + virtual/yacc + sys-apps/texinfo +" +RDEPEND+=" + grub_platforms_efi-32? ( sys-boot/efibootmgr ) + grub_platforms_efi-64? ( sys-boot/efibootmgr ) +" +if [[ -n ${DO_AUTORECONF} ]] ; then + DEPEND+=" >=sys-devel/autogen-5.10 sys-apps/help2man" +else + DEPEND+=" app-arch/xz-utils" +fi + +export STRIP_MASK="*/grub/*/*.{mod,img}" + +QA_EXECSTACK=" + usr/bin/grub* + usr/sbin/grub* + usr/lib*/grub/*/*.mod + usr/lib*/grub/*/kernel.exec + usr/lib*/grub/*/kernel.img + usr/lib*/grub/*/setjmp.module +" + +QA_WX_LOAD=" + usr/lib*/grub/*/kernel.exec + usr/lib*/grub/*/kernel.img + usr/lib*/grub/*/*.image +" + +QA_PRESTRIPPED=" + usr/lib.*/grub/.*/kernel.img +" + +grub_run_phase() { + local phase=$1 + local platform=$2 + [[ -z ${phase} || -z ${platform} ]] && die "${FUNCNAME} [phase] [platform]" + + [[ -d "${WORKDIR}/build-${platform}" ]] || \ + { mkdir "${WORKDIR}/build-${platform}" || die ; } + pushd "${WORKDIR}/build-${platform}" > /dev/null || die + + echo ">>> Running ${phase} for platform \"${platform}\"" + echo ">>> Working in: \"${WORKDIR}/build-${platform}\"" + + grub_${phase} ${platform} + + popd > /dev/null || die +} + +grub_src_configure() { + local platform=$1 + local with_platform= + + [[ -z ${platform} ]] && die "${FUNCNAME} [platform]" + + # Used below for efi cross-building + tc-export CC NM OBJCOPY STRIP + + estack_push CTARGET "${CTARGET}" + estack_push TARGET_CC "${TARGET_CC}" + estack_push TARGET_CFLAGS "${TARGET_CFLAGS}" + estack_push TARGET_CPPFLAGS "${TARGET_CPPFLAGS}" + + case ${platform} in + efi-32) + if [[ ${CHOST} == x86_64* ]]; then + CTARGET="${CTARGET:-i386}" + TARGET_CC="${TARGET_CC:-${CC}}" + export TARGET_CC + fi + with_platform="--with-platform=efi" + ;; + efi-64) + if [[ ${CHOST} == i?86* ]]; then + CTARGET="${CTARGET:-x86_64}" + TARGET_CC="${TARGET_CC:-${CC}}" + TARGET_CFLAGS="-Os -march=x86-64 ${TARGET_CFLAGS}" + TARGET_CPPFLAGS="-march=x86-64 ${TARGET_CPPFLAGS}" + export TARGET_CC TARGET_CFLAGS TARGET_CPPFLAGS + fi + with_platform="--with-platform=efi" + ;; + guessed) ;; + *) with_platform="--with-platform=${platform}" ;; + esac + + ECONF_SOURCE="${S}" \ + econf \ + --disable-werror \ + --program-prefix= \ + --program-transform-name="s,grub,grub2," \ + --with-grubdir=grub2 \ + ${with_platform} \ + $(use_enable debug mm-debug) \ + $(use_enable debug grub-emu-usb) \ + $(use_enable device-mapper) \ + $(use_enable efiemu) \ + $(use_enable mount grub-mount) \ + $(use_enable nls) \ + $(use_enable truetype grub-mkfont) \ + $(use_enable libzfs) \ + $(use sdl && use_enable debug grub-emu-sdl) + + estack_pop CTARGET CTARGET || die + estack_pop TARGET_CC TARGET_CC || die + estack_pop TARGET_CFLAGS TARGET_CFLAGS || die + estack_pop TARGET_CPPFLAGS TARGET_CPPFLAGS || die +} + +grub_src_compile() { + default_src_compile + pax-mark -mpes "${grub_binaries[@]}" +} + +grub_src_install() { + default_src_install +} + +src_prepare() { + local i j + + epatch_user + + # autogen.sh does more than just run autotools + if [[ -n ${DO_AUTORECONF} ]] ; then + sed -i -e '/^autoreconf/s:^:set +e; e:' autogen.sh || die + (. ./autogen.sh) || die + fi + + # install into the right dir for eselect #372735 + sed -i \ + -e '/^bashcompletiondir =/s:=.*:= $(datarootdir)/bash-completion:' \ + util/bash-completion.d/Makefile.in || die + + # get enabled platforms + GRUB_ENABLED_PLATFORMS="" + for i in ${GRUB_PLATFORMS[@]}; do + use grub_platforms_${i} && GRUB_ENABLED_PLATFORMS+=" ${i}" + done + [[ -z ${GRUB_ENABLED_PLATFORMS} ]] && GRUB_ENABLED_PLATFORMS="guessed" + elog "Going to build following platforms: ${GRUB_ENABLED_PLATFORMS}" +} + +src_configure() { + local i + + use custom-cflags || unset CFLAGS CPPFLAGS LDFLAGS + use libzfs && addpredict /etc/dfs + use static && append-ldflags -static + + for i in ${GRUB_ENABLED_PLATFORMS}; do + grub_run_phase ${FUNCNAME} ${i} + done +} + +src_compile() { + # Used for pax marking in grub_src_compile + local grub_binaries=( + grub-editenv + grub-fstest + grub-menulst2cfg + grub-mkimage + grub-mklayout + grub-mkpasswd-pbkdf2 + grub-mkrelpath + grub-script-check + grub-bios-setup + grub-ofpathname + grub-probe + grub-sparc64-setup + ) + use mount && grub_binaries+=( grub-mount ) + use truetype && grub_binaries+=( grub-mkfont ) + + local i + + for i in ${GRUB_ENABLED_PLATFORMS}; do + grub_run_phase ${FUNCNAME} ${i} + done +} + +src_install() { + local i + + for i in ${GRUB_ENABLED_PLATFORMS}; do + grub_run_phase ${FUNCNAME} ${i} + done + + mv "${ED}"usr/share/info/grub{,2}.info || die + + # can't be in docs array as we use default_src_install in different builddir + dodoc AUTHORS ChangeLog NEWS README THANKS TODO + insinto /etc/default + newins "${FILESDIR}"/grub.default grub +} + +pkg_postinst() { + # display the link to guide + elog "For information on how to configure grub-2 please refer to the guide:" + elog " http://wiki.gentoo.org/wiki/GRUB2_Quick_Start" +} |