Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.
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 714056

Summary: java can't be rebuild in mock
Product: Red Hat Enterprise Linux 6 Reporter: Levente Farkas <lfarkas>
Component: java-1.6.0-openjdkAssignee: Deepak Bhole <dbhole>
Status: CLOSED NOTABUG QA Contact: BaseOS QE - Apps <qe-baseos-apps>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 6.1   
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: 2011-06-17 13:38:08 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Levente Farkas 2011-06-17 09:30:35 UTC
while try to rebuild 
java-1.6.0-openjdk-1.6.0.0-1.39.1.9.8.el6_1.src.rpm
in mock at the %install phase  it gives this error:
-------------------------------------
Executing(%install): /bin/sh -e /var/tmp/rpm-tmp.xao9Oh
+ umask 022
+ cd /builddir/build/BUILD
+ '[' /builddir/build/BUILDROOT/java-1.6.0-openjdk-1.6.0.0-1.39.1.9.8.el6_1.i386 '!=' / ']'
+ rm -rf /builddir/build/BUILDROOT/java-1.6.0-openjdk-1.6.0.0-1.39.1.9.8.el6_1.i386
++ dirname /builddir/build/BUILDROOT/java-1.6.0-openjdk-1.6.0.0-1.39.1.9.8.el6_1.i386
+ mkdir -p /builddir/build/BUILDROOT
+ mkdir /builddir/build/BUILDROOT/java-1.6.0-openjdk-1.6.0.0-1.39.1.9.8.el6_1.i386
+ cd icedtea6-1.9.8
+ LANG=C
+ export LANG
+ unset DISPLAY
+ rm -rf /builddir/build/BUILDROOT/java-1.6.0-openjdk-1.6.0.0-1.39.1.9.8.el6_1.i386
+ STRIP_KEEP_SYMTAB='libjvm*'
+ pushd openjdk.build/j2sdk-image
~/build/BUILD/icedtea6-1.9.8/openjdk.build/j2sdk-image ~/build/BUILD/icedtea6-1.9.8
++ /usr/bin/lsb_release -r
++ awk '{print $NF}'
+ RHEL_VERSION=6.0
++ echo 6.0 + 0.1
++ bc -l
+ NEXT_RHEL_VERSION=6.1
+ cp jre/lib/fontconfig.RedHat.6.0.bfc jre/lib/fontconfig.RedHat.6.0.bfc
cp: `jre/lib/fontconfig.RedHat.6.0.bfc' and `jre/lib/fontconfig.RedHat.6.0.bfc' are the same file
error: Bad exit status from /var/tmp/rpm-tmp.xao9Oh (%install)
-------------------------------------

Comment 2 Deepak Bhole 2011-06-17 13:17:22 UTC
Hi Levente. Are you trying to build the RHEL 6.1 SRPM on a RHEL 6.0 system? That is not guaranteed to work.

Comment 3 Levente Farkas 2011-06-17 13:30:11 UTC
sorry, i already recognized it. but anyway it should have to be build...
the above the only problems:-)

Comment 4 Deepak Bhole 2011-06-17 13:38:08 UTC
Yeah for 6.0, you can just comment out these lines from the spec file to prevent the above error:

  # Update the fontconfig file names to support current and next update
  RHEL_VERSION=`/usr/bin/lsb_release -r | awk '{print $NF}'`
  NEXT_RHEL_VERSION=`echo $RHEL_VERSION + 0.1 | bc -l`

  cp jre/lib/fontconfig.RedHat.6.0.bfc jre/lib/fontconfig.RedHat.$RHEL_VERSION.bfc
  cp jre/lib/fontconfig.RedHat.6.0.properties.src jre/lib/fontconfig.RedHat.$RHEL_VERSION.properties.src

  cp jre/lib/fontconfig.RedHat.6.0.bfc jre/lib/fontconfig.RedHat.$NEXT_RHEL_VERSION.bfc
  cp jre/lib/fontconfig.RedHat.6.0.properties.src jre/lib/fontconfig.RedHat.$NEXT_RHEL_VERSION.properties.src


The code above is only needed for 6.1 and higher, so disabling it on 6.0 will not affect functionality.

I am going to close this as NOTABUG, as 6.1 -> 6.0 build is not supported.