Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 547914 - =dev-java/groovy-1.7.5: fails to emerge
Summary: =dev-java/groovy-1.7.5: fails to emerge
Status: RESOLVED TEST-REQUEST
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: 421503
Blocks:
  Show dependency tree
 
Reported: 2015-04-27 17:05 UTC by Ben Sagal
Modified: 2015-11-02 09:31 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 Ben Sagal 2015-04-27 17:05:30 UTC
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'
Comment 1 James Le Cuirot gentoo-dev 2015-04-27 17:18:57 UTC
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.
Comment 2 Ben Sagal 2015-04-27 17:38:15 UTC
the slots are set in 1.8.5-r1 witch is not yet. 1.7.5 is the latest stable but will not emerge
Comment 3 Toralf Förster gentoo-dev 2015-06-18 12:59:50 UTC
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.
 *
Comment 4 Patrice Clement gentoo-dev 2015-06-18 21:28:46 UTC
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.
Comment 5 Anton Bolshakov 2015-08-25 15:25:35 UTC
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
Comment 6 Anton Bolshakov 2015-08-25 15:30:14 UTC
and
-dev-java/jansi
+dev-java/jansi:0

both deps seems fixed in groovy 1.8.5
Comment 7 Anton Bolshakov 2015-08-25 16:02:14 UTC
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.
Comment 8 Patrice Clement gentoo-dev 2015-08-25 19:44:27 UTC
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?
Comment 9 Anton Bolshakov 2015-08-26 07:44:16 UTC
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.
Comment 10 Anton Bolshakov 2015-08-28 01:27:46 UTC
(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.
Comment 11 Patrice Clement gentoo-dev 2015-09-03 13:42:07 UTC
(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.
Comment 12 Patrice Clement gentoo-dev 2015-11-02 09:31:20 UTC
I bumped groovy to version 2.4.5. Can you try emerging it and report back please? Thank you.