Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 208538 - app-accessibility/brltty fails w/ USE=java
Summary: app-accessibility/brltty fails w/ USE=java
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: William Hubbs
URL:
Whiteboard:
Keywords: InVCS
Depends on:
Blocks:
 
Reported: 2008-02-02 06:20 UTC by Chris Gianelloni (RETIRED)
Modified: 2008-02-02 21:53 UTC (History)
1 user (show)

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


Attachments
patch for 3.9 (brltty.patch,2.24 KB, patch)
2008-02-02 20:22 UTC, Vlastimil Babka (Caster) (RETIRED)
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Chris Gianelloni (RETIRED) gentoo-dev 2008-02-02 06:20:40 UTC
Disabling Java works just fine.  The problem is in the JDK and how it does its includes.  As such, I suggest masking the USE flag for this package.
Comment 1 Chris Gianelloni (RETIRED) gentoo-dev 2008-02-02 06:24:15 UTC
Here's the error:

In file included from ./bindings.c:21:
/etc/java-config-2/current-system-vm/include/jni.h:27:20: error: jni_md.h: No such file or directory
In file included from ./bindings.c:21:
/etc/java-config-2/current-system-vm/include/jni.h:45: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'jsize'

...and, if you need this:
wolf31o2@inertia ~ $ locate jni_md.h
/usr/lib/mozilla-firefox/include/java/jni_md.h
/opt/blackdown-jdk-1.4.2.03/include/linux/jni_md.h
/opt/sun-jdk-1.6.0.03/include/linux/jni_md.h

Do you need my emerge --info?  It really shouldn't matter for this, but I'm compiling with USE=java and it fails, with USE=-java, it succeeds.
Comment 2 Chris Gianelloni (RETIRED) gentoo-dev 2008-02-02 06:26:38 UTC
OK, I've spoken with William and we're going to mask the java USE flag for this package for the time being.  This isn't a permanent solution, though.

Java, do you guys have any clue on what could be done to resolve this?  It really looks like the JVM/JDK itself is looking for the header in the wrong place.  Is this something we can/should fix?

(Leaving the bug open until I hear back from the Java team...)
Comment 3 Vlastimil Babka (Caster) (RETIRED) gentoo-dev 2008-02-02 20:22:47 UTC
Created attachment 142535 [details, diff]
patch for 3.9

This helps :) And actually installs the jar of the bindings, too!
Comment 4 William Hubbs gentoo-dev 2008-02-02 21:53:20 UTC
This has been fixed thanks to assistance from Caster.  Also, I cleaned up the ocaml support, thanks to Betelgeuse.

Chris, we do not need to mask the java use flag after all.  This is resolved.

Let me know if we need to re-open.