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
It shouldn't download these in the first place. Unfortunately no one noticed when marking it stable. :|
I will take a look. Please don't close the bug.
+ 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.