RHEL Engineering is moving the tracking of its product development work on RHEL 6 through RHEL 9 to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "RHEL project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs in the statuses "NEW", "ASSIGNED", and "POST" are being migrated throughout September 2023. Bugs of Red Hat partners with an assigned Engineering Partner Manager (EPM) are migrated in late September as per pre-agreed dates. Bugs against components "kernel", "kernel-rt", and "kpatch" are only migrated if still in "NEW" or "ASSIGNED". If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "RHEL project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/RHEL-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.
Bug 869198 - geronimo-specs-1.0-3.5.M2.el6.src can't be rebuild in mock
Summary: geronimo-specs-1.0-3.5.M2.el6.src can't be rebuild in mock
Keywords:
Status: CLOSED WONTFIX
Alias: None
Product: Red Hat Enterprise Linux 6
Classification: Red Hat
Component: geronimo-specs
Version: 6.3
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: rc
: ---
Assignee: Java maintainers
QA Contact: BaseOS QE - Apps
URL:
Whiteboard:
: 730224 (view as bug list)
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2012-10-23 09:09 UTC by Levente Farkas
Modified: 2016-07-22 06:15 UTC (History)
2 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2016-07-22 06:15:36 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)
root log (5.44 KB, application/x-gzip)
2012-10-23 10:03 UTC, Levente Farkas
no flags Details
Replace java-devel BuildRequires with java-1.5.0-gcj (1.59 KB, patch)
2012-10-24 13:48 UTC, Mikolaj Izdebski
no flags Details | Diff
Replace java-devel BuildRequires with java-1.5.0-gcj-devel (1.61 KB, patch)
2012-10-24 13:53 UTC, Mikolaj Izdebski
no flags Details | Diff

Description Levente Farkas 2012-10-23 09:09:27 UTC
since it give this error:
------------------------------
Executing(%build): /bin/sh -e /var/tmp/rpm-tmp.j67e8w
+ umask 022
+ cd /builddir/build/BUILD
+ cd geronimo-1.0-M2
+ LANG=C
+ export LANG
+ unset DISPLAY
+ export JAVA_HOME=/usr/lib/jvm/java-1.5.0
+ JAVA_HOME=/usr/lib/jvm/java-1.5.0
+ export PATH=/usr/lib/jvm/java-1.5.0/bin:/usr/lib/ccache:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/sbin:/builddir/bin
+ PATH=/usr/lib/jvm/java-1.5.0/bin:/usr/lib/ccache:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/sbin:/builddir/bin
+ mkdir -p build/lib
+ for spec in ejb-2.1 j2ee-connector-1.5 j2ee-deployment-1.1 j2ee-jacc-1.0 j2ee-management-1.0 jms-1.1 jta-1.0.1B
++ echo ejb-2.1
++ sed 's:-[^-]*$::'
+ name=ejb
+ srcdir=specs/ejb/src/java
+ classdir=build/classes/ejb
+ mkdir -p build/classes/ejb
+ jarfile=build/lib/spec-ejb-2.1.jar
+ case $name in
+ unset CLASSPATH
+ 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.
------------------------------

Comment 1 Mikolaj Izdebski 2012-10-23 09:17:44 UTC
What JVM did you use?
Can you attach root.log?

Comment 3 Levente Farkas 2012-10-23 10:02:39 UTC
a fully updated rhel-6.3

Comment 4 Levente Farkas 2012-10-23 10:03:25 UTC
Created attachment 632005 [details]
root log

Comment 5 Mikolaj Izdebski 2012-10-24 12:24:56 UTC
I tried reproducing the FTBFS, but I was unable -- the package builds just fine in RHEL 6.3 mock.

From the root.log I can see you use mock version 1.1.22, but from what I can see there is no such version in RHEL 6.3. Also it seems that you are using a custom mock configuration. Could you try reproducing the issue with RHEL 6.3 mock and default configuration?

Comment 6 Mikolaj Izdebski 2012-10-24 13:44:44 UTC
I found the cause of the bug. Patch will be attached.

Comment in spec file says: "Force Java 5 (GCJ) as this code will not build on Java due to API differences". The FTBFS was caused by using Java 6 compiler instead of Java 5.

mock 0.9.14 uses "yum install" to install build dependencies
mock 1.1.21 uses "yum-builddep" to install build dependencies

"yum install java-devel" results in installing java-1.5.0-gcj-devel
"yum-builddep" with BuildRequires: java-devel results in java-1.6.0-openjdk-devel being installed

As a result, with newer version of mock OpenJDK compiler was used, which is implementation of Java 6. Builds with older mock used ECJ, which supports Java 5 (despite its name, java-1.5.0-gcj-devel is ECJ compiler, not GCJ!)

The fix is to change BuildRequires: java-devel to java-1.5.0-gcj and correct JAVA_HOME. After this change ECJ is used during build.

Comment 7 Mikolaj Izdebski 2012-10-24 13:48:17 UTC
Created attachment 632808 [details]
Replace java-devel BuildRequires with java-1.5.0-gcj

Comment 8 Mikolaj Izdebski 2012-10-24 13:53:07 UTC
Created attachment 632809 [details]
Replace java-devel BuildRequires with java-1.5.0-gcj-devel

Comment 9 Mikolaj Izdebski 2012-10-24 14:48:32 UTC
*** Bug 730224 has been marked as a duplicate of this bug. ***

Comment 13 Mikolaj Izdebski 2016-07-22 05:41:28 UTC
Red Hat Enterprise Linux version 6 is entering the Production 2 phase of its lifetime and this bug doesn't meet the criteria for it, i.e. only high severity issues will be fixed. Please see https://access.redhat.com/support/policy/updates/errata/ for further information.

Comment 14 RHEL Program Management 2016-07-22 06:15:36 UTC
Development Management has reviewed and declined this request.
You may appeal this decision by reopening this request.


Note You need to log in before you can comment on or make changes to this bug.