public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
From: "Andrew John Hughes" <gnu_andrew@member.fsf.org>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] proj/java:master commit in: dev-java/icedtea/
Date: Sun, 11 Jan 2015 18:00:45 +0000 (UTC)	[thread overview]
Message-ID: <1420999028.8ea0981804770548296563aa037fcbd476c084fe.gnu_andrew@gentoo> (raw)

commit:     8ea0981804770548296563aa037fcbd476c084fe
Author:     Andrew John Hughes <gnu_andrew <AT> member <DOT> fsf <DOT> org>
AuthorDate: Sun Jan 11 17:57:08 2015 +0000
Commit:     Andrew John Hughes <gnu_andrew <AT> member <DOT> fsf <DOT> org>
CommitDate: Sun Jan 11 17:57:08 2015 +0000
URL:        http://sources.gentoo.org/gitweb/?p=proj/java.git;a=commit;h=8ea09818

Synchronise arch selection across all ebuilds, update to match Gentoo values and use 'use' over 'has'.
Resolves #528186 and #481266.

Package-Manager: portage-2.2.15
Manifest-Sign-Key: 35964222

---
 dev-java/icedtea/ChangeLog                    |  6 +++
 dev-java/icedtea/Manifest                     | 28 ++++--------
 dev-java/icedtea/icedtea-3.9999.ebuild        | 47 ++++++++++++++++++---
 dev-java/icedtea/icedtea-6.1.13.5-r1.ebuild   | 61 ++++++++++++++++++---------
 dev-java/icedtea/icedtea-6.9999.ebuild        | 61 ++++++++++++++++++---------
 dev-java/icedtea/icedtea-7.2.5.3.ebuild       | 29 +++++++------
 dev-java/icedtea/icedtea-7.2.6.0_pre11.ebuild | 31 ++++++++------
 7 files changed, 175 insertions(+), 88 deletions(-)

diff --git a/dev-java/icedtea/ChangeLog b/dev-java/icedtea/ChangeLog
index 7564ca7..790ddb4 100644
--- a/dev-java/icedtea/ChangeLog
+++ b/dev-java/icedtea/ChangeLog
@@ -2,6 +2,12 @@
 # Copyright 1999-2015 Gentoo Foundation; Distributed under the GPL v2
 # $Header: $
 
+  11 Jan 2015; Andrew John Hughes <gnu_andrew@member.fsf.org>
+  icedtea-3.9999.ebuild, icedtea-6.1.13.5-r1.ebuild, icedtea-6.9999.ebuild,
+  icedtea-7.2.5.3.ebuild, icedtea-7.2.6.0_pre11.ebuild:
+  Synchronise arch selection across all ebuilds, update to match Gentoo values
+  and use 'use' over 'has'. Resolves #528186 and #481266.
+
   03 Jan 2015; Andrew John Hughes <gnu_andrew@member.fsf.org>
   +files/7085757-currency_fix.patch, icedtea-7.2.5.3.ebuild:
   Fix currency generation failure caused by 2014-12-31 being > 10 years ago;

diff --git a/dev-java/icedtea/Manifest b/dev-java/icedtea/Manifest
index d24bf97..11c89bc 100644
--- a/dev-java/icedtea/Manifest
+++ b/dev-java/icedtea/Manifest
@@ -40,27 +40,17 @@ DIST icedtea7-langtools-510234036e06.tar.bz2 1701912 SHA256 cc85aa73a186475590c5
 DIST icedtea7-openjdk-05e485acec14.tar.bz2 126830 SHA256 56d5f39698e91571c8155767577126b4106cf67fad0a6743918063970c208b93 SHA512 18907d9073d440e27fc52b6b74e7ba247241855ba83c645fa3b74a1a7e39f0592be898730edaa7f8700b28d3c7426551cd215b52794db6ba5b1800e3b391b722 WHIRLPOOL bef46252b136555b1a103e6d42673c34c8a28bc26bfa40e5fa71fd39af7f0da97b2054aff7ae8f898151775c3b48c7b780a4ac035c2afe2f8ae735b724c06a81
 DIST openjdk-6-src-b30-21_jan_2014.tar.xz 33106516 SHA256 ebd9fdf39c8590cd620cb78c481ca233f5919f2819237b5d2b440666f1dd3475 SHA512 3d040f9dc99b38babda3dce3a0dbc0de0dd91c5a2a0bb4bad7caa5acbb42923d0b26926aca836157d50124811f6c4c743f48ae996481d216c6158c21686e1c55 WHIRLPOOL 4a07dca91ad6bbf004fe40f12225a836c8cb634ce05b5974c51c389d235a6aca6a2532b3818fd975b1dd83ee117e08e17e22fcbb1bedff4caaabf50f941afd6f
 DIST openjdk-6-src-b33-14_oct_2014.tar.xz 33476800 SHA256 cabc35587a90fa81edd8ba8537c0454348c37456de27e407bbb66d52031a1293 SHA512 e3e195b069101c352ae8ed8f59558a464ba61c9966add815cb58c9151c8fefda721dd1650ebd335350af95cbebdd3fedb1b4ac2736fb2625bb83f13b94a85c8c WHIRLPOOL bcd51fe1ce52ec275ef24d03914f0d151a8765c432713a9bfef39618c01587dc7f9ff9a58b86785761c4b69130afa643964c6cf5caad13d7778baa0a346ea291
-EBUILD icedtea-3.9999.ebuild 10711 SHA256 fc6a22bf47db40c0f25d0bdc321901dd2585680b7c98e3e2d47b8235476182da SHA512 c1e36c3022f8712d32fa1d68191d97a1f0dbec2139ef4e8bc8f5b92494523c248c5731b9ada45afee2c275de8d233624cb1581b15041bd078fbbc44860ce236c WHIRLPOOL df90a1f053354da1330de836d08ab5f52fb00e02dbc15dfd6d9d58481d42a17805b4550f013171044a4913f103d08765042a8a1cbdd951e06948b439c153f142
-EBUILD icedtea-6.1.13.5-r1.ebuild 10311 SHA256 822d0b24e1c81491fe292eb218aeada638a7f63c4096ad336df73a5bf219946a SHA512 c91327f708f4a42b2788a160ae5682f4f4c9d5600ab42b34149e083e8c5ba5ea1b1af4714e613ac7eaa3c53755346f63c6256597408af95cbccf2fcacd2fff7b WHIRLPOOL a2cabedc8e72c1703f9aaea659cebb3a59a461514b73e382b524d1c57e3d52150d1d90cf82c197fadb187155310eb7397bbb758bbd662ec7efd19435fd1e04b3
-EBUILD icedtea-6.9999.ebuild 10014 SHA256 33a297abe609e27f3ca3c93ba374327c8e0beca9b277806a072715f61bd45784 SHA512 6507b894510471668698e7be1fa355e77033a9204f5e96351a37ff0abc67fe606d2c71213c2fa4810c6dedf3884da18d5a39cbcc7130303c98d95c0e7e737f46 WHIRLPOOL 79182d9db491f3900264680541e675ca033f174dfb223037fefe21abf8260a47dbc7e6d1d86e062655e76c15a23070f503d6757a0d71959f24f918261eff32a5
-EBUILD icedtea-7.2.5.3.ebuild 12368 SHA256 215bb04afea4a560627c3b0252022e9d0c50ac881bf24ff8a742fd9f73415e97 SHA512 c38914d08a7fc323dc6257ead6cadb14b28f98255952acdc5e5bb3ce1118ebdef82ccecab2b20f9a38cda5fb0d07bb69007a3cbec49b6d3f71c964282c1afec6 WHIRLPOOL 265ae035b8fcaf3ddc29376d9dbee460a873e9061a09057ccc9f86e65dd56d6ecfff8578086080b1552a11beb454880fecd66b02c856a19d2c09999bb10a2ca5
-EBUILD icedtea-7.2.6.0_pre11.ebuild 12228 SHA256 a93b555be8a38542c367461862d729cace970dee5cd437e7ba4684d6b77a9a13 SHA512 7fa0ed72dae3c87ddf33cbda2a18a2999d06f9c1e75016536790df3ea81bc6a84edde1923a45aa7751198ea67409bd2e28d21e4d008ac03916f151c5376bc3c1 WHIRLPOOL 903cc4312916107cb2d7db7e01c9cc14fc5fbce829e152c5ad0987d68b845e56e42bc8d21b9d9196a8b28300422b22895a0ceeeb352eeeaab6613efd6505ce08
-MISC ChangeLog 87425 SHA256 478dc44a6caab7a7bf5ed6430b7a3a087f42605cf74fdbcfabc14e8f7323021d SHA512 49835bc07c3da39457375f77ae3eb2c54380ef13839775d87d7297ade59e8294f1fc89da92c95e1116af2bdf8af1b4513416d059acf783eaec5589eed459874f WHIRLPOOL 88b116fa006e8f5a01ed70922245f1c6f6779c89b8e39a47c8f7bc776407f0dde53759ed7493b190c8c0dbf80879bbebce8cfd2e47fbc0e7cb06e0b06e2eb563
+EBUILD icedtea-3.9999.ebuild 11661 SHA256 3a2f3d9c6ecd7305c36118d1984917ca7e3d0ed3ac0063a5e450181786327523 SHA512 1287f5518f64cc991365d0d271bee9531d955690f3128dabf7432e928a72d2413b396c1523a91d1d47cb63d7abe891f52a72e05b7c2e7ab1214639b98510c8ac WHIRLPOOL 878ab905a55d29dd5e60caa57bcf9c7e829fd28b10c83c4d3d965cebe932d87e65dd6b69580e6e2fe87d247973bf86d1dd2abff0be693152330e12a5f885aebc
+EBUILD icedtea-6.1.13.5-r1.ebuild 11011 SHA256 79927c530660fbc7e2d21bb50da6ce6a11b9075d141cffdc742ce31570a1ced8 SHA512 98dd5a074a842a6870349d22d2b5a85eb988f2cf7e2941f8ece5480c91f75749ff226d099ab8f9d4e94aa7090b35d9e2aedf9d25b68efb4a48adbfb7dc1887d8 WHIRLPOOL 5aba919a6f8a84deb6505f594b5f34add0d64e005eb63d8856d88d09003adf8e7d8fd29afd811e456a09a96b8f92fc679afe6a0d52429db3f5a8b9e6d4c43a5e
+EBUILD icedtea-6.9999.ebuild 10718 SHA256 e9641f8cd7506f26c9c1c55c12b11df5ff50c573fefcd27039b81b91ef649540 SHA512 6963e41a00d5b4f09a972b07bc65a9c86e2aef339a726ce0eac6ff92d8dd1c886ce66a8b308c02629fcca8592405792459bdec81f2ee95f3f7d8b02d3b662a94 WHIRLPOOL 5cea7be6c2187ef2892f08addab7179aab57a1635d621f8e2ff1fdf326fb33a54e22c7056a94db27d741d2745677a4076b4505552b486a8b0af45e9449b87fb3
+EBUILD icedtea-7.2.5.3.ebuild 12710 SHA256 f6707610fccc5f9cabb6069cfb2c6cf76025d2051d2df74b7ba04fb2b25fdd74 SHA512 6161e431ed56f3e3fd5d6b5391d7090db3140788730c3e1c96277491a47f416f12f9eaa852a634f43b645743254638f9b645e7a77362c8a301157395b72aa255 WHIRLPOOL ca0ae74585fee47fdb105c801d0a51f33448d267bf4bcf5289f553e7c1be6e2af44374bc07afe070742c3cfafa204ff76615ccc3a2488d367e355613899e173b
+EBUILD icedtea-7.2.6.0_pre11.ebuild 12570 SHA256 0644ba31949bb0d2ccd5d78ee3577f458b9aa00a59565f7cdb81787b134aa927 SHA512 1e6610482a02360534232a96bd607cda6fbf4f1651e62b2c66011a6f34cf8bc1828ade48ee00315e679c5bd4435e0cec0d4e1be81aa82ee0bea027a4522bfdab WHIRLPOOL 4db1f14099cc1563077f75246bf9b9efb83d39955a8039e89323c5dfdc35fcd4a5c83f707f8af3494e763f7bda08a323a4f00b037337fb7caf7f4d7aea0fb884
+MISC ChangeLog 87757 SHA256 3b2ca5835913865115bf231708cf256881b9e94ac0f6d67f2f52a0a9f9c2db05 SHA512 af2c6674e0da4ea4fd2b83d86f454fa5ba261548ee76f3694773752f2d85945b38f170e3b3ce4481855f0285eca77dc9cc908eb6e560a4e9d5a94e9e7acec0c2 WHIRLPOOL 10b126564b2c1e10ff33242dde327c4332836bf47ebf096824d8324b874d11ffd063da5a8700f6a32245683e6cfaba7dc58dc6d5e158d6febb61b08440c734a9
 MISC metadata.xml 1680 SHA256 41523b869d57bd7edfe8c19416a1fb2d95201931d4174883eef2a39843a7cde2 SHA512 5c1a920010ad325807d5ee24bde454e597ff1c2ae391deb76357e5364266da0433f199e9efccf259eb5f67bb1af99a9088e3a784b97cbffe57776f3639b3a89c WHIRLPOOL 5648750285eacaa1f7ba605b947181cc4ca3663c349c09446ee3b36235e4f387b9715af2c8c3afc50219f105f84a124d269ff5c9a347dfa9fbc2ef8fb235421d
 -----BEGIN PGP SIGNATURE-----
 Version: GnuPG v2
 
-iQIcBAEBCAAGBQJUqDGNAAoJEDuWpXgki9wHvUMQAI49mD8CPwUiF6LtUE5gHV7y
-F5JuhfIQDJKeqKP7X80mexZdTj19qT80nS+KtexzdktFolpJidZ6qVoPE6J1Heb5
-6UENEOwCzQGUuMG7omKrsfYjaB2NHbNdFrny5CKGQK2FtIP6hPQTQLkBYE4IlZHB
-aIqRmaylAt4EWtHrpfSWRlNLp55TrAGQ2sZekWYYFS++YpQWzJkP33j5XRO8cIKO
-9Tc/H3LGgi337MXmwxQVMdt3/g179OApCV3sLNUh7eTSR8PSW/JCeI05qNqnesjw
-G6fgx1qD03iqsih3tMun+r4vOa8GP6fSYQiGP3HpkeSRJHvz0I9/hfy4vvliH6CC
-TZcyaMGrSOpFqwsah4fXi7CA2VCUfLNrmhIkP4uOHeqGT0QI9bg+lYRg49p99ztn
-tLIrGMOjHMn5tvHO/+oEvHaSTri7i8BAL1hG0ggw9HawMUwMJmrEm53C8DJCRLWQ
-yjUrg2g/bJFfq6yiVOxlTcDkg1ItL1SHgdTQ9IQSikY6MmCHDbHVtBQKTuxQ0Xlp
-lAJQlBTHVEDuTfi1dwhQw7Zb/5+scQ4bAuyc6K1NurngXcdgwQIh8N2qHwDnRG0D
-tgWuuW4BEjGpOWFVDjfBsQoQNGIRWLrMkwZXhOxutB6sCcZCjK8fnCIVe+Kdm1J7
-GFKNZyKdmCoCSC29f49S
-=jNs0
+iF4EARYIAAYFAlSyuWsACgkQz9oPmzWWQiIUGQEA5Pu4ixNw0C0oij6GgIvOhY8z
+5+8pcIUU0WvccXLe5c4BAEOk8I64LlpvtgdbvQsPcirBIs6KlDJbwO47J2XelJ4F
+=qk2O
 -----END PGP SIGNATURE-----

diff --git a/dev-java/icedtea/icedtea-3.9999.ebuild b/dev-java/icedtea/icedtea-3.9999.ebuild
index 839502b..ab24bf9 100644
--- a/dev-java/icedtea/icedtea-3.9999.ebuild
+++ b/dev-java/icedtea/icedtea-3.9999.ebuild
@@ -1,4 +1,4 @@
-# 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-java/icedtea/icedtea-7.2.0-r3.ebuild,v 1.1 2011/12/02 12:27:17 sera Exp $
 # Build written by Andrew John Hughes (gnu_andrew@member.fsf.org)
@@ -199,7 +199,7 @@ bootstrap_impossible() {
 }
 
 src_configure() {
-	local bootstrap config
+	local bootstrap config hotspot_port jamvm_config use_jamvm use_zero zero_config
 	local vm=$(java-pkg_get-current-vm)
 
 	# Whether to bootstrap
@@ -222,10 +222,44 @@ src_configure() {
 
 	config+=" --${bootstrap}-bootstrap"
 
+	# Use Zero if requested
+	if use zero; then
+		use_zero="yes"
+	fi
+
+	# Use JamVM if requested
+	if use jamvm; then
+		use_jamvm="yes"
+	fi
+
+	# Are we on a architecture with a HotSpot port?
+	# In-tree JIT ports are available for amd64, ppc64 (le&be), sparc and x86.
+	if { use amd64 || use ppc64 || use sparc || use x86; }; then
+		hotspot_port="yes"
+	fi
+
 	# Always use HotSpot as the primary VM if available. #389521 #368669 #357633 ...
-	# Otherwise use JamVM as it's the only possibility right now
-	if ! has "${ARCH}" amd64 sparc x86; then
-		config+=" --enable-jamvm"
+	# Otherwise use JamVM on arm & ppc and Zero on anything else
+	if test "x${hotspot_port}" != "xyes"; then
+		if { use arm || use ppc; }; then
+			use_jamvm="yes"
+		else
+			use_zero="yes"
+		fi
+	fi
+
+	# Turn on JamVM if needed (non-HS archs) or requested
+	if test "x${use_jamvm}" = "xyes"; then
+		if test "x${hotspot_port}" = "xyes"; then
+			ewarn 'Enabling JamVM on an architecture with HotSpot support; issues may result.'
+			ewarn 'If so, please rebuild with USE="-jamvm"'
+		fi
+		jamvm_config="--enable-jamvm"
+	fi
+
+	# Turn on Zero if needed (non-HS/CACAO archs) or requested
+	if test "x${use_zero}" = "xyes"; then
+		zero_config="--enable-zero"
 	fi
 
 	config+=" --with-parallel-jobs=$(makeopts_jobs)"
@@ -256,7 +290,8 @@ src_configure() {
 		$(use_enable nss) \
 		$(use_enable pulseaudio pulse-java) \
 		$(use_enable systemtap) \
-		$(use_with pax_kernel pax paxctl)
+		$(use_with pax_kernel pax paxctl) \
+		${zero_config} ${jamvm_config}
 }
 
 src_compile() {

diff --git a/dev-java/icedtea/icedtea-6.1.13.5-r1.ebuild b/dev-java/icedtea/icedtea-6.1.13.5-r1.ebuild
index 990bb93..98da314 100644
--- a/dev-java/icedtea/icedtea-6.1.13.5-r1.ebuild
+++ b/dev-java/icedtea/icedtea-6.1.13.5-r1.ebuild
@@ -1,4 +1,4 @@
-# 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-java/icedtea/icedtea-6.1.13.5-r1.ebuild,v 1.1 2014/11/01 17:59:37 caster Exp $
 # Build written by Andrew John Hughes (gnu_andrew@member.fsf.org)
@@ -37,7 +37,7 @@ SLOT="6"
 KEYWORDS="~amd64 ~x86"
 
 IUSE="+X +alsa cacao cjk +cups debug doc examples javascript +jbootstrap kerberos +nsplugin
-	+nss pax_kernel pulseaudio selinux +source systemtap test +webstart"
+	+nss pax_kernel pulseaudio selinux +source systemtap test zero +webstart"
 
 # Ideally the following were optional at build time.
 ALSA_COMMON_DEP="
@@ -118,12 +118,8 @@ DEPEND="${COMMON_DEP} ${ALSA_COMMON_DEP} ${CUPS_COMMON_DEP} ${X_COMMON_DEP}
 	${X_DEPEND}
 	pax_kernel? ( sys-apps/elfix )"
 
-PDEPEND="webstart? (
-			dev-java/icedtea-web:0
-		)
-		nsplugin? (
-			dev-java/icedtea-web:0[nsplugin]
-		)"
+PDEPEND="webstart? ( dev-java/icedtea-web:0 )
+	nsplugin? ( dev-java/icedtea-web:0[nsplugin] )"
 
 S="${WORKDIR}"/${ICEDTEA_PKG}
 
@@ -174,7 +170,7 @@ bootstrap_impossible() {
 }
 
 src_configure() {
-	local bootstrap config enable_cacao
+	local bootstrap cacao_config config hotspot_port use_cacao use_zero zero_config
 	local vm=$(java-pkg_get-current-vm)
 
 	# IcedTea6 can't be built using IcedTea7; its class files are too new
@@ -196,18 +192,44 @@ src_configure() {
 
 	config+=" --${bootstrap}-bootstrap"
 
+	# Use Zero if requested
+	if use zero; then
+		use_zero="yes"
+	fi
+
+	# Use CACAO if requested
+	if use cacao; then
+		use_cacao="yes"
+	fi
+
+	# Are we on a architecture with a HotSpot port?
+	# In-tree JIT ports are available for amd64, arm, sparc and x86.
+	if { use amd64 || use arm || use sparc || use x86; }; then
+		hotspot_port="yes"
+	fi
+
 	# Always use HotSpot as the primary VM if available. #389521 #368669 #357633 ...
-	# Otherwise use CACAO
-	if ! has "${ARCH}" amd64 arm sparc x86; then
-		enable_cacao=yes
-	elif use cacao; then
-		ewarn 'Enabling CACAO on an architecture with HotSpot support; issues may result.'
-		ewarn 'If so, please rebuild with USE="-cacao"'
-		enable_cacao=yes
+	# Otherwise use CACAO on ppc and Zero on anything else
+	if test "x${hotspot_port}" != "xyes"; then
+		if use ppc; then
+			use_cacao="yes"
+		else
+			use_zero="yes"
+		fi
+	fi
+
+	# Turn on CACAO if needed (non-HS archs) or requested
+	if test "x${use_cacao}" = "xyes"; then
+		if test "x${hotspot_port}" = "xyes"; then
+			ewarn 'Enabling CACAO on an architecture with HotSpot support; issues may result.'
+			ewarn 'If so, please rebuild with USE="-cacao"'
+		fi
+		cacao_config="--enable-cacao"
 	fi
 
-	if [[ ${enable_cacao} ]]; then
-		config+=" --enable-cacao"
+	# Turn on Zero if needed (non-HS/CACAO archs) or requested
+	if test "x${use_zero}" = "xyes"; then
+		zero_config="--enable-zero"
 	fi
 
 	config+=" --with-parallel-jobs=$(makeopts_jobs)"
@@ -234,7 +256,8 @@ src_configure() {
 		$(use_enable nss) \
 		$(use_enable pulseaudio pulse-java) \
 		$(use_enable systemtap) \
-		$(use_with pax_kernel pax "${EPREFIX}/usr/sbin/paxmark.sh")
+		$(use_with pax_kernel pax "${EPREFIX}/usr/sbin/paxmark.sh") \
+		${zero_config} ${cacao_config}
 }
 
 src_compile() {

diff --git a/dev-java/icedtea/icedtea-6.9999.ebuild b/dev-java/icedtea/icedtea-6.9999.ebuild
index 96d2418..1627d7a 100644
--- a/dev-java/icedtea/icedtea-6.9999.ebuild
+++ b/dev-java/icedtea/icedtea-6.9999.ebuild
@@ -1,4 +1,4 @@
-# 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-java/icedtea/icedtea-6.1.13.5.ebuild,v 1.1 2014/10/19 06:46:41 caster Exp $
 # Build written by Andrew John Hughes (gnu_andrew@member.fsf.org)
@@ -36,7 +36,7 @@ SLOT="6"
 KEYWORDS=""
 
 IUSE="+X +alsa cacao cjk +cups debug doc examples javascript +jbootstrap +nsplugin
-	+nss pax_kernel pulseaudio selinux +source systemtap test +webstart"
+	+nss pax_kernel pulseaudio selinux +source systemtap test zero +webstart"
 
 # Ideally the following were optional at build time.
 ALSA_COMMON_DEP="
@@ -116,12 +116,8 @@ DEPEND="${COMMON_DEP} ${ALSA_COMMON_DEP} ${CUPS_COMMON_DEP} ${X_COMMON_DEP}
 	${X_DEPEND}
 	pax_kernel? ( sys-apps/paxctl )"
 
-PDEPEND="webstart? (
-			dev-java/icedtea-web:0
-		)
-		nsplugin? (
-			dev-java/icedtea-web:0[nsplugin]
-		)"
+PDEPEND="webstart? ( dev-java/icedtea-web:0 )
+	nsplugin? ( dev-java/icedtea-web:0[nsplugin] )"
 
 S="${WORKDIR}"/${ICEDTEA_PKG}
 
@@ -171,7 +167,7 @@ bootstrap_impossible() {
 }
 
 src_configure() {
-	local bootstrap config enable_cacao
+	local bootstrap cacao_config config hotspot_port use_cacao use_zero zero_config
 	local vm=$(java-pkg_get-current-vm)
 
 	# IcedTea6 can't be built using IcedTea7; its class files are too new
@@ -193,18 +189,44 @@ src_configure() {
 
 	config+=" --${bootstrap}-bootstrap"
 
+	# Use Zero if requested
+	if use zero; then
+		use_zero="yes"
+	fi
+
+	# Use CACAO if requested
+	if use cacao; then
+		use_cacao="yes"
+	fi
+
+	# Are we on a architecture with a HotSpot port?
+	# In-tree JIT ports are available for amd64, arm, sparc and x86.
+	if { use amd64 || use arm || use sparc || use x86; }; then
+		hotspot_port="yes"
+	fi
+
 	# Always use HotSpot as the primary VM if available. #389521 #368669 #357633 ...
-	# Otherwise use CACAO
-	if ! has "${ARCH}" amd64 sparc x86; then
-		enable_cacao=yes
-	elif use cacao; then
-		ewarn 'Enabling CACAO on an architecture with HotSpot support; issues may result.'
-		ewarn 'If so, please rebuild with USE="-cacao"'
-		enable_cacao=yes
+	# Otherwise use CACAO on ppc and Zero on anything else
+	if test "x${hotspot_port}" != "xyes"; then
+		if use ppc; then
+			use_cacao="yes"
+		else
+			use_zero="yes"
+		fi
+	fi
+
+	# Turn on CACAO if needed (non-HS archs) or requested
+	if test "x${use_cacao}" = "xyes"; then
+		if test "x${hotspot_port}" = "xyes"; then
+			ewarn 'Enabling CACAO on an architecture with HotSpot support; issues may result.'
+			ewarn 'If so, please rebuild with USE="-cacao"'
+		fi
+		cacao_config="--enable-cacao"
 	fi
 
-	if [[ ${enable_cacao} ]]; then
-		config+=" --enable-cacao"
+	# Turn on Zero if needed (non-HS/CACAO archs) or requested
+	if test "x${use_zero}" = "xyes"; then
+		zero_config="--enable-zero"
 	fi
 
 	config+=" --with-parallel-jobs=$(makeopts_jobs)"
@@ -230,7 +252,8 @@ src_configure() {
 		$(use_enable nss) \
 		$(use_enable pulseaudio pulse-java) \
 		$(use_enable systemtap) \
-		$(use_with pax_kernel pax paxctl)
+		$(use_with pax_kernel pax paxctl) \
+		${zero_config} ${cacao_config}
 }
 
 src_compile() {

diff --git a/dev-java/icedtea/icedtea-7.2.5.3.ebuild b/dev-java/icedtea/icedtea-7.2.5.3.ebuild
index 18eea8f..d3bce52 100644
--- a/dev-java/icedtea/icedtea-7.2.5.3.ebuild
+++ b/dev-java/icedtea/icedtea-7.2.5.3.ebuild
@@ -147,13 +147,9 @@ DEPEND="${COMMON_DEP} ${ALSA_COMMON_DEP} ${CUPS_COMMON_DEP} ${X_COMMON_DEP}
 	${X_DEPEND}
 	pax_kernel? ( sys-apps/elfix )"
 
-PDEPEND="webstart? (
-			dev-java/icedtea-web:0[icedtea7]
-		)
-		nsplugin? (
-			dev-java/icedtea-web:0[icedtea7,nsplugin]
-		)
-		pulseaudio? ( dev-java/icedtea-sound )"
+PDEPEND="webstart? ( dev-java/icedtea-web:0[icedtea7] )
+	nsplugin? ( dev-java/icedtea-web:0[icedtea7,nsplugin] )
+	pulseaudio? ( dev-java/icedtea-sound )"
 
 S="${WORKDIR}"/${ICEDTEA_PKG}
 
@@ -203,7 +199,7 @@ java_prepare() {
 }
 
 src_configure() {
-	local bootstrap cacao_config config use_cacao use_zero zero_config
+	local bootstrap cacao_config config hotspot_port use_cacao use_zero zero_config
 	local vm=$(java-pkg_get-current-vm)
 
 	# Whether to bootstrap
@@ -232,11 +228,16 @@ src_configure() {
 		use_cacao="yes"
 	fi
 
+	# Are we on a architecture with a HotSpot port?
+	# In-tree JIT ports are available for amd64, arm, arm64, ppc64 (be&le), SPARC and x86.
+	if { use amd64 || use arm || use arm64 || use ppc64 || use sparc || use x86; }; then
+		hotspot_port="yes"
+	fi
+
 	# Always use HotSpot as the primary VM if available. #389521 #368669 #357633 ...
-	# In-tree JIT ports are available for arm, aarch64, amd64, ppc64, ppc64le, SPARC and x86.
-	# Otherwise use CACAO
-	if ! has "${ARCH}" arm aarch64 amd64 ppc64 ppc64le sparc x86 ; then
-		if has "${ARCH}" ppc ; then
+	# Otherwise use CACAO on ppc and Zero on anything else
+	if test "x${hotspot_port}" != "xyes"; then
+		if use ppc; then
 			use_cacao="yes"
 		else
 			use_zero="yes"
@@ -245,6 +246,10 @@ src_configure() {
 
 	# Turn on CACAO if needed (non-HS archs) or requested
 	if test "x${use_cacao}" = "xyes"; then
+		if test "x${hotspot_port}" = "xyes"; then
+			ewarn 'Enabling CACAO on an architecture with HotSpot support; issues may result.'
+			ewarn 'If so, please rebuild with USE="-cacao"'
+		fi
 		cacao_config="--enable-cacao"
 	fi
 

diff --git a/dev-java/icedtea/icedtea-7.2.6.0_pre11.ebuild b/dev-java/icedtea/icedtea-7.2.6.0_pre11.ebuild
index f775185..b26428a 100644
--- a/dev-java/icedtea/icedtea-7.2.6.0_pre11.ebuild
+++ b/dev-java/icedtea/icedtea-7.2.6.0_pre11.ebuild
@@ -1,4 +1,4 @@
-# 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-java/icedtea/icedtea-7.2.0-r3.ebuild,v 1.1 2011/12/02 12:27:17 sera Exp $
 # Build written by Andrew John Hughes (gnu_andrew@member.fsf.org)
@@ -147,13 +147,9 @@ DEPEND="${COMMON_DEP} ${ALSA_COMMON_DEP} ${CUPS_COMMON_DEP} ${X_COMMON_DEP}
 	${X_DEPEND}
 	pax_kernel? ( sys-apps/elfix )"
 
-PDEPEND="webstart? (
-			dev-java/icedtea-web:0[icedtea7]
-		)
-		nsplugin? (
-			dev-java/icedtea-web:0[icedtea7,nsplugin]
-		)
-		pulseaudio? ( dev-java/icedtea-sound )"
+PDEPEND="webstart? ( dev-java/icedtea-web:0[icedtea7] )
+	nsplugin? ( dev-java/icedtea-web:0[icedtea7,nsplugin] )
+	pulseaudio? ( dev-java/icedtea-sound )"
 
 S="${WORKDIR}"/${ICEDTEA_PKG}
 
@@ -202,7 +198,7 @@ java_prepare() {
 }
 
 src_configure() {
-	local bootstrap cacao_config config use_cacao use_zero zero_config
+	local bootstrap cacao_config config hotspot_port use_cacao use_zero zero_config
 	local vm=$(java-pkg_get-current-vm)
 
 	# Whether to bootstrap
@@ -231,11 +227,16 @@ src_configure() {
 		use_cacao="yes"
 	fi
 
+	# Are we on a architecture with a HotSpot port?
+	# In-tree JIT ports are available for amd64, arm, arm64, ppc64 (be&le), SPARC and x86.
+	if { use amd64 || use arm || use arm64 || use ppc64 || use sparc || use x86; }; then
+		hotspot_port="yes"
+	fi
+
 	# Always use HotSpot as the primary VM if available. #389521 #368669 #357633 ...
-	# In-tree JIT ports are available for arm, aarch64, amd64, ppc64, ppc64le, SPARC and x86.
-	# Otherwise use CACAO
-	if ! has "${ARCH}" arm aarch64 amd64 ppc64 ppc64le sparc x86 ; then
-		if has "${ARCH}" ppc ; then
+	# Otherwise use CACAO on ppc and Zero on anything else
+	if test "x${hotspot_port}" != "xyes"; then
+		if use ppc; then
 			use_cacao="yes"
 		else
 			use_zero="yes"
@@ -244,6 +245,10 @@ src_configure() {
 
 	# Turn on CACAO if needed (non-HS archs) or requested
 	if test "x${use_cacao}" = "xyes"; then
+		if test "x${hotspot_port}" = "xyes"; then
+			ewarn 'Enabling CACAO on an architecture with HotSpot support; issues may result.'
+			ewarn 'If so, please rebuild with USE="-cacao"'
+		fi
 		cacao_config="--enable-cacao"
 	fi
 


             reply	other threads:[~2015-01-11 18:00 UTC|newest]

Thread overview: 191+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-01-11 18:00 Andrew John Hughes [this message]
  -- strict thread matches above, loose matches on Subject: below --
2020-05-06 22:04 [gentoo-commits] proj/java:master commit in: dev-java/icedtea/ Andrew John Hughes
2020-04-20  5:42 Andrew John Hughes
2020-03-16  4:06 Andrew John Hughes
2020-01-21  6:23 Andrew John Hughes
2020-01-21  6:23 Andrew John Hughes
2019-11-18 16:28 Andrew John Hughes
2019-11-15  5:57 Andrew John Hughes
2019-07-31 14:39 Andrew John Hughes
2019-05-10 19:18 Andrew John Hughes
2019-05-09 19:27 Andrew John Hughes
2019-05-02  3:43 Andrew John Hughes
2019-03-26  4:19 Andrew John Hughes
2019-03-12  4:42 Andrew John Hughes
2019-01-10  6:50 Andrew John Hughes
2019-01-07  6:32 Andrew John Hughes
2019-01-04  7:43 Andrew John Hughes
2019-01-03  5:04 Andrew John Hughes
2018-10-06 21:52 James Le Cuirot
2018-10-06 21:52 James Le Cuirot
2018-10-02  0:48 Andrew John Hughes
2018-06-10  8:12 James Le Cuirot
2018-06-09 21:03 James Le Cuirot
2018-06-07  3:18 Andrew John Hughes
2018-05-31  0:07 Andrew John Hughes
2018-04-08 19:10 James Le Cuirot
2018-04-08 19:10 James Le Cuirot
2018-03-28 20:00 Andrew John Hughes
2018-03-02 19:28 Andrew John Hughes
2017-12-06 20:19 Andrew John Hughes
2017-12-06 16:36 Andrew John Hughes
2017-11-02 23:15 Andrew John Hughes
2017-09-18  0:24 Andrew John Hughes
2017-08-10 20:16 Andrew John Hughes
2017-07-31 16:44 Andrew John Hughes
2017-07-31  2:54 Andrew John Hughes
2017-07-21  4:17 Andrew John Hughes
2017-05-17 17:48 Andrew John Hughes
2017-05-17  3:17 Andrew John Hughes
2017-03-08 13:50 James Le Cuirot
2017-02-14  4:50 Andrew John Hughes
2017-02-14  4:50 Andrew John Hughes
2017-02-14  4:50 Andrew John Hughes
2017-02-14  4:50 Andrew John Hughes
2017-01-30 22:18 James Le Cuirot
2017-01-30 22:18 James Le Cuirot
2017-01-28 21:51 Andrew John Hughes
2017-01-12  5:16 Andrew John Hughes
2016-11-26 10:50 James Le Cuirot
2016-11-21 22:46 James Le Cuirot
2016-11-14  7:10 Andrew John Hughes
2016-11-09  9:14 Andrew John Hughes
2016-09-02  0:35 Andrew John Hughes
2016-08-25  2:36 Andrew John Hughes
2016-08-09 19:44 Andrew John Hughes
2016-08-08 14:58 Andrew John Hughes
2016-08-05 20:45 James Le Cuirot
2016-08-03 22:52 James Le Cuirot
2016-08-02 22:31 James Le Cuirot
2016-08-02 22:31 James Le Cuirot
2016-08-02 22:31 James Le Cuirot
2016-08-02 22:31 James Le Cuirot
2016-08-02 22:16 James Le Cuirot
2016-07-29  6:49 Andrew John Hughes
2016-07-26  5:30 Andrew John Hughes
2016-07-26  1:53 Andrew John Hughes
2016-07-17 20:39 Andrew John Hughes
2016-05-21 15:23 Andrew John Hughes
2016-05-21 15:23 Andrew John Hughes
2016-05-04 22:21 Andrew John Hughes
2016-04-22  6:17 Andrew John Hughes
2016-04-17 21:11 James Le Cuirot
2016-04-17 16:22 Andrew John Hughes
2016-04-12 16:56 Andrew John Hughes
2016-04-08 18:09 Andrew John Hughes
2016-03-30 15:02 Andrew John Hughes
2016-03-29  0:52 Andrew John Hughes
2016-03-26 21:05 James Le Cuirot
2016-03-25 18:00 Andrew John Hughes
2016-03-03 21:06 Andrew John Hughes
2016-01-31 20:48 James Le Cuirot
2016-01-25 18:47 Andrew John Hughes
2016-01-25 18:47 Andrew John Hughes
2016-01-24 14:30 James Le Cuirot
2016-01-24 14:30 James Le Cuirot
2016-01-24 14:30 James Le Cuirot
2016-01-24 14:30 James Le Cuirot
2016-01-24 14:30 James Le Cuirot
2016-01-24 14:30 James Le Cuirot
2016-01-23 23:07 James Le Cuirot
2016-01-22 12:12 Andrew John Hughes
2016-01-17 21:41 James Le Cuirot
2016-01-17 21:25 James Le Cuirot
2016-01-11  2:47 Andrew John Hughes
2016-01-04 22:40 James Le Cuirot
2015-12-24 22:27 Andrew John Hughes
2015-11-18  4:05 Andrew John Hughes
2015-11-17 21:44 Andrew John Hughes
2015-11-17 21:39 Andrew John Hughes
2015-11-17 21:39 Andrew John Hughes
2015-11-15 21:12 James Le Cuirot
2015-11-13  7:10 Andrew John Hughes
2015-10-23  6:25 Andrew John Hughes
2015-10-23  6:25 Andrew John Hughes
2015-10-23  6:25 Andrew John Hughes
2015-10-23  6:25 Andrew John Hughes
2015-10-03  0:10 Andrew John Hughes
2015-09-09 21:34 James Le Cuirot
2015-09-02 23:05 James Le Cuirot
2015-08-03  0:16 Andrew John Hughes
2015-07-23  2:18 Andrew John Hughes
2015-07-21 19:55 Andrew John Hughes
2015-07-19 17:09 Andrew John Hughes
2015-07-09 15:59 Andrew John Hughes
2015-06-25  1:14 Andrew John Hughes
2015-06-20 13:35 James Le Cuirot
2015-06-19 17:07 Andrew John Hughes
2015-06-19 16:24 Andrew John Hughes
2015-06-17 11:20 Andrew John Hughes
2015-05-07 12:33 James Le Cuirot
2015-05-06 21:53 James Le Cuirot
2015-04-15  3:50 Andrew John Hughes
2015-02-02 19:51 Andrew John Hughes
2015-02-02 19:51 Andrew John Hughes
2015-01-27  0:46 Andrew John Hughes
2015-01-11 18:06 Andrew John Hughes
2014-11-13 10:40 Andrew John Hughes
2014-11-03  1:01 Andrew John Hughes
2014-11-03  1:01 Andrew John Hughes
2014-11-01 15:49 Vlastimil Babka
2014-11-01 15:49 Vlastimil Babka
2014-11-01 15:49 Vlastimil Babka
2014-10-30 23:12 Andrew John Hughes
2014-10-30 23:12 Andrew John Hughes
2014-10-27 18:53 Andrew John Hughes
2014-10-15  5:59 Andrew John Hughes
2014-10-15  5:59 Andrew John Hughes
2014-10-15  2:42 Andrew John Hughes
2014-10-07 19:48 Andrew John Hughes
2014-10-05 22:52 Vlastimil Babka
2014-10-05 22:52 Vlastimil Babka
2014-10-05 22:52 Vlastimil Babka
2014-10-05 22:52 Vlastimil Babka
2014-10-05 22:29 Vlastimil Babka
2014-09-02  4:30 Andrew John Hughes
2014-09-02  4:30 Andrew John Hughes
2014-08-12 17:28 ` Andrew John Hughes
2014-09-02  4:30 Andrew John Hughes
2014-08-13 22:29 ` Andrew John Hughes
2014-07-24  3:56 Andrew John Hughes
2014-09-02  4:30 ` Andrew John Hughes
2014-07-18 21:57 Andrew John Hughes
2014-07-16 20:54 Andrew John Hughes
2014-07-16 10:44 Andrew John Hughes
2014-07-15 23:12 Andrew John Hughes
2014-07-15 21:53 Andrew John Hughes
2014-07-15 18:18 Andrew John Hughes
2014-04-15 23:38 Andrew John Hughes
2014-03-28 13:57 Andrew John Hughes
2014-02-22  2:02 Andrew John Hughes
2014-01-30 21:10 Ralph Sennhauser
2014-01-30 19:29 Andrew John Hughes
2014-01-29 12:19 Andrew John Hughes
2014-01-28 17:26 Andrew John Hughes
2014-01-28  6:58 Ralph Sennhauser
2014-01-28  6:58 Ralph Sennhauser
2014-01-28  6:58 Ralph Sennhauser
2013-12-27  0:54 Andrew John Hughes
2013-12-26 19:12 Andrew John Hughes
2013-12-01 21:19 Vlastimil Babka
2013-11-25 13:55 Andrew John Hughes
2013-11-13  4:11 Andrew John Hughes
2013-10-23  4:34 Andrew John Hughes
2013-10-23  4:34 Andrew John Hughes
2013-09-24 16:34 Andrew John Hughes
2013-09-19 17:04 Andrew John Hughes
2013-09-09 22:33 Andrew John Hughes
2013-09-09 22:18 Tom Wijsman
2013-09-09 22:17 Tom Wijsman
2013-09-07  0:52 Andrew John Hughes
2013-07-30  0:25 Andrew John Hughes
2013-07-25 10:59 Andrew John Hughes
2013-07-25 10:52 Andrew John Hughes
2013-07-22 12:39 Andrew John Hughes
2013-07-22 12:39 Andrew John Hughes
2013-07-22 12:39 Andrew John Hughes
2013-07-22 12:39 Andrew John Hughes
2013-07-22 12:39 Andrew John Hughes
2013-07-22 12:39 Andrew John Hughes
2013-06-15  9:33 Vlastimil Babka
2013-05-23 23:33 Sebastian Pipping

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1420999028.8ea0981804770548296563aa037fcbd476c084fe.gnu_andrew@gentoo \
    --to=gnu_andrew@member.fsf.org \
    --cc=gentoo-commits@lists.gentoo.org \
    --cc=gentoo-dev@lists.gentoo.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox