diff options
author | Ian Delaney <idella4@gentoo.org> | 2013-02-19 20:20:56 +0000 |
---|---|---|
committer | Ian Delaney <idella4@gentoo.org> | 2013-02-19 20:20:56 +0000 |
commit | 8ea7711a76e555ff1917a51bfc715c987bab714c (patch) | |
tree | a9da6a3dc6d63e11099f3729cba7018b45971099 /app-emulation/xen-pvgrub | |
parent | Version bump. Modified patch accordingly, and URL for docs. (diff) | |
download | gentoo-2-8ea7711a76e555ff1917a51bfc715c987bab714c.tar.gz gentoo-2-8ea7711a76e555ff1917a51bfc715c987bab714c.tar.bz2 gentoo-2-8ea7711a76e555ff1917a51bfc715c987bab714c.zip |
upgrades to 4.2.0-r1 mirrored in 4.2.1-r1
(Portage version: 2.1.11.40/cvs/Linux x86_64, signed Manifest commit with key 0xB8072B0D)
Diffstat (limited to 'app-emulation/xen-pvgrub')
-rw-r--r-- | app-emulation/xen-pvgrub/ChangeLog | 6 | ||||
-rw-r--r-- | app-emulation/xen-pvgrub/files/xen-4.2.1-CC.patch | 12 | ||||
-rw-r--r-- | app-emulation/xen-pvgrub/files/xen-4.2.1-externals.patch | 9 | ||||
-rw-r--r-- | app-emulation/xen-pvgrub/xen-pvgrub-4.2.1-r1.ebuild | 43 |
4 files changed, 42 insertions, 28 deletions
diff --git a/app-emulation/xen-pvgrub/ChangeLog b/app-emulation/xen-pvgrub/ChangeLog index a580edaa5671..05e07b16d8bd 100644 --- a/app-emulation/xen-pvgrub/ChangeLog +++ b/app-emulation/xen-pvgrub/ChangeLog @@ -1,6 +1,10 @@ # ChangeLog for app-emulation/xen-pvgrub # Copyright 1999-2013 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/app-emulation/xen-pvgrub/ChangeLog,v 1.22 2013/02/19 19:18:02 idella4 Exp $ +# $Header: /var/cvsroot/gentoo-x86/app-emulation/xen-pvgrub/ChangeLog,v 1.23 2013/02/19 20:20:56 idella4 Exp $ + + 19 Feb 2013; Ian Delaney <idella4@gentoo.org> -files/xen-4.2.1-CC.patch, + files/xen-4.2.1-externals.patch, xen-pvgrub-4.2.1-r1.ebuild: + upgrades to 4.2.0-r1 mirrored in 4.2.1-r1 19 Feb 2013; Ian Delaney <idella4@gentoo.org> files/xen-4.2.0-externals.patch, xen-pvgrub-4.2.0-r1.ebuild, xen-pvgrub-4.2.1-r1.ebuild: diff --git a/app-emulation/xen-pvgrub/files/xen-4.2.1-CC.patch b/app-emulation/xen-pvgrub/files/xen-4.2.1-CC.patch deleted file mode 100644 index 9280e38d9851..000000000000 --- a/app-emulation/xen-pvgrub/files/xen-4.2.1-CC.patch +++ /dev/null @@ -1,12 +0,0 @@ -diff -ur xen-4.2.1.orig/stubdom/Makefile xen-4.2.1/stubdom/Makefile ---- stubdom/Makefile 2012-12-17 23:00:06.000000000 +0800 -+++ stubdom/Makefile 2013-02-10 16:01:01.883644638 +0800 -@@ -130,7 +130,7 @@ - cross-zlib: $(ZLIB_STAMPFILE) - $(ZLIB_STAMPFILE): zlib-$(XEN_TARGET_ARCH) $(NEWLIB_STAMPFILE) - ( cd $< && \ -- CFLAGS="$(TARGET_CPPFLAGS) $(TARGET_CFLAGS)" CC=$(CC) ./configure --prefix=$(CROSS_PREFIX)/$(GNU_TARGET_ARCH)-xen-elf && \ -+ CFLAGS="$(TARGET_CPPFLAGS) $(TARGET_CFLAGS)" CC="$(CC)" ./configure --prefix=$(CROSS_PREFIX)/$(GNU_TARGET_ARCH)-xen-elf && \ - $(MAKE) DESTDIR= libz.a && \ - $(MAKE) DESTDIR= install ) - diff --git a/app-emulation/xen-pvgrub/files/xen-4.2.1-externals.patch b/app-emulation/xen-pvgrub/files/xen-4.2.1-externals.patch index 2c3b1b7b19a2..f2525ae1b505 100644 --- a/app-emulation/xen-pvgrub/files/xen-4.2.1-externals.patch +++ b/app-emulation/xen-pvgrub/files/xen-4.2.1-externals.patch @@ -36,6 +36,15 @@ diff -ur xen-4.2.0.orig/stubdom/Makefile xen-4.2.0/stubdom/Makefile zlib-$(XEN_TARGET_ARCH): zlib-$(ZLIB_VERSION).tar.gz tar xzf $< +@@ -130,7 +130,7 @@ + cross-zlib: $(ZLIB_STAMPFILE) + $(ZLIB_STAMPFILE): zlib-$(XEN_TARGET_ARCH) $(NEWLIB_STAMPFILE) + ( cd $< && \ +- CFLAGS="$(TARGET_CPPFLAGS) $(TARGET_CFLAGS)" CC=$(CC) ./configure --prefix=$(CROSS_PREFIX)/$(GNU_TARGET_ARCH)-xen-elf && \ ++ CFLAGS="$(TARGET_CPPFLAGS) $(TARGET_CFLAGS)" CC="$(CC)" ./configure --prefix=$(CROSS_PREFIX)/$(GNU_TARGET_ARCH)-xen-elf && \ + $(MAKE) DESTDIR= libz.a && \ + $(MAKE) DESTDIR= install ) + @@ -141,7 +142,7 @@ ############## diff --git a/app-emulation/xen-pvgrub/xen-pvgrub-4.2.1-r1.ebuild b/app-emulation/xen-pvgrub/xen-pvgrub-4.2.1-r1.ebuild index 558bbb328edb..1843398e3510 100644 --- a/app-emulation/xen-pvgrub/xen-pvgrub-4.2.1-r1.ebuild +++ b/app-emulation/xen-pvgrub/xen-pvgrub-4.2.1-r1.ebuild @@ -1,6 +1,6 @@ # Copyright 1999-2013 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/app-emulation/xen-pvgrub/xen-pvgrub-4.2.1-r1.ebuild,v 1.3 2013/02/10 08:20:23 idella4 Exp $ +# $Header: /var/cvsroot/gentoo-x86/app-emulation/xen-pvgrub/xen-pvgrub-4.2.1-r1.ebuild,v 1.4 2013/02/19 20:20:56 idella4 Exp $ EAPI=4 PYTHON_DEPEND="2:2.6" @@ -36,8 +36,28 @@ pkg_setup() { python_pkg_setup } -src_prepare() { +retar-externals() { + # Purely to unclutter src_prepare + local set="grub-0.97.tar.gz lwip-1.3.0.tar.gz newlib-1.16.0.tar.gz zlib-1.2.3.tar.gz" + + # epatch can't patch in $WORKDIR, requires a sed; Bug #455194. Patchable, but sed informative + sed -e s':AR=${AR-"ar rc"}:AR=${AR-"ar"}:' \ + -i "${WORKDIR}"/zlib-1.2.3/configure + sed -e 's:^AR=ar rc:AR=ar:' \ + -e s':$(AR) $@:$(AR) rc $@:' \ + -i "${WORKDIR}"/zlib-1.2.3/{Makefile,Makefile.in} + einfo "zlib Makefile edited" + + cd "${WORKDIR}" + tar czp zlib-1.2.3 -f zlib-1.2.3.tar.gz + tar czp grub-0.97 -f grub-0.97.tar.gz + tar czp lwip -f lwip-1.3.0.tar.gz + tar czp newlib-1.16.0 -f newlib-1.16.0.tar.gz + mv $set "${S}"/stubdom/ + einfo "tarballs moved to source" +} +src_prepare() { # if the user *really* wants to use their own custom-cflags, let them if use custom-cflags; then einfo "User wants their own CFLAGS - removing defaults" @@ -51,15 +71,6 @@ src_prepare() { -i {} \; fi - #Substitute for internal downloading - cp $DISTDIR/zlib-1.2.3.tar.gz \ - $DISTDIR/pciutils-2.2.9.tar.bz2 \ - $DISTDIR/lwip-1.3.0.tar.gz \ - $DISTDIR/newlib-1.16.0.tar.gz \ - $DISTDIR/grub-0.97.tar.gz \ - ./stubdom/ || die "files not coped to stubdom" - einfo "files copied to stubdom" - # Patch the unmergeable newlib, fix most of the leftover gcc QA issues cp "${FILESDIR}"/newlib-implicits.patch stubdom || die @@ -75,8 +86,9 @@ src_prepare() { #Sec patch epatch "${FILESDIR}"/${PN/-pvgrub/}-4-CVE-2012-6075-XSA-41.patch - # wrt Bug #455196 - epatch "${FILESDIR}"/${P/-pvgrub/}-CC.patch + #Substitute for internal downloading. pciutils copied only due to the only .bz2 + cp $DISTDIR/pciutils-2.2.9.tar.bz2 ./stubdom/ || die "pciutils not copied to stubdom" + retar-externals || die "re-tar procedure failed" } src_compile() { @@ -91,11 +103,12 @@ src_compile() { emake CC="$(tc-getCC)" LD="$(tc-getLD)" AR="$(tc-getAR)" \ XEN_TARGET_ARCH="x86_32" -C stubdom pv-grub elif use amd64; then - emake CC="$(tc-getCC)" LD="$(tc-getLD)" \ + emake CC="$(tc-getCC)" LD="$(tc-getLD)" AR="$(tc-getAR)" \ XEN_TARGET_ARCH="x86_64" -C stubdom pv-grub if use multilib; then multilib_toolchain_setup x86 - emake CC="$(tc-getCC)" XEN_TARGET_ARCH="x86_32" -C stubdom pv-grub + emake CC="$(tc-getCC)" AR="$(tc-getAR)" \ + XEN_TARGET_ARCH="x86_32" -C stubdom pv-grub fi fi } |