Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 549962 - dev-java/antlr-4.4 fails in environments requiring proxy for internet access
Summary: dev-java/antlr-4.4 fails in environments requiring proxy for internet access
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Java (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Java team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-05-20 12:51 UTC by Konrad Karczewski
Modified: 2015-05-20 20:33 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 Konrad Karczewski 2015-05-20 12:51:06 UTC
dev-java/antlr-4.4 downloads 2 files as part of its build process:
http://www.antlr.org/download/antlr-4.3-complete.jar
http://www.antlr3.org/download/antlr-3.5.2-complete-no-st3.jar

When http proxy is required for internet access these tasks fail, despite http_proxy being set, and portage being able to fetch all other source bundles without problems.

I was able to get this package to build by rather simplistic workaround: after the sources were unpacked by portage I've copied the missing files into the tree:

mkdir /var/tmp/portage/dev-java/antlr-4.4/work/antlr4-4.4/lib/
cp /tmp/antlr-* /var/tmp/portage/dev-java/antlr-4.4/work/antlr4-4.4/lib/
chown -R portage:portage /var/tmp/portage/dev-java/antlr-4.4/work/antlr4-4.4/lib/

Since the get action is setup to ignore existing files, it happily progressed with the build. It seems that similar approach could be taken to fix the ebuild, with the added benefit of caching these two jars if rebuild is needed.

Reproducible: Always
Comment 1 James Le Cuirot gentoo-dev 2015-05-20 12:58:56 UTC
It shouldn't download these in the first place. Unfortunately no one noticed when marking it stable. :|
Comment 2 Patrice Clement gentoo-dev 2015-05-20 14:19:06 UTC
I will take a look. Please don't close the bug.
Comment 3 Patrice Clement gentoo-dev 2015-05-20 20:33:40 UTC
+  20 May 2015; Patrice Clement <monsieurp@gentoo.org>
+  +files/antlr-4.4-build.xml.patch, antlr-4.4.ebuild:
+  Disable jar files download via ant and let Portage fetch them instead. Fix bug
+  549962.
+

It should work fine now. Thanks for the heads up.