Rev 646: nasty hack to get 32bit winbind packages in http://samba.org/~tridge/3_0-ctdb

tridge at samba.org tridge at samba.org
Wed Oct 17 06:06:05 GMT 2007


------------------------------------------------------------
revno: 646
revision-id: tridge at samba.org-20071017060603-noh58pvb6p6v261l
parent: tridge at samba.org-20071016102459-lha72gryd34a85yh
committer: Andrew Tridgell <tridge at samba.org>
branch nick: s3-ctdb-tridge
timestamp: Wed 2007-10-17 16:06:03 +1000
message:
  nasty hack to get 32bit winbind packages
modified:
  packaging/RHEL4-CTDB/makerpms.sh makerpms.sh-20070530192107-og9sp62ho5xuaaer-3
  packaging/RHEL4-CTDB/samba.spec samba.spec-20070530192107-og9sp62ho5xuaaer-4
=== modified file 'packaging/RHEL4-CTDB/makerpms.sh'
--- a/packaging/RHEL4-CTDB/makerpms.sh	2007-05-30 19:21:19 +0000
+++ b/packaging/RHEL4-CTDB/makerpms.sh	2007-10-17 06:06:03 +0000
@@ -90,6 +90,13 @@
 echo "$(basename $0): Getting Ready to build release package"
 cd ${SPECDIR}
 ${RPM} -ba --clean --rmsource $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/libcom_err.so.1 /lib/libuuid.so
+    ${RPM} -ba --rebuild --target=i386 $SPECFILE
+}
 
 # restore original structure if docs were specified
 cd ../../

=== modified file 'packaging/RHEL4-CTDB/samba.spec'
--- a/packaging/RHEL4-CTDB/samba.spec	2007-10-16 10:12:27 +0000
+++ b/packaging/RHEL4-CTDB/samba.spec	2007-10-17 06:06:03 +0000
@@ -83,6 +83,15 @@
 Tool), for remotely managing Samba's smb.conf file using your favorite
 Web browser.
 
+%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
@@ -506,6 +515,13 @@
 %{_mandir}/man7/pam_winbind.7*
 %{_mandir}/man7/libsmbclient.7*
 
+%ifarch i386 i486 i586 i686 ppc s390
+%files winbind-32bit
+%attr(755,root,root) /lib/libnss_winbind.so*
+%attr(755,root,root) /lib/libnss_wins.so*
+%attr(755,root,root) /lib/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



More information about the samba-cvs mailing list