summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJoshua Nichols <nichoj@gentoo.org>2006-01-20 00:08:39 +0000
committerJoshua Nichols <nichoj@gentoo.org>2006-01-20 00:08:39 +0000
commitfe58ed955c3395121c63a66ea3aa5af17cdb026e (patch)
treecc43a7e50e7c6a537e979ff926bde7c3f09414c2 /eclass/java.eclass
parent3.0_p1 version bump for bug 118553. Removing previous version as it is gone f... (diff)
downloadhistorical-fe58ed955c3395121c63a66ea3aa5af17cdb026e.tar.gz
historical-fe58ed955c3395121c63a66ea3aa5af17cdb026e.tar.bz2
historical-fe58ed955c3395121c63a66ea3aa5af17cdb026e.zip
Fix for bug #119577. Also cleaned up some whitespace.
Diffstat (limited to 'eclass/java.eclass')
-rw-r--r--eclass/java.eclass15
1 files changed, 7 insertions, 8 deletions
diff --git a/eclass/java.eclass b/eclass/java.eclass
index 977cdaeca0b5..9f2c4371962e 100644
--- a/eclass/java.eclass
+++ b/eclass/java.eclass
@@ -1,6 +1,6 @@
# Copyright 1999-2004 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/eclass/java.eclass,v 1.27 2006/01/19 03:47:55 nichoj Exp $
+# $Header: /var/cvsroot/gentoo-x86/eclass/java.eclass,v 1.28 2006/01/20 00:08:39 nichoj Exp $
#
# Author: Karl Trygve Kalleberg <karltk@gentoo.org>
@@ -39,9 +39,9 @@ java_pkg_prerm() {
}
java_set_default_vm_() {
- java-config --set-system-vm=${VMHANDLE}
- /usr/sbin/env-update
- source /etc/profile
+ java-config --set-system-vm=${VMHANDLE}
+ /usr/sbin/env-update
+ source /etc/profile
echo
einfo " After installing ${P} this"
@@ -116,7 +116,8 @@ java_remove-libjsoundalsa() {
fi
}
-# Fixes ${JAVA_HOME}/jre/lib/i386 for i?86. See bug #23579.
+# Symlinks i386 to i?86. Updates env file to then use i?86
+# for LD_LIBRARY_PATH. See bug #23579.
#
# Takes an argument, which is a directory living in ${D}
# which has a directory named i386, that should be i686, i486, etc.
@@ -131,9 +132,7 @@ fix-i386-dir() {
if [[ ${host} != i386 ]]; then
local orig_dir="${libdir}/i386"
local new_dir="${libdir}/${host}"
- mv ${D}/${orig_dir} ${D}/${new_dir} ||
- die "Failed to move ${orig_dir} to ${new_dir}"
- dosym ${host} ${orig_dir} || die "Failed to dosym"
+ dosym i386 ${new_dir} || die "Failed to dosym"
sed -i -e "s/i386/${host}/g" \