Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 107633 - jython emerge fails with java-config errors
Summary: jython emerge fails with java-config errors
Status: RESOLVED CANTFIX
Alias: None
Product: Gentoo/Alt
Classification: Unclassified
Component: Mac OSX (show other bugs)
Hardware: All OS X
: High normal
Assignee: Gentoo for Mac OS X
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-09-29 12:06 UTC by Ákos Maróy
Modified: 2006-09-24 00:26 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Ákos Maróy 2005-09-29 12:06:40 UTC
after emerging java-config, and trying to emerge jython, I get the following error:

>>> Downloading http://distfiles.gentoo.org/distfiles/jython-2.1.tar.bz2
######################################################################## 100.0%
>>> md5 files   ;-) jython-2.1-r6.ebuild
>>> md5 files   ;-) files/digest-jython-2.1-r6
>>> md5 files   ;-) files/jython
>>> md5 files   ;-) files/jythonc
>>> md5 src_uri ;-) jython-2.1.tar.bz2
>>> Unpacking source...
>>> Unpacking jython-2.1.tar.bz2 to /var/tmp/portage/jython-2.1-r6/work
>>> Source unpacked.
Traceback (most recent call last):
  File "/usr/bin/java-config", line 123, in ?
    run(option_list)
  File "/usr/bin/java-config", line 41, in run
    func(args)
  File
"/System/Library/Frameworks/Python.framework/Versions/2.3/lib/python2.3/site-packages/java_config/jc_options.py",
line 221, in __call__
    print find_exec('javac')
  File
"/System/Library/Frameworks/Python.framework/Versions/2.3/lib/python2.3/site-packages/java_config/jc_util.py",
line 99, in find_exec
    exec_0 = jh+'/bin/'+exe
TypeError: unsupported operand type(s) for +: 'NoneType' and 'str'
xargs: insufficient space for command

!!! ERROR: dev-java/jython-2.1-r6 failed.
!!! Function src_compile, Line 47, Exitcode 1
!!! Failed to compile
!!! If you need support, post the topmost build error, NOT this status message.


Reproducible: Always
Steps to Reproduce:
1. try to emerge jython
2. see the error message
3.




# emerge info
!!! Relying on the shell to locate gcc, this may break
!!! DISTCC, installing gcc-config and setting your current gcc
!!! profile will fix this
Portage 2.0.51.22-r2 (default-darwin/macos/10.4, gcc-4.0.0, libsystem-7.1-r0,
8.2.0 Power Macintosh)
=================================================================
System uname: 8.2.0 Power Macintosh powerpc
macos-20041118
distcc 2.0.1-zeroconf powerpc-apple-darwin7.0 (protocol 1) (default port 3632)
[disabled]
ccache version 2.3 [enabled]
dev-lang/python:     [Not Present]
sys-apps/sandbox:    [Not Present]
sys-devel/autoconf:  [Not Present]
sys-devel/automake:  [Not Present]
sys-devel/binutils:  [Not Present]
sys-devel/libtool:   [Not Present]
virtual/os-headers:  7.1
ACCEPT_KEYWORDS="ppc-macos"
AUTOCLEAN="yes"
CBUILD="powerpc-apple-darwin"
CFLAGS="-O2 -pipe"
CHOST="powerpc-apple-darwin"
CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3/share/config
/usr/share/config /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/env.d"
CXXFLAGS="-O2 -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoconfig ccache collision-protect distlocks sfperms strict"
GENTOO_MIRRORS="http://distfiles.gentoo.org
http://distro.ibiblio.org/pub/Linux/distributions/gentoo"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="ppc emboss ipv6 nls ppc-macos ssl userland_Darwin kernel_Darwin elibc_Darwin"
Unset:  ASFLAGS, CTARGET, LANG, LC_ALL, LDFLAGS, LINGUAS, PORTDIR_OVERLAY
Comment 1 Dave Laing 2006-09-23 20:56:36 UTC
I'm seeing this on AMD64.  

I fixed this problem on my system by changing line 107 (first line of code in find_exec(...)) of jc_util.py
from
    jh = JAVA_HOME
to
    jh = get_java_home()

Since JAVA_HOME wasn't actually set anywhere this was also preventing me from setting my generation 1 system VM.
Comment 2 Fabian Groffen gentoo-dev 2006-09-24 00:26:19 UTC
Dave, please file a new bug on your issue.  This is an OSX specific issue, which we cannot fix.   Hence I close this bug.