packaging(RHEL-CTDB): makerpms.sh: build winbind-32bit libs in the 64bit build
authorMichael Adam <obnox@samba.org>
Wed, 21 Jan 2009 08:49:12 +0000 (09:49 +0100)
committerKarolin Seeger <kseeger@samba.org>
Thu, 26 Nov 2009 10:40:47 +0000 (11:40 +0100)
Michael
(cherry picked from commit a9a506b6640986548e2ae8540b7ae93960d6ece5)
(cherry picked from commit 63d465cdbf522409b6ba9e6507be908d15ac997a)

packaging/RHEL-CTDB/makerpms.sh

index 50fa96c2b11248827c7d496bfad556b8ed54abf8..8da9078f98e9bed2eb03749c30a3069513a18557 100755 (executable)
@@ -88,19 +88,20 @@ cp -p ${SPECFILE} ${RPMSPECDIR}
 popd
 
 ##
-## Build
+## some symlink fixes for building 32bit compat libs
 ##
-echo "$(basename $0): Getting Ready to build release package"
-pushd ${RPMSPECDIR}
-${RPM} -ba $EXTRA_OPTIONS $SPECFILE
-if [ "x$?" = "x0" ] && [ `arch` = "x86_64" ]; then
-    echo "Building 32 bit winbind libs"
-    # hi ho, a hacking we will go ...
+if [ `arch` = "x86_64" ]; then
     ln -sf /lib/libcom_err.so.2 /lib/libcom_err.so
     ln -sf /lib/libuuid.so.1 /lib/libuuid.so
-    ${RPM} -ba --rebuild --target=i386 $SPECFILE
 fi
 
+##
+## Build
+##
+echo "$(basename $0): Getting Ready to build release package"
+
+pushd ${RPMSPECDIR}
+${RPM} -ba $EXTRA_OPTIONS $SPECFILE
 popd
 
 echo "$(basename $0): Done."