Bug 714056 - java can't be rebuild in mock
java can't be rebuild in mock
Product: Red Hat Enterprise Linux 6
Classification: Red Hat
Component: java-1.6.0-openjdk (Show other bugs)
Unspecified Unspecified
unspecified Severity unspecified
: rc
: ---
Assigned To: Deepak Bhole
BaseOS QE - Apps
Depends On:
  Show dependency treegraph
Reported: 2011-06-17 05:30 EDT by Levente Farkas
Modified: 2011-06-17 09:38 EDT (History)
0 users

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Last Closed: 2011-06-17 09:38:08 EDT
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---

Attachments (Terms of Use)

  None (edit)
Description Levente Farkas 2011-06-17 05:30:35 EDT
while try to rebuild 
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- '!=' / ']'
+ rm -rf /builddir/build/BUILDROOT/java-1.6.0-openjdk-
++ dirname /builddir/build/BUILDROOT/java-1.6.0-openjdk-
+ mkdir -p /builddir/build/BUILDROOT
+ mkdir /builddir/build/BUILDROOT/java-1.6.0-openjdk-
+ cd icedtea6-1.9.8
+ export LANG
+ unset DISPLAY
+ rm -rf /builddir/build/BUILDROOT/java-1.6.0-openjdk-
+ 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}'
++ echo 6.0 + 0.1
++ bc -l
+ 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 09:17:22 EDT
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 09:30:11 EDT
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 09:38:08 EDT
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.

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