When emerging groovy-1.7.5 I get the following error: * Package: dev-java/groovy-1.7.5 * Repository: gentoo * Maintainer: the.dmol@gmail.com java@gentoo.org,proxy-maint@gentoo.org * USE: abi_x86_64 amd64 elibc_glibc kernel_linux policykit userland_GNU * FEATURES: compressdebug preserve-libs sandbox splitdebug userpriv usersandbox >>> cfg-update-1.8.2-r1: Creating checksum index... * Using: icedtea-7 >>> Unpacking source... >>> Unpacking groovy-src-1.7.5.zip to /var/tmp/portage/dev-java/groovy-1.7.5/work >>> Source unpacked in /var/tmp/portage/dev-java/groovy-1.7.5/work >>> Preparing source in /var/tmp/portage/dev-java/groovy-1.7.5/work/groovy-1.7.5 ... * The ebuild is attempting to use commons-cli-1, which is not declared with a SLOT in DEPEND. * The ebuild is attempting to use asm-3, which is not declared with a SLOT in DEPEND. * The ebuild is attempting to use xstream, which is not declared with a SLOT in DEPEND. * The ebuild is attempting to use jansi, which is not declared with a SLOT in DEPEND. !!! ERROR: Package junit was not found! * ERROR: dev-java/groovy-1.7.5::gentoo failed (prepare phase): * There was a problem getting the classpath for jline,junit,servletapi-2.4,bsf-2.3. * * Call stack: * ebuild.sh, line 93: Called src_prepare * environment, line 3971: Called java-pkg_jar-from 'jline,junit,servletapi-2.4,bsf-2.3' * environment, line 2808: Called die * The specific snippet of code: * [[ $? != 0 ]] && die ${error_msg}; * * If you need support, post the output of `emerge --info '=dev-java/groovy-1.7.5::gentoo'`, * the complete build log and the output of `emerge -pqv '=dev-java/groovy-1.7.5::gentoo'`. !!! When you file a bug report, please include the following information: GENTOO_VM=icedtea-7 CLASSPATH="" JAVA_HOME="/usr/lib64/icedtea7" JAVACFLAGS="-source 1.5 -target 1.5" COMPILER="" and of course, the output of emerge --info =groovy-1.7.5 * The complete build log is located at '/var/tmp/portage/dev-java/groovy-1.7.5/temp/build.log'. * The ebuild environment file is located at '/var/tmp/portage/dev-java/groovy-1.7.5/temp/environment'. * Working directory: '/var/tmp/portage/dev-java/groovy-1.7.5/work/groovy-1.7.5/target/lib/compile' * S: '/var/tmp/portage/dev-java/groovy-1.7.5/work/groovy-1.7.5'
This is due to a missing SLOT on the junit dependency. Recent QA improvements catch this problem and it has already been fixed on the latest ebuild.
the slots are set in 1.8.5-r1 witch is not yet. 1.7.5 is the latest stable but will not emerge
I get a slightly different error at the tinderbox : !!! ERROR: Package asm-3 was not found! * ERROR: dev-java/groovy-1.7.5::gentoo failed (prepare phase): * There was a problem getting the classpath for commons-cli-1,ant-core,antlr,asm-3,xstream,jansi. *
This ebuild is years old and is full of mistakes. Groovy needs bumping anyway. Maybe if I get round to it, I'll bump it eventually.
I'm facing the same problem because asm:4 is stable. The ebuild need to be changed: -CDEPEND=">=dev-java/asm-3.2 +CDEPEND=">=dev-java/asm:3
and -dev-java/jansi +dev-java/jansi:0 both deps seems fixed in groovy 1.8.5
btw, this bug is critical as www-servers/resin depends on it: www-servers/resin-4.0.44-r1 (dev-java/mojarra:1.2) dev-java/mojarra-1.2.15-r2 (dev-java/groovy:0) dev-java/groovy-1.7.5 Please adjust slots for all 3 deps in the ebuild or stabilize the next version asap.
Don't waste your time on this problem. There's a CVE out there (bug 555470) which advises to upgrade to groovy 2.4.4. Maybe you can help with that, Anton? What do you think?
Sure, I'll have a look once I have time. As a quick note, it should be easy to backport the recommended patch: public class MethodClosure extends Closure { + private Object readResolve() { + throw new UnsupportedOperationException(); + } as an alternative option.
(In reply to Patrice Clement from comment #8) > Don't waste your time on this problem. There's a CVE out there (bug 555470) > which advises to upgrade to groovy 2.4.4. Maybe you can help with that, > Anton? What do you think? So here is the problem. The latest groovy switched it's building system from ANT to Gradle (bug #339574). This is a long term blocker (5 years so far). I suggest to fix the existing ebuilds first so users could build and use their system at least. Please make it a high priority. The stable packages must build.
(In reply to Anton Bolshakov from comment #10) > Please make it a high priority. The stable packages must build. Gentoo Java team is currently made up of two devs (James and I). Sorry for spoiling your party Anton, but packaging Groovy is way down on our list. If you've got working ebuilds, by all means, send us a PR on Github and we'll be glad to review them and incorporate your changes in the main tree.
I bumped groovy to version 2.4.5. Can you try emerging it and report back please? Thank you.