| Summary: | java can't be rebuild in mock | ||
|---|---|---|---|
| Product: | Red Hat Enterprise Linux 6 | Reporter: | Levente Farkas <lfarkas> |
| Component: | java-1.6.0-openjdk | Assignee: | 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: | |
Hi Levente. Are you trying to build the RHEL 6.1 SRPM on a RHEL 6.0 system? That is not guaranteed to work. sorry, i already recognized it. but anyway it should have to be build... the above the only problems:-) 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.
|
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) -------------------------------------