Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 289119 - dev-java/gjdoc-0.7.9-r1 doesn't build against antl-3.1.3-r2 or any antlr newer than 2.x
Summary: dev-java/gjdoc-0.7.9-r1 doesn't build against antl-3.1.3-r2 or any antlr newe...
Status: RESOLVED UPSTREAM
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Java (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Java team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-10-14 22:07 UTC by Rebecca Menessec
Modified: 2009-10-16 17:20 UTC (History)
0 users

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


Attachments
New ebuild with ugly hack for antlr3.jar path (gjdoc-0.7.9-r2.ebuild,2.09 KB, text/plain)
2009-10-16 15:35 UTC, Rebecca Menessec
Details
files/antlr-ver-fix.patch - Touches quite a lot of files. (antlr-ver-fix.patch,7.99 KB, text/plain)
2009-10-16 15:36 UTC, Rebecca Menessec
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Rebecca Menessec 2009-10-14 22:07:35 UTC
dev-java/gjdoc-0.7.9-r1 doesn't build against antl-3.1.3-r2 or any antlr newer than 2.x

Reproducible: Always

Steps to Reproduce:
Comment 1 Justin Lecher (RETIRED) gentoo-dev 2009-10-15 06:45:24 UTC
Please attach some sort of log which gave us a clue what your error looks like.
Comment 2 Rebecca Menessec 2009-10-15 18:55:52 UTC
(In reply to comment #1)
> Please attach some sort of log which gave us a clue what your error looks like.
>

Er, well, the ebuild wants >=2.7.1[java], which will always fail since antlr-3.1.3-r2 doesn't *have* a java USE flag.

The gjdoc autotools script doesn't look for antlr3.jar (why the name change, anyway?), doesn't seem to look in the correct installed directory, either, the fragment "--with-antlr-jar=$(java-pkg_getjar antlr antlr.jar)" in the ebuild doesn't return the correct path with or without the correct jar name, and after a lot of diffing and patching and trying to twist emerge's arm behind its back, it looks like gjdoc is calling methods that don't exist anymore (I'm assuming antlr.* will always fail now that the package is antlr3).

That last is pretty much where I gave up yesterday.

I could just put antlr > 2.x in packages.mask, but I'd like to think the correct thing to do is beat gjdoc (and any other packages in the tree) into using the newer antlr.
Comment 3 Petteri Räty (RETIRED) gentoo-dev 2009-10-16 13:00:00 UTC
(In reply to comment #2)
> (In reply to comment #1)
> > Please attach some sort of log which gave us a clue what your error looks like.
> >
> 
> Er, well, the ebuild wants >=2.7.1[java], which will always fail since
> antlr-3.1.3-r2 doesn't *have* a java USE flag.
> 

Then your gjdoc ebuild is not from the main tree:
betelgeuse@pena /usr/portage/dev-java/gjdoc $ grep antlr gjdoc-0.7.9-r1.ebuild
                >=dev-java/antlr-2.7.1:0[java]"
        local myc="--with-antlr-jar=$(java-pkg_getjar antlr antlr.jar) --disable-native"

As you can see it requests slot :0 meaning 3* won't satisfy the atom.
Comment 4 Rebecca Menessec 2009-10-16 15:31:38 UTC
(In reply to comment #3)
> (In reply to comment #2)
> > (In reply to comment #1)
> > > Please attach some sort of log which gave us a clue what your error looks like.
> > >
> > 
> > Er, well, the ebuild wants >=2.7.1[java], which will always fail since
> > antlr-3.1.3-r2 doesn't *have* a java USE flag.
> > 
> 
> Then your gjdoc ebuild is not from the main tree:
> betelgeuse@pena /usr/portage/dev-java/gjdoc $ grep antlr gjdoc-0.7.9-r1.ebuild
>                 >=dev-java/antlr-2.7.1:0[java]"
>         local myc="--with-antlr-jar=$(java-pkg_getjar antlr antlr.jar)
> --disable-native"
> 
> As you can see it requests slot :0 meaning 3* won't satisfy the atom.
> 

Partial quote.  I'm using the main tree.  Yes, I know 3* won't take care of it.  I'd like someone to help me patch this to the point it'll work with >=antlr-3.1.3-r2.  I spent an hour patching bits of the source and the ebuild, and now I've got it to the point it starts to compile using antlr3.jar, and t hen javac becomes very unhappy.

Java isn't my strong suit, and I'm hoping someone can sort of take it from there.  If anyone's interested-- well, I'll attach my patched files, regardless.
Comment 5 Rebecca Menessec 2009-10-16 15:35:14 UTC
Created attachment 207318 [details]
New ebuild with ugly hack for antlr3.jar path
Comment 6 Rebecca Menessec 2009-10-16 15:36:12 UTC
Created attachment 207319 [details]
files/antlr-ver-fix.patch - Touches quite a lot of files.
Comment 7 Rebecca Menessec 2009-10-16 15:38:12 UTC
gjdoc should at least start to build with the attached files.  After that, boom.  If someone can take a look and help out? It would be nice to get rid of the old antlr build.
Comment 8 Petteri Räty (RETIRED) gentoo-dev 2009-10-16 17:20:43 UTC
(In reply to comment #7)
> gjdoc should at least start to build with the attached files.  After that,
> boom.  If someone can take a look and help out? It would be nice to get rid of
> the old antlr build.
> 

If the whole point of this bug is that gjdoc should work with antlr-3* then you should work with upstream authors to port the code there. antlr:3 has a different ABI from antlr:0 so it's not just a matter of pointing to the new jar. When you have a working patch submitted the their version control system, you can reopen this bug and we can include it. On the Gentoo side the Gentoo Java team does not have the time currently to do such porting so closing as UPSTREAM as the ebuild itself doesn't have problems.