parent
b994c7bc98
commit
76733c2341
@ -1,29 +1,17 @@
|
||||
-----BEGIN PGP SIGNED MESSAGE-----
|
||||
Hash: SHA512
|
||||
Hash: SHA256
|
||||
|
||||
AUX diamond.confd 57 SHA256 41941d406f48b5eca55d9146928eee185820fe27a3708d3fcaa71c3f78bf4adc SHA512 51b037902394b22f957a15ad1479ebdae5ac29384f2b7a5053ea8200bad05dc9c9060cc5c6c1a931e341e99b95327e55b06aaa9a828950533265f9c96a8dff55 WHIRLPOOL 80165d5cf5347dd3abeeec53f4df64d51f7f78445363574b2bc1b8f2fec9f1a0798c4986319dabe6d6a4b6b499c577fc8679b2fc65554107e48e3e13dac4e68b
|
||||
AUX diamond.initd 568 SHA256 99184d76c9967c1edfe12b555e7759ca8b6106d7890359e5c1e0a1c3e7016777 SHA512 e7edb84928460bcfe4ab26218b1e367c05fac08f7c0dd13ef1ff33fc627b3684b0a1d0768601968c20fd43edbea8df8917a6aede76902bd3e6e71d23f8980ca1 WHIRLPOOL 7cc69ae79165dd91943a50c1bd56ebd0e07bb71212a35488e71e91041c577991e60c9c65d145894e49914897ab6e10ee9684d418d089f73bd42ae284b45f5dfc
|
||||
DIST python-diamond-4.0.tar.gz 491433 SHA256 e84dd3c87b230d524306a07c3fc7c1db1d9796e3748025e8345a4fa18b162256 SHA512 c4a6e63bdc55f9e0ac2fbf3b644be91662635c08ecc864dfaaebf2fe62fb45609c099da63efd93ed498d2dc9e95bbcb64be09f715e21d59b30bce958a96dc56b WHIRLPOOL 2b1f6124001183058cf282d6e9c51bba0878f26308731266f2c31c549bb42db945c579b49b5a34666e0c05ccbda0163135662a11e59a482f8ef031c49c6005ba
|
||||
EBUILD diamond-4.0-r1.ebuild 1952 SHA256 afdf86a193de4b1a379002409da5198aba8a7e2d4a0311e2205a07682c215af8 SHA512 6e67a163b31620a48792b03f0a97007c879be18b2c3d17a6ec14e06e5450f92bea1c1b8c0d88022566a2b8dc263c5a23774f0d9439711678cc47aa6e88707586 WHIRLPOOL 8398714f1a54dc7bf0acf3259c10464a42898457a71d5af9136152486d6dcc18f176104c84ffb2e0566c737b4eba9f2364d080473a621c366209faf6debb901b
|
||||
EBUILD diamond-9999.ebuild 1665 SHA256 74e19510498667e735a52b57430bca7b9003b36d2b2ccc218eb05b6c2e402182 SHA512 ab08c38977bf6e7f4aa376786dab1fdfe6dc3d27e549750cc35199ae81e1dace5e2efd440f79ea7cfac70f27882cd7b39328d8fcbb2865d785f35e5ef0724612 WHIRLPOOL 9ee2cd305243774cdac27e8e5e44c9461d637d7c32b70f5ffa53dd704c6ec03cab7d9c9ca963b75b423a753096a4b06368e880111a9e767a523373f63f839897
|
||||
MISC ChangeLog 1340 SHA256 1dee31c7bb5d795c5139ec6b55c1b5e8c648a3a654040dac0175e063122a2a68 SHA512 768b3ac850613bee9a9ba3ba2e54971898b1f22bcba757bb3098ce2f25dab52efeff2afebd6b913be2d72d53309a2e03d302f630d657f8b70c2878921fd64c26 WHIRLPOOL fafdb9b30b92fa6298a6dfa18e62f5e8172a158306315f988025567cb2933997808654faa622068072aa0ab0783ab43b4607b5b93d98615a5edb9ea984db3565
|
||||
EBUILD diamond-4.0-r1.ebuild 2044 SHA256 c54e61949578683706bfabb87038bcee815ebcfe4d3bef89255e4016e6ea6e5d SHA512 848e0a528647583058fc2868993283ab70698f474dd8fe48ea580b2db1331c346484c6bd2f50fe5869d107664c9174dd42f18b90bfb26fb688cbe9190205397b WHIRLPOOL c56330f1f94a00f46ecbc67afaf60e2ad2ce116d511ec90d578d7bbb51f5a858c134546c3275d786541f425e2f5a666678716d1ae8b8945877ed6f7a296282b4
|
||||
EBUILD diamond-9999.ebuild 1757 SHA256 e4ad52eb7f711f02c106ed7c9fe160369e9437c6b7cc81b4fc02c7278363f833 SHA512 b789727fa044590577c37b92207f7a5ecd2ffb1a6a183711103d9149731639a5fa8103498cb9c069a39205e8d9c0119ccda0d1bda4188a9683bcf640385fc52f WHIRLPOOL 21e7c637fca0353ee52b5194a1939107d952c4c8d727559d02b5a92dc173066ac7cecd7f64bdbea1225ccb032553c3a268d55b1ca1ef89a83f2e6574b6d42454
|
||||
MISC ChangeLog 1476 SHA256 41fad7c1426d9467a766d7f33098f7ce12c5c42cace014308c3ac019a3e54732 SHA512 2b2b505f4c2d3d78391b7c4ed9d243e9b9ffb3f18179bf93684a9e1b25f7417c02d4cbb59989b2f80d01326a25e4900c8e80332f685ef09423e4deac323f7d53 WHIRLPOOL 97b28aac928f1dd43952273c9b9085aea27bf66cfe3546a2b5a8aa59b9974c384c3f4ac5d95d88f582571882bea315ed633b3917f603a3239fe23663c4e694d3
|
||||
MISC metadata.xml 805 SHA256 18d0feacc721859705a45aed6c5598502eb855c58190869d597d968d78d4b01f SHA512 338ff1721ce92287069d31c573b2f472ae40af4823dadab610a5e82c4c834b948066c8b2b8049d6215917246f7b79c9d8e43629a497a83f31872d4d938f5f983 WHIRLPOOL 2d91a9f082073792d6486f515a0ce6752f8573a6a3cd1cd138f8b129c6be52c0a15b641934305e2ce2eed91bf64734803a3337e90b24697f694a8beece0e7c5a
|
||||
-----BEGIN PGP SIGNATURE-----
|
||||
Version: GnuPG v2.0
|
||||
Version: GnuPG v2
|
||||
|
||||
iQJ8BAEBCgBmBQJVcYneXxSAAAAAAC4AKGlzc3Vlci1mcHJAbm90YXRpb25zLm9w
|
||||
ZW5wZ3AuZmlmdGhob3JzZW1hbi5uZXQ0QUU0N0I4NzFERUI0MTJFN0EyODE0NUFF
|
||||
OTQwMkE3OUIwMzUyOUEyAAoJEOlAKnmwNSmip7gP/RNxN0K1Gu0SlJBQTDAej5Vb
|
||||
wAT2XMgmuSXY7sed6XG0CL5NCtJORxJek/iG+GqsQNwmcMuCoKGaAhYc9deaACsm
|
||||
mJlk1U7ns5HhaaRFg5jVpyUs59BhdszcLCN8/+HNGQBl53HqW54KMn1G2nrqjE3D
|
||||
IvWvF9fyCRgeqRaITqEWqP7EXzSxXUGu3OxtpsBnAoyu4y6B5PLcY5GWgMjAKpZM
|
||||
XnxzHpZyybL9gFHa84xhSW8Z/owQvNHbED4WxZ7duUQqEuSdCEPkGOcFF9TyLqqW
|
||||
7oA84+VM3a2740K1Wcc1yS97EYUeCn733E09djxrn0p99nF/LBs9bdxta7heK3dO
|
||||
XPimuN/VzQNrQhTQSXWi6au6YUdjN8Z1FL8IZ4YIA5I7XxEsKqyDh5nBnN+/mcaL
|
||||
8cO49VtfCEuL0ErOCIslcQbL+fFeqvLz2+tObKTzBMqj6A87+uFFwaBsgamyybf1
|
||||
n2zRg9z23UM9M24jNTcaK2MYaDXYwnorPtehucXFProiCBLPB4M7zuWAVy2ihrRk
|
||||
3BXGzkamLQZrqOwyhAjkRUdc1v5i/t3zGg/eX1SvB1wQJUE5JTxPm+GEKzLZ41Yu
|
||||
ORcICHg0ZlLEjtWAg8EYyBwxjzl5+FCSnpKRL7Kfc+L41891b9pCeVYidFHFbiqr
|
||||
h6WP4ep+6w2E1eD1aXBg
|
||||
=t108
|
||||
iEYEAREIAAYFAlW5JwoACgkQX3X2B8XHTolBTQCdG6Q5wvMa97j8dsuw4s+4J1u6
|
||||
uogAnAtQWjteh/ASw7LatNh+IGOW01fg
|
||||
=/J25
|
||||
-----END PGP SIGNATURE-----
|
||||
|
@ -0,0 +1,75 @@
|
||||
# Copyright 1999-2015 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Header: /var/cvsroot/gentoo-x86/app-admin/puppet-agent/puppet-agent-1.2.2-r2.ebuild,v 1.2 2015/07/29 22:15:01 prometheanfire Exp $
|
||||
|
||||
EAPI=5
|
||||
inherit eutils systemd unpacker
|
||||
|
||||
DESCRIPTION="general puppet client utils along with mcollective hiera and facter"
|
||||
HOMEPAGE="https://puppetlabs.com/"
|
||||
SRC_BASE="http://apt.puppetlabs.com/pool/wheezy/PC1/${PN:0:1}/${PN}/${PN}_${PV}-1wheezy"
|
||||
SRC_URI="
|
||||
amd64? ( ${SRC_BASE}_amd64.deb )
|
||||
x86? ( ${SRC_BASE}_i386.deb )
|
||||
"
|
||||
|
||||
LICENSE="Apache-2.0"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64 ~x86"
|
||||
IUSE="puppetdb selinux"
|
||||
RESTRICT="strip"
|
||||
|
||||
CDEPEND="!app-admin/puppet
|
||||
!app-admin/mcollective
|
||||
!dev-ruby/hiera
|
||||
!dev-ruby/facter
|
||||
!app-emulation/virt-what"
|
||||
|
||||
DEPEND="
|
||||
${CDEPEND}"
|
||||
RDEPEND="${CDEPEND}
|
||||
sys-apps/dmidecode
|
||||
selinux? (
|
||||
sys-libs/libselinux[ruby]
|
||||
sec-policy/selinux-puppet
|
||||
)
|
||||
puppetdb? ( >=dev-ruby/puppetdb-termini-3.0.1-r2 )"
|
||||
|
||||
S=${WORKDIR}
|
||||
|
||||
src_install() {
|
||||
# conf.d
|
||||
doconfd etc/default/puppet
|
||||
doconfd etc/default/mcollective
|
||||
# logrotate.d
|
||||
insinto /etc/logrotate.d
|
||||
doins etc/logrotate.d/mcollective
|
||||
# puppet itself
|
||||
insinto /etc/puppetlabs
|
||||
doins -r etc/puppetlabs/*
|
||||
# logdir for systemd
|
||||
dodir var/log/puppetlabs/puppet/
|
||||
fperms 0750 var/log/puppetlabs/puppet/
|
||||
# the rest
|
||||
insinto /opt
|
||||
doins -r opt/*
|
||||
fperms 0750 /opt/puppetlabs/puppet/cache
|
||||
# init
|
||||
newinitd "${FILESDIR}/puppet.initd" puppet
|
||||
newinitd "${FILESDIR}/mcollective.initd" mcollective
|
||||
systemd_dounit "${FILESDIR}/puppet.service"
|
||||
systemd_dounit "${FILESDIR}/mcollective.service"
|
||||
systemd_newtmpfilesd "${FILESDIR}/puppet-agent.conf.tmpfilesd" puppet-agent.conf
|
||||
# symlinks
|
||||
chmod 0755 -R "${D}/opt/puppetlabs/puppet/bin/"
|
||||
chmod 0755 "${D}//opt/puppetlabs/puppet/lib/virt-what/virt-what-cpuid-helper"
|
||||
dosym /opt/puppetlabs/bin/facter /usr/bin/facter
|
||||
dosym /opt/puppetlabs/bin/hiera /usr/bin/hiera
|
||||
dosym /opt/puppetlabs/bin/mco /usr/bin/mco
|
||||
dosym /opt/puppetlabs/bin/puppet /usr/bin/puppet
|
||||
dosym /opt/puppetlabs/puppet/bin/mcollectived /usr/sbin/mcollectived
|
||||
dosym /opt/puppetlabs/puppet/bin/virt-what /usr/bin/virt-what
|
||||
dosym /opt/puppetlabs/puppet/bin/augparse /usr/bin/augparse
|
||||
dosym /opt/puppetlabs/puppet/bin/augtool /usr/bin/augtool
|
||||
dosym /opt/puppetlabs/puppet/bin/extlookup2hiera /usr/bin/extlookup2hiera
|
||||
}
|
@ -0,0 +1,132 @@
|
||||
# Copyright 1999-2015 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Header: /var/cvsroot/gentoo-x86/app-emulation/crossover-bin/crossover-bin-14.1.4-r1.ebuild,v 1.1 2015/07/29 22:25:04 ryao Exp $
|
||||
|
||||
EAPI=5
|
||||
PYTHON_COMPAT=( python2_7 )
|
||||
PYTHON_REQ_USE="threads"
|
||||
|
||||
inherit python-single-r1 unpacker
|
||||
|
||||
DESCRIPTION="Commercial version of app-emulation/wine with paid support."
|
||||
HOMEPAGE="http://www.codeweavers.com/products/crossover/"
|
||||
SRC_URI="install-crossover-${PV}.bin"
|
||||
|
||||
LICENSE="CROSSOVER-2"
|
||||
SLOT="0"
|
||||
KEYWORDS="-* ~amd64 ~x86"
|
||||
IUSE="+capi +cups doc +gphoto2 +gsm +jpeg +lcms +ldap +mp3 +nls +openal +opengl +png +scanner +ssl +v4l"
|
||||
RESTRICT="fetch test"
|
||||
QA_FLAGS_IGNORED="opt/cxoffice/.*"
|
||||
QA_PRESTRIPPED="opt/cxoffice/lib/.*
|
||||
opt/cxoffice/bin/cxburner
|
||||
opt/cxoffice/bin/cxntlm_auth
|
||||
opt/cxoffice/bin/wineserver
|
||||
opt/cxoffice/bin/unrar
|
||||
opt/cxoffice/bin/wine-preloader
|
||||
opt/cxoffice/bin/cxdiag
|
||||
opt/cxoffice/bin/cxgettext
|
||||
opt/cxoffice/bin/wineloader
|
||||
"
|
||||
S="${WORKDIR}"
|
||||
|
||||
DEPEND="dev-lang/perl
|
||||
app-arch/unzip
|
||||
${PYTHON_DEPS}"
|
||||
|
||||
RDEPEND="${DEPEND}
|
||||
!prefix? ( sys-libs/glibc )
|
||||
>=dev-python/pygtk-2.10[${PYTHON_USEDEP}]
|
||||
dev-python/dbus-python[${PYTHON_USEDEP}]
|
||||
dev-util/desktop-file-utils
|
||||
!app-emulation/crossover-office-pro-bin
|
||||
!app-emulation/crossover-office-bin
|
||||
capi? ( net-dialup/capi4k-utils )
|
||||
cups? ( net-print/cups[abi_x86_32(-)] )
|
||||
gsm? ( media-sound/gsm[abi_x86_32(-)] )
|
||||
jpeg? ( virtual/jpeg[abi_x86_32(-)] )
|
||||
lcms? ( media-libs/lcms:2 )
|
||||
ldap? ( net-nds/openldap[abi_x86_32(-)] )
|
||||
gphoto2? ( media-libs/libgphoto2[abi_x86_32(-)] )
|
||||
mp3? ( >=media-sound/mpg123-1.5.0[abi_x86_32(-)] )
|
||||
nls? ( sys-devel/gettext[abi_x86_32(-)] )
|
||||
openal? ( media-libs/openal[abi_x86_32(-)] )
|
||||
opengl? (
|
||||
virtual/glu[abi_x86_32(-)]
|
||||
virtual/opengl[abi_x86_32(-)]
|
||||
)
|
||||
png? ( media-libs/libpng:0[abi_x86_32(-)] )
|
||||
scanner? ( media-gfx/sane-backends[abi_x86_32(-)] )
|
||||
ssl? ( dev-libs/openssl:0[abi_x86_32(-)] )
|
||||
v4l? ( media-libs/libv4l[abi_x86_32(-)] )
|
||||
media-libs/alsa-lib[abi_x86_32(-)]
|
||||
>=media-libs/freetype-2.0.0[abi_x86_32(-)]
|
||||
media-libs/mesa[abi_x86_32(-)]
|
||||
sys-apps/util-linux[abi_x86_32(-)]
|
||||
sys-libs/zlib[abi_x86_32(-)]
|
||||
x11-libs/libICE[abi_x86_32(-)]
|
||||
x11-libs/libSM[abi_x86_32(-)]
|
||||
x11-libs/libX11[abi_x86_32(-)]
|
||||
x11-libs/libXau[abi_x86_32(-)]
|
||||
x11-libs/libXdmcp[abi_x86_32(-)]
|
||||
x11-libs/libXext[abi_x86_32(-)]
|
||||
x11-libs/libXi[abi_x86_32(-)]
|
||||
x11-libs/libXrandr[abi_x86_32(-)]
|
||||
x11-libs/libXxf86vm[abi_x86_32(-)]
|
||||
x11-libs/libxcb[abi_x86_32(-)]"
|
||||
|
||||
pkg_nofetch() {
|
||||
einfo "Please visit ${HOMEPAGE}"
|
||||
einfo "and place ${A} in ${DISTDIR}"
|
||||
}
|
||||
|
||||
src_unpack() {
|
||||
# self unpacking zip archive; unzip warns about the exe stuff
|
||||
unpack_zip ${A}
|
||||
}
|
||||
|
||||
src_prepare() {
|
||||
python_fix_shebang .
|
||||
|
||||
sed -i -e "s:\$link=\"\$xdgdir:\$link=\"${ED}\/\$xdgdir:" "${S}/lib/perl/CXMenu.pm"
|
||||
sed -i \
|
||||
-e "s:\"\(.*\)/applications:\"${ED}/\1/applications:" \
|
||||
-e "s:\"\(.*\)/desktop-directories:\"${ED}/\1/desktop-directories:" \
|
||||
"${S}/lib/perl/CXMenuXDG.pm"
|
||||
|
||||
# Remove unnecessary files
|
||||
rm -r license.txt guis/ || die "Could not remove files"
|
||||
use doc || rm -r doc/ || die "Could not remove files"
|
||||
}
|
||||
|
||||
src_install() {
|
||||
# Install crossover symlink, bug #476314
|
||||
dosym /opt/cxoffice/bin/crossover /opt/bin/crossover
|
||||
|
||||
# Install documentation
|
||||
dodoc README changelog.txt
|
||||
rm README changelog.txt || die "Could not remove README and changelog.txt"
|
||||
|
||||
# Install files
|
||||
dodir /opt/cxoffice
|
||||
cp -r ./* "${ED}opt/cxoffice" \
|
||||
|| die "Could not install into ${ED}opt/cxoffice"
|
||||
|
||||
# Install configuration file
|
||||
insinto /opt/cxoffice/etc
|
||||
doins share/crossover/data/cxoffice.conf
|
||||
|
||||
# Install menus
|
||||
# XXX: locate_gui.sh automatically detects *-application-merged directories
|
||||
# This means what we install will vary depending on the contents of
|
||||
# /etc/xdg, which is a QA violation. It is not clear how to resolve this.
|
||||
XDG_DATA_DIRS="/usr/share" XDG_CONFIG_HOME="/etc/xdg" \
|
||||
"${ED}opt/cxoffice/bin/cxmenu" --destdir="${ED}" --crossover --install \
|
||||
|| die "Could not install menus"
|
||||
|
||||
rm "${ED}usr/share/applications/"*"Uninstall CrossOver Linux.desktop"
|
||||
sed -i -e "s:${ED}:/:" "${ED}usr/share/applications/"*.desktop
|
||||
sed -i -e "s:${ED}/::" \
|
||||
"${ED}/opt/cxoffice/lib/perl/CXMenu.pm" \
|
||||
"${ED}/opt/cxoffice/lib/perl/CXMenuXDG.pm"
|
||||
}
|
@ -1,6 +1,6 @@
|
||||
# Copyright 1999-2015 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Header: /var/cvsroot/gentoo-x86/app-emulation/libvirt/libvirt-1.2.17-r2.ebuild,v 1.1 2015/07/28 16:54:00 tamiko Exp $
|
||||
# $Header: /var/cvsroot/gentoo-x86/app-emulation/libvirt/libvirt-1.2.17-r3.ebuild,v 1.1 2015/07/29 20:53:38 tamiko Exp $
|
||||
|
||||
EAPI=5
|
||||
|
@ -0,0 +1,370 @@
|
||||
# Copyright 1999-2015 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.2.5-r9.ebuild,v 1.1 2015/07/30 01:27:42 dlan Exp $
|
||||
|
||||
EAPI=5
|
||||
|
||||
PYTHON_COMPAT=( python2_7 )
|
||||
PYTHON_REQ_USE='xml,threads'
|
||||
|
||||
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=9
|
||||
SECURITY_VER=5
|
||||
# xen-tools's gentoo patches tarball
|
||||
GENTOO_VER=1
|
||||
# xen-tools's gentoo patches version which apply to this specific ebuild
|
||||
GENTOO_GPV=0
|
||||
SEABIOS_VER=1.6.3.2
|
||||
|
||||
[[ -n ${UPSTREAM_VER} ]] && \
|
||||
UPSTREAM_PATCHSET_URI="http://dev.gentoo.org/~dlan/distfiles/${P/-tools/}-upstream-patches-${UPSTREAM_VER}.tar.xz"
|
||||
[[ -n ${SECURITY_VER} ]] && \
|
||||
SECURITY_PATCHSET_URI="http://dev.gentoo.org/~dlan/distfiles/${PN/-tools}-security-patches-${SECURITY_VER}.tar.xz"
|
||||
[[ -n ${GENTOO_VER} ]] && \
|
||||
GENTOO_PATCHSET_URI="http://dev.gentoo.org/~dlan/distfiles/${PN/-tools/}-gentoo-patches-${GENTOO_VER}.tar.xz"
|
||||
|
||||
SRC_URI="http://bits.xensource.com/oss-xen/release/${PV}/xen-${PV}.tar.gz
|
||||
http://code.coreboot.org/p/seabios/downloads/get/seabios-${SEABIOS_VER}.tar.gz
|
||||
http://dev.gentoo.org/~dlan/distfiles/seabios-${SEABIOS_VER}.tar.gz
|
||||
${UPSTREAM_PATCHSET_URI}
|
||||
${SECURITY_PATCHSET_URI}
|
||||
${GENTOO_PATCHSET_URI}"
|
||||
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"
|
||||
IUSE="api custom-cflags debug doc flask hvm qemu ocaml pygrub screen static-libs system-seabios"
|
||||
|
||||
REQUIRED_USE="hvm? ( qemu )
|
||||
${PYTHON_REQUIRED_USE}"
|
||||
|
||||
DEPEND="dev-libs/lzo:2
|
||||
dev-libs/glib:2
|
||||
dev-libs/yajl
|
||||
dev-libs/libgcrypt:0
|
||||
dev-python/lxml[${PYTHON_USEDEP}]
|
||||
dev-python/pypam[${PYTHON_USEDEP}]
|
||||
sys-libs/zlib
|
||||
sys-power/iasl
|
||||
system-seabios? ( sys-firmware/seabios )
|
||||
sys-firmware/ipxe
|
||||
dev-ml/findlib
|
||||
hvm? ( media-libs/libsdl )
|
||||
${PYTHON_DEPS}
|
||||
api? ( dev-libs/libxml2
|
||||
net-misc/curl )
|
||||
${PYTHON_DEPS}
|
||||
pygrub? ( ${PYTHON_DEPS//${PYTHON_REQ_USE}/ncurses} )
|
||||
sys-devel/bin86
|
||||
sys-devel/dev86
|
||||
dev-lang/perl
|
||||
app-misc/pax-utils
|
||||
doc? (
|
||||
app-doc/doxygen
|
||||
dev-tex/latex2html[png,gif]
|
||||
media-gfx/transfig
|
||||
media-gfx/graphviz
|
||||
dev-tex/xcolor
|
||||
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 )"
|
||||
RDEPEND="sys-apps/iproute2
|
||||
net-misc/bridge-utils
|
||||
ocaml? ( >=dev-lang/ocaml-4 )
|
||||
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"
|
||||
|
||||
#bug 522642, disable compile tools/tests
|
||||
export "CONFIG_TESTS=n"
|
||||
|
||||
if has_version dev-libs/libgcrypt:0; then
|
||||
export "CONFIG_GCRYPT=y"
|
||||
fi
|
||||
|
||||
if use qemu; then
|
||||
export "CONFIG_IOEMU=y"
|
||||
else
|
||||
export "CONFIG_IOEMU=n"
|
||||
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
|
||||
|
||||
use api && export "LIBXENAPI_BINDINGS=y"
|
||||
use flask && export "FLASK_ENABLE=y"
|
||||
}
|
||||
|
||||
src_prepare() {
|
||||
# Upstream's patchset
|
||||
if [[ -n ${UPSTREAM_VER} ]]; then
|
||||
einfo "Try to apply Xen Upstream patcheset"
|
||||
EPATCH_SUFFIX="patch" \
|
||||
EPATCH_FORCE="yes" \
|
||||
EPATCH_OPTS="-p1" \
|
||||
epatch "${WORKDIR}"/patches-upstream
|
||||
fi
|
||||
|
||||
# Security patchset
|
||||
if [[ -n ${SECURITY_VER} ]]; then
|
||||
einfo "Try to apply Xen Security patcheset"
|
||||
EPATCH_SUFFIX="patch" \
|
||||
EPATCH_FORCE="yes" \
|
||||
EPATCH_OPTS="-p1" \
|
||||
epatch "${WORKDIR}/patches-security/${PV}"
|
||||
fi
|
||||
|
||||
# Gentoo's patchset
|
||||
if [[ -n ${GENTOO_VER} && -n ${GENTOO_GPV} ]]; then
|
||||
einfo "Try to apply Gentoo specific patcheset"
|
||||
source "${FILESDIR}"/gentoo-patches.conf
|
||||
_gpv=_gpv_${PN/-/_}_${PV//./}_${GENTOO_GPV}
|
||||
for i in ${!_gpv}; do
|
||||
EPATCH_SUFFIX="patch" \
|
||||
EPATCH_FORCE="yes" \
|
||||
epatch "${WORKDIR}"/patches-gentoo/$i
|
||||
done
|
||||
fi
|
||||
|
||||
use system-seabios && epatch "${WORKDIR}"/patches-gentoo/${PN}-4-unbundle-seabios.patch
|
||||
|
||||
if gcc-specs-pie; then
|
||||
epatch "${WORKDIR}"/patches-gentoo/ipxe-nopie.patch
|
||||
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-$(PYTHON_TOOLS) += pygrub$/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
|
||||
# Bug 351648
|
||||
elif ! use x86 && ! has x86 $(get_all_abis); then
|
||||
mkdir -p "${WORKDIR}"/extra-headers/gnu || die
|
||||
touch "${WORKDIR}"/extra-headers/gnu/stubs-32.h || die
|
||||
export CPATH="${WORKDIR}"/extra-headers
|
||||
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
|
||||
|
||||
mv ../seabios-${SEABIOS_VER} tools/firmware/seabios-dir-remote || die
|
||||
pushd tools/firmware/ > /dev/null
|
||||
ln -s seabios-dir-remote seabios-dir || die
|
||||
popd > /dev/null
|
||||
|
||||
# Reset bash completion dir; Bug 472438
|
||||
sed -e "s:^BASH_COMPLETION_DIR ?= \$(CONFIG_DIR)/bash_completion.d:BASH_COMPLETION_DIR ?= $(get_bashcompdir):" \
|
||||
-i Config.mk || die
|
||||
sed -i -e "/bash-completion/s/xl\.sh/xl/g" tools/libxl/Makefile || die
|
||||
|
||||
# Bug 445986
|
||||
sed -e 's:$(MAKE) PYTHON=$(PYTHON) subdirs-$@:LC_ALL=C "$(MAKE)" PYTHON=$(PYTHON) subdirs-$@:' -i tools/firmware/Makefile || die
|
||||
|
||||
# fix QA warning, create /var/run/, /var/lock dynamically
|
||||
sed -i -e "/\$(INSTALL_DIR) \$(DESTDIR)\$(XEN_RUN_DIR)/d" \
|
||||
tools/libxl/Makefile || die
|
||||
|
||||
sed -i -e "/\/var\/run\//d" \
|
||||
tools/xenstore/Makefile \
|
||||
tools/pygrub/Makefile || die
|
||||
|
||||
sed -i -e "/\/var\/lock\/subsys/d" \
|
||||
tools/Makefile || die
|
||||
|
||||
# xencommons, Bug #492332, sed lighter weight than patching
|
||||
sed -e 's:\$QEMU_XEN -xen-domid:test -e "\$QEMU_XEN" \&\& &:' \
|
||||
-i tools/hotplug/Linux/init.d/xencommons || die
|
||||
|
||||
epatch_user
|
||||
}
|
||||
|
||||
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}" install-tools \
|
||||
XEN_PYTHON_NATIVE_INSTALL=y install-tools
|
||||
# Fix the remaining Python shebangs.
|
||||
python_fix_shebang "${ED}"
|
||||
|
||||
# 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
|
||||
|
||||
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?/*
|
||||
|
||||
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
|
||||
newinitd "${FILESDIR}"/xencommons.initd xencommons
|
||||
newconfd "${FILESDIR}"/xencommons.confd xencommons
|
||||
|
||||
if use screen; then
|
||||
cat "${FILESDIR}"/xendomains-screen.confd >> "${ED}"/etc/conf.d/xendomains || die
|
||||
cp "${FILESDIR}"/xen-consoles.logrotate "${ED}"/etc/xen/ || die
|
||||
keepdir /var/log/xen-consoles
|
||||
fi
|
||||
|
||||
if [[ "${ARCH}" == 'amd64' ]] && use qemu; then
|
||||
mkdir -p "${D}"usr/$(get_libdir)/xen/bin || die
|
||||
mv "${D}"usr/lib/xen/bin/qemu* "${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/lib/xenstored /var/xen/dump /var/lib/xen /var/log/xen
|
||||
|
||||
# for xendomains
|
||||
keepdir /etc/xen/auto
|
||||
|
||||
# Temp QA workaround
|
||||
dodir "$(get_udevdir)"
|
||||
mv "${D}"/etc/udev/* "${D}/$(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-gu"${D}"usr/ide.xml"
|
||||
elog "http://wiki.xen.org/wiki/Main_Page"
|
||||
elog ""
|
||||
elog "Recommended to utilise the xencommons script to config sytem at boot."
|
||||
elog "Add by use of rc-update on completion of the install"
|
||||
|
||||
# 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 system is required to build HVM support."
|
||||
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
|
||||
}
|
@ -0,0 +1,437 @@
|
||||
# Copyright 1999-2015 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.5.1-r2.ebuild,v 1.1 2015/07/30 01:27:42 dlan Exp $
|
||||
|
||||
EAPI=5
|
||||
|
||||
MY_PV=${PV/_/-}
|
||||
|
||||
PYTHON_COMPAT=( python2_7 )
|
||||
PYTHON_REQ_USE='xml,threads'
|
||||
|
||||
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 ~arm ~arm64 -x86"
|
||||
UPSTREAM_VER=0
|
||||
SECURITY_VER=5
|
||||
# xen-tools's gentoo patches tarball
|
||||
GENTOO_VER=4
|
||||
# xen-tools's gentoo patches version which apply to this specific ebuild
|
||||
GENTOO_GPV=0
|
||||
# xen-tools ovmf's patches
|
||||
OVMF_VER=1
|
||||
|
||||
SEABIOS_VER=1.7.5
|
||||
OVMF_PV=20150629
|
||||
|
||||
[[ -n ${UPSTREAM_VER} ]] && \
|
||||
UPSTREAM_PATCHSET_URI="http://dev.gentoo.org/~dlan/distfiles/${P/-tools/}-upstream-patches-${UPSTREAM_VER}.tar.xz"
|
||||
[[ -n ${SECURITY_VER} ]] && \
|
||||
SECURITY_PATCHSET_URI="http://dev.gentoo.org/~dlan/distfiles/${PN/-tools}-security-patches-${SECURITY_VER}.tar.xz"
|
||||
[[ -n ${GENTOO_VER} ]] && \
|
||||
GENTOO_PATCHSET_URI="http://dev.gentoo.org/~dlan/distfiles/${PN/-tools}-gentoo-patches-${GENTOO_VER}.tar.xz"
|
||||
[[ -n ${OVMF_VER} ]] && \
|
||||
OVMF_PATCHSET_URI="http://dev.gentoo.org/~dlan/distfiles/${PN/-tools}-ovmf-patches-${OVMF_VER}.tar.xz"
|
||||
|
||||
SRC_URI="http://bits.xensource.com/oss-xen/release/${MY_PV}/xen-${MY_PV}.tar.gz
|
||||
http://code.coreboot.org/p/seabios/downloads/get/seabios-${SEABIOS_VER}.tar.gz
|
||||
http://dev.gentoo.org/~dlan/distfiles/seabios-${SEABIOS_VER}.tar.gz
|
||||
ovmf? ( http://dev.gentoo.org/~dlan/distfiles/ovmf-${OVMF_PV}.tar.bz2
|
||||
${OVMF_PATCHSET_URI} )
|
||||
${UPSTREAM_PATCHSET_URI}
|
||||
${SECURITY_PATCHSET_URI}
|
||||
${GENTOO_PATCHSET_URI}"
|
||||
S="${WORKDIR}/xen-${MY_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 maintainer of ocaml to (get off his hands and) make
|
||||
# >=dev-lang/ocaml-4 stable
|
||||
# Masked in profiles/eapi-5-files instead
|
||||
IUSE="api custom-cflags debug doc flask hvm qemu ocaml ovmf +pam python pygrub screen static-libs system-qemu system-seabios"
|
||||
|
||||
REQUIRED_USE="hvm? ( || ( qemu system-qemu ) )
|
||||
${PYTHON_REQUIRED_USE}
|
||||
pygrub? ( python )
|
||||
ovmf? ( hvm )
|
||||
qemu? ( !system-qemu )"
|
||||
|
||||
COMMON_DEPEND="
|
||||
dev-libs/lzo:2
|
||||
dev-libs/glib:2
|
||||
dev-libs/yajl
|
||||
dev-libs/libaio
|
||||
dev-libs/libgcrypt:0
|
||||
sys-libs/zlib
|
||||
"
|
||||
|
||||
DEPEND="${COMMON_DEPEND}
|
||||
dev-python/lxml[${PYTHON_USEDEP}]
|
||||
pam? ( dev-python/pypam[${PYTHON_USEDEP}] )
|
||||
hvm? ( media-libs/libsdl )
|
||||
${PYTHON_DEPS}
|
||||
api? ( dev-libs/libxml2
|
||||
net-misc/curl )
|
||||
pygrub? ( ${PYTHON_DEPS//${PYTHON_REQ_USE}/ncurses} )
|
||||
ovmf? ( ${PYTHON_DEPS//${PYTHON_REQ_USE}/sqlite} )
|
||||
!amd64? ( >=sys-apps/dtc-1.4.0 )
|
||||
amd64? ( sys-devel/bin86
|
||||
system-seabios? ( sys-firmware/seabios )
|
||||
sys-firmware/ipxe
|
||||
sys-devel/dev86
|
||||
sys-power/iasl )
|
||||
dev-lang/perl
|
||||
app-misc/pax-utils
|
||||
dev-python/markdown[${PYTHON_USEDEP}]
|
||||
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 )
|
||||
system-qemu? ( app-emulation/qemu[xen] )
|
||||
ocaml? ( dev-ml/findlib
|
||||
>=dev-lang/ocaml-4 )"
|
||||
|
||||
RDEPEND="${COMMON_DEPEND}
|
||||
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
|
||||
usr/share/qemu-xen/qemu/s390-ccw.img"
|
||||
|
||||
RESTRICT="test"
|
||||
|
||||
pkg_setup() {
|
||||
python-single-r1_pkg_setup
|
||||
export "CONFIG_LOMOUNT=y"
|
||||
|
||||
#bug 522642, disable compile tools/tests
|
||||
export "CONFIG_TESTS=n"
|
||||
|
||||
if has_version dev-libs/libgcrypt:0; then
|
||||
export "CONFIG_GCRYPT=y"
|
||||
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"
|
||||
elif use arm; then
|
||||
export XEN_TARGET_ARCH="arm32"
|
||||
elif use arm64; then
|
||||
export XEN_TARGET_ARCH="arm64"
|
||||
else
|
||||
die "Unsupported architecture!"
|
||||
fi
|
||||
fi
|
||||
}
|
||||
|
||||
src_prepare() {
|
||||
# Upstream's patchset
|
||||
if [[ -n ${UPSTREAM_VER} ]]; then
|
||||
einfo "Try to apply Xen Upstream patcheset"
|
||||
EPATCH_SUFFIX="patch" \
|
||||
EPATCH_FORCE="yes" \
|
||||
EPATCH_OPTS="-p1" \
|
||||
epatch "${WORKDIR}"/patches-upstream
|
||||
fi
|
||||
|
||||
# Security patchset
|
||||
if [[ -n ${SECURITY_VER} ]]; then
|
||||
einfo "Try to apply Xen Security patcheset"
|
||||
EPATCH_SUFFIX="patch" \
|
||||
EPATCH_FORCE="yes" \
|
||||
EPATCH_OPTS="-p1" \
|
||||
epatch "${WORKDIR}/patches-security/${PV}"
|
||||
fi
|
||||
|
||||
# move before Gentoo patch, one patch should apply to seabios, to fix gcc-4.5.x build err
|
||||
mv ../seabios-${SEABIOS_VER} tools/firmware/seabios-dir-remote || die
|
||||
pushd tools/firmware/ > /dev/null
|
||||
ln -s seabios-dir-remote seabios-dir || die
|
||||
popd > /dev/null
|
||||
|
||||
# Gentoo's patchset
|
||||
if [[ -n ${GENTOO_VER} && -n ${GENTOO_GPV} ]]; then
|
||||
einfo "Try to apply Gentoo specific patcheset"
|
||||
source "${FILESDIR}"/gentoo-patches.conf
|
||||
_gpv=_gpv_${PN/-/_}_${PV//./}_${GENTOO_GPV}
|
||||
for i in ${!_gpv}; do
|
||||
EPATCH_SUFFIX="patch" \
|
||||
EPATCH_FORCE="yes" \
|
||||
epatch "${WORKDIR}"/patches-gentoo/$i
|
||||
done
|
||||
fi
|
||||
|
||||
# Ovmf's patchset
|
||||
if [[ -n ${OVMF_VER} ]] && use ovmf; then
|
||||
einfo "Try to apply Ovmf patcheset"
|
||||
pushd "${WORKDIR}"/ovmf-*/ > /dev/null
|
||||
EPATCH_SUFFIX="patch" \
|
||||
EPATCH_FORCE="yes" \
|
||||
EPATCH_OPTS="-p1" \
|
||||
epatch "${WORKDIR}"/patches-ovmf
|
||||
popd > /dev/null
|
||||
mv ../ovmf-${OVMF_PV} tools/firmware/ovmf-dir-remote || die
|
||||
fi
|
||||
|
||||
mv tools/qemu-xen/qemu-bridge-helper.c tools/qemu-xen/xen-bridge-helper.c || die
|
||||
|
||||
# Fix texi2html build error with new texi2html, qemu.doc.html
|
||||
sed -i -e "/texi2html -monolithic/s/-number//" tools/qemu-xen-traditional/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
|
||||
|
||||
# Drop .config, fixes to gcc-4.6
|
||||
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 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
|
||||
|
||||
if ! use hvm; then
|
||||
sed -e '/SUBDIRS-$(CONFIG_X86) += firmware/d' -i tools/Makefile || die
|
||||
# Bug 351648
|
||||
elif ! use x86 && ! has x86 $(get_all_abis); then
|
||||
mkdir -p "${WORKDIR}"/extra-headers/gnu || die
|
||||
touch "${WORKDIR}"/extra-headers/gnu/stubs-32.h || die
|
||||
export CPATH="${WORKDIR}"/extra-headers
|
||||
fi
|
||||
|
||||
# Don't bother with qemu, only needed for fully virtualised guests
|
||||
if ! use qemu; then
|
||||
sed -e "s:install-tools\: tools/qemu-xen-traditional-dir:install-tools\: :g" -i Makefile || die
|
||||
fi
|
||||
|
||||
# Reset bash completion dir; Bug 472438
|
||||
sed -e "s:^BASH_COMPLETION_DIR ?= \$(CONFIG_DIR)/bash_completion.d:BASH_COMPLETION_DIR ?= $(get_bashcompdir):" \
|
||||
-i Config.mk || die
|
||||
sed -i -e "/bash-completion/s/xl\.sh/xl/g" tools/libxl/Makefile || die
|
||||
|
||||
# xencommons, Bug #492332, sed lighter weight than patching
|
||||
sed -e 's:\$QEMU_XEN -xen-domid:test -e "\$QEMU_XEN" \&\& &:' \
|
||||
-i tools/hotplug/Linux/init.d/xencommons.in || die
|
||||
|
||||
# respect multilib, usr/lib/libcacard.so.0.0.0
|
||||
sed -e "/^libdir=/s/\/lib/\/$(get_libdir)/" \
|
||||
-i tools/qemu-xen/configure || die
|
||||
|
||||
#bug 518136, don't build 32bit exactuable for nomultilib profile
|
||||
if [[ "${ARCH}" == 'amd64' ]] && ! has_multilib_profile; then
|
||||
sed -i -e "/x86_emulator/d" tools/tests/Makefile || die
|
||||
fi
|
||||
|
||||
# use /var instead of /var/lib, consistat with previous ebuild
|
||||
sed -i -e "/XEN_LOCK_DIR=/s/\$localstatedir/\/var/g" \
|
||||
m4/paths.m4 configure tools/configure || die
|
||||
# use /run instead of /var/run
|
||||
sed -i -e "/XEN_RUN_DIR=/s/\$localstatedir//g" \
|
||||
m4/paths.m4 configure tools/configure || die
|
||||
|
||||
# uncomment lines in xl.conf
|
||||
sed -e 's:^#autoballoon=:autoballoon=:' \
|
||||
-e 's:^#lockfile=:lockfile=:' \
|
||||
-e 's:^#vif.default.script=:vif.default.script=:' \
|
||||
-i tools/examples/xl.conf || die
|
||||
|
||||
epatch_user
|
||||
}
|
||||
|
||||
src_configure() {
|
||||
local myconf="--prefix=${PREFIX}/usr \
|
||||
--libdir=${PREFIX}/usr/$(get_libdir) \
|
||||
--libexecdir=${PREFIX}/usr/libexec \
|
||||
--disable-werror \
|
||||
--disable-xen \
|
||||
--enable-tools \
|
||||
--enable-docs \
|
||||
$(use_with system-qemu) \
|
||||
$(use_enable pam) \
|
||||
$(use_enable api xenapi) \
|
||||
$(use_enable ovmf) \
|
||||
$(use_enable ocaml ocamltools) \
|
||||
"
|
||||
use system-seabios && myconf+=" --with-system-seabios=/usr/share/seabios/bios.bin"
|
||||
use qemu || myconf+=" --with-system-qemu"
|
||||
use amd64 && myconf+=" --enable-qemu-traditional"
|
||||
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
|
||||
|
||||
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?/*
|
||||
|
||||
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
|
||||
newinitd "${FILESDIR}"/xencommons.initd xencommons
|
||||
newconfd "${FILESDIR}"/xencommons.confd xencommons
|
||||
newinitd "${FILESDIR}"/xenqemudev.initd xenqemudev
|
||||
newconfd "${FILESDIR}"/xenqemudev.confd xenqemudev
|
||||
|
||||
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
|
||||
|
||||
# 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
|
||||
|
||||
# for xendomains
|
||||
keepdir /etc/xen/auto
|
||||
|
||||
# Temp QA workaround
|
||||
dodir "$(get_udevdir)"
|
||||
mv "${D}"/etc/udev/* "${D}/$(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 "https://wiki.gentoo.org/wiki/Xen"
|
||||
elog "http://wiki.xen.org/wiki/Main_Page"
|
||||
elog ""
|
||||
elog "Recommended to utilise the xencommons script to config sytem At boot"
|
||||
elog "Add by use of rc-update on completion of the install"
|
||||
|
||||
# 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 system is required to build HVM support."
|
||||
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
|
||||
}
|
@ -1,8 +1,18 @@
|
||||
-----BEGIN PGP SIGNED MESSAGE-----
|
||||
Hash: SHA256
|
||||
|
||||
AUX gentoolkit-dev-0.2.8.3-tests.patch 897 SHA256 993cf921d0e03806199fee9734a656559a6d7bf20b4427a2ef11f578cff3dc65 SHA512 0b5f3555a8374c1765770c27a950a26a3e7f7f222a5cf1cb1a5ed326d1d7757fd40639eaf58c54daffc668929bd25e76fffb108c75f20e5f0a2937f74a03e8cb WHIRLPOOL 7247d88f8ec56be1312f6978dc157721cd62336bc639cb29f54a729a336253485655fc6aa8be1b44373fb0be4dcc56b72a7f2e2185a09f84bd9f3c44a14bfff1
|
||||
DIST gentoolkit-dev-0.2.8.3.tar.gz 53322 SHA256 b9f96deb53adacf7885c937e1c92688a40839a3992da551616f8745835ec59fb SHA512 f55362e46928633598cb07640505202521e3f4bdaade1faecb4ac14ba1bee0489207cb7ab03531e06d7922446a57083365f51c63ceb8cf1e0badba9ac503c16e WHIRLPOOL 9bb50b92c52c62a74249885ff7d82d6ba2426de6b7052b2e65673a85c6dfe76c201d899e71b8d327a3fed550a1cf1a75616cda369d7f5f37bc93912a8d7845e5
|
||||
DIST gentoolkit-dev-0.3.0.tar.gz 58655 SHA256 c42d525560f5c85f48e9b2aeb02a5f3ee04e80e52c90e5d1a00eed1ebe9df671 SHA512 d15f6546cf88af0832c14eb003c72b5906bb9b9f078c903e1e444b12c2e432fd1a2fa077eda5496e222cb50cfd5a705e86044b9a1c0164ac6b4b38268461ced5 WHIRLPOOL b3db58c6941ad5ae04fc581de8785d9e0fe6c3b49bdabf401732e881b2e2a1489eb86c3fd650cafe6b56bf26c74ad25dffe8dfb7fdc8b374b3bb0427dd34c2e4
|
||||
EBUILD gentoolkit-dev-0.2.8.3-r1.ebuild 1502 SHA256 f56721e480059f171f7b14f2c5b96df21c64397c72e3336a0a16bfaa8aa397c1 SHA512 febf588d7104bc3da9e003b3511ab5604fd8c13ad3372d39759a6c4c615799efbe0ad7b7fbcf0f94578e6386e22a349f4cf710799183463c28dddb6121e5d452 WHIRLPOOL 6ca72fefd184bbc45ed120b18f571196fd3d8885a7a047d34272ddb8f553de39ee659e41b5f2fd219f6897d62ab7d11dc06250077a95a3f55cf3eff3923fa488
|
||||
EBUILD gentoolkit-dev-0.3.0.ebuild 1671 SHA256 75f3e8fbf32831b7d6c8a279d401b753a3811331037337a6afea755a63c61580 SHA512 faaa91d266db0f8383bc4087815c34d437dd1e094720457f540f3e522987f6a833ad83f46b5f3cff79a64a5d68fd8e4c1da998f105d3ac98ea0c55d33e6ad1ae WHIRLPOOL 265f616f8814a6bb436e8bcb53664aecb2dcfda52242b0677cf54bce3c7cd6488f1dd6f8c60f23d2423a631d2de3a9ebda85b9b3a54b22e707163ab0df735cdb
|
||||
EBUILD gentoolkit-dev-9999.ebuild 1671 SHA256 129a1b71227e2003c516eee1d45df5be2d4865e57c64aa66649dbbdeb4bbfacb SHA512 ac4137d73ba041475f03772bcfc33216ab1074c5c75d79595da34630701cddc448cda277309c7a5ddbb31f33a40a095f40a00e9fd60cc91be9aa96c1ee547e97 WHIRLPOOL 0a1e001bb6ac468ec7e8655e5c8ab779da81d73f42d2ef7c3fbf6fa763deba1c2d2ba65e4aac1f9add9a1848bb5f77fcfd7991591ed0b8435bd637970825280f
|
||||
MISC ChangeLog 22131 SHA256 54543f25df7c714f237524c94f04c08583eb093518eb07781ca4763d9569e915 SHA512 ffc33ae78b9ce07f2daec4ad125207fc1e8192af9da6a5e99be4f71a343d8b3c8b6a171dccfba127e8cd4071a741a1b10f27d2f0ad180f9978942528bb0a3134 WHIRLPOOL 668d130b1b8c3ed0bb65d765a9c19080664c7387c902295903a4e29e66cf4c49dbe467a65da24d76975d2dce0aa0f3bd7c0eef0944be644591e534ff05952f23
|
||||
EBUILD gentoolkit-dev-0.3.0.ebuild 2127 SHA256 59b7e508030231ba6e57e4d9675f3cec904d13b1f30a29cda9f35a644f68e7d0 SHA512 799e5e772b336c7b8c51d143238e3cebcf54d3bab4faad1c1f052f14059dc4caf61d75e2f7c40ec2e4cde8366760b54819c8283175c3217b0718ea9429be3ed0 WHIRLPOOL 56b70aec564d37ee0d84b16c614ed3ce827bfb22f4885e455a45003ad00e1dabd9a75bd4855eb03b49c1fe867e4314bbc18f2ac65708d6629979b2e74bb77c3d
|
||||
EBUILD gentoolkit-dev-9999.ebuild 2127 SHA256 710182437c482575f03bb2e3979d7d093c030f261347d6321b3bd68695b402fa SHA512 edf6090256b49bafa48f7dddfb3c043212c01a2570fcee65c40ff4f096bd16d0276c8ae07a803e6066ca1784f6ddf596b9fea2aa104e19e557c03e1d0c0daca1 WHIRLPOOL aba46ecf5ee79bad4d6d736cc8e67c5bee3b428f9af7cfc1d51ab5f0fc6668921ee26feaae8b173146f9c0a73792b84a928edda89f1806cdbb770ebdbaa2d74d
|
||||
MISC ChangeLog 22290 SHA256 c95fbb79c90dcc75eba939ed9b4c3d4777d91f563fd92832e205fe61103301dd SHA512 8aa69bbfcaed83bb7fdcd0d38a9ea29a01908497dc46017248aca621cc7bbc9a2f5045b1358e6b463a3da0097b5e355e35b552594e97db936ed97c79e239fe5f WHIRLPOOL 69980e330f2b1a78443c255de9a0ef82153eb24698bab04fc4c8a9206f1dab15c86b59044dc203d9278e78708fae28ac1f14f04b57040b8cb724857460882c08
|
||||
MISC metadata.xml 289 SHA256 f87d734bc9e4ddaf3323fb85a5d36e80395d2eda5ac3f8e0c1f1ee0b74ac4604 SHA512 b1f377b70097383c03f567902fcf9f96571770861ef489381c6db0fa139528e519631e87ee9832c95a35bb3dfa3752c7ae4c9fe5f597b783bd58fe6a69d8449d WHIRLPOOL ff92b728d58a85f4ff1c02576545709c931c95ffa0a7d3820a5a5012e3508759c1494879bf0093be830de2f905ce51772a2b7b38f9b5a310712ed8b55989e625
|
||||
-----BEGIN PGP SIGNATURE-----
|
||||
Version: GnuPG v2
|
||||
|
||||
iEYEAREIAAYFAlW5EvEACgkQX3X2B8XHTondwACgjVVdp8IPp5GzzcT4QnTtGPIx
|
||||
7+0An2pnMMD4lNVH/y4LuocP7W+LJpE2
|
||||
=oatp
|
||||
-----END PGP SIGNATURE-----
|
||||
|
@ -0,0 +1,169 @@
|
||||
# Copyright 1999-2015 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Header: /var/cvsroot/gentoo-x86/dev-db/mysql/mysql-5.6.26-r1.ebuild,v 1.1 2015/07/30 04:26:27 grknight Exp $
|
||||
|
||||
EAPI="5"
|
||||
|
||||
MY_EXTRAS_VER="20150717-1707Z"
|
||||
MY_PV="${PV//_alpha_pre/-m}"
|
||||
MY_PV="${MY_PV//_/-}"
|
||||
HAS_TOOLS_PATCH="1"
|
||||
SUBSLOT="18"
|
||||
|
||||
inherit toolchain-funcs mysql-multilib
|
||||
# only to make repoman happy. it is really set in the eclass
|
||||
IUSE="$IUSE"
|
||||
|
||||
# REMEMBER: also update eclass/mysql*.eclass before committing!
|
||||
KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~sparc-fbsd ~x86-fbsd ~x86-freebsd ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~x64-solaris ~x86-solaris"
|
||||
|
||||
# When MY_EXTRAS is bumped, the index should be revised to exclude these.
|
||||
EPATCH_EXCLUDE=''
|
||||
|
||||
DEPEND="|| ( >=sys-devel/gcc-3.4.6 >=sys-devel/gcc-apple-4.0 )"
|
||||
RDEPEND="${RDEPEND}"
|
||||
|
||||
# Please do not add a naive src_unpack to this ebuild
|
||||
# If you want to add a single patch, copy the ebuild to an overlay
|
||||
# and create your own mysql-extras tarball, looking at 000_index.txt
|
||||
|
||||
src_configure() {
|
||||
# validate_password plugin uses exceptions when it shouldn't yet (until 5.7)
|
||||
# disable until we see what happens with it
|
||||
local mycmakeargs
|
||||
mycmakeargs+=( -DWITHOUT_VALIDATE_PASSWORD=1 )
|
||||
mysql-multilib_src_configure
|
||||
}
|
||||
|
||||
# Official test instructions:
|
||||
# USE='server embedded extraengine perl ssl static-libs community' \
|
||||
# FEATURES='test userpriv -usersandbox' \
|
||||
# ebuild mysql-X.X.XX.ebuild \
|
||||
# digest clean package
|
||||
multilib_src_test() {
|
||||
|
||||
if ! multilib_is_native_abi ; then
|
||||
einfo "Server tests not available on non-native abi".
|
||||
return 0;
|
||||
fi
|
||||
|
||||
local TESTDIR="${BUILD_DIR}/mysql-test"
|
||||
local retstatus_unit
|
||||
local retstatus_tests
|
||||
|
||||
# Bug #213475 - MySQL _will_ object strenously if your machine is named
|
||||
# localhost. Also causes weird failures.
|
||||
[[ "${HOSTNAME}" == "localhost" ]] && die "Your machine must NOT be named localhost"
|
||||
|
||||
if use server ; then
|
||||
|
||||
if [[ $UID -eq 0 ]]; then
|
||||
die "Testing with FEATURES=-userpriv is no longer supported by upstream. Tests MUST be run as non-root."
|
||||
fi
|
||||
has usersandbox $FEATURES && eerror "Some tests may fail with FEATURES=usersandbox"
|
||||
|
||||
einfo ">>> Test phase [test]: ${CATEGORY}/${PF}"
|
||||
addpredict /this-dir-does-not-exist/t9.MYI
|
||||
|
||||
# Run CTest (test-units)
|
||||
cmake-utils_src_test
|
||||
retstatus_unit=$?
|
||||
[[ $retstatus_unit -eq 0 ]] || eerror "test-unit failed"
|
||||
|
||||
# Create a symlink to provided binaries so the tests can find them when client-libs is off
|
||||
if ! use client-libs ; then
|
||||
ln -srf /usr/bin/my_print_defaults "${BUILD_DIR}/client/my_print_defaults" || die
|
||||
ln -srf /usr/bin/perror "${BUILD_DIR}/client/perror" || die
|
||||
mysql-multilib_disable_test main.perror "String mismatch due to not building local perror"
|
||||
fi
|
||||
|
||||
# Ensure that parallel runs don't die
|
||||
export MTR_BUILD_THREAD="$((${RANDOM} % 100))"
|
||||
# Enable parallel testing, auto will try to detect number of cores
|
||||
# You may set this by hand.
|
||||
# The default maximum is 8 unless MTR_MAX_PARALLEL is increased
|
||||
export MTR_PARALLEL="${MTR_PARALLEL:-auto}"
|
||||
|
||||
# create directories because mysqladmin might right out of order
|
||||
mkdir -p "${T}"/var-tests{,/log}
|
||||
|
||||
# create symlink for the tests to find mysql_tzinfo_to_sql
|
||||
ln -s "${BUILD_DIR}/sql/mysql_tzinfo_to_sql" "${S}/sql/"
|
||||
|
||||
# These are failing in MySQL 5.5/5.6 for now and are believed to be
|
||||
# false positives:
|
||||
#
|
||||
# main.information_schema, binlog.binlog_statement_insert_delayed,
|
||||
# funcs_1.is_triggers funcs_1.is_tables_mysql,
|
||||
# funcs_1.is_columns_mysql, binlog.binlog_mysqlbinlog_filter,
|
||||
# perfschema.binlog_edge_mix, perfschema.binlog_edge_stmt,
|
||||
# mysqld--help-notwin, funcs_1.is_triggers, funcs_1.is_tables_mysql, funcs_1.is_columns_mysql
|
||||
# perfschema.binlog_edge_stmt, perfschema.binlog_edge_mix, binlog.binlog_mysqlbinlog_filter
|
||||
# fails due to USE=-latin1 / utf8 default
|
||||
#
|
||||
# main.mysql_client_test:
|
||||
# segfaults at random under Portage only, suspect resource limits.
|
||||
#
|
||||
# rpl.rpl_plugin_load
|
||||
# fails due to included file not listed in expected result
|
||||
# appears to be poor planning
|
||||
#
|
||||
# main.mysqlhotcopy_archive main.mysqlhotcopy_myisam
|
||||
# fails due to bad cleanup of previous tests when run in parallel
|
||||
# The tool is deprecated anyway
|
||||
# Bug 532288
|
||||
for t in \
|
||||
binlog.binlog_mysqlbinlog_filter \
|
||||
binlog.binlog_statement_insert_delayed \
|
||||
funcs_1.is_columns_mysql \
|
||||
funcs_1.is_tables_mysql \
|
||||
funcs_1.is_triggers \
|
||||
main.information_schema \
|
||||
main.mysql_client_test \
|
||||
main.mysqld--help-notwin \
|
||||
perfschema.binlog_edge_mix \
|
||||
perfschema.binlog_edge_stmt \
|
||||
rpl.rpl_plugin_load \
|
||||
main.mysqlhotcopy_archive main.mysqlhotcopy_myisam \
|
||||
; do
|
||||
mysql-multilib_disable_test "$t" "False positives in Gentoo"
|
||||
done
|
||||
|
||||
if ! use extraengine ; then
|
||||
# bug 401673, 530766
|
||||
for t in federated.federated_plugin ; do
|
||||
mysql-multilib_disable_test "$t" "Test $t requires USE=extraengine (Need federated engine)"
|
||||
done
|
||||
fi
|
||||
|
||||
# Run mysql tests
|
||||
pushd "${TESTDIR}"
|
||||
|
||||
# Set file limits higher so tests run
|
||||
ulimit -n 3000
|
||||
|
||||
# run mysql-test tests
|
||||
perl mysql-test-run.pl --force --vardir="${T}/var-tests" \
|
||||
--suite-timeout=5000 --reorder
|
||||
retstatus_tests=$?
|
||||
[[ $retstatus_tests -eq 0 ]] || eerror "tests failed"
|
||||
has usersandbox $FEATURES && eerror "Some tests may fail with FEATURES=usersandbox"
|
||||
|
||||
popd
|
||||
|
||||
# Cleanup is important for these testcases.
|
||||
pkill -9 -f "${S}/ndb" 2>/dev/null
|
||||
pkill -9 -f "${S}/sql" 2>/dev/null
|
||||
|
||||
failures=""
|
||||
[[ $retstatus_unit -eq 0 ]] || failures="${failures} test-unit"
|
||||
[[ $retstatus_tests -eq 0 ]] || failures="${failures} tests"
|
||||
has usersandbox $FEATURES && eerror "Some tests may fail with FEATURES=usersandbox"
|
||||
|
||||
[[ -z "$failures" ]] || die "Test failures: $failures"
|
||||
einfo "Tests successfully completed"
|
||||
|
||||
else
|
||||
einfo "Skipping server tests due to minimal build."
|
||||
fi
|
||||
}
|
@ -0,0 +1,162 @@
|
||||
# Copyright 1999-2015 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Header: /var/cvsroot/gentoo-x86/dev-db/mysql/mysql-5.6.26.ebuild,v 1.1 2015/07/30 04:26:27 grknight Exp $
|
||||
|
||||
EAPI="5"
|
||||
|
||||
MY_EXTRAS_VER="20150410-1944Z"
|
||||
MY_PV="${PV//_alpha_pre/-m}"
|
||||
MY_PV="${MY_PV//_/-}"
|
||||
SUBSLOT="18"
|
||||
|
||||
inherit toolchain-funcs mysql-multilib
|
||||
# only to make repoman happy. it is really set in the eclass
|
||||
IUSE="$IUSE"
|
||||
|
||||
# REMEMBER: also update eclass/mysql*.eclass before committing!
|
||||
KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~sparc-fbsd ~x86-fbsd ~x86-freebsd ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~x64-solaris ~x86-solaris"
|
||||
|
||||
# When MY_EXTRAS is bumped, the index should be revised to exclude these.
|
||||
EPATCH_EXCLUDE=''
|
||||
|
||||
DEPEND="|| ( >=sys-devel/gcc-3.4.6 >=sys-devel/gcc-apple-4.0 )"
|
||||
RDEPEND="${RDEPEND}"
|
||||
|
||||
# Please do not add a naive src_unpack to this ebuild
|
||||
# If you want to add a single patch, copy the ebuild to an overlay
|
||||
# and create your own mysql-extras tarball, looking at 000_index.txt
|
||||
|
||||
src_configure() {
|
||||
# validate_password plugin uses exceptions when it shouldn't yet (until 5.7)
|
||||
# disable until we see what happens with it
|
||||
local mycmakeargs
|
||||
mycmakeargs+=( -DWITHOUT_VALIDATE_PASSWORD=1 )
|
||||
mysql-multilib_src_configure
|
||||
}
|
||||
|
||||
# Official test instructions:
|
||||
# USE='embedded extraengine perl ssl static-libs community' \
|
||||
# FEATURES='test userpriv -usersandbox' \
|
||||
# ebuild mysql-X.X.XX.ebuild \
|
||||
# digest clean package
|
||||
multilib_src_test() {
|
||||
|
||||
if ! multilib_is_native_abi ; then
|
||||
einfo "Server tests not available on non-native abi".
|
||||
return 0;
|
||||
fi
|
||||
|
||||
local TESTDIR="${BUILD_DIR}/mysql-test"
|
||||
local retstatus_unit
|
||||
local retstatus_tests
|
||||
|
||||
# Bug #213475 - MySQL _will_ object strenously if your machine is named
|
||||
# localhost. Also causes weird failures.
|
||||
[[ "${HOSTNAME}" == "localhost" ]] && die "Your machine must NOT be named localhost"
|
||||
|
||||
if ! use "minimal" ; then
|
||||
|
||||
if [[ $UID -eq 0 ]]; then
|
||||
die "Testing with FEATURES=-userpriv is no longer supported by upstream. Tests MUST be run as non-root."
|
||||
fi
|
||||
has usersandbox $FEATURES && eerror "Some tests may fail with FEATURES=usersandbox"
|
||||
|
||||
einfo ">>> Test phase [test]: ${CATEGORY}/${PF}"
|
||||
addpredict /this-dir-does-not-exist/t9.MYI
|
||||
|
||||
# Run CTest (test-units)
|
||||
cmake-utils_src_test
|
||||
retstatus_unit=$?
|
||||
[[ $retstatus_unit -eq 0 ]] || eerror "test-unit failed"
|
||||
|
||||
# Ensure that parallel runs don't die
|
||||
export MTR_BUILD_THREAD="$((${RANDOM} % 100))"
|
||||
# Enable parallel testing, auto will try to detect number of cores
|
||||
# You may set this by hand.
|
||||
# The default maximum is 8 unless MTR_MAX_PARALLEL is increased
|
||||
export MTR_PARALLEL="${MTR_PARALLEL:-auto}"
|
||||
|
||||
# create directories because mysqladmin might right out of order
|
||||
mkdir -p "${T}"/var-tests{,/log}
|
||||
|
||||
# create symlink for the tests to find mysql_tzinfo_to_sql
|
||||
ln -s "${BUILD_DIR}/sql/mysql_tzinfo_to_sql" "${S}/sql/"
|
||||
|
||||
# These are failing in MySQL 5.5/5.6 for now and are believed to be
|
||||
# false positives:
|
||||
#
|
||||
# main.information_schema, binlog.binlog_statement_insert_delayed,
|
||||
# funcs_1.is_triggers funcs_1.is_tables_mysql,
|
||||
# funcs_1.is_columns_mysql, binlog.binlog_mysqlbinlog_filter,
|
||||
# perfschema.binlog_edge_mix, perfschema.binlog_edge_stmt,
|
||||
# mysqld--help-notwin, funcs_1.is_triggers, funcs_1.is_tables_mysql, funcs_1.is_columns_mysql
|
||||
# perfschema.binlog_edge_stmt, perfschema.binlog_edge_mix, binlog.binlog_mysqlbinlog_filter
|
||||
# fails due to USE=-latin1 / utf8 default
|
||||
#
|
||||
# main.mysql_client_test:
|
||||
# segfaults at random under Portage only, suspect resource limits.
|
||||
#
|
||||
# rpl.rpl_plugin_load
|
||||
# fails due to included file not listed in expected result
|
||||
# appears to be poor planning
|
||||
#
|
||||
# main.mysqlhotcopy_archive main.mysqlhotcopy_myisam
|
||||
# fails due to bad cleanup of previous tests when run in parallel
|
||||
# The tool is deprecated anyway
|
||||
# Bug 532288
|
||||
for t in \
|
||||
binlog.binlog_mysqlbinlog_filter \
|
||||
binlog.binlog_statement_insert_delayed \
|
||||
funcs_1.is_columns_mysql \
|
||||
funcs_1.is_tables_mysql \
|
||||
funcs_1.is_triggers \
|
||||
main.information_schema \
|
||||
main.mysql_client_test \
|
||||
main.mysqld--help-notwin \
|
||||
perfschema.binlog_edge_mix \
|
||||
perfschema.binlog_edge_stmt \
|
||||
rpl.rpl_plugin_load \
|
||||
main.mysqlhotcopy_archive main.mysqlhotcopy_myisam \
|
||||
; do
|
||||
mysql-multilib_disable_test "$t" "False positives in Gentoo"
|
||||
done
|
||||
|
||||
if ! use extraengine ; then
|
||||
# bug 401673, 530766
|
||||
for t in federated.federated_plugin ; do
|
||||
mysql-multilib_disable_test "$t" "Test $t requires USE=extraengine (Need federated engine)"
|
||||
done
|
||||
fi
|
||||
|
||||
# Run mysql tests
|
||||
pushd "${TESTDIR}"
|
||||
|
||||
# Set file limits higher so tests run
|
||||
ulimit -n 3000
|
||||
|
||||
# run mysql-test tests
|
||||
perl mysql-test-run.pl --force --vardir="${T}/var-tests" \
|
||||
--suite-timeout=5000 --reorder
|
||||
retstatus_tests=$?
|
||||
[[ $retstatus_tests -eq 0 ]] || eerror "tests failed"
|
||||
has usersandbox $FEATURES && eerror "Some tests may fail with FEATURES=usersandbox"
|
||||
|
||||
popd
|
||||
|
||||
# Cleanup is important for these testcases.
|
||||
pkill -9 -f "${S}/ndb" 2>/dev/null
|
||||
pkill -9 -f "${S}/sql" 2>/dev/null
|
||||
|
||||
failures=""
|
||||
[[ $retstatus_unit -eq 0 ]] || failures="${failures} test-unit"
|
||||
[[ $retstatus_tests -eq 0 ]] || failures="${failures} tests"
|
||||
has usersandbox $FEATURES && eerror "Some tests may fail with FEATURES=usersandbox"
|
||||
|
||||
[[ -z "$failures" ]] || die "Test failures: $failures"
|
||||
einfo "Tests successfully completed"
|
||||
|
||||
else
|
||||
|
||||
einfo "Skipping server tests due to minimal build."
|
||||
fi
|
||||
}
|
@ -0,0 +1,230 @@
|
||||
# Copyright 1999-2015 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Header: /var/cvsroot/gentoo-x86/dev-java/oracle-jre-bin/oracle-jre-bin-1.8.0.51.ebuild,v 1.1 2015/07/29 12:42:08 chewi Exp $
|
||||
|
||||
EAPI="5"
|
||||
|
||||
inherit eutils java-vm-2 prefix versionator
|
||||
|
||||
# This URIs need updating when bumping!
|
||||
JRE_URI="http://www.oracle.com/technetwork/java/javase/downloads/jre8-downloads-2133155.html"
|
||||
JCE_URI="http://www.oracle.com/technetwork/java/javase/downloads/jce8-download-2133166.html"
|
||||
|
||||
if [[ "$(get_version_component_range 4)" == 0 ]] ; then
|
||||
S_PV="$(get_version_component_range 1-3)"
|
||||
else
|
||||
MY_PV_EXT="u$(get_version_component_range 4)"
|
||||
S_PV="$(get_version_component_range 1-4)"
|
||||
fi
|
||||
|
||||
MY_PV="$(get_version_component_range 2)${MY_PV_EXT}"
|
||||
|
||||
AT_amd64="jre-${MY_PV}-linux-x64.tar.gz"
|
||||
AT_x86="jre-${MY_PV}-linux-i586.tar.gz"
|
||||
|
||||
JCE_DIR="UnlimitedJCEPolicyJDK8"
|
||||
JCE_FILE="jce_policy-8.zip"
|
||||
|
||||
DESCRIPTION="Oracle's Java SE Runtime Environment"
|
||||
HOMEPAGE="http://www.oracle.com/technetwork/java/javase/"
|
||||
SRC_URI="
|
||||
amd64? ( ${AT_amd64} )
|
||||
x86? ( ${AT_x86} )
|
||||
jce? ( ${JCE_FILE} )"
|
||||
|
||||
LICENSE="Oracle-BCLA-JavaSE"
|
||||
SLOT="1.8"
|
||||
KEYWORDS="~amd64 ~x86"
|
||||
IUSE="alsa +awt cups +fontconfig javafx jce nsplugin pax_kernel selinux"
|
||||
|
||||
RESTRICT="fetch preserve-libs strip"
|
||||
QA_PREBUILT="*"
|
||||
|
||||
# NOTES:
|
||||
#
|
||||
# * cups is dlopened.
|
||||
#
|
||||
# * libpng is also dlopened but only by libsplashscreen, which isn't
|
||||
# important, so we can exclude that.
|
||||
#
|
||||
# * We still need to work out the exact AWT and JavaFX dependencies
|
||||
# under MacOS. It doesn't appear to use many, if any, of the
|
||||
# dependencies below.
|
||||
#
|
||||
RDEPEND="!x64-macos? (
|
||||
awt? (
|
||||
x11-libs/libX11
|
||||
x11-libs/libXext
|
||||
x11-libs/libXi
|
||||
x11-libs/libXrender
|
||||
)
|
||||
javafx? (
|
||||
dev-libs/glib:2
|
||||
dev-libs/libxml2:2
|
||||
dev-libs/libxslt
|
||||
media-libs/freetype:2
|
||||
x11-libs/cairo
|
||||
x11-libs/gtk+:2
|
||||
x11-libs/libX11
|
||||
x11-libs/libXtst
|
||||
x11-libs/libXxf86vm
|
||||
x11-libs/pango
|
||||
virtual/opengl
|
||||
)
|
||||
)
|
||||
alsa? ( media-libs/alsa-lib )
|
||||
cups? ( net-print/cups )
|
||||
fontconfig? ( media-libs/fontconfig:1.0 )
|
||||
!prefix? ( sys-libs/glibc:* )
|
||||
selinux? ( sec-policy/selinux-java )"
|
||||
|
||||
# A PaX header isn't created by scanelf so depend on paxctl to avoid
|
||||
# fallback marking. See bug #427642.
|
||||
DEPEND="jce? ( app-arch/unzip )
|
||||
pax_kernel? ( sys-apps/paxctl )"
|
||||
|
||||
S="${WORKDIR}/jre"
|
||||
|
||||
pkg_nofetch() {
|
||||
local AT_ARCH="AT_${ARCH}"
|
||||
local AT="${!AT_ARCH}"
|
||||
|
||||
einfo "Please download '${AT}' from:"
|
||||
einfo "'${JRE_URI}'"
|
||||
einfo "and move it to '${DISTDIR}'"
|
||||
|
||||
if use jce; then
|
||||
einfo "Also download '${JCE_FILE}' from:"
|
||||
einfo "'${JCE_URI}'"
|
||||
einfo "and move it to '${DISTDIR}'"
|
||||
fi
|
||||
|
||||
einfo
|
||||
einfo "If the above mentioned urls do not point to the correct version anymore,"
|
||||
einfo "please download the files from Oracle's java download archive:"
|
||||
einfo
|
||||
einfo " http://www.oracle.com/technetwork/java/javase/downloads/java-archive-javase8-2177648.html#jre-${MY_PV}-oth-JPR"
|
||||
einfo
|
||||
|
||||
}
|
||||
|
||||
src_unpack() {
|
||||
default
|
||||
|
||||
# Upstream is changing their versioning scheme every release around 1.8.0.*;
|
||||
# to stop having to change it over and over again, just wildcard match and
|
||||
# live a happy life instead of trying to get this new jre1.8.0_05 to work.
|
||||
mv "${WORKDIR}"/jre* "${S}" || die
|
||||
}
|
||||
|
||||
src_prepare() {
|
||||
if use jce ; then
|
||||
mv "${WORKDIR}"/${JCE_DIR} lib/security/ || die
|
||||
fi
|
||||
}
|
||||
|
||||
src_install() {
|
||||
local dest="/opt/${P}"
|
||||
local ddest="${ED}${dest#/}"
|
||||
|
||||
# Create files used as storage for system preferences.
|
||||
mkdir .systemPrefs || die
|
||||
touch .systemPrefs/.system.lock || die
|
||||
touch .systemPrefs/.systemRootModFile || die
|
||||
|
||||
if ! use alsa ; then
|
||||
rm -vf lib/*/libjsoundalsa.* || die
|
||||
fi
|
||||
|
||||
if ! use awt ; then
|
||||
rm -vf lib/*/lib*{[jx]awt,splashscreen}* \
|
||||
bin/{javaws,policytool} || die
|
||||
fi
|
||||
|
||||
if ! use javafx ; then
|
||||
rm -vf lib/*/lib*{decora,fx,glass,prism}* \
|
||||
lib/*/libgstreamer-lite.* lib/{,ext/}*fx* || die
|
||||
fi
|
||||
|
||||
if ! use nsplugin ; then
|
||||
rm -vf lib/*/libnpjp2.* || die
|
||||
else
|
||||
local nsplugin=$(echo lib/*/libnpjp2.*)
|
||||
fi
|
||||
|
||||
# Even though plugins linked against multiple ffmpeg versions are
|
||||
# provided, they generally lag behind what Gentoo has available.
|
||||
rm -vf lib/*/libavplugin* || die
|
||||
|
||||
dodoc COPYRIGHT
|
||||
dodir "${dest}"
|
||||
cp -pPR bin lib man "${ddest}" || die
|
||||
|
||||
if use jce ; then
|
||||
dodir ${dest}/lib/security/strong-jce
|
||||
mv "${ddest}"/lib/security/US_export_policy.jar \
|
||||
"${ddest}"/lib/security/strong-jce || die
|
||||
mv "${ddest}"/lib/security/local_policy.jar \
|
||||
"${ddest}"/lib/security/strong-jce || die
|
||||
dosym "${dest}"/lib/security/${JCE_DIR}/US_export_policy.jar \
|
||||
"${dest}"/lib/security/US_export_policy.jar
|
||||
dosym "${dest}"/lib/security/${JCE_DIR}/local_policy.jar \
|
||||
"${dest}"/lib/security/local_policy.jar
|
||||
fi
|
||||
|
||||
if use nsplugin ; then
|
||||
install_mozilla_plugin "${dest}/${nsplugin}"
|
||||
fi
|
||||
|
||||
# Install desktop file for the Java Control Panel.
|
||||
# Using ${PN}-${SLOT} to prevent file collision with jre and or other slots.
|
||||
# make_desktop_entry can't be used as ${P} would end up in filename.
|
||||
newicon lib/desktop/icons/hicolor/48x48/apps/sun-jcontrol.png \
|
||||
sun-jcontrol-${PN}-${SLOT}.png || die
|
||||
sed -e "s#Name=.*#Name=Java Control Panel for Oracle JRE ${SLOT}#" \
|
||||
-e "s#Exec=.*#Exec=/opt/${P}/bin/jcontrol#" \
|
||||
-e "s#Icon=.*#Icon=sun-jcontrol-${PN}-${SLOT}#" \
|
||||
-e "s#Application;##" \
|
||||
-e "/Encoding/d" \
|
||||
lib/desktop/applications/sun_java.desktop > \
|
||||
"${T}"/jcontrol-${PN}-${SLOT}.desktop || die
|
||||
domenu "${T}"/jcontrol-${PN}-${SLOT}.desktop
|
||||
|
||||
# Prune all fontconfig files so libfontconfig will be used and only install
|
||||
# a Gentoo specific one if fontconfig is disabled.
|
||||
# http://docs.oracle.com/javase/8/docs/technotes/guides/intl/fontconfig.html
|
||||
rm "${ddest}"/lib/fontconfig.* || die
|
||||
if ! use fontconfig ; then
|
||||
cp "${FILESDIR}"/fontconfig.Gentoo.properties "${T}"/fontconfig.properties || die
|
||||
eprefixify "${T}"/fontconfig.properties
|
||||
insinto "${dest}"/lib/
|
||||
doins "${T}"/fontconfig.properties
|
||||
fi
|
||||
|
||||
# This needs to be done before CDS - #215225
|
||||
java-vm_set-pax-markings "${ddest}"
|
||||
|
||||
# see bug #207282
|
||||
einfo "Creating the Class Data Sharing archives"
|
||||
case ${ARCH} in
|
||||
arm|ia64)
|
||||
${ddest}/bin/java -client -Xshare:dump || die
|
||||
;;
|
||||
x86)
|
||||
${ddest}/bin/java -client -Xshare:dump || die
|
||||
# limit heap size for large memory on x86 #467518
|
||||
# this is a workaround and shouldn't be needed.
|
||||
${ddest}/bin/java -server -Xms64m -Xmx64m -Xshare:dump || die
|
||||
;;
|
||||
*)
|
||||
${ddest}/bin/java -server -Xshare:dump || die
|
||||
;;
|
||||
esac
|
||||
|
||||
# Remove empty dirs we might have copied.
|
||||
find "${D}" -type d -empty -exec rmdir -v {} + || die
|
||||
|
||||
set_java_env
|
||||
java-vm_revdep-mask
|
||||
java-vm_sandbox-predict /dev/random /proc/self/coredump_filter
|
||||
}
|
@ -1,6 +1,28 @@
|
||||
-----BEGIN PGP SIGNED MESSAGE-----
|
||||
Hash: SHA256
|
||||
|
||||
DIST orc-0.4.23.tar.xz 450076 SHA256 767eaebce2941737b43368225ec54598b3055ca78b4dc50c4092f5fcdc0bdfe7 SHA512 e12bca0dcc7230da825834f50b88ff531a6aed83a29ccc5b57e969adb1af7ceb2c1d4dd04cd248e38db92fded6edc809c7deba42cd1ddeacd62b0e922950d92e WHIRLPOOL 62df2cbc9943b7c7e625519d0f16bf1becbce78b26ccaebbc315ac43f2ceee689b6ad6632ce5e49123aa59d97ec73c3268a3fd6b81f94ca4dcf97de7a3a222e5
|
||||
DIST orc-0.4.24.tar.xz 455880 SHA256 338cd493b5247300149821c6312bdf7422a3593ae98691fc75d7e4fe727bd39b SHA512 f40f692873a4fa506379a1b9e3ed1d329ee42470fb0b083aec5f993c1b6f756e63b772dbf664ca3328531c2f9be141ca43ed79a49572c1f02d82f85aa4306216 WHIRLPOOL 2d41972933ede160a9b85f6ed2ee4aabefc51557f2f65d30f9c65b32e4fcc6e14b8bf55609859b5084997bdc875a1249114de31ec59d944e993fc9e2f0651bc1
|
||||
EBUILD orc-0.4.23.ebuild 1225 SHA256 9ce2210d8eff9a1b6ae94ba2731c938e906a8c0578acc6f8ad962552cd285739 SHA512 ae5510c46a1c837717260835cf4040abe3cdd596d10ddb20360d897d983dbf95fd7f299239ec8fdb26bc65d6b14ebab2fcfb3178cec0ab50e95f43404a18c51f WHIRLPOOL 05921a112625376131d2f2b0e1cc3aa7969eaf99073cc378aefa7590eb20e5e66eccf3ca98738fdaabe4f4cc3d91f925e25f6d36c349c641c7a6ea8901e6f092
|
||||
EBUILD orc-0.4.24.ebuild 1615 SHA256 e81ddb191e72c1a113f388f399fe32ce50459eecdcb27b2245ec41c6b04e07e7 SHA512 33c1d7ae8e79036a0e125d012a3ffe72e6f59a29c90543c14d48b1e4d5eadf83039fc0d80f3fae35605dff3ff703518a3a646d350c8b38b5f5eaad92bcaa07e5 WHIRLPOOL a6a3a4faec76d63ce11f0bd5ab582ee31042f5b9caeb19d3c0929f4d0d6820024b34a2dc88f38371db016f7ffb77515cda0dbfa966ad3527d654169741847752
|
||||
MISC ChangeLog 7269 SHA256 be7014081a7b3565d3be0d8df844c8238e290d64ea1e8034c093cf62a0617f71 SHA512 5245c9d48526bce9af8e4e56cc46ebd1ec5708db2149f89c5c05420db3c72e53d38ae42fc51adaf5a513011ec565c958111634d9c914e6a31fd0f4224a1cabd2 WHIRLPOOL 9bc828020012873dc8ca0eb87a7ecbcd292843edf8040ba7f5e6f2ff0b2a66530db6d6a5bc9ec0cc254911e0c1124d10fe2414971e7b03162695e98ea66b21f0
|
||||
EBUILD orc-0.4.23.ebuild 1276 SHA256 ab8c3c5ace0d9cd84b75f6341c539088bcd5a1981c9244001dea45449e62689f SHA512 8435ecd7a09efbf54328280d6b7ec3edcf23a25cc8a4ec336c3fcb0b4b052c947b234fc7ef20f1b0530e1478da14f5653f7db40fe5ff0c44c5af3b410e0037ad WHIRLPOOL 2d3d0909ae8ff71641dc4a49b1dbfb7c33f6be60b0d06b9d2220d87f2f729b7fe9cbdb2ac55ee8e2e035bdaf64ecfe57838d8be0cbb2d71a066111a38d1abad9
|
||||
EBUILD orc-0.4.24.ebuild 1667 SHA256 7559c4df97f11039c512499df8b95bcd099daee51ad56c5e4fc9547410d6e376 SHA512 1403aacac005ef1f483250bd206c4842cbe9878be90d58071c8545a5817263fe4f82ecb334f21d619f4b823750a1f08333a5c3dfb6454a13c25a436dc7062961 WHIRLPOOL 0d9e6ef754067f00ccb32618a09c1d5054750df9ce7a1b01f482a7efb5bb0f1b47ba965d06e9d1f07e3ccfd4a475782e22801c793bfc40691722686e606ebddb
|
||||
MISC ChangeLog 7513 SHA256 20c923d910ddd2cd06438c3800fa6e74e9a822d0b30f5ddf721ab19fe79a038a SHA512 249d1757e4ce2571718b044bf9f517b76675503fa67ab72140b9d3c6dfe1428a9bc86fc5ee4acc8cb540d6dda69d5a820c6ca126ba023af548f88772b7cc16c4 WHIRLPOOL 5ccca341698ac644675b09aca4a3e33bb15af7f19a22a2bf6a09a6112da0a474bcfc64441eefc49eb4c660e17e4010b10a8a3b1220c24ca8a41b93609a9e6ec0
|
||||
MISC metadata.xml 162 SHA256 3ac891ee23de8c6e2bef32e0c7aa3e6607e808de76ed723fbe7a1fb92f6093f1 SHA512 8b02f1dfc23c5609db66995b8b5f3b371d7c9ec232bd8117177af0522cd521f0217f5b49fb512213cb3db606c00df2511e0874ca0cac490ded306a8ddcfb5185 WHIRLPOOL b6621e0156545e7b124a3f55c2fe03a8878eb44d1b54fc3373adf9915dfe9c57a411741daf8863af74fdec93bacf929e905aa50954f906cec098bf0c4ddf2652
|
||||
-----BEGIN PGP SIGNATURE-----
|
||||
Version: GnuPG v2.1
|
||||
|
||||
iQJ8BAEBCABmBQJVuMw5XxSAAAAAAC4AKGlzc3Vlci1mcHJAbm90YXRpb25zLm9w
|
||||
ZW5wZ3AuZmlmdGhob3JzZW1hbi5uZXQ1RTNCRkUzRDRBNkI2MEEwQkYwQzMyOEEx
|
||||
OEU1QjZGMkQ4RDVFQzhEAAoJEBjltvLY1eyNDWQQAMV5fjrU/w7czLYKycBkqHi+
|
||||
yXpzXY4vuZw7s8fKGA04/ZrxRR6mD1Oyd0GhLCzaHMar8WSN5T4aKqPj0yc1HtC0
|
||||
6VGyOsLu0N+YVVBAaKa92gniysZ9oRLRLxUifgW/EXnKZCQIVrqyVfRL4DG0XEyL
|
||||
SHkWgLYbz0cJODIrP86WTQNp4Abpt5F3evDizaZWxjsvf/CzdIiuWMlIGnQHVwCX
|
||||
YY+Edy6Mb4BmW8U8NR8aMfa4l8aUYOuXNt7kWX4I+RtmrZs85xavkkIViwGhZyue
|
||||
lTOo00g0aq+GNvGCOKxrNkk/nbT0+jNo1RWKK5knn7kgMN9H23lg5pvVViYvUNgK
|
||||
HHIRrkUDnCoBAfuoSkz15Z05R590jFrIR6zel48WLuEr4BrVA5674X8is0qh28Tc
|
||||
59K8N8GdsU3RU2oveQypLljQpajuBShE2HPtUesQybgBCbKbcqECci3Up1tO990O
|
||||
rWWtnbZoXsu/x3Sg2w9U3H8luxo8i3kToRnxJjRDXoaUdOiKgYb6M5khjEidsL0E
|
||||
a3tVMJAODb23itmAcui+GETXomoulbL25O+naRUWXzneA5iqpMJfGzYdgsPVJco5
|
||||
lKv9ZXEYgPco9vySl2wBTbqfU1aKMnWVT98gTZ60xIx8Yw8zcUuJoMcc+m7qtKeX
|
||||
pNF/d1iHdNBkECyLGfvt
|
||||
=PPnA
|
||||
-----END PGP SIGNATURE-----
|
||||
|
@ -1,29 +1,29 @@
|
||||
-----BEGIN PGP SIGNED MESSAGE-----
|
||||
Hash: SHA512
|
||||
Hash: SHA256
|
||||
|
||||
AUX expat-2.1.0-mozilla-sanity-check-size.patch 2414 SHA256 513aee4359a79efb7eb0c55768aff55dd4688d4468d2f95e8b1c4efb495c8547 SHA512 70d2504d4b280b5e5efaaf23e51c17a427573a1844d89a45e4b47fa778015e5c41b6187865bdab1003e06fbf1d98badae724887d9dadcbc59e47d6420f874117 WHIRLPOOL a46662fea2bb90dae1a8ebb51e8627014a09ee822226aba434fcdafaa353585dee80e17468d93e636a67bbf8a445c570bd10f0ae3b79b11d604b87a29b771952
|
||||
AUX expat-2.1.0-xmlwfargs.patch 478 SHA256 738a06abaafebb301a98992d686b9a55699f6dcac09663071a4e1cac283b2834 SHA512 db7e75a6d1b43f20352223ccc3703683426ce10d67e68dce4ac5faeba8bbe42270281796a9db495e98d53f6d2c7ead8bfb3e2e2668cf5dfa0bc9c1acb0170e26 WHIRLPOOL 85df93895e392c44bb5cd648aa017b2b95adddd5ec765023a7a82223c1c55b677ec3199960afb027d67372c7acc605068d089d49488225bb39aaaea6b7e3c4f9
|
||||
DIST expat-2.1.0.tar.gz 562616 SHA256 823705472f816df21c8f6aa026dd162b280806838bb55b3432b0fb1fcca7eb86 SHA512 2a9ad2b44b87b84087979fe4114d661838df3b03dbdcb74d590cb74096bf35ce9d5a86617b0941a2655ea441a94537bcbcd78252da92342238823be36de2d09d WHIRLPOOL 147eb383fdb79116e2215982e9741939f80249a0bb690e93b00218fa335d483d88f82d9256632b458b13592252aeb100ec4ef830c72bb8eb5df7675cd15f41e1
|
||||
EBUILD expat-2.1.0-r2.ebuild 2322 SHA256 cf8865566582aabced12c76802dab72396ab1192a7bbba288c072d5afcd80259 SHA512 14cdcfd29d89db43d28e258f8048888f7cbe2cdf37a219421dee7d28f331a79815c78591d3635b2d7e169a9762c7b51a7c0db044b291f2cbee198e4831cb24fd WHIRLPOOL a6e8ecdd76d01121ac3545e5e8dc1a0a82aac89bdda77ccbe2d94f8188c59e9244f76f4c966240bfd4fbaf82e102e6ac59eb10681580a28fa4629754c1b270ca
|
||||
EBUILD expat-2.1.0-r3.ebuild 2430 SHA256 6f92becbd91ef00a07f30bc6146f7ee3ee54196a88e7ca8c25a5e7bbf9a79d8a SHA512 0e474abdcc85f12f9ead86becb04c1f9567b5bca96afdfa45796ecc8c6a4e8ef2414284acc4620db3c633d0b6efc6f3c1306bbd04f0262a44e282d7ce26f8b16 WHIRLPOOL b5e8b91b3c20f747d1d89208a1b31a829b179f29075a6332dc73043b46eecc37fc3f7a8b59a14c0d39f309f599a7c7efe3d4eb4d5625d7a061968ab11b90962e
|
||||
EBUILD expat-2.1.0-r4.ebuild 2478 SHA256 21d61cfcc61373715b35c1272e9b75a4457acd8bd95ac92bbedc2bf50acde032 SHA512 e0cc52ee6e99a07262478e6302cca2f12629ce9656c95e109cd2e4b31b3aa28dbb2122a610cba4cf6f5159d7f8b7e4dac3c3de498a31cfd6b55860f1f5a3f41b WHIRLPOOL a0773461f041ad38b7266239bdbcd8b0bf1e06385f849fb6923817f98ed53d34116f3d196991fd1c56db67234ebe314d2e150cd709d474910c07db084ae8cf06
|
||||
MISC ChangeLog 22600 SHA256 fa87a46314c0b605e7b26d0e342b837fa609d31bee4c50a89cbdd559a4be98f7 SHA512 69b68cde5076ff896840e9bb9dbd339905db734ebda2067dfc76c56f2a26b97142754468b4827ba63393138ea7dbeab8aa43647df8c461e7c8259e4cc7424527 WHIRLPOOL 78701cc44312a5217a5cd6f6c19301109b4750dcd85c1f40434a800022fe6abfa6e8a81faa5f798e436880b8a8b262f75e350dd5631b8b51d03314974df2e72e
|
||||
EBUILD expat-2.1.0-r4.ebuild 2493 SHA256 cb4f8e8905aa338996ba69cd58076427c749e0410f5c38624677f9d743b012e9 SHA512 e706a302d6ac0b88c1f4057addc6b5eac354f9c802e17e91d5fcb889a16374f9bb0dbc977614f7f7beb72821c0bf382d98e3c87013949c23f09718f45ecee5eb WHIRLPOOL 59805ec8caa8327613f55d128f8d7540a47fd37c31e079ebe953076aa1c7f4aa8ba1f7e55422d5f300c7086d9e09fc32faf5d7f88ed7572b24d79eb8f0cf7e7e
|
||||
EBUILD expat-2.1.0-r5.ebuild 2568 SHA256 69615bbafa02cfafda3a9c7b659dfa2418a04c5c62b8c18a89aace606d189549 SHA512 ecbf3582c38ac6a6d000c7d76cdafa98198b90169f3399a59b39b88edeeb7d80c8a0fdc4607ff75bc8bd26f05236688d4f06a031b09e75b29cd076b9dfb3e69c WHIRLPOOL ec844bdcf33c0f8ee166d3e4bf3fa4c35c84ff92cd90f10f3be47099b3274233352c48cdd5631ca5acb01c574f35a0821e64b85ae79fd1d0c5bae44c4fd2293b
|
||||
MISC ChangeLog 22996 SHA256 6ecaabac07033daa902d80307a1dd3f264c7a2f7c33c6c6c830b832c9fc18a5d SHA512 3ba105923695d48e75caa1400442cc5fb6abd16684995d48fbab407de95c7a5041551f3601563b751771893dc66cd144beb5e83e86164e6b7a8777bada41ac61 WHIRLPOOL 1bc9e045b98883938d02be0beb16ba0f28d2a817b0471ba63e6e1caf5bd7f933b4aa269b646529cd4f6e7b932f2c81e9d772ae5b082ea53cdcaeb4c9259b7ea4
|
||||
MISC metadata.xml 298 SHA256 b6300ca6cc8447e5cc36d14b457505aa72b00814fb6bd91160260681617f2a04 SHA512 0efce4d93b77269e6a45a0add3cac689a1b5e35b81627c1ace0e4559a497644e15e7416ad58d337fcf6b6329c40c32ad9fe2ec30a33f0ca527fd9a2204b1e1d0 WHIRLPOOL cd8ed71233d8e9a4720b9ec81e388c1a7bd9a9ec461443ea15137c74832e4ab5ebadcf69387b1e15854d005499a393bb502f27a20da16fb1a08831557b32cc7d
|
||||
-----BEGIN PGP SIGNATURE-----
|
||||
Version: GnuPG v2.0
|
||||
Version: GnuPG v2.1
|
||||
|
||||
iQJ8BAEBCgBmBQJVdvUrXxSAAAAAAC4AKGlzc3Vlci1mcHJAbm90YXRpb25zLm9w
|
||||
ZW5wZ3AuZmlmdGhob3JzZW1hbi5uZXQ0QUU0N0I4NzFERUI0MTJFN0EyODE0NUFF
|
||||
OTQwMkE3OUIwMzUyOUEyAAoJEOlAKnmwNSmilf4P/1c76Aoz61O2wkKgriAmzAEr
|
||||
DxhxaWqn2QC/lOQG7gfbqJbj10v+U2wC0ObLdy9C5C4NpfTu5uYeHQt9EQplgkHv
|
||||
HGHvRWMZ1YpUkeS233DK/qRaEyXZmFAJLWKco59HwgBo4Dir9IpS0Pot47voPD8M
|
||||
F2jFJdjqniV3vJ5BVUCQu73OqpZGzNFH31iOjqscvEWxr3o8/ta8tee/Oy+pPVLQ
|
||||
xI3dF7Nd6lmJYeS1+G92qgM2s7NfJ6/BKxq8II3Hu/j+kKw8Dd9rR4PlWMZoEtdS
|
||||
hjARlKSwX+mQ/CO5r8G2lujoodcIStWfru+KDv6jUapoTQWILa2VK+ZjUgiL8R94
|
||||
DT8C3Isqxx/a7VZarNUYQmOWQ/tMJ1z8PeO/VhPp5NUHtDE8Rg7Vb7rQKSn3AgWE
|
||||
7RGXIUGMLpD4h5S1iM07l01BczslR9UtvZMQdljblYJXhMLpuogJac+LGZj/s6/f
|
||||
8hV4hO8YdVHab0FO95e5ermOolDbVmlk7viI0XlRsIKvpD517KkFU1pOo8T5CU4z
|
||||
K3EeIzFZnb/FD3zLSyrXtIR+9WYVNSC+GOP4pzNqLn4pUQVZwCGaBC3A7b/9+AJ0
|
||||
Bz8BDI4O4n677bJBhlP3P31i5/4I17NU5L5pwNfAZ7MCADMrup3CLSAUJguNz8q8
|
||||
lUzoo22StsyPoF2w6U55
|
||||
=hVdC
|
||||
iQJ8BAEBCABmBQJVuYl8XxSAAAAAAC4AKGlzc3Vlci1mcHJAbm90YXRpb25zLm9w
|
||||
ZW5wZ3AuZmlmdGhob3JzZW1hbi5uZXQ1RTNCRkUzRDRBNkI2MEEwQkYwQzMyOEEx
|
||||
OEU1QjZGMkQ4RDVFQzhEAAoJEBjltvLY1eyNAOgP/3AzwLL6o3CKm1aGUhE4kUyT
|
||||
me4L2FDLHwPZkJTP8FeEI0rDrGsbmi5YAu5KSykqPcEU3mFQyeH9bWanC/NlpCH/
|
||||
07ucKvJ6WBNayx0zCEvCeToB4fihMOOVxMIYI79qjnkxODCBSdeeUnXta55E5QB1
|
||||
ok9hsfFKYl0QWsfAE0C0iC4kpyWSG08uJ5HTu1/ZrrR+mtwBK/EYmRd/vxnBtQq1
|
||||
TcsZmDfhY9of5hHkMH09R644AWFmflBRjq9/injtcTZUq2q9qAeg1T9DbYK9gB5l
|
||||
SD1zjsNDt2cWbbe0ezP61K9zhlFu+bc69kLM0sT4qph0xeUwDcVX3EUCTa5cCRZ7
|
||||
Rsyv7XCDbLIxWoLB6AbO++93Jd+gu3maICySEmcjI0TmoJXwUmF003YOZZm83wwP
|
||||
aHkcc3T4orsFhBUkhzPtek5akoTM2cJIdMaBCS2GTwLSQ7bJpK5EYzqQbsxU2/i1
|
||||
lDbfm+NdB/QCpI9zh4hRR47Yg25cNrNkuXQGoJ+uF62Bd5WApOtSHwOk9JJMfi9L
|
||||
sd2uXAITW41ADMzPf0cY5HInh736mOVOjhKucXWSDukdtLWBeVAHdHqjmVvji7F8
|
||||
z1J6qH3WYvk6G79zdjyKcvdvuueSZ9zsIg3xSX907gyPK7i7v3wKG4ACqd3VjmSj
|
||||
K8zNJQx+qgsYgqTq5WP8
|
||||
=41vT
|
||||
-----END PGP SIGNATURE-----
|
||||
|
@ -1,92 +0,0 @@
|
||||
# Copyright 1999-2013 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Header: /var/cvsroot/gentoo-x86/dev-libs/expat/expat-2.1.0-r2.ebuild,v 1.8 2013/03/09 12:33:55 ssuominen Exp $
|
||||
|
||||
EAPI=4
|
||||
inherit eutils libtool multilib toolchain-funcs
|
||||
|
||||
DESCRIPTION="XML parsing libraries"
|
||||
HOMEPAGE="http://expat.sourceforge.net/"
|
||||
SRC_URI="mirror://sourceforge/expat/${P}.tar.gz"
|
||||
|
||||
LICENSE="MIT"
|
||||
SLOT="0"
|
||||
KEYWORDS="alpha amd64 arm hppa ia64 m68k ~mips ppc ppc64 s390 sh sparc x86 ~amd64-fbsd ~sparc-fbsd ~x86-fbsd ~arm-linux ~x86-linux"
|
||||
IUSE="elibc_FreeBSD examples static-libs unicode"
|
||||
|
||||
src_prepare() {
|
||||
elibtoolize
|
||||
|
||||
mkdir "${S}"-build{,u,w} || die
|
||||
}
|
||||
|
||||
src_configure() {
|
||||
local myconf="$(use_enable static-libs static)"
|
||||
|
||||
pushd "${S}"-build >/dev/null
|
||||
ECONF_SOURCE="${S}" econf ${myconf}
|
||||
popd >/dev/null
|
||||
|
||||
if use unicode; then
|
||||
pushd "${S}"-buildu >/dev/null
|
||||
CPPFLAGS="${CPPFLAGS} -DXML_UNICODE" ECONF_SOURCE="${S}" econf ${myconf}
|
||||
popd >/dev/null
|
||||
|
||||
pushd "${S}"-buildw >/dev/null
|
||||
CPPFLAGS="${CPPFLAGS} -DXML_UNICODE_WCHAR_T" ECONF_SOURCE="${S}" econf ${myconf}
|
||||
popd >/dev/null
|
||||
fi
|
||||
}
|
||||
|
||||
src_compile() {
|
||||
pushd "${S}"-build >/dev/null
|
||||
emake
|
||||
popd >/dev/null
|
||||
|
||||
if use unicode; then
|
||||
pushd "${S}"-buildu >/dev/null
|
||||
emake buildlib LIBRARY=libexpatu.la
|
||||
popd >/dev/null
|
||||
|
||||
pushd "${S}"-buildw >/dev/null
|
||||
emake buildlib LIBRARY=libexpatw.la
|
||||
popd >/dev/null
|
||||
fi
|
||||
}
|
||||
|
||||
src_install() {
|
||||
dodoc Changes README
|
||||
dohtml doc/*
|
||||
|
||||
if use examples; then
|
||||
insinto /usr/share/doc/${PF}/examples
|
||||
doins examples/*.c
|
||||
fi
|
||||
|
||||
pushd "${S}"-build >/dev/null
|
||||
emake install DESTDIR="${D}"
|
||||
popd >/dev/null
|
||||
|
||||
if use unicode; then
|
||||
pushd "${S}"-buildu >/dev/null
|
||||
emake installlib DESTDIR="${D}" LIBRARY=libexpatu.la
|
||||
popd >/dev/null
|
||||
|
||||
pushd "${S}"-buildw >/dev/null
|
||||
emake installlib DESTDIR="${D}" LIBRARY=libexpatw.la
|
||||
popd >/dev/null
|
||||
|
||||
pushd "${ED}"/usr/$(get_libdir)/pkgconfig >/dev/null
|
||||
cp expat.pc expatu.pc
|
||||
sed -i -e '/^Libs/s:-lexpat:&u:' expatu.pc || die
|
||||
cp expat.pc expatw.pc
|
||||
sed -i -e '/^Libs/s:-lexpat:&w:' expatw.pc || die
|
||||
popd >/dev/null
|
||||
fi
|
||||
|
||||
rm -f "${ED}"usr/lib*/libexpat{,u,w}.la
|
||||
|
||||
# libgeom in /lib and ifconfig in /sbin require libexpat on FreeBSD since
|
||||
# we stripped the libbsdxml copy starting from freebsd-lib-8.2-r1
|
||||
use elibc_FreeBSD && gen_usr_ldscript -a expat
|
||||
}
|
@ -1,22 +1,24 @@
|
||||
# Copyright 1999-2014 Gentoo Foundation
|
||||
# Copyright 1999-2015 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Header: /var/cvsroot/gentoo-x86/dev-libs/expat/expat-2.1.0-r3.ebuild,v 1.15 2014/04/28 17:27:28 mgorny Exp $
|
||||
# $Header: /var/cvsroot/gentoo-x86/dev-libs/expat/expat-2.1.0-r5.ebuild,v 1.1 2015/07/30 02:18:34 tetromino Exp $
|
||||
|
||||
EAPI=5
|
||||
inherit eutils libtool multilib toolchain-funcs multilib-minimal
|
||||
|
||||
DESCRIPTION="XML parsing libraries"
|
||||
DESCRIPTION="Stream-oriented XML parser library"
|
||||
HOMEPAGE="http://expat.sourceforge.net/"
|
||||
SRC_URI="mirror://sourceforge/expat/${P}.tar.gz"
|
||||
|
||||
LICENSE="MIT"
|
||||
SLOT="0"
|
||||
KEYWORDS="alpha amd64 arm arm64 hppa ia64 m68k ~mips ppc ppc64 s390 sh sparc x86 ~amd64-fbsd ~sparc-fbsd ~x86-fbsd ~arm-linux ~x86-linux"
|
||||
KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~amd64-fbsd ~sparc-fbsd ~x86-fbsd ~arm-linux ~x86-linux"
|
||||
IUSE="elibc_FreeBSD examples static-libs unicode"
|
||||
RDEPEND="abi_x86_32? ( !<=app-emulation/emul-linux-x86-baselibs-20130224-r6
|
||||
!app-emulation/emul-linux-x86-baselibs[-abi_x86_32(-)] )"
|
||||
|
||||
src_prepare() {
|
||||
epatch "${FILESDIR}"/${P}-xmlwfargs.patch
|
||||
epatch "${FILESDIR}"/${P}-mozilla-sanity-check-size.patch #555642
|
||||
elibtoolize
|
||||
}
|
||||
|
@ -0,0 +1,81 @@
|
||||
|
||||
# HG changeset patch
|
||||
# User Eric Rahm <erahm@mozilla.com>
|
||||
# Date 1428706223 25200
|
||||
# Node ID 438d9e2a991ab82381a1a1442a470b2565c80c13
|
||||
# Parent 1c0861d7a6457f461cccccb2e0895a9f9d34c8d4
|
||||
Bug 1140537 - Sanity check size calculations. r=peterv
|
||||
|
||||
diff --git a/parser/expat/lib/xmlparse.c b/parser/expat/lib/xmlparse.c
|
||||
--- a/parser/expat/lib/xmlparse.c
|
||||
+++ b/parser/expat/lib/xmlparse.c
|
||||
@@ -1648,29 +1648,40 @@ XML_ParseBuffer(XML_Parser parser, int l
|
||||
XmlUpdatePosition(encoding, positionPtr, bufferPtr, &position);
|
||||
positionPtr = bufferPtr;
|
||||
return result;
|
||||
}
|
||||
|
||||
void * XMLCALL
|
||||
XML_GetBuffer(XML_Parser parser, int len)
|
||||
{
|
||||
+/* BEGIN MOZILLA CHANGE (sanity check len) */
|
||||
+ if (len < 0) {
|
||||
+ errorCode = XML_ERROR_NO_MEMORY;
|
||||
+ return NULL;
|
||||
+ }
|
||||
+/* END MOZILLA CHANGE */
|
||||
switch (ps_parsing) {
|
||||
case XML_SUSPENDED:
|
||||
errorCode = XML_ERROR_SUSPENDED;
|
||||
return NULL;
|
||||
case XML_FINISHED:
|
||||
errorCode = XML_ERROR_FINISHED;
|
||||
return NULL;
|
||||
default: ;
|
||||
}
|
||||
|
||||
if (len > bufferLim - bufferEnd) {
|
||||
- /* FIXME avoid integer overflow */
|
||||
int neededSize = len + (int)(bufferEnd - bufferPtr);
|
||||
+/* BEGIN MOZILLA CHANGE (sanity check neededSize) */
|
||||
+ if (neededSize < 0) {
|
||||
+ errorCode = XML_ERROR_NO_MEMORY;
|
||||
+ return NULL;
|
||||
+ }
|
||||
+/* END MOZILLA CHANGE */
|
||||
#ifdef XML_CONTEXT_BYTES
|
||||
int keep = (int)(bufferPtr - buffer);
|
||||
|
||||
if (keep > XML_CONTEXT_BYTES)
|
||||
keep = XML_CONTEXT_BYTES;
|
||||
neededSize += keep;
|
||||
#endif /* defined XML_CONTEXT_BYTES */
|
||||
if (neededSize <= bufferLim - buffer) {
|
||||
@@ -1689,17 +1700,25 @@ XML_GetBuffer(XML_Parser parser, int len
|
||||
}
|
||||
else {
|
||||
char *newBuf;
|
||||
int bufferSize = (int)(bufferLim - bufferPtr);
|
||||
if (bufferSize == 0)
|
||||
bufferSize = INIT_BUFFER_SIZE;
|
||||
do {
|
||||
bufferSize *= 2;
|
||||
- } while (bufferSize < neededSize);
|
||||
+/* BEGIN MOZILLA CHANGE (prevent infinite loop on overflow) */
|
||||
+ } while (bufferSize < neededSize && bufferSize > 0);
|
||||
+/* END MOZILLA CHANGE */
|
||||
+/* BEGIN MOZILLA CHANGE (sanity check bufferSize) */
|
||||
+ if (bufferSize <= 0) {
|
||||
+ errorCode = XML_ERROR_NO_MEMORY;
|
||||
+ return NULL;
|
||||
+ }
|
||||
+/* END MOZILLA CHANGE */
|
||||
newBuf = (char *)MALLOC(bufferSize);
|
||||
if (newBuf == 0) {
|
||||
errorCode = XML_ERROR_NO_MEMORY;
|
||||
return NULL;
|
||||
}
|
||||
bufferLim = newBuf + bufferSize;
|
||||
#ifdef XML_CONTEXT_BYTES
|
||||
if (bufferPtr) {
|
||||
|
@ -0,0 +1,9 @@
|
||||
# ChangeLog for dev-python/attrdict
|
||||
# Copyright 1999-2015 Gentoo Foundation; Distributed under the GPL v2
|
||||
# $Header: /var/cvsroot/gentoo-x86/dev-python/attrdict/ChangeLog,v 1.1 2015/07/29 19:14:30 alunduil Exp $
|
||||
|
||||
*attrdict-2.0.0 (29 Jul 2015)
|
||||
|
||||
29 Jul 2015; Alex Brandt <alunduil@gentoo.org> +attrdict-2.0.0.ebuild,
|
||||
+metadata.xml:
|
||||
add version 2.0.0
|
@ -0,0 +1,24 @@
|
||||
-----BEGIN PGP SIGNED MESSAGE-----
|
||||
Hash: SHA256
|
||||
|
||||
DIST attrdict-2.0.0.tar.gz 8994 SHA256 86aeb6d3809e0344409f8148d7cac9eabce5f0b577c160b5e90d10df3f8d2ad3 SHA512 6dd363eb3bca83c84dcbcdd04fb2a7f5360ff5c97b7e52159c4efe61856a37bb6a9427da00da07cb9222f3cef6de18b94bf2da5d0192372f9252a130fa476b7d WHIRLPOOL 35a9a2ec820756d640990e6cbcd1bbed1145dbcd14a4e099bde618fab3a4a74d5d419a01bb43e7d55a59c295f9a8ae77e5f091c4263f2282d50dcc1a0002c90d
|
||||
EBUILD attrdict-2.0.0.ebuild 771 SHA256 c08a6036a56b3db6fe4130e0749afd448113d23dfb0bddd4ec51f42387ee4858 SHA512 cce9de7b67f329e4ee6319b16212f10ae80b011e9d3f2facf0530dd9179100d28f50a1fe426a446dd08911b1af3c2bdebaf2e9ae0ffd1d8f5b8ee4c7b24f2014 WHIRLPOOL f769f85cd711ddbdfeaf9f267ab22052ba029b2fff960ff16e1332dcdaeefd9f07218eb18e02a490e3b11c07c3c2d15059d8969547fcc0529c7ea84b3de1c59a
|
||||
MISC ChangeLog 354 SHA256 ed7d22fff17f899deeb992ce47fa8ad91bd374edb4419f2b5c4a4e46995f0a97 SHA512 666a45eac14cb3090d2ba84fe748cb7831b732dea407f526e321f0e483c28df023a7a79f2563339aecf8f5c8e70704343d91d8dc787d6e13211e658bc1533a69 WHIRLPOOL fd99b2d759354bcc40c0e775604d45bb160b44225fe267e89e545ee568803e3bad4ac3446c1db31c22407e927125fd844d699db73caa9d8f24941e37176d49f2
|
||||
MISC metadata.xml 281 SHA256 4f517e212ebf30022599267011b7d752fb61f1063c90f9d442242fba23e5207f SHA512 c4d7e9c37508015a286fc8288d3c201c5779aca1252bc6ed7f25ce87555b513817d4e3fa624255e7644b24e4db0e1b976ea34810ece8f718dac3b027a3e601ba WHIRLPOOL d144bd0785d423f05e5ff568d7c7c5b6f4aa6d651d44ec9f55dce23aafc6552d0d39f8229a612109665cfb3e839ff746e64c0cb0130fe93e9f231238c61a87ba
|
||||
-----BEGIN PGP SIGNATURE-----
|
||||
Version: GnuPG v2
|
||||
|
||||
iQIcBAEBCAAGBQJVuSYXAAoJECZUyt4RqCF8FsoQAKSuYhLeAty190gFTXGe8WH5
|
||||
0tPfXbW8e8kznuWhqMXVQSaf4YGrVq3Lirw7G8UVxsbfHFXUi63mSUWOfR7E2/X9
|
||||
NEYQp3/VRaz3aeqeWASbd7Alr9DI/Q9Z/XjC1tAdr4M7ic2gns7974QEwR0ZaeIY
|
||||
X8K7FeNAi2gtIAFo1N+2BzAkGwN3CZ7+Adu8xcQT0vbnYAXL1maB6CdWoyIjEkHD
|
||||
yAic1RMecsPP2dvcCgep6+Hu6+x7eMUT7VFsBdvecPJPjADgVU9E6nCUr6mq3WUV
|
||||
BfAW9Ro7DJQs9yNZiNoIeDszKYgcfR+YzNMpTs6vUq4G4sicjovZVzrWmOWqlhiF
|
||||
41Szn7fndZZpIimC4omJ31c37ubKKKH62qNKkQeAb2qHEajnC732RALsCJ2IJfJi
|
||||
/PRiHoCmC2i2uP5IZCcC5I7u+BoKsMfWbZaMoo+IGP+klLYyg5Pf20SuVLz9FXGv
|
||||
8ABe8iau+c+v9a6d1T1GxeR5fd4cNjYrMGUlwjQw+dbmKvDpjX8XOVkTMF9KKRWi
|
||||
4/U0bJorJkFECZ+if/F0kXrVaEjrsL2YU2QBRHu9Lk11DLlTfdDYTR6HJjiHHXQX
|
||||
lmcU3r6HCQxjpnysuoggRKiMmhWoQqkct3WJ5GGid+9EWbXwJWbDVxA8PA8iz1jl
|
||||
gwFx/uJWzDzEkcM0etf8
|
||||
=BqOi
|
||||
-----END PGP SIGNATURE-----
|
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in new issue