Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 213942 - app-text/jabref needs dev-java/antlr w/ USE=java
Summary: app-text/jabref needs dev-java/antlr w/ USE=java
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: x86 Linux
: High trivial (vote)
Assignee: Java team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-03-19 19:20 UTC by Richard Daigle
Modified: 2009-03-24 18:37 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 Richard Daigle 2008-03-19 19:20:59 UTC
Jabref used to work on my station. Since March 08, their is a change in antlr ebuild that breaks Jabref. The reason is the nojava use flag was renamed java and enabled by default (using EAPI=1). On my system, this flag is disabled globally.  
Therefore, Jabref stopped working.
The error message given : Package antlr was not found!

By running java-check-environment, I got this error message :
 * Checking package_env ...
!!! ERROR: Package antlr was not found!
 * Broken dependencies for app-text/jabref-2.3
 * Please try emerge -uD1 =app-text/jabref-2.3 

I followed the given instructions but jabref could not compile because java-support was missing from antlr.

I enabled the java use flag and recompiled antlr. Now Jabref works.

Jabref should check at build time if java support is enabled in antlr and tell the user to recompile with USE=java if necessary. 
(see treeviewx as an example) The best solution would be use-deps but these require EAPI=2.

Reproducible: Always

Steps to Reproduce:
1.run jabref with antlr compiled without the java flag enabled
2.run emerge jabref

Actual Results:  
Solved by recompiling antlr with java flag enabled

Expected Results:  
Problem solved
Comment 1 Vlastimil Babka (Caster) (RETIRED) gentoo-dev 2008-03-21 13:20:52 UTC
It's not just jabref, but all in http://tinderbox.dev.gentoo.org/misc/rindex/dev-java/antlr
Except net-firewall/fwbuilder which only needs the c++ part, and checks for nocxx flag (should probably be updated to check for cxx flags now that it changed...)
So either we update all those ebuilds with the built_with_use check, or just drop the java flag and make it mandatory? Antlr unconditionally depends on a jdk anyway, and nobody seems to have complained yet :)
Comment 2 Petteri Räty (RETIRED) gentoo-dev 2009-03-24 18:37:54 UTC
jabref 2.4.2 use EAPI 2 use deps