diff options
author | Yixun Lan <dlan@gentoo.org> | 2014-09-11 05:23:22 +0000 |
---|---|---|
committer | Yixun Lan <dlan@gentoo.org> | 2014-09-11 05:23:22 +0000 |
commit | 333b3cd9a34add70f389c35530a33826c5c47e23 (patch) | |
tree | d55e5daf229446e823d78ba44f5e14472ca5fbfb /app-emulation | |
parent | Mark stable for all #521952. (diff) | |
download | historical-333b3cd9a34add70f389c35530a33826c5c47e23.tar.gz historical-333b3cd9a34add70f389c35530a33826c5c47e23.tar.bz2 historical-333b3cd9a34add70f389c35530a33826c5c47e23.zip |
version bump
Package-Manager: portage-2.2.12/cvs/Linux x86_64
Manifest-Sign-Key: 0xAABEFD55
Diffstat (limited to 'app-emulation')
-rw-r--r-- | app-emulation/xen/ChangeLog | 10 | ||||
-rw-r--r-- | app-emulation/xen/Manifest | 34 | ||||
-rw-r--r-- | app-emulation/xen/xen-4.2.5.ebuild | 155 | ||||
-rw-r--r-- | app-emulation/xen/xen-4.3.3.ebuild | 151 | ||||
-rw-r--r-- | app-emulation/xen/xen-4.4.1.ebuild | 162 |
5 files changed, 497 insertions, 15 deletions
diff --git a/app-emulation/xen/ChangeLog b/app-emulation/xen/ChangeLog index 27c36d6a8370..197807842219 100644 --- a/app-emulation/xen/ChangeLog +++ b/app-emulation/xen/ChangeLog @@ -1,6 +1,14 @@ # ChangeLog for app-emulation/xen # Copyright 1999-2014 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/app-emulation/xen/ChangeLog,v 1.172 2014/08/20 15:59:53 ago Exp $ +# $Header: /var/cvsroot/gentoo-x86/app-emulation/xen/ChangeLog,v 1.173 2014/09/11 05:22:42 dlan Exp $ + +*xen-4.4.1 (11 Sep 2014) +*xen-4.3.3 (11 Sep 2014) +*xen-4.2.5 (11 Sep 2014) + + 11 Sep 2014; Yixun Lan <dlan@gentoo.org> +xen-4.2.5.ebuild, + +xen-4.3.3.ebuild, +xen-4.4.1.ebuild: + version bump 20 Aug 2014; Agostino Sarubbo <ago@gentoo.org> xen-4.2.4-r5.ebuild: Stable for x86, wrt bug #519800 diff --git a/app-emulation/xen/Manifest b/app-emulation/xen/Manifest index 7a34cb1620c2..10a7c61a9b33 100644 --- a/app-emulation/xen/Manifest +++ b/app-emulation/xen/Manifest @@ -8,32 +8,38 @@ AUX xen-4.4-efi.patch 1873 SHA256 096ae932f6f9387b8d5a837279c436173310f121e06ba3 DIST xen-4.2.4-upstream-patches-3.tar.xz 57456 SHA256 e223b6fb10ca26415d0677e465480f77378f7a196bb3a2cc654a2d53e867fa66 SHA512 4b1091cba3afb149f8734630f32a3c44b1abade4a524f5bbfcc88df5700dbcb38dfd7b4dd0059e323a5b89a9156109505891a54dae9d698fe9d89ab2294e3151 WHIRLPOOL 1448b20e6930dcc7a0d57819732341e24257159c97fc5e270be9c47935b750cf7fa08b02ac1d0f49792b453476330b19c773e79d1c6b02ea9ed7baca83750163 DIST xen-4.2.4-upstream-patches-4.tar.xz 69344 SHA256 23ef320500452dcf8a824d5c8062c6399e1c3f39a51ce6594b232b4bfbd9d9c4 SHA512 43141b8ba4790860632eb83814e9b5e469ba3431da00820fd131ae6a79e1a05ea4db4b801627f52360ebac06160dd86217a79b196d2b6d379c86cf9449b75371 WHIRLPOOL 30344a3780122fed2d3895adf60bc4d7efc6879b0ad46160ccbcaa98c69aa4f419cd233690f69a250dc413fb410c3affad805bfa8570c9d78290c3a9b224264c DIST xen-4.2.4.tar.gz 15663999 SHA256 e23e6292affd7a6d82da99527e8bf3964e57eb7322144c67c2025692b1a21550 SHA512 3e5263511e7c40899f580f3384bd987f9c875b8e6816202fd1a5a64fe7e336803d09e58148af074938ef261f0ceeafad121ac541ddd2bf66b76c5aa4ad07c357 WHIRLPOOL 25d23f5d921139ba0f853fcd76ae998647d32292bccfd4e7c4f3b12f860a38fbb33ebda67c839657bf3a25d837c9c02b80d663362263d16d42284ffde09f0bc2 +DIST xen-4.2.5.tar.gz 15671925 SHA256 3cf440866315e8085050eb0586f0447b6b47a08dbed6a72226bf5ed5d89ec567 SHA512 42c0fc241952fc55fc44480fb6752b004b54ae40e946159ec047adf229b65cbfbd810271d01b064ad8fdbddb73c640dcdcb6bc19f91e8968829889c129920dac WHIRLPOOL 762a91c0111892b33e6bd3e7f7714709b04697ad7c2b0919fef6cc9570a343a77fd5a2b82833e75dac9d12d4e41acdcf0743b0d593595910ddd326f5cd721368 DIST xen-4.3.2-upstream-patches-3.tar.xz 60208 SHA256 661ab148c9eeb2c8e44d0bd620496607a567d4f6c1fa0a6f89b21086ee8f607d SHA512 1248c937c604716f756083d44ef14150c8601f810fd8c0b73df314bd34287a53b4db3e8697f03acab3cf56252cbac8578a5bbedb40c342fa7c2b3f7f9c6575e0 WHIRLPOOL df3525d76607232720d3f3351548add60c89a139d380cf6147bec122cb11c52570e99dd14f800e88e411248b950aeed32ae03cce93fc8358011b3125114bb3c6 DIST xen-4.3.2-upstream-patches-4.tar.xz 69268 SHA256 eb00972bc511b584278a178765af8fc5d6d78097a39e6d3fdf5133a73693d953 SHA512 f9455d375f26b37844b820ea238a06c24a4e1f76adbd217a78ac31c3e0e078f9eaf2744886e09d7fc3a1b3b9b03c85257bac236742d69c5c0a00cf0683760d1d WHIRLPOOL e55f126f004313efadf7d881b10e7747504824d83f477787fad09eede0a8f3aba268a37d933e641720b51ed91723f036c80c855907697293ea2b1b52e5a9efb5 DIST xen-4.3.2.tar.gz 16472188 SHA256 17611d95f955302560ff72d97c08933b4e62bc2e8ffb71400fc54e388746ff69 SHA512 ec94d849b56ec590b89022075ce43768d8ef44b7be9580ce032509b44c085f0f66495845607a18cd3dea6b89c69bc2a18012705556f59288cd8653c3e5eca302 WHIRLPOOL 72250369fb2c90ba608e1da018cb6417b3089642c8ba59af9f2825ec5ba7c4e6c5d6f86140b20825817e4625727c6d58c5d38b00863c994e31c8a04927997bd3 +DIST xen-4.3.3.tar.gz 16479922 SHA256 59eb0e1c4a1f66965fe56dcf27cdb5872bf7e0585b7f2e60bd7967ec7f744ebf SHA512 cd9b7199d2859a856c719b75ee50a059c480f7493bbc493bcc3701d20321bd6d83c6fe1dd58e7b37695639bccf15e6420fb52f7e699586e7750ea665e99f82fc WHIRLPOOL 17ee263cb2a4c7b37d399e8baa88dab5b01386959de9d481e8666340d486bc9f32d57d6e1cef1568009fe8dbb2437b9ad90c1bed832cdfedd4be3fe5bf0a7dec DIST xen-4.4.0-upstream-patches-5.tar.xz 112184 SHA256 39b3db8f684a570d7379ee7e75e3cfffa72f8fdf639cbb745f90b42f7a223f0f SHA512 e25893b8507fd7b1a3d2194e83da55b934914df73aa4a18a893e6a09df3ab0e1f992a6b26c2b5a2fccfbe41c4a56d10db37eb58dcf08832b9d85be1ff94ced7d WHIRLPOOL 2baf008c98b9685fcad8ea58a41c14271947295ad5e28c99a01876c87ad5274d8f59e5583e1bf41caa536238ed0baaf785f4a1271b68e51f18f2195cd894b5fe DIST xen-4.4.0.tar.gz 18116578 SHA256 6910a504fe2ffe8db0e7a44756ce1c4c95e1ccbef942a1fc8da27aced5aac021 SHA512 84bc293415b8ce9686240b0145a92be190cdd7032c66b5b07906baacbfeb33ad1e6148336e951fd4506b7f4e0b250937c702226c0207d7088a50e643bedabd17 WHIRLPOOL 87886cc83bf1eaaf5dd5b67d7cc82823d98dd9b4b47c0a178ea70ee2367c1a4a142aa66df13f58603840d0e310fb5c09dc0d5b87f6361c934e1c83c95d09d406 +DIST xen-4.4.1.tar.gz 18134427 SHA256 55b49d3c4575d7791275125ff87c0f86f1d1e0f7f2718b6fd1c4f88a9bc7ea25 SHA512 bcd577014f4e8cb37b934f17a4dfb6f12e72e865a9e553cc435fdbe6665c733a4d20a812bf126727eca0946188a6abbd9419579757d7e03a38059f3656371c1c WHIRLPOOL f29eab626729f36de3f2e2c6c8446da4a05085818e18c28f07fe364065e05f0af67602eeb988091df3027a844ad0ccd52b6a0ee86592c7ff6008f961b9bd4bcf EBUILD xen-4.2.4-r4.ebuild 4233 SHA256 b739069c9a618fe96a773f8dfe49ba0d95d41779a17ac451e3e95b6ddaccf070 SHA512 4d2694654a3cd1078183e393e3e0d173847e7b49e43d9d3f4035c535b5940121704b6a14ee661c5120dc0e1ac3cdd109f68d6155dba2d40e32e7be818a8fa120 WHIRLPOOL daec6e83d65b7eb99e8a41280cce177934015b305026e5613487171af0d7d859e31c3567c00a6081abe39949d379c41c950d71b14aa6817b5b34f3d639b5941e EBUILD xen-4.2.4-r5.ebuild 4233 SHA256 6d243ab7e3495880a8fc957390787093265e098c05650374657aea1dd94312d9 SHA512 8e3da2bc03b9909b99ecf628e39bf31ec6f8be256a6f2a994d5baabc62c05429682db8cb8bc4dee836fd47fa097a26c68ab8f943b2e9d4911d04bac082fc5d73 WHIRLPOOL a83991b62defb3c968dea315444634653a0d91cc769129f0767588e97e7c02b0b5f90879daa35f945bb2952280f9aa55a2a7cd80a075fae7a78e023a776e134d +EBUILD xen-4.2.5.ebuild 4232 SHA256 b2461f0023bb7acf01e761ee147a4afacb9601453b8bb428bf0cd2846ee30eb8 SHA512 8631d47c4d8e8a15e79709da826b5e1ef91f66e861e8ec8995f608ae126b8e9cef35124b5846c5742499e5f9c6f7f5f4aaaf20a8eec3055f763f9370380cee54 WHIRLPOOL f5b7217930e24ce60e56e900529b105f3196019e6fe4f277d9027368b9a0150a6151e1dafb24820341c0b6ae680bf93d729deb2e0c5a87976c7ce901fd588965 EBUILD xen-4.3.2-r4.ebuild 4128 SHA256 052a0c975c437ca6b7e2df5310bec50e0dabfceb1a199a70970f26a80b122222 SHA512 b6401e348ce4465fd1eb303695782520f0fcfc191d277f0904c3e62baa82a003c7d920aff5423bd873e4020c221121ea1078ef91286aef2195a7dd5bf956688c WHIRLPOOL ff3d566629729877f1f1d38f62c443258dd8f59bcf31d74905bf519f6638bdbfeffe204223e54f7c62a38548078374038dda949aced414aa7456daa3a14d0453 EBUILD xen-4.3.2-r5.ebuild 4128 SHA256 01d7f6e80123d4d7a7a40ac44709b177dfeab151f3b3f337dac6a03425b9095d SHA512 de43ce79adc764de71937db91c0ef72f174bb35f3743d149258ffeb1b9d9dc1f87a27c2d1244418981596167a11d35295f16aac57508b86c72355951275c777a WHIRLPOOL f911d7bb4aee196264becb4ea7999dc356676405d32987c8b43c2cae558d5a6918c79749c40419e5b77559d2c42cadc836e337d8a2d400153b7043e9bd1c83af +EBUILD xen-4.3.3.ebuild 4126 SHA256 1e414c18e56f897e4b4c0e6ec25ebc0a5b9964df75a3e46fa84e3904db8993d6 SHA512 56cb7026e6ab0e73c7d334c3489c0bf6602b0217beb102d7f945f0a7f606a6d570f193db356abc2eb2616ce9397d2da8ee324e918c2ab1aacd3459a9bcb9ab10 WHIRLPOOL 0aa8fd37e131f87ca87ee01af4c06a61f57662279487e9922826d3849c2a6677e6782915b02967255a86f739d54b0ee7a6508f26ef4bfff334ef75696ab32c73 EBUILD xen-4.4.0-r6.ebuild 4359 SHA256 e7aa59b9ce2f22627ef757b6d2daed083dc93c6e766763b1242016d6d179debc SHA512 386a978d50e850932b0467c9a12ab3cfa20196ff62ddf40cdcadcee2096590bc5c42f26315a5c39f35307e3f75948887b3c010fdcf0f0b0f95e1844eaeeb464a WHIRLPOOL 55cfe1fe0f4544a506f4d01dfada34f6481c0a60d79871e11324e73203133d7d3e314299cae6b9c151ad256ac5f91aaa0382f2866953f1ed908b8abf71302332 -MISC ChangeLog 31756 SHA256 cc3db4d8fe08ffb674c73257dd2562ae24430ec624d84a8629aaf06948a96676 SHA512 2414e269a8a1f6d39dda2a42eacded2556a573a5d94c00b849ff63fe659e7136a639e31fc9ce6fc57b55846a909437c78bbb92662125c1ddbdddd23dcc376994 WHIRLPOOL c221409be436a4115c61bdce28f12e0b4c3fb29a3f2747cabb8dfdad52b8da0c01ab45129ace6fac67d4a7094dd2e2306972eb0fa84e2d5e9a1b95aafef15840 +EBUILD xen-4.4.1.ebuild 4355 SHA256 234f4db013c179397c70285a780eb80638cacf536b6191e6d41df690acf7177b SHA512 1445264d19365d23d342a0d49ad27b0b986d797ecf03c21afae25eb2ebc20dc52e1048adeb0a907bb4b917ea60fed7f96a7f2be39bb8a67f64f177fb3c8441f0 WHIRLPOOL d7ceff2f04f5e4529947e2dacc59f9a2a71043f339d67553d3619a2dd9f8b2c94f250bd6fda5157021adba410cac97edb3b2eca5e02c5da599d2f647c4394a99 +MISC ChangeLog 31951 SHA256 d648f3783e6d5b70e8a0b2ba2d139d5cfacb848a4412dfe89fff7a766b51c735 SHA512 ea36378070283a27208dd2c89a7b43304d426514b9091b66ad595ad0cc9ca85f5e792d2555549ee1a7c1821a057ac9dbfcb25a2649cf28fadb28e1b16d0258ad WHIRLPOOL cf5119a715a0d10abac291604afb7d4e3c590b9410c6b1d3aa19264880d4ad0fa3271e4da1586ce9e81eb40900b4fb96586874edd62be3c962e2b83f86a437aa MISC metadata.xml 480 SHA256 c6d867148db1480748552aea9692bdee95fb98a94fcfadab0d128cbf1102b0d5 SHA512 888aa860cbb74d79c76f096107d8b22975470373ab11249da2c4ae9c4e172bc52fee73fdfaf07c19e977cabbbdf35ea5b3c6508d4a6f555b771ab6729806fe5c WHIRLPOOL c4d10589ca2c8b4e8bbd877dfc8f4f3b66ce8ae7bece71617e9571f07a39270f54c41f5fbbb2b29020ffc6473e2341064bd708813af3e20a31d5b9bd0510ebe2 -----BEGIN PGP SIGNATURE----- Version: GnuPG v2 -iQIcBAEBCAAGBQJT9MX6AAoJELp701BxlEWfNTsQAJLdrHnrq1L2UdWAMzZvW9fh -atw0EC+i+Nx8PqxCcJEtVM+56oHS6D1jRTWbdm1lAdNESvdN/RqkBahmmc+QS/B7 -uc0zxfQ8iY/ntXOu8FmloVl3R+U3nvb5zhj+DXcfMeh8rzgbLSwzpF0xo24QCOfN -bZ9x244C7Z8EBo1U4hl6R7rayh3bdBuy28otQVyp1nP2H5UUST93eYiiNSyfU8Nt -hlUpvBGY26GcJZ/bECWmRGw+n3KOb7UQPPWeDnmM/2Qh9vgX7O7fz0BBGBG/akRL -zpTKR3IZWf+Io8Jsw6xlD5F/L0slaS2bAbazhWXOrWh4jrwfq6flrvAqJnoDG7s+ -sim+zghKyA75fOzuR83R95JniXGS6nEudm9XTHTjmIwsgbm02JtVFv5Gd3zdM6LR -Kmsdq4xYYeklzD5jQEXqB9R+IEb9DhwuzcWfbzI/NOIGUe9DXhIMq9bs5/jeTxHz -mAR0/JD7sIH8mKI9fx+wIxjkup5QbCb8RRGG4i5yegN6PgIdTO/4tlfA6NiheFkG -ZI9ethD59Njh7PThglktxzfLmmELHcHvPSLA44t1rLXiPFDaD/ltyuJEjrI6TREh -uimeqQMhrosRfSWcA8Cd+r81DlWtSj1b6SznRyPfmeRYDFZmD/L9S1Whjoh09bII -H9EOZfpFIHDWABX3GVu9 -=G0SC +iQIcBAEBCAAGBQJUETG8AAoJEJIMDbyqvv1VZVcP/1w0c5Ju1WAD6RAJJqWXECyc +oryRGxpdmjngaipkNcGUWLKYJWDNxvpcdopT5GLPaPnvHaNHmqi/WvlkAm3kyGcU +V4Z0c7mQWaSINGRVvS4xHH8OBpiAfsCv0lPx6qytGbCngxqOI3BIPgH2BdntaJzF +6f5H2CwHcuJH6wC7gHv0C5vWV3VtwvfQCgP1DWQvC0DhbfyPGgy9JDmhJq9LmD6K +kzuGIMpWVfdaF50Q3XYJQhofWtCyz+XmfQ9ykGTdaH65ANYWsmUxGKISECUgj5dd +mIyl7LBXzfKE6++9kRwArEhYAXGN4M+GiRV6RszRdHALBpj8Xfoa7hrp97tWjIrT +S615Ktooac5SLMwZg6k8C9IzDw1UO63eFzvDSY7qymV+9vVX6/8QWlK8ddTjm1gA +gIuekueCSgggLKzeFhlIPwTYbWVQcNUAJD/ZiQedfvr3T3gLJgaalnrjSexCDGcT +SkPcT9uZ0hVTfhmXA8JxuLX2q0tLPa1/f91PtXaGvhGzWLQ0lTNZqR7aaHcylJ4q +PaPAtHycNyu4O335dBYMSqnlSiuwez0os1jcnPTnPmWN5McVzpmqYYsq+F04xORz +P+rehMRws8nLGCBQMt3Y/DHYCSOaTxGoCvUajHvM9qsa4hR06xHAV0QxGfUCNH90 +QVQhnjD/V9/HqfTEi5wy +=DF+Q -----END PGP SIGNATURE----- diff --git a/app-emulation/xen/xen-4.2.5.ebuild b/app-emulation/xen/xen-4.2.5.ebuild new file mode 100644 index 000000000000..08db0e41fa98 --- /dev/null +++ b/app-emulation/xen/xen-4.2.5.ebuild @@ -0,0 +1,155 @@ +# Copyright 1999-2014 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/app-emulation/xen/xen-4.2.5.ebuild,v 1.1 2014/09/11 05:22:42 dlan Exp $ + +EAPI=5 + +PYTHON_COMPAT=( python{2_6,2_7} ) + +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" + UPSTREAM_VER= + GENTOO_VER= + + [[ -n ${UPSTREAM_VER} ]] && \ + UPSTREAM_PATCHSET_URI="http://dev.gentoo.org/~dlan/distfiles/${P}-upstream-patches-${UPSTREAM_VER}.tar.xz" + [[ -n ${GENTOO_VER} ]] && \ + GENTOO_PATCHSET_URI="http://dev.gentoo.org/~dlan/distfiles/${P}-gentoo-patches-${GENTOO_VER}.tar.xz" + SRC_URI="http://bits.xensource.com/oss-xen/release/${PV}/xen-${PV}.tar.gz + ${UPSTREAM_PATCHSET_URI} + ${GENTOO_PATCHSET_URI}" +fi + +inherit mount-boot flag-o-matic python-any-r1 toolchain-funcs eutils ${live_eclass} + +DESCRIPTION="The Xen virtual machine monitor" +HOMEPAGE="http://xen.org/" +LICENSE="GPL-2" +SLOT="0" +IUSE="custom-cflags debug efi flask pae xsm" + +DEPEND="${PYTHON_DEPS} + efi? ( >=sys-devel/binutils-2.22[multitarget] ) + !efi? ( >=sys-devel/binutils-2.22[-multitarget] )" +RDEPEND="" +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() { + python-any-r1_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() { + # Upstream's patchset + if [[ -n ${UPSTREAM_VER} ]]; then + EPATCH_SUFFIX="patch" \ + EPATCH_FORCE="yes" \ + EPATCH_OPTS="-p1" \ + epatch "${WORKDIR}"/patches-upstream + fi + + # Gentoo's patchset + if [[ -n ${GENTOO_VER} ]]; then + EPATCH_SUFFIX="patch" \ + EPATCH_FORCE="yes" \ + epatch "${WORKDIR}"/patches-gentoo + fi + + # Drop .config and fix gcc-4.6 + epatch "${FILESDIR}"/${PN/-pvgrub/}-4-fix_dotconfig-gcc.patch + + if use efi; then + epatch "${FILESDIR}"/${PN}-4.2-efi.patch + export EFI_VENDOR="gentoo" + export EFI_MOUNTPOINT="boot" + fi + + # 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 {} \; || die "failed to re-set custom-cflags" + fi + + # not strictly necessary to fix this + sed -i 's/, "-Werror"//' "${S}/tools/python/setup.py" || die "failed to re-set setup.py" + + epatch_user +} + +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)" LD="$(tc-getLD)" -C xen ${myopt} +} + +src_install() { + local myopt + use debug && myopt="${myopt} debug=y" + use pae && myopt="${myopt} pae=y" + + # The 'make install' doesn't 'mkdir -p' the subdirs + if use efi; then + mkdir -p "${D}"${EFI_MOUNTPOINT}/efi/${EFI_VENDOR} || die + fi + + emake LDFLAGS="$(raw-ldflags)" DESTDIR="${D}" -C xen ${myopt} install +} + +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/" + + use pae && ewarn "This is a PAE build of Xen. It will *only* boot PAE kernels!" + use efi && einfo "The efi executable is installed in boot/efi/gentoo" +} diff --git a/app-emulation/xen/xen-4.3.3.ebuild b/app-emulation/xen/xen-4.3.3.ebuild new file mode 100644 index 000000000000..412539cc88e2 --- /dev/null +++ b/app-emulation/xen/xen-4.3.3.ebuild @@ -0,0 +1,151 @@ +# Copyright 1999-2014 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/app-emulation/xen/xen-4.3.3.ebuild,v 1.1 2014/09/11 05:22:42 dlan Exp $ + +EAPI=5 + +PYTHON_COMPAT=( python2_7 ) + +if [[ $PV == *9999 ]]; then + KEYWORDS="" + REPO="xen-unstable.hg" + EHG_REPO_URI="http://xenbits.xensource.com/${REPO}" + S="${WORKDIR}/${REPO}" + live_eclass="mercurial" +else + # Set to match entry in stable 4.3.1-r1, Bug 493944 + KEYWORDS="~amd64 -x86" + UPSTREAM_VER= + GENTOO_VER= + + [[ -n ${UPSTREAM_VER} ]] && \ + UPSTREAM_PATCHSET_URI="http://dev.gentoo.org/~dlan/distfiles/${P}-upstream-patches-${UPSTREAM_VER}.tar.xz" + [[ -n ${GENTOO_VER} ]] && \ + GENTOO_PATCHSET_URI="http://dev.gentoo.org/~dlan/distfiles/${P}-gentoo-patches-${GENTOO_VER}.tar.xz" + SRC_URI="http://bits.xensource.com/oss-xen/release/${PV}/xen-${PV}.tar.gz + ${UPSTREAM_PATCHSET_URI} + ${GENTOO_PATCHSET_URI}" +fi + +inherit mount-boot flag-o-matic python-any-r1 toolchain-funcs eutils ${live_eclass} + +DESCRIPTION="The Xen virtual machine monitor" +HOMEPAGE="http://xen.org/" +LICENSE="GPL-2" +SLOT="0" +IUSE="custom-cflags debug efi flask xsm" + +DEPEND="${PYTHON_DEPS} + efi? ( >=sys-devel/binutils-2.22[multitarget] ) + !efi? ( >=sys-devel/binutils-2.22[-multitarget] )" +RDEPEND="" +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() { + python-any-r1_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() { + # Upstream's patchset + if [[ -n ${UPSTREAM_VER} ]]; then + EPATCH_SUFFIX="patch" \ + EPATCH_FORCE="yes" \ + EPATCH_OPTS="-p1" \ + epatch "${WORKDIR}"/patches-upstream + fi + + # Gentoo's patchset + if [[ -n ${GENTOO_VER} ]]; then + EPATCH_SUFFIX="patch" \ + EPATCH_FORCE="yes" \ + epatch "${WORKDIR}"/patches-gentoo + fi + + # Drop .config and fix gcc-4.6 + epatch "${FILESDIR}"/${PN/-pvgrub/}-4.3-fix_dotconfig-gcc.patch + + if use efi; then + epatch "${FILESDIR}"/${PN}-4.2-efi.patch + export EFI_VENDOR="gentoo" + export EFI_MOUNTPOINT="boot" + fi + + # 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 {} \; || die "failed to re-set custom-cflags" + fi + + # not strictly necessary to fix this + sed -i 's/, "-Werror"//' "${S}/tools/python/setup.py" || die "failed to re-set setup.py" + + epatch_user +} + +src_configure() { + use debug && myopt="${myopt} debug=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 V=1 CC="$(tc-getCC)" LDFLAGS="$(raw-ldflags)" LD="$(tc-getLD)" -C xen ${myopt} +} + +src_install() { + local myopt + use debug && myopt="${myopt} debug=y" + + # The 'make install' doesn't 'mkdir -p' the subdirs + if use efi; then + mkdir -p "${D}"${EFI_MOUNTPOINT}/efi/${EFI_VENDOR} || die + fi + + emake LDFLAGS="$(raw-ldflags)" DESTDIR="${D}" -C xen ${myopt} install +} + +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/" + + use efi && einfo "The efi executable is installed in boot/efi/gentoo" +} diff --git a/app-emulation/xen/xen-4.4.1.ebuild b/app-emulation/xen/xen-4.4.1.ebuild new file mode 100644 index 000000000000..96d8daed8876 --- /dev/null +++ b/app-emulation/xen/xen-4.4.1.ebuild @@ -0,0 +1,162 @@ +# Copyright 1999-2014 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/app-emulation/xen/xen-4.4.1.ebuild,v 1.1 2014/09/11 05:22:42 dlan Exp $ + +EAPI=5 + +PYTHON_COMPAT=( python2_7 ) + +MY_PV=${PV/_/-} +MY_P=${PN}-${PV/_/-} + +if [[ $PV == *9999 ]]; then + KEYWORDS="" + EGIT_REPO_URI="git://xenbits.xen.org/${PN}.git" + live_eclass="git-2" +else + KEYWORDS="~amd64 ~arm -x86" + UPSTREAM_VER= + GENTOO_VER= + + [[ -n ${UPSTREAM_VER} ]] && \ + UPSTREAM_PATCHSET_URI="http://dev.gentoo.org/~dlan/distfiles/${P}-upstream-patches-${UPSTREAM_VER}.tar.xz" + [[ -n ${GENTOO_VER} ]] && \ + GENTOO_PATCHSET_URI="http://dev.gentoo.org/~dlan/distfiles/${P}-gentoo-patches-${GENTOO_VER}.tar.xz" + SRC_URI="http://bits.xensource.com/oss-xen/release/${MY_PV}/${MY_P}.tar.gz + ${UPSTREAM_PATCHSET_URI} + ${GENTOO_PATCHSET_URI}" + +fi + +inherit mount-boot flag-o-matic python-any-r1 toolchain-funcs eutils ${live_eclass} + +DESCRIPTION="The Xen virtual machine monitor" +HOMEPAGE="http://xen.org/" +LICENSE="GPL-2" +SLOT="0" +IUSE="custom-cflags debug efi flask xsm" + +DEPEND="${PYTHON_DEPS} + efi? ( >=sys-devel/binutils-2.22[multitarget] ) + !efi? ( >=sys-devel/binutils-2.22[-multitarget] )" +RDEPEND="" +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 ) + arm? ( debug )" + +S="${WORKDIR}/${MY_P}" + +pkg_setup() { + python-any-r1_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" + elif use arm; then + export XEN_TARGET_ARCH="arm32" + 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() { + # Upstream's patchset + if [[ -n ${UPSTREAM_VER} ]]; then + EPATCH_SUFFIX="patch" \ + EPATCH_FORCE="yes" \ + EPATCH_OPTS="-p1" \ + epatch "${WORKDIR}"/patches-upstream + fi + + # Gentoo's patchset + if [[ -n ${GENTOO_VER} ]]; then + EPATCH_SUFFIX="patch" \ + EPATCH_FORCE="yes" \ + epatch "${WORKDIR}"/patches-gentoo + fi + + # Drop .config + sed -e '/-include $(XEN_ROOT)\/.config/d' -i Config.mk || die "Couldn't drop" + + if use efi; then + epatch "${FILESDIR}"/${PN}-4.4-efi.patch + export EFI_VENDOR="gentoo" + export EFI_MOUNTPOINT="boot" + fi + + # 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 {} \; || die "failed to re-set custom-cflags" + 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" || die "failed to re-set setup.py" + + epatch_user +} + +src_configure() { + use arm && myopt="${myopt} CONFIG_EARLY_PRINTK=sun7i" + + use debug && myopt="${myopt} debug=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 V=1 CC="$(tc-getCC)" LDFLAGS="$(raw-ldflags)" LD="$(tc-getLD)" -C xen ${myopt} +} + +src_install() { + local myopt + use debug && myopt="${myopt} debug=y" + + # The 'make install' doesn't 'mkdir -p' the subdirs + if use efi; then + mkdir -p "${D}"${EFI_MOUNTPOINT}/efi/${EFI_VENDOR} || die + fi + + emake LDFLAGS="$(raw-ldflags)" DESTDIR="${D}" -C xen ${myopt} install +} + +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/" + + use efi && einfo "The efi executable is installed in boot/efi/gentoo" +} |