Bug 601766 - Pathnames in jython incorrect on 32 bit arch
Summary: Pathnames in jython incorrect on 32 bit arch
Alias: None
Product: Fedora
Classification: Fedora
Component: jython (Show other bugs)
(Show other bugs)
Version: 13
Hardware: i386 Linux
Target Milestone: ---
Assignee: Andrew Overholt
QA Contact: Fedora Extras Quality Assurance
Depends On:
TreeView+ depends on / blocked
Reported: 2010-06-08 15:11 UTC by Eric Brunson
Modified: 2010-08-05 23:42 UTC (History)
3 users (show)

Fixed In Version: jython-2.2.1-4.5.fc13
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Last Closed: 2010-08-05 23:42:18 UTC
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---

Attachments (Terms of Use)

Description Eric Brunson 2010-06-08 15:11:31 UTC
Description of problem:

jython fails to find libreadline-java.

ebrunsonlx(~)$ jython
Jython 2.2.1 on java1.6.0_18
Exception in thread "main" java.lang.NoClassDefFoundError: org/gnu/readline/ReadlineLibrary
    at org.python.util.ReadlineConsole.<init>(Unknown Source)
    at org.python.util.ReadlineConsole.<init>(Unknown Source)
    at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)

Version-Release number of selected component (if applicable):

ebrunsonlx(~)$ rpm -q fedora-release
ebrunsonlx(~)$ rpm -q jython

Additional info:

Changing these lines...

BASE_FLAGS="$BASE_FLAGS -Djava.library.path=/usr/lib64/libreadline-java"


BASE_FLAGS="$BASE_FLAGS -Djava.library.path=/usr/lib/libreadline-java"

fixes the problem.

Info from Andrew Overholt:

This is a bug in the package.  It became noarch back in February but
that means that the %{_libdir} reference in the specfile gets turned
into /usr/lib or /usr/lib64 depending on the architecture of the _build_
machine.  That'll need to be changed to do some uname checking before
setting the classpath.  Alternatively, the package can go back to being
arch-specific but that may have ramifications beyond the other simple

Comment 1 Andrew Overholt 2010-06-08 18:45:56 UTC
I changed the wrapper script to look at uname's output before it looks for /usr/lib or /usr/lib64.  I've pushed a build for F-13:


When that build finishes, please try it out and see if it fixes the problem for you.  Thanks.

On my own x86_64 and x86 boxes I can verify that it fixes the issue.

Comment 2 Eric Brunson 2010-06-08 19:09:49 UTC
Works on my x86 boxes.

Thank you.

Comment 3 Fedora Update System 2010-07-27 13:37:37 UTC
jython-2.2.1-4.5.fc13 has been submitted as an update for Fedora 13.

Comment 4 Fedora Update System 2010-07-30 08:44:29 UTC
jython-2.2.1-4.5.fc13 has been pushed to the Fedora 13 testing repository.  If problems still persist, please make note of it in this bug report.
 If you want to test the update, you can install it with 
 su -c 'yum --enablerepo=updates-testing update jython'.  You can provide feedback for this update here: http://admin.fedoraproject.org/updates/jython-2.2.1-4.5.fc13

Comment 5 Fedora Update System 2010-08-05 23:42:13 UTC
jython-2.2.1-4.5.fc13 has been pushed to the Fedora 13 stable repository.  If problems still persist, please make note of it in this bug report.

Note You need to log in before you can comment on or make changes to this bug.