[SCM] SAMBA-CTDB repository - branch v3-2-ctdb updated - 2c08939f3db19eaaf31cb117e3d541d17a36da5e

Andrew Tridgell tridge at samba.org
Fri May 9 11:35:30 GMT 2008


The branch, v3-2-ctdb has been updated
       via  2c08939f3db19eaaf31cb117e3d541d17a36da5e (commit)
      from  8286b3c26646f54e75a2408228f956e355f7aeba (commit)

http://gitweb.samba.org/?p=tridge/samba-ctdb.git;a=shortlog;h=v3-2-ctdb


- Log -----------------------------------------------------------------
commit 2c08939f3db19eaaf31cb117e3d541d17a36da5e
Author: Andrew Tridgell <tridge at samba.org>
Date:   Fri May 9 21:35:08 2008 +1000

    merge build changes from Mathias

-----------------------------------------------------------------------

Summary of changes:
 packaging/RHEL4-CTDB/makerpms.sh |   12 +++++++++++-
 packaging/RHEL4-CTDB/samba.spec  |   24 ++++++++++++++++++++++++
 2 files changed, 35 insertions(+), 1 deletions(-)


Changeset truncated at 500 lines:

diff --git a/packaging/RHEL4-CTDB/makerpms.sh b/packaging/RHEL4-CTDB/makerpms.sh
index 6715194..74ec97e 100755
--- a/packaging/RHEL4-CTDB/makerpms.sh
+++ b/packaging/RHEL4-CTDB/makerpms.sh
@@ -89,7 +89,17 @@ cp -p ${SPECFILE} ${SPECDIR}
 ##
 echo "$(basename $0): Getting Ready to build release package"
 cd ${SPECDIR}
-${RPM} -ba --clean --rmsource $EXTRA_OPTIONS $SPECFILE
+${RPM} -ba $EXTRA_OPTIONS $SPECFILE
+[ `arch` = "x86_64" ] && {
+    echo "Building 32 bit winbind libs"
+    # hi ho, a hacking we will go ...
+    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
+}
+
+
+
 
 # restore original structure if docs were specified
 cd ../../
diff --git a/packaging/RHEL4-CTDB/samba.spec b/packaging/RHEL4-CTDB/samba.spec
index eae45dd..91a3000 100644
--- a/packaging/RHEL4-CTDB/samba.spec
+++ b/packaging/RHEL4-CTDB/samba.spec
@@ -40,6 +40,13 @@ BuildRequires: pam-devel, readline-devel, fileutils, libacl-devel, openldap-deve
 %define _libarch %_lib
 %endif
 
+# rpm screws up the arch lib dir when using --target on RHEL5
+%ifarch i386 i486 i586 i686 ppc s390
+%define _libarch lib
+%else
+%define _libarch %_lib
+%endif
+
 
 %description
 Samba is the protocol by which a lot of PC-related machines share
@@ -99,6 +106,15 @@ Group:          Applications/System
 Compatibility package for 32 bit apps on 64 bit architecures
 %endif
 
+%ifarch i386 i486 i586 i686 ppc s390
+%package winbind-32bit
+Summary:        Samba winbind compatibility package for 32bit apps on 64bit archs
+Group:          Applications/System
+
+%description winbind-32bit
+Compatibility package for 32 bit apps on 64 bit architecures
+%endif
+
 
 #######################################################################
 %package doc
@@ -548,6 +564,14 @@ fi
 %endif
 
 
+%ifarch i386 i486 i586 i686 ppc s390
+%files winbind-32bit
+%attr(755,root,root) /%{_libarch}/libnss_winbind.so*
+%attr(755,root,root) /%{_libarch}/libnss_wins.so*
+%attr(755,root,root) /%{_libarch}/security/pam_winbind.so
+%endif
+
+
 %changelog
 * Fri Jan 16 2004 Gerald (Jerry) Carter <jerry at samba,org>
 - Removed ChangeLog entries since they are kept in CVS


-- 
SAMBA-CTDB repository


More information about the samba-cvs mailing list