From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id C99581396D9 for ; Mon, 23 Oct 2017 10:41:57 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 0C4152BC045; Mon, 23 Oct 2017 10:41:57 +0000 (UTC) Received: from smtp.gentoo.org (mail.gentoo.org [IPv6:2001:470:ea4a:1:5054:ff:fec7:86e4]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id D243F2BC045 for ; Mon, 23 Oct 2017 10:41:56 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id AB3D333BF44 for ; Mon, 23 Oct 2017 10:41:55 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id D2604316 for ; Mon, 23 Oct 2017 10:41:53 +0000 (UTC) From: "James Le Cuirot" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "James Le Cuirot" Message-ID: <1508755265.8cc2d3d6d6e310d0dc892ea075fd6843b866f127.chewi@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: dev-java/oracle-jdk-bin/ X-VCS-Repository: repo/gentoo X-VCS-Files: dev-java/oracle-jdk-bin/oracle-jdk-bin-1.8.0.152-r1.ebuild dev-java/oracle-jdk-bin/oracle-jdk-bin-1.8.0.152.ebuild X-VCS-Directories: dev-java/oracle-jdk-bin/ X-VCS-Committer: chewi X-VCS-Committer-Name: James Le Cuirot X-VCS-Revision: 8cc2d3d6d6e310d0dc892ea075fd6843b866f127 X-VCS-Branch: master Date: Mon, 23 Oct 2017 10:41:53 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Archives-Salt: 06527cc5-2546-428a-8181-cc46933a2b91 X-Archives-Hash: eec5fc93cdfbda26858296a48db6d651 commit: 8cc2d3d6d6e310d0dc892ea075fd6843b866f127 Author: James Le Cuirot gentoo org> AuthorDate: Mon Oct 23 10:41:05 2017 +0000 Commit: James Le Cuirot gentoo org> CommitDate: Mon Oct 23 10:41:05 2017 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=8cc2d3d6 dev-java/oracle-jdk-bin: Fix jce USE flag (bug #635070) The JCE files are now bundled with the JDK. Package-Manager: Portage-2.3.10, Repoman-2.3.3 ...2.ebuild => oracle-jdk-bin-1.8.0.152-r1.ebuild} | 27 +++------------------- 1 file changed, 3 insertions(+), 24 deletions(-) diff --git a/dev-java/oracle-jdk-bin/oracle-jdk-bin-1.8.0.152.ebuild b/dev-java/oracle-jdk-bin/oracle-jdk-bin-1.8.0.152-r1.ebuild similarity index 91% rename from dev-java/oracle-jdk-bin/oracle-jdk-bin-1.8.0.152.ebuild rename to dev-java/oracle-jdk-bin/oracle-jdk-bin-1.8.0.152-r1.ebuild index 13e99349fc5..23f3d4e3b5a 100644 --- a/dev-java/oracle-jdk-bin/oracle-jdk-bin-1.8.0.152.ebuild +++ b/dev-java/oracle-jdk-bin/oracle-jdk-bin-1.8.0.152-r1.ebuild @@ -5,9 +5,8 @@ EAPI=6 inherit eutils java-vm-2 prefix versionator -# This URIs need to be updated when bumping! +# This URI needs to be updated when bumping! JDK_URI="http://www.oracle.com/technetwork/java/javase/downloads/jdk8-downloads-2133151.html" -JCE_URI="http://www.oracle.com/technetwork/java/javase/downloads/jce8-download-2133166.html" # This is a list of archs supported by this update. # Currently arm comes and goes. @@ -42,9 +41,6 @@ DEMOS_x64_solaris="jdk-${MY_PV}-solaris-x64-demos.tar.gz" DEMOS_sparc64_solaris="jdk-${MY_PV}-solaris-sparcv9-demos.tar.gz" DEMOS_x64_macos="jdk-${MY_PV}-macosx-x86_64-demos.zip" -JCE_DIR="UnlimitedJCEPolicyJDK8" -JCE_FILE="jce_policy-8.zip" - DESCRIPTION="Oracle's Java SE Development Kit" HOMEPAGE="http://www.oracle.com/technetwork/java/javase/" for d in "${AT_AVAILABLE[@]}"; do @@ -55,7 +51,6 @@ for d in "${AT_AVAILABLE[@]}"; do SRC_URI+=" )" done unset d -SRC_URI+=" jce? ( ${JCE_FILE} )" LICENSE="Oracle-BCLA-JavaSE examples? ( BSD )" SLOT="1.8" @@ -107,7 +102,6 @@ RDEPEND="!x64-macos? ( selinux? ( sec-policy/selinux-java )" DEPEND="app-arch/zip - jce? ( app-arch/unzip ) examples? ( x64-macos? ( app-arch/unzip ) )" S="${WORKDIR}/jdk" @@ -148,7 +142,6 @@ pkg_nofetch() { distfiles+=( $(eval "echo \${$(echo DEMOS_${ARCH/-/_})}") ) fi check_tarballs_available "${JDK_URI}" "${distfiles[@]}" - use jce && check_tarballs_available "${JCE_URI}" "${JCE_FILE}" } src_unpack() { @@ -163,7 +156,6 @@ src_unpack() { zcat jdk1${MY_PV%u*}0${update}.pkg/Payload | cpio -idv || die mv Contents/Home "${WORKDIR}"/jdk${MY_PV} || die popd > /dev/null || die - use jce && unpack "${JCE_FILE}" else default fi @@ -175,10 +167,6 @@ src_unpack() { } src_prepare() { - if use jce ; then - mv "${WORKDIR}"/${JCE_DIR} jre/lib/security/ || die - fi - default if [[ -n ${JAVA_PKG_STRICT} ]] ; then @@ -251,17 +239,8 @@ src_install() { cp -pPR demo sample "${ddest}" || die fi - if use jce ; then - dodir "${dest}"/jre/lib/security/strong-jce - mv "${ddest}"/jre/lib/security/US_export_policy.jar \ - "${ddest}"/jre/lib/security/strong-jce || die - mv "${ddest}"/jre/lib/security/local_policy.jar \ - "${ddest}"/jre/lib/security/strong-jce || die - dosym "${dest}"/jre/lib/security/${JCE_DIR}/US_export_policy.jar \ - "${dest}"/jre/lib/security/US_export_policy.jar - dosym "${dest}"/jre/lib/security/${JCE_DIR}/local_policy.jar \ - "${dest}"/jre/lib/security/local_policy.jar - fi + ln -s policy/$(usex jce unlimited limited)/{US_export,local}_policy.jar \ + "${ddest}"/jre/lib/security/ || die if use nsplugin ; then local nsplugin_link=${nsplugin##*/}