diff options
author | Ian Delaney <idella4@gentoo.org> | 2013-11-04 11:38:18 +0000 |
---|---|---|
committer | Ian Delaney <idella4@gentoo.org> | 2013-11-04 11:38:18 +0000 |
commit | e93122b0f9ad91c086c0ac764978ab55296cd00e (patch) | |
tree | 63ae8b00115d4cf89d378db1f16fea2ee5a5ec38 /app-emulation | |
parent | drop old wrt bug #443148 (diff) | |
download | historical-e93122b0f9ad91c086c0ac764978ab55296cd00e.tar.gz historical-e93122b0f9ad91c086c0ac764978ab55296cd00e.tar.bz2 historical-e93122b0f9ad91c086c0ac764978ab55296cd00e.zip |
ocaml deps findlib, ocaml combined & re-located under DEPEND, stable fault unfixable due to sole reliance on assigned maintainer of Bug 486076 submitting a dev-lang/ocaml-4x for stable. Electing for now not to purge IUSE ocaml and related deps though flagged as a future option.
Package-Manager: portage-2.2.0/cvs/Linux x86_64
Manifest-Sign-Key: 0xB8072B0D
Diffstat (limited to 'app-emulation')
-rw-r--r-- | app-emulation/xen-tools/ChangeLog | 11 | ||||
-rw-r--r-- | app-emulation/xen-tools/Manifest | 11 | ||||
-rw-r--r-- | app-emulation/xen-tools/metadata.xml | 2 | ||||
-rw-r--r-- | app-emulation/xen-tools/xen-tools-4.3.0-r1.ebuild | 390 |
4 files changed, 407 insertions, 7 deletions
diff --git a/app-emulation/xen-tools/ChangeLog b/app-emulation/xen-tools/ChangeLog index e9e1ca4ecfd2..b2e35fdf217d 100644 --- a/app-emulation/xen-tools/ChangeLog +++ b/app-emulation/xen-tools/ChangeLog @@ -1,6 +1,15 @@ # ChangeLog for app-emulation/xen-tools # Copyright 1999-2013 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/app-emulation/xen-tools/ChangeLog,v 1.194 2013/10/04 18:06:23 idella4 Exp $ +# $Header: /var/cvsroot/gentoo-x86/app-emulation/xen-tools/ChangeLog,v 1.195 2013/11/04 11:37:51 idella4 Exp $ + +*xen-tools-4.3.0-r1 (04 Nov 2013) + + 04 Nov 2013; Ian Delaney <idella4@gentoo.org> +xen-tools-4.3.0-r1.ebuild, + metadata.xml: + ocaml deps findlib, ocaml combined & re-located under DEPEND, stable fault + unfixable due to sole reliance on assigned maintainer of Bug 486076 submitting + a dev-lang/ocaml-4x for stable. Electing for now not to purge IUSE ocaml and + related deps though flagged as a future option. 04 Oct 2013; Ian Delaney <idella4@gentoo.org> -xen-tools-4.2.1-r5.ebuild, xen-tools-4.2.2-r3.ebuild, xen-tools-4.2.2-r4.ebuild, xen-tools-4.3.0.ebuild: diff --git a/app-emulation/xen-tools/Manifest b/app-emulation/xen-tools/Manifest index 5fe586120679..e3f7e2f32fbd 100644 --- a/app-emulation/xen-tools/Manifest +++ b/app-emulation/xen-tools/Manifest @@ -62,13 +62,14 @@ DIST xen-4.2.2.tar.gz 15602746 SHA256 c9bfe91a5e72f8545acebad9889d64368020359bfe DIST xen-4.3.0.tar.gz 16425975 SHA256 e1e9faabe4886e2227aacdbde74410653b233d66642ca1972a860cbec6439961 SHA512 e6b8f64e15e48704ea5cee5585cd6151fe6a5a62bc4670caf0b762c1aa71c9598db236c637ac34c42c92c6e8a5001acdd3d9d4b9305401a26273279358f481d6 WHIRLPOOL a91f14bc6535127ab17d3867b92fb3e008089453d5ba7996fd1d0b5c6d32a881c07df320f018c928e919f28de7b4ab4757c6bdb020e0cdb7d67960d4cab9dda0 EBUILD xen-tools-4.2.2-r3.ebuild 11674 SHA256 16f5a1f6548a679f964dbb5dd892352e18bb31c8940678561e72f00259a578c8 SHA512 a056bf526a71afede4a2950b69f3dc46862ac6f34b5d981e306253ebf521758975603eee7cd4728c66871db17402e282a7c5535a1f537b46d7d7c8fc962a3e0b WHIRLPOOL 249d0b8d433a40a88a3b70ea75c7e5689e48647bb6ac336bf3bcbe52a117bd85288cfafa0653abf49a03f40faf6705b109b4b140fd714dd95e1903970ddb69cd EBUILD xen-tools-4.2.2-r4.ebuild 11935 SHA256 3473c7cfd75f791168e74544b43049a8a0f5c0ca035c026b1bd313263e7dce3a SHA512 18d890cd8699322ef1a2380dee1ac8468548c6affe7510cb7f338fe41f10d6c484e8300869be704b502e189670908623d46b3b5f5c982d2a72389a52c0e80601 WHIRLPOOL 47d6875347929b0716969720ccc5480644547ed3ed54ebbed1fc8dbba846129c550dcdafb701a8c9daf8d351672eea5d42fa931c847b8ac885c34e82edc3812e +EBUILD xen-tools-4.3.0-r1.ebuild 12040 SHA256 1c2dbad0f6c0d8ffb5f4a8168c5652235263f47a98eee129dc24ddba1bf28e06 SHA512 36cb5776d8c0ef68f2fb6e5354e2008401021336a996a7d91e061956a5331ccfabe07578f050372e4d5573f9e331fa31991639f4e08190bdb956ca13ee389567 WHIRLPOOL c4da41caa372074fce40c1c954ee447b82156a5917eaa3968a34edbaf7c014fe784ba776cfe6bcc2a4b453509dd2738a0ca7081ee4bb82628dec61e69e309a2e EBUILD xen-tools-4.3.0.ebuild 11858 SHA256 0da51a63bd04b89e01433ad3ea4bee18fe61a5b001a5ab8007c193c693ba61bb SHA512 0046776ac6cd566202216195af6cacc34b95cec4fe889e6d17165e2e99ec89f6c26b847bbdf10743f45eae6ddb4ffb15166da6121c5dde83994c6ce87a2099dd WHIRLPOOL aaffa18f6ebf8997ccc372fec3c065f250b61ddea5ea86bf339a98a5e5723ca8311ece26a6185d4d1c16b98a4acc8d80c04f572a77160c74b1f5aabe3173588f -MISC ChangeLog 46532 SHA256 de66966a4311c8b12885ee1b313ba1440c1ea6aef33428eb8a13c04b84a2c4fe SHA512 aef5f7c3e36d41df44fed25224b1fb6d34745c122738a82a66ceb98c3d74de78f3548717a56dec24bea1c90859bc409a607ee356d7268ef970a97e4f383a8a1b WHIRLPOOL 932b1bf0dcf12f38ab5cfd5f0fa2e36dd12059b0a9bfb932c89d3472d661f9f5f60d3fa368972694177cd26bb511890857bdbff5db4a76cacd44a4c459db28f9 -MISC metadata.xml 881 SHA256 52d19c65a78ed979b0d6df2f83fc281e8622296e2686c199dbc58cb76a70a57b SHA512 3e2400037f840272c38b0a7b9d46f9975d512bea13e6dc21bf8458fb68b1c741f4458a9eaf18aa53c3183ef4f83e70e8ae50e28132e563fc4a1d6463c77a586d WHIRLPOOL 3b030061503f4c2beec7f51d3bf790f358a4837d78d7a0faf0eee5214832fe888445a53c0b09b94bf8dd811e44523e0bb05535d58583499df97b32280f722312 +MISC ChangeLog 46947 SHA256 6780aada17add4cdc54de6b16f7573bf4a99e7beaffcd88f4e6c5b53a34b2f0c SHA512 2f210b6d2ce700a66c0d0b3e929d033890ae7711523718c8b8c9fb44dd4303b579c1f41709888d983e5ab51df6fd93b7f221dfe764389eed3762d836862c82be WHIRLPOOL bc892615ba4e760f408149957dc1fd343796977f34418cd8c8502e17d1da79dcc5854aafb0659a6a498930707f73c526356ba6787a6de2943cc56a9136a2da7a +MISC metadata.xml 867 SHA256 e6f3eafba543e9746eaacd260d68bc060ce971ff2ae4a207a01a201ad34c8904 SHA512 dcf4aaf10a7226f876ceb7b1b988b63738af3db23774714b740b7c81172ec92183b435807870f06c7cfa48bf8f2e7199e6e7b42c348a767851ea8ae6c737f8e9 WHIRLPOOL 5935161b1be5ee372eb4e1240718b5a456078aced0cf0244eaa96dbb5674615bc098171fc4783f72be337bde78f43aff1234fc6a160ec85235453fa1bbdac79d -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.19 (GNU/Linux) -iEYEAREIAAYFAlJPA7IACgkQso7CE7gHKw1VAgCgvU4k5V1ZUd2ZCz6j2+EE1nCY -d4IAmwS7liN641kSnSnWxp69yCOgywUh -=1I5Z +iEYEAREIAAYFAlJ3hx0ACgkQso7CE7gHKw1t8QCeIlMZ2SZ0+ONCeVYYGzqa0CHg +BLkAoMwFa1jClqtrJvX6b5koNXc2JBj5 +=2slD -----END PGP SIGNATURE----- diff --git a/app-emulation/xen-tools/metadata.xml b/app-emulation/xen-tools/metadata.xml index 581b2b88ec9e..7a668f2214fd 100644 --- a/app-emulation/xen-tools/metadata.xml +++ b/app-emulation/xen-tools/metadata.xml @@ -14,6 +14,6 @@ <flag name='pygrub'>Install the pygrub boot loader</flag> <flag name='screen'>Enable support for running domain U console in an <pkg>app-misc/screen</pkg> session</flag> <flag name='xend'>Enable support the xend and xm to manage xen</flag> - <flag name='ocaml'>Enable support for the ocaml language</flag> + <flag name='ocaml'>Enable support for the ocaml language</flag> </use> </pkgmetadata> diff --git a/app-emulation/xen-tools/xen-tools-4.3.0-r1.ebuild b/app-emulation/xen-tools/xen-tools-4.3.0-r1.ebuild new file mode 100644 index 000000000000..52e2aa3d4731 --- /dev/null +++ b/app-emulation/xen-tools/xen-tools-4.3.0-r1.ebuild @@ -0,0 +1,390 @@ +# Copyright 1999-2013 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/app-emulation/xen-tools/xen-tools-4.3.0-r1.ebuild,v 1.1 2013/11/04 11:37:51 idella4 Exp $ + +EAPI=5 + +PYTHON_COMPAT=( python{2_6,2_7} ) +PYTHON_REQ_USE='xml,threads' + +IPXE_TARBALL_URL="http://dev.gentoo.org/~idella4/tarballs/ipxe.tar.gz" +XEN_SEABIOS_URL="http://dev.gentoo.org/~idella4/tarballs/seabios-dir-remote-20130720.tar.gz" + +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 + $IPXE_TARBALL_URL + $XEN_SEABIOS_URL" + S="${WORKDIR}/xen-${PV}" +fi + +inherit bash-completion-r1 eutils flag-o-matic multilib python-single-r1 toolchain-funcs udev ${live_eclass} + +DESCRIPTION="Xend daemon and tools" +HOMEPAGE="http://xen.org/" +DOCS=( README docs/README.xen-bugtool ) + +LICENSE="GPL-2" +SLOT="0" +# Inclusion of IUSE ocaml on stabalizing requires aballier to (get off his hands and) make >=dev-lang/ocaml-4 stable +# Otherwise IUSE ocaml and ocaml capable build need be purged +IUSE="api custom-cflags debug doc flask hvm qemu ocaml python pygrub screen static-libs xend" + +REQUIRED_USE="hvm? ( qemu )" + +DEPEND="dev-libs/lzo:2 + dev-libs/yajl + dev-libs/libgcrypt + dev-python/lxml[${PYTHON_USEDEP}] + dev-python/pypam[${PYTHON_USEDEP}] + sys-libs/zlib + sys-power/iasl + hvm? ( media-libs/libsdl ) + ${PYTHON_DEPS} + api? ( dev-libs/libxml2 + net-misc/curl ) + pygrub? ( ${PYTHON_DEPS//${PYTHON_REQ_USE}/ncurses} ) + sys-devel/bin86 + sys-devel/dev86 + dev-lang/perl + app-misc/pax-utils + dev-python/markdown + doc? ( + app-doc/doxygen + dev-tex/latex2html[png,gif] + media-gfx/graphviz + dev-tex/xcolor + media-gfx/transfig + dev-texlive/texlive-latexextra + virtual/latex-base + dev-tex/latexmk + dev-texlive/texlive-latex + dev-texlive/texlive-pictures + dev-texlive/texlive-latexrecommended + ) + hvm? ( x11-proto/xproto + !net-libs/libiscsi ) + qemu? ( x11-libs/pixman ) + ocaml? ( dev-ml/findlib + >=dev-lang/ocaml-4 )" +RDEPEND="sys-apps/iproute2 + net-misc/bridge-utils + screen? ( + app-misc/screen + app-admin/logrotate + ) + virtual/udev" + +# hvmloader is used to bootstrap a fully virtualized kernel +# Approved by QA team in bug #144032 +QA_WX_LOAD="usr/lib/xen/boot/hvmloader" + +RESTRICT="test" + +pkg_setup() { + python-single-r1_pkg_setup + export "CONFIG_LOMOUNT=y" + + if has_version dev-libs/libgcrypt; then + export "CONFIG_GCRYPT=y" + fi + + if use qemu; then + export "CONFIG_IOEMU=y" + else + export "CONFIG_IOEMU=n" + fi + + if ! use x86 && ! has x86 $(get_all_abis) && use hvm; then + eerror "HVM (VT-x and AMD-v) cannot be built on this system. An x86 or" + eerror "an amd64 multilib profile is required. Remove the hvm use flag" + eerror "to build xen-tools on your current profile." + die "USE=hvm is unsupported on this system." + fi + + 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_prepare() { + # Drop .config, fixes to gcc-4.6 + epatch "${FILESDIR}"/${PN/-tools/}-4.3-fix_dotconfig-gcc.patch + + # Xend + if ! use xend; then + sed -e 's:xm xen-bugtool xen-python-path xend:xen-bugtool xen-python-path:' \ + -i tools/misc/Makefile || die "Disabling xend failed" + sed -e 's:^XEND_INITD:#XEND_INITD:' \ + -i tools/examples/Makefile || die "Disabling xend failed" + 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 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 + + if ! use pygrub; then + sed -e '/^SUBDIRS-y += pygrub/d' -i tools/Makefile || die + fi + + if ! use python; then + sed -e '/^SUBDIRS-y += python$/d' -i tools/Makefile || die + fi + + # Disable hvm support on systems that don't support x86_32 binaries. + if ! use hvm; then + sed -e '/^CONFIG_IOEMU := y$/d' -i config/*.mk || die + sed -e '/SUBDIRS-$(CONFIG_X86) += firmware/d' -i tools/Makefile || die + fi + + # Don't bother with qemu, only needed for fully virtualised guests + if ! use qemu; then + sed -e "/^CONFIG_IOEMU := y$/d" -i config/*.mk || die + sed -e "s:install-tools\: tools/ioemu-dir:install-tools\: :g" -i Makefile || die + fi + + # Fix texi2html build error with new texi2html, qemu.doc.html + epatch "${FILESDIR}"/${PN}-4-docfix.patch \ + "${FILESDIR}"/${PN}-4-qemu-xen-doc.patch + + # Fix network broadcast on bridged networks + epatch "${FILESDIR}/${PN}-3.4.0-network-bridge-broadcast.patch" + + # Prevent the downloading of ipxe, seabios + epatch "${FILESDIR}"/${P/-tools/}-anti-download.patch + cp "${DISTDIR}"/ipxe.tar.gz tools/firmware/etherboot/ || die + mv ../seabios-dir-remote tools/firmware/ || die + pushd tools/firmware/ > /dev/null + ln -s seabios-dir-remote seabios-dir || die + popd > /dev/null + + # Fix bridge by idella4, bug #362575 + epatch "${FILESDIR}/${PN}-4.1.1-bridge.patch" + + # Don't build ipxe with pie on hardened, Bug #360805 + if gcc-specs-pie; then + epatch "${FILESDIR}"/ipxe-nopie.patch + fi + + # Prevent double stripping of files at install + epatch "${FILESDIR}"/${PN/-tools/}-4.2.0-nostrip.patch + + # fix jobserver in Makefile + epatch "${FILESDIR}"/${PN/-tools/}-4.3-jserver.patch + + # add missing header + epatch "${FILESDIR}"/xen-4-ulong.patch + + # Set dom0-min-mem to kb; Bug #472982 + epatch "${FILESDIR}"/${PN/-tools/}-4.2-configsxp.patch + + #Security patches, currently valid + epatch "${FILESDIR}"/xen-4-CVE-2012-6075-XSA-41.patch \ + "${FILESDIR}"/xen-4-CVE-2013-1922-XSA-48.patch + + # Bug 472438 + sed -e 's:^BASH_COMPLETION_DIR ?= $(CONFIG_DIR)/bash_completion.d:BASH_COMPLETION_DIR ?= $(SHARE_DIR)/bash-completion:' \ + -i Config.mk || die + + # Bug 477676 + epatch "${FILESDIR}"/${PN}-4.3-ar-cc.patch + + # Prevent file collision with qemu package Bug 478064 + if use qemu; then + epatch "${FILESDIR}"/qemu-bridge.patch + mv tools/qemu-xen/qemu-bridge-helper.c tools/qemu-xen/xen-bridge-helper.c || die + fi + + use flask || sed -e "/SUBDIRS-y += flask/d" -i tools/Makefile || die + use api || sed -e "/SUBDIRS-\$(LIBXENAPI_BINDINGS) += libxen/d" -i tools/Makefile || die + sed -e 's:$(MAKE) PYTHON=$(PYTHON) subdirs-$@:LC_ALL=C "$(MAKE)" PYTHON=$(PYTHON) subdirs-$@:' -i tools/firmware/Makefile || die + + epatch_user +} + +src_configure() { + local myconf="--prefix=/usr --disable-werror" + if use ocaml + then + myconf="${myconf} $(use_enable ocaml ocamltools)" + else + myconf="${myconf} --disable-ocamltools" + fi + + econf ${myconf} +} + +src_compile() { + export VARTEXFONTS="${T}/fonts" + local myopt + use debug && myopt="${myopt} debug=y" + + use custom-cflags || unset CFLAGS + if test-flag-CC -fno-strict-overflow; then + append-flags -fno-strict-overflow + fi + + unset LDFLAGS + unset CFLAGS + emake V=1 CC="$(tc-getCC)" LD="$(tc-getLD)" AR="$(tc-getAR)" RANLIB="$(tc-getRANLIB)" -C tools ${myopt} + + use doc && emake -C docs txt html + emake -C docs man-pages +} + +src_install() { + # Override auto-detection in the build system, bug #382573 + export INITD_DIR=/tmp/init.d + export CONFIG_LEAF_DIR=../tmp/default + + # Let the build system compile installed Python modules. + local PYTHONDONTWRITEBYTECODE + export PYTHONDONTWRITEBYTECODE + + emake DESTDIR="${ED}" DOCDIR="/usr/share/doc/${PF}" \ + XEN_PYTHON_NATIVE_INSTALL=y install-tools + + # Fix the remaining Python shebangs. + python_fix_shebang "${D}" + + # Remove RedHat-specific stuff + rm -rf "${D}"tmp || die + + # uncomment lines in xl.conf + sed -e 's:^#autoballoon=1:autoballoon=1:' \ + -e 's:^#lockfile="/var/lock/xl":lockfile="/var/lock/xl":' \ + -e 's:^#vifscript="vif-bridge":vifscript="vif-bridge":' \ + -i tools/examples/xl.conf || die + + # Reset bash completion dir; Bug 472438 + mv "${D}"bash-completion "${D}"usr/share/ || die + + if use doc; then + emake DESTDIR="${D}" DOCDIR="/usr/share/doc/${PF}" install-docs + + dohtml -r docs/ + docinto pdf + dodoc ${DOCS[@]} + [ -d "${D}"/usr/share/doc/xen ] && mv "${D}"/usr/share/doc/xen/* "${D}"/usr/share/doc/${PF}/html + fi + + rm -rf "${D}"/usr/share/doc/xen/ + doman docs/man?/* + + if use xend; then + newinitd "${FILESDIR}"/xend.initd-r2 xend || die "Couldn't install xen.initd" + fi + newconfd "${FILESDIR}"/xendomains.confd xendomains + newconfd "${FILESDIR}"/xenstored.confd xenstored + newconfd "${FILESDIR}"/xenconsoled.confd xenconsoled + newinitd "${FILESDIR}"/xendomains.initd-r2 xendomains + newinitd "${FILESDIR}"/xenstored.initd xenstored + newinitd "${FILESDIR}"/xenconsoled.initd xenconsoled + + if use screen; then + cat "${FILESDIR}"/xendomains-screen.confd >> "${D}"/etc/conf.d/xendomains || die + cp "${FILESDIR}"/xen-consoles.logrotate "${D}"/etc/xen/ || die + keepdir /var/log/xen-consoles + fi + + # Move files built with use qemu, Bug #477884 + if [[ "${ARCH}" == 'amd64' ]] && use qemu; then + mkdir -p "${D}"usr/$(get_libdir)/xen/bin || die + mv "${D}"usr/lib/xen/bin/* "${D}"usr/$(get_libdir)/xen/bin/ || die + fi + + # For -static-libs wrt Bug 384355 + if ! use static-libs; then + rm -f "${D}"usr/$(get_libdir)/*.a "${D}"usr/$(get_libdir)/ocaml/*/*.a + fi + + # xend expects these to exist + keepdir /var/run/xenstored /var/lib/xenstored /var/xen/dump /var/lib/xen /var/log/xen + + # for xendomains + keepdir /etc/xen/auto + + # Temp QA workaround + dodir "$(udev_get_udevdir)" + mv "${D}"/etc/udev/* "${D}/$(udev_get_udevdir)" + rm -rf "${D}"/etc/udev + + # Remove files failing QA AFTER emake installs them, avoiding seeking absent files + find "${D}" \( -name openbios-sparc32 -o -name openbios-sparc64 \ + -o -name openbios-ppc -o -name palcode-clipper \) -delete || die +} + +pkg_postinst() { + elog "Official Xen Guide and the offical wiki page:" + elog "http://www.gentoo.org/doc/en/xen-guide.xml" + elog "http://wiki.xen.org/wiki/Main_Page" + + if [[ "$(scanelf -s __guard -q "${PYTHON}")" ]] ; then + echo + ewarn "xend may not work when python is built with stack smashing protection (ssp)." + ewarn "If 'xm create' fails with '<ProtocolError for /RPC2: -1 >', see bug #141866" + ewarn "This problem may be resolved as of Xen 3.0.4, if not post in the bug." + fi + + # TODO: we need to have the current Python slot here. + if ! has_version "dev-lang/python[ncurses]"; then + echo + ewarn "NB: Your dev-lang/python is built without USE=ncurses." + ewarn "Please rebuild python with USE=ncurses to make use of xenmon.py." + fi + + if has_version "sys-apps/iproute2[minimal]"; then + echo + ewarn "Your sys-apps/iproute2 is built with USE=minimal. Networking" + ewarn "will not work until you rebuild iproute2 without USE=minimal." + fi + + if ! use hvm; then + echo + elog "HVM (VT-x and AMD-V) support has been disabled. If you need hvm" + elog "support enable the hvm use flag." + elog "An x86 or amd64 multilib system is required to build HVM support." + fi + + if use xend; then + elog"";elog "xend capability has been enabled and installed" + fi + + if use qemu; then + elog "The qemu-bridge-helper is renamed to the xen-bridge-helper in the in source" + elog "build of qemu. This allows for app-emulation/qemu to be emerged concurrently" + elog "with the qemu capable xen. It is up to the user to distinguish between and utilise" + elog "the qemu-bridge-helper and the xen-bridge-helper. File bugs of any issues that arise" + fi + + if grep -qsF XENSV= "${ROOT}/etc/conf.d/xend"; then + echo + elog "xensv is broken upstream (Gentoo bug #142011)." + elog "Please remove '${ROOT%/}/etc/conf.d/xend', as it is no longer needed." + fi +} |