| Summary: | Fails to build in mock (deprecated API) | ||||||||
|---|---|---|---|---|---|---|---|---|---|
| Product: | Red Hat Enterprise Linux 6 | Reporter: | Mathieu Bridon <bochecha> | ||||||
| Component: | geronimo-specs | Assignee: | Mikolaj Izdebski <mizdebsk> | ||||||
| Status: | CLOSED DUPLICATE | QA Contact: | BaseOS QE - Apps <qe-baseos-apps> | ||||||
| Severity: | unspecified | Docs Contact: | |||||||
| Priority: | low | ||||||||
| Version: | 6.0 | CC: | herrold, mizdebsk, sochotni | ||||||
| Target Milestone: | rc | ||||||||
| Target Release: | --- | ||||||||
| Hardware: | Unspecified | ||||||||
| OS: | Unspecified | ||||||||
| Whiteboard: | |||||||||
| Fixed In Version: | Doc Type: | Bug Fix | |||||||
| Doc Text: | Story Points: | --- | |||||||
| Clone Of: | Environment: | ||||||||
| Last Closed: | 2012-07-10 13:16:12 UTC | Type: | --- | ||||||
| Regression: | --- | Mount Type: | --- | ||||||
| Documentation: | --- | CRM: | |||||||
| Verified Versions: | Category: | --- | |||||||
| oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |||||||
| Cloudforms Team: | --- | Target Upstream Version: | |||||||
| Attachments: |
|
||||||||
Created attachment 517987 [details]
Mock build.log file when trying to build the package.
Created attachment 517988 [details]
Mock build.log file when trying to build the package with GCJ.
This request was evaluated by Red Hat Product Management for inclusion in the current release of Red Hat Enterprise Linux. Because the affected component is not scheduled to be updated in the current release, Red Hat is unfortunately unable to address this request at this time. Red Hat invites you to ask your support representative to propose this request, if appropriate and relevant, in the next release of Red Hat Enterprise Linux. If you would like it considered as an exception in the current release, please ask your support representative. Basically the solution is to compile with gcj but *not* set %define _with_gcj_support 1. This issue does not affect our builds and I assume it's caused by trying to rebuild this package in epel buildroot. If you need to rebuild this package yourself and have a support contract, please raise a ticket through your regular Red Hat support channels to make certain it receives the proper attention and prioritization to assure a timely resolution. For information on how to contact the Red Hat production support team, please visit: https://www.redhat.com/support/process/production/#howto *** This bug has been marked as a duplicate of bug 869198 *** |
Description of problem: geronimo-specs-1.0-3.4.M2 fails to build in an EL6 mock chroot, with the following error: ---------- + find specs/ejb/src/java -name '*.java' + xargs javac -source 1.4 -target 1.4 -d build/classes/ejb specs/ejb/src/java/javax/ejb/EJBContext.java:29: cannot find symbol symbol : class UserTransaction location: package javax.transaction import javax.transaction.UserTransaction; ^ specs/ejb/src/java/javax/ejb/EJBContext.java:61: cannot find symbol symbol : class UserTransaction location: interface javax.ejb.EJBContext UserTransaction getUserTransaction() throws IllegalStateException; ^ Note: specs/ejb/src/java/javax/ejb/EJBContext.java uses or overrides a deprecated API. Note: Recompile with -Xlint:deprecation for details. 2 errors + exit 1 ---------- Since the build logs talk about a deprecated API, I tried building it with GCJ 1.5 instead of OpenJDK6: ---------- diff --git a/geronimo-specs.spec b/geronimo-specs.spec index b4f3a39..6632397 100644 --- a/geronimo-specs.spec +++ b/geronimo-specs.spec @@ -1,7 +1,7 @@ %define bname geronimo %define mstone M2 -%define _without_gcj_support 1 +%define _with_gcj_support 1 %define gcj_support %{?_with_gcj_support:1}%{!?_with_gcj_support:%{?_without_gcj_support:0}%{!?_without_gcj_support:%{?_gcj_support:%{_gcj_support}}%{!?_gcj_support:0}}} ---------- The package now builds, but it fails during %install when trying to generate the debuginfos: ---------- + /usr/lib/rpm/find-debuginfo.sh --strict-build-id /builddir/build/BUILD/geronimo-1.0-M2 extracting debug info from /builddir/build/BUILDROOT/geronimo-specs-1.0-3.4.M2.el6.x86_64/usr/lib64/gcj/geronimo-specs/spec-j2ee-deployment-1.1-rc2.jar.so extracting debug info from /builddir/build/BUILDROOT/geronimo-specs-1.0-3.4.M2.el6.x86_64/usr/lib64/gcj/geronimo-specs/spec-j2ee-jacc-1.0-rc2.jar.so extracting debug info from /builddir/build/BUILDROOT/geronimo-specs-1.0-3.4.M2.el6.x86_64/usr/lib64/gcj/geronimo-specs/spec-j2ee-management-1.0-rc2.jar.so error: Bad exit status from /var/tmp/rpm-tmp.SKoJpE (%install) ---------- No idea why that fails though.