summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPatrick McLean <chutzpah@gentoo.org>2014-04-24 22:55:35 +0000
committerPatrick McLean <chutzpah@gentoo.org>2014-04-24 22:55:35 +0000
commit456752c37a4ecd79b0303fde9f3795727aa308ba (patch)
treef49af77ed5790f1d78a8078ec9ab68b970f58bb0 /dev-java
parentdrop old (diff)
downloadgentoo-2-456752c37a4ecd79b0303fde9f3795727aa308ba.tar.gz
gentoo-2-456752c37a4ecd79b0303fde9f3795727aa308ba.tar.bz2
gentoo-2-456752c37a4ecd79b0303fde9f3795727aa308ba.zip
Fix sandbox errors related to new versions of jline trying to write a history file (bug #508636).
(Portage version: 2.2.10/cvs/Linux x86_64, signed Manifest commit with key 0xE3F69979BB4B8928DA78E3D17CBF44EF)
Diffstat (limited to 'dev-java')
-rw-r--r--dev-java/jython/ChangeLog7
-rw-r--r--dev-java/jython/jython-2.5.3-r3.ebuild5
-rw-r--r--dev-java/jython/jython-2.7_beta1.ebuild15
3 files changed, 18 insertions, 9 deletions
diff --git a/dev-java/jython/ChangeLog b/dev-java/jython/ChangeLog
index 1284a1b6a913..746704680988 100644
--- a/dev-java/jython/ChangeLog
+++ b/dev-java/jython/ChangeLog
@@ -1,6 +1,11 @@
# ChangeLog for dev-java/jython
# Copyright 1999-2014 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/dev-java/jython/ChangeLog,v 1.90 2014/03/10 16:57:18 johu Exp $
+# $Header: /var/cvsroot/gentoo-x86/dev-java/jython/ChangeLog,v 1.91 2014/04/24 22:55:35 chutzpah Exp $
+
+ 24 Apr 2014; Patrick McLean <chutzpah@gentoo.org> jython-2.5.3-r3.ebuild,
+ jython-2.7_beta1.ebuild:
+ Fix sandbox errors related to new versions of jline trying to write a history
+ file (bug #508636).
10 Mar 2014; Johannes Huber <johu@gentoo.org> jython-2.2.1-r2.ebuild:
x86 stable, bug #315557
diff --git a/dev-java/jython/jython-2.5.3-r3.ebuild b/dev-java/jython/jython-2.5.3-r3.ebuild
index 5492b50782ce..b0b3ff98156c 100644
--- a/dev-java/jython/jython-2.5.3-r3.ebuild
+++ b/dev-java/jython/jython-2.5.3-r3.ebuild
@@ -1,6 +1,6 @@
-# Copyright 1999-2013 Gentoo Foundation
+# Copyright 1999-2014 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/dev-java/jython/jython-2.5.3-r3.ebuild,v 1.1 2013/09/21 13:58:29 tomwij Exp $
+# $Header: /var/cvsroot/gentoo-x86/dev-java/jython/jython-2.5.3-r3.ebuild,v 1.2 2014/04/24 22:55:35 chutzpah Exp $
EAPI="4"
@@ -130,6 +130,7 @@ src_install() {
exec java -cp "$(java-pkg_getjars "${EANT_GENTOO_CLASSPATH}"):${EANT_GENTOO_CLASSPATH_EXTRA}:dist/${PN}-dev.jar" \
-Dpython.home="${ED}"/usr/share/${PN}-${SLOT} \
-Dpython.cachedir="${T}/.jythoncachedir" \
+ -Duser.home="${T}" \
org.python.util.jython "\${@}"
_EOF_
chmod +x "${T}"/jython || die
diff --git a/dev-java/jython/jython-2.7_beta1.ebuild b/dev-java/jython/jython-2.7_beta1.ebuild
index f0041a39fd2b..95471d7b944b 100644
--- a/dev-java/jython/jython-2.7_beta1.ebuild
+++ b/dev-java/jython/jython-2.7_beta1.ebuild
@@ -1,6 +1,6 @@
-# Copyright 1999-2013 Gentoo Foundation
+# Copyright 1999-2014 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/dev-java/jython/jython-2.7_beta1.ebuild,v 1.2 2013/03/26 03:51:47 radhermit Exp $
+# $Header: /var/cvsroot/gentoo-x86/dev-java/jython/jython-2.7_beta1.ebuild,v 1.3 2014/04/24 22:55:35 chutzpah Exp $
EAPI=5
JAVA_PKG_IUSE="doc examples source"
@@ -96,12 +96,14 @@ src_test() {
}
src_install() {
+ local instdir=/usr/share/${PN}-${SLOT}
+
java-pkg_newjar dist/${PN}-dev.jar
java-pkg_register-optional-dependency jdbc-mysql
java-pkg_register-optional-dependency jdbc-postgresql
- insinto /usr/share/${PN}-${SLOT}
+ insinto ${instdir}
doins -r dist/{Lib,registry}
dodoc ACKNOWLEDGMENTS NEWS README.txt
@@ -130,8 +132,9 @@ src_install() {
# we need a wrapper to help python_optimize
cat <<-EOF > "${T}"/jython
exec java -cp "$(java-pkg_getjars "${EANT_GENTOO_CLASSPATH}"):${EANT_GENTOO_CLASSPATH_EXTRA}:dist/${PN}-dev.jar" \
- -Dpython.home="${ED}"/usr/share/${PN}-${SLOT} \
+ -Dpython.home="${ED}${instdir}" \
-Dpython.cachedir="${T}/.jythoncachedir" \
+ -Duser.home="${T}" \
org.python.util.jython "\${@}"
EOF
chmod +x "${T}"/jython || die
@@ -142,7 +145,7 @@ src_install() {
# compile tests (everything else is compiled already)
# we're keeping it quiet since jython reports errors verbosely
# and some of the tests are supposed to trigger compile errors
- python_optimize "${ED}"/usr/share/jython-${SLOT}/Lib/test &>/dev/null
+ python_optimize "${ED}${instdir}"/Lib/test &>/dev/null
# for python-exec
echo "EPYTHON='${EPYTHON}'" > epython.py
@@ -150,7 +153,7 @@ src_install() {
# some of the class files end up with newer timestamps than the files they
# were generated from, make sure this doesn't happen
- find "${ED}"/usr/share/jython-${SLOT}/Lib/ -name '*.class' | xargs touch
+ find "${ED}${instdir}"/Lib/ -name '*.class' | xargs touch
}
pkg_postinst() {