Installing Netbeans on new system. Failure of patch: * ERROR: dev-java/netbeans-websvccommon-8.0.2::gentoo failed (prepare phase): * Failed Patch: italian-patch.patch! * * Call stack: * ebuild.sh, line 93: Called src_prepare * environment, line 3894: Called epatch '/usr/portage/dev-java/netbeans-websvccommon/files/italian-patch.patch' * environment, line 945: Called die * The specific snippet of code: * die "Failed Patch: ${patchname}!"; * * If you need support, post the output of `emerge --info '=dev-java/netbeans-websvccommon-8.0.2::gentoo'`, * the complete build log and the output of `emerge -pqv '=dev-java/netbeans-websvccommon-8.0.2::gentoo'`. !!! When you file a bug report, please include the following information: GENTOO_VM=icedtea-bin-7 CLASSPATH="" JAVA_HOME="/opt/icedtea-bin-7.2.5.5" JAVACFLAGS="-source 1.7 -target 1.7" COMPILER="" and of course, the output of emerge --info =netbeans-websvccommon-8.0.2 * The complete build log is located at '/var/tmp/portage/dev-java/netbeans-websvccommon-8.0.2/temp/build.log'. * The ebuild environment file is located at '/var/tmp/portage/dev-java/netbeans-websvccommon-8.0.2/temp/environment'. * Working directory: '/var/tmp/portage/dev-java/netbeans-websvccommon-8.0.2/work' * S: '/var/tmp/portage/dev-java/netbeans-websvccommon-8.0.2/work' Reproducible: Always Steps to Reproduce: 1. emerge netbeans 2. failure during prepare phase of required dependancy 3. Actual Results: Failed to begin build of dependancy Expected Results: Dependancy built
Created attachment 406148 [details] Build log
Created attachment 406150 [details] Patch output
Created attachment 406152 [details] Environment
Created attachment 406154 [details] emerge --info
emerge -pqv... [ebuild N ] dev-java/netbeans-websvccommon-8.0.2
The file that italian-patch.patch would patch does not even exist. There are some similar files inside lib.profiler/test/qa-functional/data/perfdata/jaxb-xjc.jar, but the ebuild removes all of the bundled jars immediately after they are unpacked in src_unpack. My guess is that bug 435022 only affected some older version(s) that did not remove the bundled jars.
The file that it is trying to patch appears to not actually be installed by this package - I located the (invalid) file as part of the already installed /usr/share/netbeans-ide-8.0/modules/ext/jaxb/jaxb-xjc.jar By extracting this jar under work/xjc/src/ before the patch ran allowed the patch to complete successfully, and the package compiled and installed properly. So it looks like the error this patch is attempting to solve is being installed by a different package - specifically, it's actually being installed to the system by dev-java/netbeans-ide-8.0.2
(In reply to Jeff Sweeney from comment #7) Thanks, I've removed the patch and re-opened bug 435022.