CVS update: samba/source/modules

2003-08-27 Thread Paul Green

Date:   Wed Aug 27 15:05:06 2003
Author: paulg

Update of /data/cvs/samba/source/modules
In directory dp.samba.org:/tmp/cvs-serv25251/samba/source/modules

Modified Files:
  Tag: SAMBA_3_0
CP850.c 
Log Message:
Be consistent about using capital letters in the function names. (The only
one that really matters is the init entrypoint, but I changed the others
to remain consistent).


Revisions:
CP850.c 1.1.2.1 = 1.1.2.2

http://www.samba.org/cgi-bin/cvsweb/samba/source/modules/CP850.c.diff?r1=1.1.2.1r2=1.1.2.2


Minor POSIX patch to samba head and 3.0

2003-02-03 Thread Paul Green
Samba is pretty good about sticking with POSIX functions. I tripped over a small 
case where it references a non-POSIX function. So I fixed it. See attachment.

This patch should work on both head and 3_0. The 2_2 branch is unaffected.

I verified it compiles okay. Otherwise, this change is simple enough that it can 
be verified by inspection. Honest.

Thanks
PG
--
Paul Green, Senior Technical Consultant, Stratus Technologies.
Voice: +1 978-461-7557; FAX: +1 978-461-3610
Speaking from Stratus not for Stratus



From: [EMAIL PROTECTED]
Date: Sun, 2 Feb 03 11:15 est
To: [EMAIL PROTECTED], [EMAIL PROTECTED]
Subject: profiles.c patch
Mime-Version: 1.0

diff -ur old/samba.save/source/utils/profiles.c new/samba.save/source/utils/profiles.c
--- old/samba.save/source/utils/profiles.c  Mon Jan 13 15:47:42 2003
+++ new/samba.save/source/utils/profiles.c  Mon Jan 13 15:47:49 2003
@@ -408,7 +408,7 @@
 
   if (sa1 != sa2) return 0;
 
-  return !bcmp((char *)s1-id_auth, (char *)s2-id_auth,
+  return !memcmp((void *)s1-id_auth, (void *)s2-id_auth,
6 + sa1 * 4);
 
 }




Patch for samba 2_2 for Stratus VOS

2003-01-31 Thread Paul Green
Attached is a patch for the 2_2 branch of samba that makes changes similar to 
the ones I recently submitted to the head and 3_0 branches.

I have tested it locally on VOS and it works as expected.  I have also tested it 
on Solaris 2.8 and it looks ok there too.  I ran configure and then make 
everything; make wins.   Now, for the first time in months, I can build the 
stock Samba 2.2.x on VOS.

I tried to make absolutely the minimum changes to get this to work here. Most of 
what I did was to back-port ideas from the 3_0 branch.

I had to make one change that will affect other platforms -- but only on the 
build farm. Today, the samba_2_2 build farm hook (make everything) 
unconditionally builds nsswitch/lib_wins.so.  This screws us, because that's a 
shared library and we don't do shared libraries.  Oddly enough, make 
everything on samba_3_0 does not try to unconditionally build shared libraries. 
 You have to say make wins in 3_0 to get this file built.  So that is the way 
I implemented it in 2_2.  I'm willing to rework this if someone can explain a 
better way to achieve the same goal.  I'm hoping that since there are a lot of 
shared libraries that aren't built by the build farm, adding one more to the 
list isn't a big deal.  Hmm.  Perhaps the thing to do is to get the build farm 
shell script to say make everything;make wins, and then I can comment the 
make wins out in my copy of the script?  Anybody?

I also noticed that 2_2 lets the install script pick where to install shared 
libraries, but 3_0 is explicit (see the installlibsmbclient rule). I applied 
Occam's razor and stuck with the 2_2 scheme.

Thanks
PG
--
Paul Green, Senior Technical Consultant, Stratus Technologies.
Voice: +1 978-461-7557; FAX: +1 978-461-3610
Speaking from Stratus not for Stratus


diff -urp old/samba_2_2/source/Makefile.in new/samba_2_2/source/Makefile.in
--- old/samba_2_2/source/Makefile.inThu Jan 30 12:29:50 2003
+++ new/samba_2_2/source/Makefile.inThu Jan 30 23:03:29 2003
@@ -24,6 +24,8 @@ TERMLIBS=@TERMLIBS@
 LINK=$(CC) $(FLAGS) $(LDFLAGS)
 
 INSTALLCMD=@INSTALL@
+INSTALLCLIENTCMD_SH=@INSTALLCLIENTCMD_SH@
+INSTALLCLIENTCMD_A=@INSTALLCLIENTCMD_A@
 
 VPATH=@srcdir@
 srcdir=@srcdir@
@@ -101,7 +103,7 @@ MPROGS = @MPROGS@
 LPROGS = $(WINBIND_PAM_PROGS) $(WINBIND_LPROGS)
 PROGS = $(PROGS1) $(PROGS2) $(MPROGS) bin/nmblookup
 TORTURE_PROGS = bin/smbtorture bin/msgtest bin/masktest bin/locktest bin/locktest2
-SHLIBS = libsmbclient
+SHLIBS = @LIBSMBCLIENT@
 
 SCRIPTS = $(srcdir)/script/smbtar  $(srcdir)/script/findsmb
 
@@ -426,13 +428,13 @@ TDBDUMP_OBJ =  tdb/tdbdump.o $(TDBBASE_O
 all : CHECK $(SPROGS) $(PROGS) $(WINBIND_PROGS) $(WINBIND_SPROGS) $(LPROGS)
 
 # The following everything is NOT needed except by Samba developers - so do not use 
this!
-everything : CHECK $(SPROGS) $(PROGS) $(SHLIBS) nsswitch smbwrapper smbtorture 
debug2html smbfilter nsswitch/libnss_wins.so
+everything : CHECK $(SPROGS) $(PROGS) $(SHLIBS) nsswitch smbwrapper smbtorture 
+debug2html smbfilter
 
 pam_smbpass : CHECK bin/pam_smbpass.@SHLIBEXT@
 
 smbwrapper : CHECK @WRAPPROG@ @WRAP@ @WRAP32@
 
-libsmbclient : CHECK bin/libsmbclient.@SHLIBEXT@ bin/libsmbclient.a
+libsmbclient : CHECK bin/libsmbclient.a @LIBSMBCLIENT_SHARED@
 
 torture : CHECK $(TORTURE_PROGS)
 
@@ -460,6 +462,8 @@ smbfilter : CHECK bin/smbfilter
 
 nsswitch : CHECK $(WINBIND_PROGS) $(WINBIND_SPROGS) $(LPROGS)
 
+wins : CHECK nsswitch/libnss_wins.@SHLIBEXT@
+
 .SUFFIXES:
 .SUFFIXES: .c .o .po .po32 .lo
 
@@ -723,7 +727,8 @@ installswat: installdirs
@$(SHELL) $(srcdir)/script/installswat.sh $(SWATDIR) $(srcdir)
 
 installclientlib:
-   -$(INSTALLCMD) bin/libsmbclient.so
+   -$(INSTALLCLIENTCMD_SH) bin/libsmbclient.@SHLIBEXT@
+   -$(INSTALLCLIENTCMD_A) bin/libsmbclient.a
-$(INSTALLCMD) -d ${prefix}/include
-$(INSTALLCMD) include/libsmbclient.h ${prefix}/include
 
diff -urp old/samba_2_2/source/configure.in new/samba_2_2/source/configure.in
--- old/samba_2_2/source/configure.in   Thu Jan 30 15:03:26 2003
+++ new/samba_2_2/source/configure.in   Thu Jan 30 23:08:51 2003
@@ -164,6 +164,8 @@ AC_SUBST(PICFLAG)
 AC_SUBST(PICSUFFIX)
 AC_SUBST(SHLIBEXT)
 AC_SUBST(BLDSHARED)
+AC_SUBST(INSTALLCLIENTCMD_SH)
+AC_SUBST(INSTALLCLIENTCMD_A)
 AC_SUBST(LIBSMBCLIENT_SHARED)
 AC_SUBST(LIBSMBCLIENT)
 
@@ -315,6 +317,26 @@ case $host_os in
esac
;;
 #
+# VOS may need to have POSIX support and System V compatibility enabled.
+#
+*vos*)
+case $CPPFLAGS in
+ *-D_POSIX_C_SOURCE*)
+   ;;
+ *)
+   CPPFLAGS=$CPPFLAGS -D_POSIX_C_SOURCE=199506L
+   AC_DEFINE(_POSIX_C_SOURCE, 199506L, [Whether to enable POSIX support])
+   ;;
+esac
+case $CPPFLAGS in
+ *-D_SYSV*|*-D_SVID_SOURCE*)
+   ;;
+ *)
+   CPPFLAGS=$CPPFLAGS -D_SYSV
+   AC_DEFINE(_SYSV, 1, [Whether to enable System V compatibility])
+esac

Resend of patch to configure.in for VOS

2003-01-30 Thread Paul Green
This is a resend. I hope that by using a different account I won't
get the lines wrapped (and also won't fall prey to spamassassin).


-Original Message-
From: Green, Paul [mailto:[EMAIL PROTECTED]] 
Sent: Thursday, January 30, 2003 8:15 AM
To: Samba Technical (E-mail)
Subject: Patch to configure.in for Stratus VOS


The following patch to samba*/source/configure.in adjusts some global
variables and sets up the compiler options for the Stratus VOS operating
system. It is parallel to similar configure.in code for other operating
systems. I have tested this patch on VOS against the samba_2_2, samba_3_0,
and samba head branches, and it applies correctly and cleanly against
yesterday's code bases, and the builds see the benefit.  This is a
VOS-specific patch and will not affect any other OS.

I respectfully request that it be applied to head and 3_0; if 2_2 is indeed
still undergoing some basic maintenance, I'd like to request that it be
applied there as well.

(It turns out that 2_2 won't fully build on VOS and the problems is that it
is still trying to build libsmbclient, despite the setting of BLDSHARED.  If
the Samba team is willing to let me correct this, I'll submit a version of
the patch I sent in the other day for 2_2 as well. That should do the
trick).


** Patch follows **

diff -urp old/samba/source/configure.in new/samba/source/configure.in
--- old/samba/source/configure.in   Tue Jan 28 18:32:43 2003
+++ new/samba/source/configure.in   Wed Jan 29 09:30:51 2003
@@ -411,6 +411,26 @@ case $host_os in
esac
;;
 #
+# VOS may need to have POSIX support and System V compatibility enabled.
+#
+*vos*)
+case $CPPFLAGS in
+ *-D_POSIX_C_SOURCE*)
+   ;;
+ *)
+   CPPFLAGS=$CPPFLAGS -D_POSIX_C_SOURCE=199506L
+   AC_DEFINE(_POSIX_C_SOURCE, 199506L, [Whether to enable POSIX support])
+   ;;
+esac
+case $CPPFLAGS in
+ *-D_SYSV*|*-D_SVID_SOURCE*)
+   ;;
+ *)
+   CPPFLAGS=$CPPFLAGS -D_SYSV
+   AC_DEFINE(_SYSV, 1, [Whether to enable System V compatibility])
+esac
+;;
+#
 # Tests needed for SINIX large file support.
 #
 *sysv4*)
@@ -1081,6 +1101,10 @@ case $host_os in
fi
LDSHFLAGS=-G
AC_DEFINE(STAT_ST_BLOCKSIZE,512)
+   ;;
+   *vos*) AC_DEFINE(STAT_ST_BLOCKSIZE,4096)
+   BLDSHARED=false
+   LDSHFLAGS=
;;
*)
AC_DEFINE(STAT_ST_BLOCKSIZE,512)


** End of Patch **

Thanks
PG
--
Paul Green, Senior Technical Consultant, Stratus Technologies.
Voice: +1 978-461-7557; FAX: +1 978-461-3610
Speaking from Stratus not for Stratus