Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 623114 - dev-java/netbeans-java-8.2 fails to install with dev-java/glassfish-transaction-api-1.1.2.2.04-r1
Summary: dev-java/netbeans-java-8.2 fails to install with dev-java/glassfish-transacti...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Miroslav Šulc
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2017-06-30 02:16 UTC by Ryan Harris
Modified: 2017-08-07 09:44 UTC (History)
3 users (show)

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 Ryan Harris 2017-06-30 02:16:35 UTC
dev-java/netbeans-java-8.2 fails to install due to the "-r1" revision of dev-java/glassfish-transaction-api-1.1.2.2.04 changing the name of the installed jar from jta.jar to glassfish-transaction-api.jar. The netbeans-java ebuild looks for jta.jar during the install phase and fails when it doesn't find it.


localhost x48rph # equery files glassfish-transaction-api
 * Searching for glassfish-transaction-api ...
 * Contents of dev-java/glassfish-transaction-api-1.1.2.2.04:
/usr
/usr/share
/usr/share/glassfish-transaction-api
/usr/share/glassfish-transaction-api/lib
/usr/share/glassfish-transaction-api/lib/jta.jar
/usr/share/glassfish-transaction-api/package.env

localhost x48rph # equery files glassfish-transaction-api
 * Searching for glassfish-transaction-api ...
 * Contents of dev-java/glassfish-transaction-api-1.1.2.2.04-r1:
/usr
/usr/share
/usr/share/glassfish-transaction-api
/usr/share/glassfish-transaction-api/lib
/usr/share/glassfish-transaction-api/lib/glassfish-transaction-api.jar
/usr/share/glassfish-transaction-api/package.env


 * Messages for package dev-java/netbeans-java-8.2:

 * ERROR: dev-java/netbeans-java-8.2::gentoo failed (install phase):
 *   Failed to find jta.jar in glassfish-transaction-api
 * 
 * Call stack:
 *     ebuild.sh, line  115:  Called src_install
 *   environment, line 4129:  Called java-pkg_jar-from '--into' '/tmp/portage/dev-java/netbeans-java-8.2/image///usr/share/netbeans-java-8.2/modules/ext/hibernate4' 'glassfish-transaction-api' 'jta.jar' 'jboss-transaction-api_1.2_spec-1.0.0.Final.jar'
 *   environment, line 2982:  Called die
 * The specific snippet of code:
 *           die "Failed to find ${target_jar:-jar} in ${target_pkg}";
 * 
 * If you need support, post the output of `emerge --info '=dev-java/netbeans-java-8.2::gentoo'`,
 * the complete build log and the output of `emerge -pqv '=dev-java/netbeans-java-8.2::gentoo'`.
 * The complete build log is located at '/tmp/portage/dev-java/netbeans-java-8.2/temp/build.log'.
 * The ebuild environment file is located at '/tmp/portage/dev-java/netbeans-java-8.2/temp/environment'.
 * Working directory: '/tmp/portage/dev-java/netbeans-java-8.2/image/usr/share/netbeans-java-8.2/modules/ext/hibernate4'
 * S: '/tmp/portage/dev-java/netbeans-java-8.2/work'

*** DISCLAIMER *** In the interest of full discloser I am using Funtoo but I believe this bug originates in Gentoo
Comment 1 J. García 2017-08-07 07:15:53 UTC
I just stummbled onto this bug some days ago when trying to install netbeans-8.2, changing jta.jar for glassfish-transaction-api.jar in the ebuild fixed the issue for me. 

Error after build() stage of ebuild , during install():

BUILD SUCCESSFUL
Total time: 2 minutes 46 seconds
>>> Source compiled.
>>> Test phase [not enabled]: dev-java/netbeans-java-8.2

>>> Install netbeans-java-8.2 into /var/tmp/portage/dev-java/netbeans-java-8.2/image/ category dev-java
 * java-pkg_ensure-dep: The ebuild is attempting to use commons-cli-1, which is not declared with a SLOT in DEPEND.
 * java-pkg_ensure-dep: The ebuild is attempting to use absolutelayout, which is not declared with a SLOT in DEPEND.
 * java-pkg_ensure-dep: The ebuild is attempting to use antlr, which is not declared with a SLOT in DEPEND.
 * java-pkg_ensure-dep: The ebuild is attempting to use c3p0, which is not declared with a SLOT in DEPEND.
 * java-pkg_ensure-dep: The ebuild is attempting to use commons-collections, which is not declared with a SLOT in DEPEND.
 * java-pkg_ensure-dep: The ebuild is attempting to use dom4j-1, which is not declared with a SLOT in DEPEND.
 * java-pkg_ensure-dep: The ebuild is attempting to use javassist-3, which is not declared with a SLOT in DEPEND.
 * java-pkg_ensure-dep: The ebuild is attempting to use jboss-logging, which is not declared with a SLOT in DEPEND.
 * java-pkg_ensure-dep: The ebuild is attempting to use glassfish-transaction-api, which is not declared with a SLOT in DEPEND.
 * ERROR: dev-java/netbeans-java-8.2::gentoo failed (install phase):
 *   Failed to find jta.jar in glassfish-transaction-api
 * 
 * Call stack:
 *     ebuild.sh, line  115:  Called src_install
 *   environment, line 4085:  Called java-pkg_jar-from '--into' '/var/tmp/portage/dev-java/netbeans-java-8.2/image///usr/share/netbeans-java-8.2/modules/ext/hibernate4' 'glassfish-transaction-api' 'jta.jar' 'jboss-transaction-api_1.2_spec-1.0.0.Final.jar'
 *   environment, line 2938:  Called die
 * The specific snippet of code:
 *           die "Failed to find ${target_jar:-jar} in ${target_pkg}";
 * 
 * If you need support, post the output of `emerge --info '=dev-java/netbeans-java-8.2::gentoo'`,
 * the complete build log and the output of `emerge -pqv '=dev-java/netbeans-java-8.2::gentoo'`.
!!! When you file a bug report, please include the following information:
GENTOO_VM=oracle-jdk-bin-1.8  CLASSPATH="" JAVA_HOME="/opt/oracle-jdk-bin-1.8.0.144"
JAVACFLAGS="-source 1.8 -target 1.8" COMPILER="javac"
and of course, the output of emerge --info =netbeans-java-8.2
 * The complete build log is located at '/var/tmp/portage/dev-java/netbeans-java-8.2/temp/build.log'.
 * The ebuild environment file is located at '/var/tmp/portage/dev-java/netbeans-java-8.2/temp/environment'.
 * Working directory: '/var/tmp/portage/dev-java/netbeans-java-8.2/image/usr/share/netbeans-java-8.2/modules/ext/hibernate4'
 * S: '/var/tmp/portage/dev-java/netbeans-java-8.2/work'
Comment 2 Miroslav Šulc gentoo-dev 2017-08-07 09:44:28 UTC
should be fixed now. i also marked the new ebuilds as stable as the fix was really minor.

commit c6363dededcc146d377b380eb04dd393ab0e9e39 (HEAD -> master, origin/master, origin/HEAD)
Author: Miroslav Šulc <fordfrog@gentoo.org>
Date:   Mon Aug 7 11:42:52 2017 +0200

    dev-java/netbeans-java: marking fixed ebuilds as stable to fix the jta.jar issue (the fix was minor)
    
    Package-Manager: Portage-2.3.6, Repoman-2.3.3

commit 377a3469035214458fe0dc8af8294773d0491960
Author: Miroslav Šulc <fordfrog@gentoo.org>
Date:   Mon Aug 7 11:38:54 2017 +0200

    dev-java/netbeans-java: changed jta.jar to glassfish-transaction-api.jar
    
    Package-Manager: Portage-2.3.6, Repoman-2.3.3