diff options
author | Donnie Berkholz <dberkholz@gentoo.org> | 2008-05-15 02:54:42 -0700 |
---|---|---|
committer | Donnie Berkholz <dberkholz@gentoo.org> | 2008-05-15 02:54:42 -0700 |
commit | 393a185ae93b5c6989984407b84828890b321a4b (patch) | |
tree | 3be4d05456719a0f2cbc8d4faf9dc051b1ee58e7 /app-emulation | |
parent | bash: Add a revbump that installs examples with USE=examples. (diff) | |
download | dberkholz-393a185ae93b5c6989984407b84828890b321a4b.tar.gz dberkholz-393a185ae93b5c6989984407b84828890b321a4b.tar.bz2 dberkholz-393a185ae93b5c6989984407b84828890b321a4b.zip |
xen: add version that compiles with gcc 4.3 --configured-with flag.
Diffstat (limited to 'app-emulation')
-rw-r--r-- | app-emulation/xen/ChangeLog | 265 | ||||
-rw-r--r-- | app-emulation/xen/Manifest | 5 | ||||
-rw-r--r-- | app-emulation/xen/files/3.2.1-work-with-gcc-configured-with-flag.patch | 11 | ||||
-rw-r--r-- | app-emulation/xen/metadata.xml | 5 | ||||
-rw-r--r-- | app-emulation/xen/xen-3.2.1.ebuild | 94 |
5 files changed, 380 insertions, 0 deletions
diff --git a/app-emulation/xen/ChangeLog b/app-emulation/xen/ChangeLog new file mode 100644 index 0000000..c2c9926 --- /dev/null +++ b/app-emulation/xen/ChangeLog @@ -0,0 +1,265 @@ +# ChangeLog for app-emulation/xen +# Copyright 1999-2008 Gentoo Foundation; Distributed under the GPL v2 +# $Header: /var/cvsroot/gentoo-x86/app-emulation/xen/ChangeLog,v 1.54 2008/05/04 18:59:13 rbu Exp $ + +*xen-3.2.1 (04 May 2008) + + 04 May 2008; Robert Buchholz <rbu@gentoo.org> -xen-3.1.2.ebuild, + +xen-3.2.1.ebuild: + Version bump to the Xen 3.2.1 release (bug #219339), thanks to Troy Bowman + for testig. + +*xen-3.2.0 (08 Feb 2008) + + 08 Feb 2008; Michael Marineau <marineam@gentoo.org> +xen-3.2.0.ebuild: + Add version 3.2.0 + +*xen-3.1.3 (03 Feb 2008) + + 03 Feb 2008; Michael Marineau <marineam@gentoo.org> +xen-3.1.3.ebuild: + Version bump to 3.1.3 + + 03 Feb 2008; Michael Marineau <marineam@gentoo.org> xen-3.1.2.ebuild: + Filter -O3 from CFLAGS when using custom cflags. + +*xen-3.1.2 (17 Nov 2007) + + 17 Nov 2007; Michael Marineau <marineam@gentoo.org> -xen-3.0.4_p1.ebuild, + -xen-3.1.0.ebuild, -xen-3.1.1.ebuild, +xen-3.1.2.ebuild: + Bump to 3.1.2, fixes CVE-2007-5906, Bug #198995. Clean out old versions. + +*xen-3.1.1 (15 Oct 2007) + + 15 Oct 2007; Michael Marineau <marineam@gentoo.org> +xen-3.1.1.ebuild: + Version bump. + + 27 Aug 2007; Michael Marineau <marineam@gentoo.org> xen-3.0.4_p1.ebuild, + xen-3.1.0.ebuild: + Die if both x86 and amd64 are set in USE. + +*xen-3.1.0 (24 Aug 2007) + + 24 Aug 2007; Michael Marineau <marineam@gentoo.org> + -xen-3.0.2.ebuild, +xen-3.1.0.ebuild: + Copy Xen 3.1.0 related ebuilds over from the Xen project overlay. + Remove Xen 3.0.2. + + 10 Jul 2007; Michael Marineau <marineam@gentoo.org> xen-3.0.4_p1.ebuild: + Fix building with --as-needed + + 09 Jul 2007; Michael Marineau <marineam@gentoo.org> xen-3.0.4_p1.ebuild: + It turns out that xen 3.0.4 correctly handles hardened flags, remove useless + code from the ebuild. + + 25 Jun 2007; Michael Marineau <marineam@gentoo.org> xen-3.0.4_p1.ebuild: + Fix typo in -fno-pie flag. + +*xen-3.0.4_p1 (02 May 2007) + + 02 May 2007; Michael Marineau <marineam@gentoo.org> + -files/gentoo-makefile-targets, -files/xend-conf, xen-3.0.2.ebuild, + +xen-3.0.4_p1.ebuild: + Add xen 3.0.4 from the marineam-xen overlay, cleanup the 3.0.2 ebuild a bit. + + 25 Jan 2007; Marius Mauch <genone@gentoo.org> xen-3.0.2.ebuild: + Replacing einfo with elog + + 06 Oct 2006; <aross@gentoo.org> xen-3.0.2.ebuild: + Allow compilation under AMD64 with a 64 bit kernel but 32 bit userland. + Thanks to tonich <tonich@artparade.ru> and Sven Wegener + <swegener@gentoo.org> in bug #143999 + + 16 Aug 2006; Andrew Ross <aross@gentoo.org> metadata.xml: + Convert from individual maintainers to xen herd. + + 11 Aug 2006; Andrew Ross <aross@gentoo.org> metadata.xml: + Add myself as a maintainer + + 04 Aug 2006; Chris Bainbridge <chrb@gentoo.org> xen-3.0.2.ebuild: + Remove in package testing - tests are for xen-tools, not xen hypervisor. Bug + #141227, thanks to Andrew Ross + + 02 Jun 2006; Roy Marples <uberlord@gentoo.org> xen-3.0.2.ebuild: + Send raw LDFLAGS via make to support --as-needed, #135140 + + 22 May 2006; <chrb@gentoo.org> +files/xen-3.0.2-nopiessp.patch, + -xen-3.0.1-r4.ebuild, -xen-3.0.1-r5.ebuild, -xen-3.0.1_p9029.ebuild, + xen-3.0.2.ebuild: + Add hardened patch, thanks to Solar in bug #130167 + + 10 Apr 2006; <chrb@gentoo.org> xen-3.0.2.ebuild: + fix pae, again, #124355 + + 10 Apr 2006; <chrb@gentoo.org> xen-3.0.2.ebuild: + remove sed fix, #129429 + + 10 Apr 2006; <chrb@gentoo.org> files/digest-xen-3.0.2, Manifest: + new digest + +*xen-3.0.2 (09 Apr 2006) + + 09 Apr 2006; <chrb@gentoo.org> +xen-3.0.2.ebuild: + bump, #129191 + +*xen-3.0.1_p9029 (24 Mar 2006) +*xen-3.0.1-r5 (24 Mar 2006) + + 24 Mar 2006; Aron Griffis <agriffis@gentoo.org> +xen-3.0.1-r5.ebuild, + +xen-3.0.1_p9029.ebuild, -xen-9029-r2.ebuild: + Split xen from xen-tools; now this package only installs the hypervisor and + include files. Unify the release and snapshot ebuilds for easier + maintenance. Switch to a snapshot versioning scheme that keeps + release/snapshot versions in order. Add myself as an additional maintainer in + metadata.xml + +*xen-9029-r2 (05 Mar 2006) +*xen-3.0.1-r4 (05 Mar 2006) + + 05 Mar 2006; Chris Bainbridge <chrb@gentoo.org> -xen-3.0.1-r3.ebuild, +xen-3.0.1-r4.ebuild, + -xen-9029-r1.ebuild, +xen-9029-r2.ebuild: + add ekeep for pre-created xen dirs, bug #123862 + +*xen-9029-r1 (03 Mar 2006) +*xen-3.0.1-r3 (03 Mar 2006) + + 03 Mar 2006; Chris Bainbridge <chrb@gentoo.org> +files/gentoo-makefile-targets, + -xen-3.0.1-r2.ebuild, +xen-3.0.1-r3.ebuild, -xen-9029.ebuild, + +xen-9029-r1.ebuild: + more pae fixes + +*xen-9029 (02 Mar 2006) +*xen-3.0.1-r2 (02 Mar 2006) + + 02 Mar 2006; Chris Bainbridge <chrb@gentoo.org> -xen-3.0.1-r1.ebuild, +xen-3.0.1-r2.ebuild, + -xen-8885.ebuild, +xen-9029.ebuild: + Bump unstable. Add PAE support thanks to Christopher G. Stach II (bug #124355). + +*xen-8885 (19 Feb 2006) + + 19 Feb 2006; Chris Bainbridge <chrb@gentoo.org> +xen-8885.ebuild: + new xen-unstable snapshot + +*xen-3.0.1-r1 (05 Feb 2006) + + 05 Feb 2006; Chris Bainbridge <chrb@gentoo.org> -xen-3.0.1.ebuild, +xen-3.0.1-r1.ebuild: + use the official 3.0.1 tarballs + + 04 Feb 2006; Chris Bainbridge <chrb@gentoo.org> xen-3.0.1.ebuild: + fix snapshot + +*xen-3.0.1 (03 Feb 2006) + + 03 Feb 2006; Chris Bainbridge <chrb@gentoo.org> +xen-3.0.1.ebuild: + bump + +*xen-3.0.0-r2 (23 Dec 2005) + + 23 Dec 2005; Chris Bainbridge <chrb@gentoo.org> files/xend-init, files/xendomains-init, + -xen-2.0.7.ebuild, -xen-3.0.0-r1.ebuild, +xen-3.0.0-r2.ebuild: + Bugs #115970 (/var/xen/dump), #115969 (dhcp), #116332 (hotplug). Removed + xen-2 as bugs are not being fixed upstream since the xen-3.0.0 release. + + 21 Dec 2005; Alex Howells <astinus@gentoo.org> xen-3.0.0-r1.ebuild: + Keyword ~amd64 added, works fine for me! + + 08 Dec 2005; Chris Bainbridge <chrb@gentoo.org> xen-3.0.0-r1.ebuild: + rename cflags -> custom-cflags (like mplayer, grub..) + +*xen-3.0.0-r1 (08 Dec 2005) + + 08 Dec 2005; Chris Bainbridge <chrb@gentoo.org> -xen-3.0.0.ebuild, +xen-3.0.0-r1.ebuild: + add dirs expected by xend, bug #114856 + + 07 Dec 2005; Chris Bainbridge <chrb@gentoo.org> xen-3.0.0.ebuild: + Fix CFLAGS for hardened bug #114716 + +*xen-3.0.0 (06 Dec 2005) + + 06 Dec 2005; Chris Bainbridge <chrb@gentoo.org> -xen-3.0.0_pre20051027.ebuild, + -xen-3.0.0_pre20051122.ebuild, -xen-3.0.0_pre20051128.ebuild, + -xen-3.0.0_pre20051128-r1.ebuild, +xen-3.0.0.ebuild: + New 3.0.0 release. + +*xen-3.0.0_pre20051128-r1 (30 Nov 2005) + + 30 Nov 2005; Chris Bainbridge <chrb@gentoo.org> xen-3.0.0_pre20051128.ebuild, + +xen-3.0.0_pre20051128-r1.ebuild: + support user specified cflags (must be forced to override defaults with + 'cflags' USE flag + +*xen-3.0.0_pre20051128 (28 Nov 2005) + + 28 Nov 2005; Chris Bainbridge <chrb@gentoo.org> +xen-3.0.0_pre20051128.ebuild: + bump + +*xen-3.0.0_pre20051122 (22 Nov 2005) + + 22 Nov 2005; Chris Bainbridge <chrb@gentoo.org> +xen-3.0.0_pre20051122.ebuild: + version bump + + 03 Nov 2005; Chris Bainbridge <chrb@gentoo.org> -xen-3.0.0_pre20051010.ebuild, + -xen-3.0.0_pre20051010-r1.ebuild: + remove old cvs snapshots + +*xen-3.0.0_pre20051027 (27 Oct 2005) + + 27 Oct 2005; Chris Bainbridge <chrb@gentoo.org> files/xendomains-init, + +xen-3.0.0_pre20051027.ebuild: + version bump + +*xen-3.0.0_pre20051010-r1 (26 Oct 2005) + + 26 Oct 2005; Chris Bainbridge <chrb@gentoo.org> + +xen-3.0.0_pre20051010-r1.ebuild: + added depend on sys-devel/dev86 + +*xen-3.0.0_pre20051010 (10 Oct 2005) + + 10 Oct 2005; Chris Bainbridge <chrb@gentoo.org> + -xen-3.0.0_pre20051007.ebuild, +xen-3.0.0_pre20051010.ebuild: + bump + + 10 Oct 2005; Chris Bainbridge <chrb@gentoo.org> + xen-3.0.0_pre20051007.ebuild: + add disabling cflags einfo + + 10 Oct 2005; Chris Bainbridge <chrb@gentoo.org> + xen-3.0.0_pre20051007.ebuild: + re-add hardened flags. + +*xen-3.0.0_pre20051007 (08 Oct 2005) + + 08 Oct 2005; Chris Bainbridge <chrb@gentoo.org> files/xend-init, + files/xendomains-conf, files/xendomains-init, + -xen-3.0.0_pre20050929.ebuild, +xen-3.0.0_pre20051007.ebuild: + -m Version bump xen-3, now uses udev rules. Add support for screen consoles + in xendomains. No longer use broken --halt to bring down domains. + +*xen-3.0.0_pre20050929 (29 Sep 2005) + + 29 Sep 2005; Chris Bainbridge <chrb@gentoo.org> + -xen-3.0.0_pre20050919.ebuild, +xen-3.0.0_pre20050929.ebuild: + cvs bump + + 22 Sep 2005; Chris Bainbridge <chrb@gentoo.org> xen-2.0.7.ebuild, + -xen-3.0.0_pre20050906.ebuild: + Add hardened flags #106731 and remove old snapshot + + 20 Sep 2005; Chris Bainbridge <chrb@gentoo.org> files/xend-init, + files/xendomains-init: + Change init scripts to absolute paths. + +*xen-3.0.0_pre20050919 (19 Sep 2005) + + 19 Sep 2005; Chris Bainbridge <chrb@gentoo.org> + +xen-3.0.0_pre20050919.ebuild: + Version bump + +*xen-3.0.0_pre20050906 (07 Sep 2005) +*xen-2.0.7 (07 Sep 2005) + + 07 Sep 2005; Chris Bainbridge <chrb@gentoo.org> +files/xend-conf, + +files/xend-init, +files/xendomains-conf, +files/xendomains-init, + +metadata.xml, +xen-2.0.7.ebuild, +xen-3.0.0_pre20050906.ebuild: + New package. Thanks to the many who contributed in bug #70161. + diff --git a/app-emulation/xen/Manifest b/app-emulation/xen/Manifest new file mode 100644 index 0000000..b595ac9 --- /dev/null +++ b/app-emulation/xen/Manifest @@ -0,0 +1,5 @@ +AUX 3.2.1-work-with-gcc-configured-with-flag.patch 710 RMD160 4d6b8c5ce6b348d858e10a044330e268958ba978 SHA1 acd3158fe89f2dcff258083ac13007168764cd3f SHA256 c8499aebbd9ee8024b8f2b3bb935becea39b6e2d8736434f1f4514ef47938a00 +DIST xen-3.2.1.tar.gz 6356315 RMD160 9ddda1185e6a19a6ccd73f5dde15640d2e31b125 SHA1 753f3d79d7ae2175e78b261765a9935db6255996 SHA256 dc3c057acab2173330db88d1f1d0587caf5717a4a882b93694a1bc90c71ad12a +EBUILD xen-3.2.1.ebuild 2713 RMD160 a3bc3a591e14df9940c4d0edd17104557dff0365 SHA1 480df364c313c2bd56a931d67269f27a32611980 SHA256 4d2fe95f3548d1b1e041e9e0148aad9424be872b15b454be3251d895eedfcae0 +MISC ChangeLog 8950 RMD160 f37b3c7096d872bc1ddc6d18fff874f5cf9f08fc SHA1 95b2387a13dd0353e2deefe76719fb7b071df4e0 SHA256 6805937d63ac800ae31f191fc72a3cf39d73229acdcfbd8bb6eaba01d58f05b2 +MISC metadata.xml 156 RMD160 bb062b1ba5554779dcfd0e73baf533ce9fbcdf68 SHA1 e6da014f2004758c7a806592ef9450489eebf593 SHA256 4a030777459245372bda9f7925f3a5ed3ef2b29b77e1a2971f3400ac2059b1e2 diff --git a/app-emulation/xen/files/3.2.1-work-with-gcc-configured-with-flag.patch b/app-emulation/xen/files/3.2.1-work-with-gcc-configured-with-flag.patch new file mode 100644 index 0000000..904dda8 --- /dev/null +++ b/app-emulation/xen/files/3.2.1-work-with-gcc-configured-with-flag.patch @@ -0,0 +1,11 @@ +--- xen-3.2.1.orig/xen/Makefile 2008-05-15 02:50:45.000000000 -0700 ++++ xen-3.2.1/xen/Makefile 2008-05-15 02:50:12.000000000 -0700 +@@ -102,7 +102,7 @@ + -e 's/@@whoami@@/$(USER)/g' \ + -e 's/@@domain@@/$(shell ([ -x /bin/dnsdomainname ] && /bin/dnsdomainname) || ([ -x /bin/domainname ] && /bin/domainname || echo [unknown]))/g' \ + -e 's/@@hostname@@/$(shell hostname)/g' \ +- -e 's!@@compiler@@!$(shell $(CC) $(CFLAGS) -v 2>&1 | grep -i "gcc.*version")!g' \ ++ -e 's!@@compiler@@!$(shell $(CC) $(CFLAGS) -v 2>&1 | grep -i "gcc version")!g' \ + -e 's/@@version@@/$(XEN_VERSION)/g' \ + -e 's/@@subversion@@/$(XEN_SUBVERSION)/g' \ + -e 's/@@extraversion@@/$(XEN_EXTRAVERSION)/g' \ diff --git a/app-emulation/xen/metadata.xml b/app-emulation/xen/metadata.xml new file mode 100644 index 0000000..cc9d568 --- /dev/null +++ b/app-emulation/xen/metadata.xml @@ -0,0 +1,5 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> +<herd>xen</herd> +</pkgmetadata> diff --git a/app-emulation/xen/xen-3.2.1.ebuild b/app-emulation/xen/xen-3.2.1.ebuild new file mode 100644 index 0000000..79273de --- /dev/null +++ b/app-emulation/xen/xen-3.2.1.ebuild @@ -0,0 +1,94 @@ +# Copyright 1999-2008 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/app-emulation/xen/xen-3.2.1.ebuild,v 1.1 2008/05/04 18:59:13 rbu Exp $ + +inherit mount-boot flag-o-matic eutils + +DESCRIPTION="The Xen virtual machine monitor" +HOMEPAGE="http://xen.org/" +SRC_URI="http://bits.xensource.com/oss-xen/release/${PV}/xen-${PV}.tar.gz" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~amd64 ~x86" +IUSE="debug custom-cflags pae" + +RDEPEND="|| ( sys-boot/grub + sys-boot/grub-static ) + >=sys-kernel/xen-sources-2.6.18" +PDEPEND="~app-emulation/xen-tools-${PV}" + +RESTRICT="test" + +# Approved by QA team in bug #144032 +QA_WX_LOAD="boot/xen-syms-${PV}" + +pkg_setup() { + if [[ -z ${XEN_TARGET_ARCH} ]]; then + if use x86 && use amd64; then + die "Confusion! Both x86 and amd64 are set in your use flags!" + elif use x86; then + export XEN_TARGET_ARCH="x86_32" + elif use amd64; then + export XEN_TARGET_ARCH="x86_64" + else + die "Unsupported architecture!" + fi + fi +} + +src_unpack() { + unpack ${A} + # 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" + # try and remove all the default custom-cflags +# find "${S}" -name Makefile -o -name Rules.mk -o -name Config.mk -exec sed \ +# -e 's/CFLAGS\(.*\)=\(.*\)-O3\(.*\)/CFLAGS\1=\2\3/' \ +# -e 's/CFLAGS\(.*\)=\(.*\)-march=i686\(.*\)/CFLAGS\1=\2\3/' \ +# -e 's/CFLAGS\(.*\)=\(.*\)-fomit-frame-pointer\(.*\)/CFLAGS\1=\2\3/' \ +# -e 's/CFLAGS\(.*\)=\(.*\)-g3*\s\(.*\)/CFLAGS\1=\2 \3/' \ +# -e 's/CFLAGS\(.*\)=\(.*\)-O2\(.*\)/CFLAGS\1=\2\3/' \ +# -i {} \; + find "${S}" -name Makefile -o -name Rules.mk -o -name Config.mk \ + | xargs sed -i \ + -e '/CFLAGS/s:(-march=i686|-fomit-frame-pointer|-g3|-O2)::g' + fi + + epatch "${FILESDIR}"/3.2.1-work-with-gcc-configured-with-flag.patch +} + +src_compile() { + local myopt + use debug && myopt="${myopt} debug=y" + use pae && myopt="${myopt} pae=y" + + if use custom-cflags; then + filter-flags -fPIE -fstack-protector + replace-flags -O3 -O2 + else + unset CFLAGS + fi + + # Send raw LDFLAGS so that --as-needed works + emake LDFLAGS="$(raw-ldflags)" -C xen ${myopt} || die "compile failed" +} + +src_install() { + local myopt + use debug && myopt="${myopt} debug=y" + use pae && myopt="${myopt} pae=y" + + emake LDFLAGS="$(raw-ldflags)" DESTDIR="${D}" -C xen ${myopt} install || die "install failed" +} + +pkg_postinst() { + elog "Official Xen Guide and the unoffical wiki page:" + elog " http://www.gentoo.org/doc/en/xen-guide.xml" + elog " http://gentoo-wiki.com/HOWTO_Xen_and_Gentoo" + + if use pae; then + echo + ewarn "This is a PAE build of Xen. It will *only* boot PAE kernels!" + fi +} |