From 370bf0f403c2e5be906ddb937f79317c5180ebd4 Mon Sep 17 00:00:00 2001 From: Alexey Shvetsov Date: Tue, 25 Oct 2011 18:43:54 +0000 Subject: [PATCH] [app-emulation/xen] Version bump prepared by Ian Delaney aka idella4 Package-Manager: portage-2.2.0_alpha71/cvs/Linux x86_64 --- app-emulation/xen-pvgrub/Manifest | 30 ++++---- app-emulation/xen/ChangeLog | 7 +- app-emulation/xen/xen-4.1.2.ebuild | 120 +++++++++++++++++++++++++++++ 3 files changed, 142 insertions(+), 15 deletions(-) create mode 100644 app-emulation/xen/xen-4.1.2.ebuild diff --git a/app-emulation/xen-pvgrub/Manifest b/app-emulation/xen-pvgrub/Manifest index 585600705f97..5349a7d90c1f 100644 --- a/app-emulation/xen-pvgrub/Manifest +++ b/app-emulation/xen-pvgrub/Manifest @@ -7,25 +7,27 @@ DIST newlib-1.16.0.tar.gz 12024353 RMD160 fa40ff43e858da3093c9f3b5b203724b9b3276 DIST ocaml-3.11 11661 RMD160 55a9e2ce44a34d441bdce70dbd0b90df29c8b44d SHA1 4557b53f4147a506c8cfa26ed7d3cdb360d66861 SHA256 b919112964cf64bcae841301754402184ceee177ab6681e75bf414ae5d533157 DIST pciutils-2.2.9.tar.bz2 212265 RMD160 781a3d30c5c429a0d92110a46711144f74acde06 SHA1 2871be0890f0406c7f86fa01646e23935fda789e SHA256 f60ae61cfbd5da1d849d0beaa21f593c38dac9359f0b3ddc612f447408265b24 DIST xen-4.1.1.tar.gz 10355625 RMD160 4b3c0641b0f098889f627662aa6b8fea00c5b636 SHA1 f1b5ef4b663c339faf9c77fc895327cfbcc9776c SHA256 246289227507466b5da8b2d0da84a5b0e68a392527b16cde38898d0348890f5b +DIST xen-4.1.2.tar.gz 10365786 RMD160 457797ec4be286afbbcad940a9ce04e44f3f40d6 SHA1 db584cb0a0cc614888d7df3b196d514fdb2edd6e SHA256 7d9c93057cf480d3f1efa792b19285a84fa3c06060ea5c5c453be00887389b0d DIST zlib-1.2.3.tar.gz 496597 RMD160 89a57e336c24f7f6eebda3a1724e14b71187e117 SHA1 60faeaaf250642db5c0ea36cd6dcc9f99c8f3902 SHA256 1795c7d067a43174113fdf03447532f373e1c6c57c08d61d9e4e9be5e244b05e EBUILD xen-pvgrub-4.1.1-r1.ebuild 4348 RMD160 edb56552d3f5984687a67475eee029d59bea00c1 SHA1 c7e4ed3ab338cf93e1e6f0d0c2d4707375639e2d SHA256 2e54d127bbd78ebdd9d4e08ff2468b712156ebdd3ae24fad7baaa5b760543fcd +EBUILD xen-pvgrub-4.1.2.ebuild 4239 RMD160 b7f0366a1142d8b0070495d11cce4fadcb627c3f SHA1 bc426307810b44a8a055bcd922984970c1fc3561 SHA256 235a3ff47d015dde2c8a204877c15476236d56088bd13b8113b81c9dc62288a0 EBUILD xen-pvgrub-9999.ebuild 3466 RMD160 68770effb33a802ee204b3f4f05316a2b104435a SHA1 c93c306847180ae3ad1ac1dade6323519e12faf0 SHA256 4e41e7a47c381e9dc11800bfa9838f45432efafd6dbc1d482810d17830eaf888 -MISC ChangeLog 1611 RMD160 fc935dd3bc0b68dca2e2cbefe7e248e85be1bafc SHA1 7dd3a6730c8b1e30fcaf431259840dc4528abb1b SHA256 92578a8400856a9294d355d9cc24089bfc331bfdaae13ffb485eee9abc2f8878 +MISC ChangeLog 1800 RMD160 8341b769be960221dd6cce915c33750c669ddf16 SHA1 6c558b3a5e0ef2b5faf0034b7a9cdf7e56122e70 SHA256 2c23b85b2f619d085c81867223b2d0e2947434ad2023fd9e8c9b57d46faa6de0 MISC metadata.xml 156 RMD160 bb062b1ba5554779dcfd0e73baf533ce9fbcdf68 SHA1 e6da014f2004758c7a806592ef9450489eebf593 SHA256 4a030777459245372bda9f7925f3a5ed3ef2b29b77e1a2971f3400ac2059b1e2 -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.18 (GNU/Linux) -iQIcBAEBCAAGBQJOlzq4AAoJEOf+E+/4L5LmT1QP/1jbCb1CU9uRMREiJIgZoAVt -5JdVgOGZo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/n4NVm0FcV4i8JYAaWaNxJYJkIzZqcTXusv8ieAVc5subixeT9/0FmEr2UWbGN +WQUbgJ9lXN4Y+Lu14f2posqC5C4RNZVhS5o2Jz4hGpOZ9RvmoIeONLmYnKfzZMqw +cCsoRZFNq91yFj950Lr+pHM+GckZuatwVTSnJKFuiVRaHN7OzFSJolcleRwCd6lR +VlFbGS3+KRKKCvGJ37KS5KeibqSGsV2guCi+nFc+ayIqQcYZYwizSqm3XApSI607 +ds18K7ZjeF0HmWgv4w38EdLCmy75j8TV3ivdTnJaknsZqZV5THtEiv0bGAmsR0bO +8sffENK/HIhFOD41lHFD +=lm+e -----END PGP SIGNATURE----- diff --git a/app-emulation/xen/ChangeLog b/app-emulation/xen/ChangeLog index 226b361c44c3..6b0c9fd269a3 100644 --- a/app-emulation/xen/ChangeLog +++ b/app-emulation/xen/ChangeLog @@ -1,6 +1,11 @@ # ChangeLog for app-emulation/xen # Copyright 1999-2011 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/app-emulation/xen/ChangeLog,v 1.89 2011/10/15 19:38:16 hwoarang Exp $ +# $Header: /var/cvsroot/gentoo-x86/app-emulation/xen/ChangeLog,v 1.90 2011/10/25 18:43:54 alexxy Exp $ + +*xen-4.1.2 (25 Oct 2011) + + 25 Oct 2011; Alexey Shvetsov +xen-4.1.2.ebuild: + Version bump prepared by Ian Delaney aka idella4 15 Oct 2011; Markos Chandras xen-3.4.2-r4.ebuild: Stable on amd64 wrt bug #385319 diff --git a/app-emulation/xen/xen-4.1.2.ebuild b/app-emulation/xen/xen-4.1.2.ebuild new file mode 100644 index 000000000000..3232699ec364 --- /dev/null +++ b/app-emulation/xen/xen-4.1.2.ebuild @@ -0,0 +1,120 @@ +# Copyright 1999-2011 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/app-emulation/xen/xen-4.1.2.ebuild,v 1.1 2011/10/25 18:43:54 alexxy Exp $ + +EAPI="4" + +if [[ $PV == *9999 ]]; then + KEYWORDS="" + REPO="xen-unstable.hg" + EHG_REPO_URI="http://xenbits.xensource.com/${REPO}" + S="${WORKDIR}/${REPO}" + live_eclass="mercurial" +else + KEYWORDS="~amd64 ~x86" + SRC_URI="http://bits.xensource.com/oss-xen/release/${PV}/xen-${PV}.tar.gz" +fi + +inherit mount-boot flag-o-matic toolchain-funcs ${live_eclass} + +DESCRIPTION="The Xen virtual machine monitor" +HOMEPAGE="http://xen.org/" + +LICENSE="GPL-2" +SLOT="0" +IUSE="custom-cflags debug flask pae xsm" + +RDEPEND="|| ( sys-boot/grub + sys-boot/grub-static )" +PDEPEND="~app-emulation/xen-tools-${PV}" + +RESTRICT="test" + +# Approved by QA team in bug #144032 +QA_WX_LOAD="boot/xen-syms-${PV}" + +REQUIRED_USE=" + flask? ( xsm ) + " + +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 + + if use flask ; then + export "XSM_ENABLE=y" + export "FLASK_ENABLE=y" + elif use xsm ; then + export "XSM_ENABLE=y" + fi +} + +src_prepare() { + + # Drop .config + sed -e '/-include $(XEN_ROOT)\/.config/d' -i Config.mk || die "Couldn't drop" + + # 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 {} \; + fi + + # remove -Werror for gcc-4.6's sake + find "${S}" -name 'Makefile*' -o -name '*.mk' -o -name 'common.make' | \ + xargs sed -i 's/ *-Werror */ /' + # not strictly necessary to fix this + sed -i 's/, "-Werror"//' "${S}/tools/python/setup.py" +} + +src_configure() { + 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 +} + +src_compile() { + # Send raw LDFLAGS so that --as-needed works + emake CC="$(tc-getCC)" 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://en.gentoo-wiki.com/wiki/Xen/" + + if use pae; then + echo + ewarn "This is a PAE build of Xen. It will *only* boot PAE kernels!" + fi +} -- 2.26.2