Hide Forgot
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) -------------------------------------
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.