Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 228425 - emerge dev-java/ant-antlr-1.7.0: dev-java/antlr-2.7.7 does not actually support the java USE flag!
Summary: emerge dev-java/ant-antlr-1.7.0: dev-java/antlr-2.7.7 does not actually suppo...
Status: RESOLVED INVALID
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: x86 Linux
: High normal (vote)
Assignee: Gentoo Linux bug wranglers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-06-19 22:23 UTC by klamp
Modified: 2008-07-08 23:18 UTC (History)
1 user (show)

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 klamp 2008-06-19 22:23:47 UTC
emerge dev-java/ant-antlr-1.7.0 fails with:

 * Messages for package dev-java/ant-antlr-1.7.0:

 *
 * ERROR: dev-java/ant-antlr-1.7.0 failed.
 * Call stack:
 *                ebuild.sh, line   49:  Called pkg_setup
 *   ant-antlr-1.7.0.ebuild, line   13:  Called built_with_use 'pkg_setup' 'pkg_setup'
 *            eutils.eclass, line 1729:  Called die
 * The specific snippet of code:
 *                                      die)   die "$PKG does not actually support the $1 USE flag!";;
 *  The die message:
 *   dev-java/antlr-2.7.7 does not actually support the java USE flag!
 *
 * If you need support, post the topmost build error, and the call stack if relevant.
 * A complete build log is located at '/var/tmp/portage/dev-java/ant-antlr-1.7.0/temp/build.log'.
 * The ebuild environment file is located at '/var/tmp/portage/dev-java/ant-antlr-1.7.0/temp/die.env'.
 *

Reproducible: Always

Steps to Reproduce:
emerge ant-antlr  
Actual Results:  
emerge fails

Expected Results:  
emerge ant-antlr should complete without error(s)

after removed:

>if ! built_with_use dev-java/antlr java; then
>                msg="dev-java/antlr needs to be built with the java use flag"
>                eerror ${msg}
>                die ${msg}
>fi

from ant-antlr-1.7.0.ebuild, ant-antlr emerged fine.
Comment 1 Jeremy Olexa (darkside) (RETIRED) archtester gentoo-dev Security 2008-06-19 22:41:24 UTC
WORKSFORME...closing as invalid. Please re sync and try again. If it still fails, post your emerge --info as well.

%% sudo USE=-java emerge -av antlr ant-antlr 
<snip>
 * dev-java/antlr needs to be built with the java use flag
 * 
 * ERROR: dev-java/ant-antlr-1.7.0 failed.
 * Call stack:
 *                ebuild.sh, line   49:  Called pkg_setup
 *   ant-antlr-1.7.0.ebuild, line   16:  Called die
 * The specific snippet of code:
 *              die ${msg}
 *  The die message:
 *   dev-java/antlr needs to be built with the java use flag
 * 
 * If you need support, post the topmost build error, and the call stack if relevant.
 * A complete build log is located at '/var/tmp/portage/dev-java/ant-antlr-1.7.0/temp/build.log'.
 * The ebuild environment file is located at '/var/tmp/portage/dev-java/ant-antlr-1.7.0/temp/die.env'.
 * 
Comment 2 klamp 2008-06-19 23:44:56 UTC
After resyncing and executing emerge ant-antlr error still occured, after executing USE=-java emerge -av antlr ant-antlr, emerge failed with same error as you posted. But now (after that all) emerge ant-antlr works fine. Strange.
So I cant reproduce bug anymore.

This looks like the same issue (emerge --info is also included). http://forums.gentoo.org/viewtopic-t-695475.html?sid=dc324132dd3e4f87b1e1e320965fdf9a
Comment 3 Bruce Karsh 2008-07-08 23:18:59 UTC
I just ran into this.  This is a user error, but the error message is confusing.

In case someone is having this problem, please notice that the error message occurs during the emerge of dev-java/ant-antlr and the error message is about dev-java/antlr.

    dev-java/antlr is different from dev-java/ant-antlr

It is dev-java/antlr that needs the java use flag.  If it was emerged without it, then dev-java/ant-antlr will complain and die.

So the fix is to reemerge dev-java/antlr with the java use flag:

    USE=java emerge -av dev-java/antlr