Skip to contentSkip to conversation

samba: update to version 3.6.8

PATCH New Otavio Salvador 1 participant 1 message Oct 23, 2012

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 samba: update to version 3.6.8

From: Mario Domenech Goulart <[email protected]>

Contains patches from Debian experimental and add winbind support.

---
 .../bug_221618_precise-64bit-prototype.patch       |   20 +
 ...4104_mention-kerberos-in-smbspool-manpage.patch |   34 +
 ...m_7499-nss_wins-dont-clobber-daemons-logs.patch |   47 +
 .../bug_601406_fix-perl-path-in-example.patch      |   15 +
 ...04768_upstream_7826_drop-using-samba-link.patch |   21 +
 ...ug_604768_upstream_7826_fix-WHATSNEW-link.patch |   18 +
 ...onfigure-disable-core_pattern-cross-check.patch |   20 +
 .../configure-disable-getaddrinfo-cross.patch      |   11 +
 .../samba/samba-3.6.8/documentation.patch          |  302 +
 .../samba/samba-3.6.8/documentation2.patch         |  314 +
 .../samba-3.6.8/dont-build-VFS-examples.patch      |   31 +
 .../samba/samba-3.6.8/fhs-filespaths.patch         |   65 +
 .../samba/samba-3.6.8/installswat.sh.patch         |   23 +
 .../samba-3.6.8/libutil_drop_AI_ADDRCONFIG.patch   |   54 +
 .../samba-3.6.8/only_export_public_symbols.patch   |   21 +
 .../samba/samba-3.6.8/pam-examples.patch           |   17 +
 .../samba/samba-3.6.8/shadow_copy2_backport.patch  | 2101 +++
 .../samba/samba-3.6.8/smbclient-pager.patch        |   18 +
 .../samba/samba-3.6.8/smbtar-bashism.patch         |   19 +
 .../samba/samba-3.6.8/smbtorture-manpage.patch     |   94 +
 .../samba/samba-3.6.8/undefined-symbols.patch      |   24 +
 .../samba/samba-3.6.8/usershare.patch              |   38 +
 .../samba/samba-3.6.8/waf-as-source.patch          |18538 ++++++++++++++++++++
 meta-oe/recipes-connectivity/samba/samba-basic.inc |   35 +-
 meta-oe/recipes-connectivity/samba/samba.inc       |   31 +-
 .../samba/samba/{init => init.samba}               |    0
 .../recipes-connectivity/samba/samba/init.winbind  |   38 +
 meta-oe/recipes-connectivity/samba/samba_3.5.6.bb  |   37 -
 meta-oe/recipes-connectivity/samba/samba_3.6.8.bb  |   56 +
 29 files changed, 21995 insertions(+), 47 deletions(-)
 create mode 100644 meta-oe/recipes-connectivity/samba/samba-3.6.8/bug_221618_precise-64bit-prototype.patch
 create mode 100644 meta-oe/recipes-connectivity/samba/samba-3.6.8/bug_387266_upstream_4104_mention-kerberos-in-smbspool-manpage.patch
 create mode 100644 meta-oe/recipes-connectivity/samba/samba-3.6.8/bug_598313_upstream_7499-nss_wins-dont-clobber-daemons-logs.patch
 create mode 100644 meta-oe/recipes-connectivity/samba/samba-3.6.8/bug_601406_fix-perl-path-in-example.patch
 create mode 100644 meta-oe/recipes-connectivity/samba/samba-3.6.8/bug_604768_upstream_7826_drop-using-samba-link.patch
 create mode 100644 meta-oe/recipes-connectivity/samba/samba-3.6.8/bug_604768_upstream_7826_fix-WHATSNEW-link.patch
 create mode 100644 meta-oe/recipes-connectivity/samba/samba-3.6.8/configure-disable-core_pattern-cross-check.patch
 create mode 100644 meta-oe/recipes-connectivity/samba/samba-3.6.8/configure-disable-getaddrinfo-cross.patch
 create mode 100644 meta-oe/recipes-connectivity/samba/samba-3.6.8/documentation.patch
 create mode 100644 meta-oe/recipes-connectivity/samba/samba-3.6.8/documentation2.patch
 create mode 100644 meta-oe/recipes-connectivity/samba/samba-3.6.8/dont-build-VFS-examples.patch
 create mode 100644 meta-oe/recipes-connectivity/samba/samba-3.6.8/fhs-filespaths.patch
 create mode 100644 meta-oe/recipes-connectivity/samba/samba-3.6.8/installswat.sh.patch
 create mode 100644 meta-oe/recipes-connectivity/samba/samba-3.6.8/libutil_drop_AI_ADDRCONFIG.patch
 create mode 100644 meta-oe/recipes-connectivity/samba/samba-3.6.8/only_export_public_symbols.patch
 create mode 100644 meta-oe/recipes-connectivity/samba/samba-3.6.8/pam-examples.patch
 create mode 100644 meta-oe/recipes-connectivity/samba/samba-3.6.8/shadow_copy2_backport.patch
 create mode 100644 meta-oe/recipes-connectivity/samba/samba-3.6.8/smbclient-pager.patch
 create mode 100644 meta-oe/recipes-connectivity/samba/samba-3.6.8/smbtar-bashism.patch
 create mode 100644 meta-oe/recipes-connectivity/samba/samba-3.6.8/smbtorture-manpage.patch
 create mode 100644 meta-oe/recipes-connectivity/samba/samba-3.6.8/undefined-symbols.patch
 create mode 100644 meta-oe/recipes-connectivity/samba/samba-3.6.8/usershare.patch
 create mode 100644 meta-oe/recipes-connectivity/samba/samba-3.6.8/waf-as-source.patch
 rename meta-oe/recipes-connectivity/samba/samba/{init => init.samba} (100%)
 create mode 100644 meta-oe/recipes-connectivity/samba/samba/init.winbind
 delete mode 100644 meta-oe/recipes-connectivity/samba/samba_3.5.6.bb
 create mode 100644 meta-oe/recipes-connectivity/samba/samba_3.6.8.bb
meta-oe/recipes-connectivity/samba/samba-3.6.8/bug_221618_precise-64bit-prototype.patch new file +20 -0
new file mode 100644
index 0000000..31108f2
@@ -0,0 +1,20 @@
+Description: 64 bit fix for libsmbclient
+Author: Christian Perrier <[email protected]>
+Bug-Debian: http://bugs.debian.org/221618
+Forwarded: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=221618#27
+
+Index: samba/source3/include/libsmbclient.h
+===================================================================
+--- samba.orig/source3/include/libsmbclient.h
++++ samba/source3/include/libsmbclient.h
+@@ -79,6 +79,10 @@
+ #include <fcntl.h>
+ #include <utime.h>
+ 
++  /* Debian bug #221618 */
++#define _LARGEFILE64_SOURCE
++#define _FILE_OFFSET_BITS 64
++
+ #define SMBC_BASE_FD        10000 /* smallest file descriptor returned */
+ 
+ #define SMBC_WORKGROUP      1
meta-oe/recipes-connectivity/samba/samba-3.6.8/bug_387266_upstream_4104_mention-kerberos-in-smbspool-manpage.patch new file +34 -0
new file mode 100644
index 0000000..ea499a6
@@ -0,0 +1,34 @@
+Description: Add mention about some user for user information in smbspool manpage
+Author: Christian Perrier <[email protected]>
+Bug-Debian: http://bugs.debian.org/387266
+Forwarded: yes
+Bug: https://bugzilla.samba.org/show_bug.cgi?id=4104
+
+Index: samba/docs-xml/manpages-3/smbspool.8.xml
+===================================================================
+--- samba.orig/docs-xml/manpages-3/smbspool.8.xml
++++ samba/docs-xml/manpages-3/smbspool.8.xml
+@@ -73,7 +73,9 @@
+ 		</para></listitem>
+ 
+ 		<listitem><para>The user argument (argv[2]) contains the 
+-		print user's name and is presently not used by smbspool.
++		print user's name and is presently not used by smbspool
++		except in Kerberos environments to access the user's
++		ticket cache.
+ 		</para></listitem>
+ 
+ 		<listitem><para>The title argument (argv[3]) contains the 
+Index: samba/docs/manpages/smbspool.8
+===================================================================
+--- samba.orig/docs/manpages/smbspool.8
++++ samba/docs/manpages/smbspool.8
+@@ -114,7 +114,7 @@
+ .sp -1
+ .IP \(bu 2.3
+ .\}
+-The user argument (argv[2]) contains the print user\'s name and is presently not used by smbspool\&.
++The user argument (argv[2]) contains the print user\'s name and is presently not used by smbspool except in Kerberos environments to access the user\'s ticket cache\&.
+ .RE
+ .sp
+ .RS 4
meta-oe/recipes-connectivity/samba/samba-3.6.8/bug_598313_upstream_7499-nss_wins-dont-clobber-daemons-logs.patch new file +47 -0

47 lines not on this page · raw message

meta-oe/recipes-connectivity/samba/samba-3.6.8/bug_601406_fix-perl-path-in-example.patch new file +15 -0
new file mode 100644
index 0000000..ba8b1f4
@@ -0,0 +1,15 @@
+Description: Fix path to perl binary in example file
+Author: Christian Perrier <[email protected]>
+Bug-Debian: http://bugs.debian.org/601406
+Forwarded: not-needed
+
+Index: samba/examples/misc/wall.perl
+===================================================================
+--- samba.orig/examples/misc/wall.perl
++++ samba/examples/misc/wall.perl
+@@ -1,4 +1,4 @@
+-#!/usr/local/bin/perl
++#!/usr/bin/perl
+ # 
+ #@(#) smb-wall.pl Description:
+ #@(#) A perl script which allows you to announce whatever you choose to
meta-oe/recipes-connectivity/samba/samba-3.6.8/bug_604768_upstream_7826_drop-using-samba-link.patch new file +21 -0
new file mode 100644
index 0000000..0c54b6b
@@ -0,0 +1,21 @@
+Description: Drop Using Samba link in HTML documentation summary
+Author: Christian Perrier <[email protected]>
+Bug-Debian: http://bugs.debian.org/604768
+Forwarded: yes
+Bug: https://bugzilla.samba.org/show_bug.cgi?id=7826
+
+Index: samba/docs/htmldocs/index.html
+===================================================================
+--- samba.orig/docs/htmldocs/index.html
++++ samba/docs/htmldocs/index.html
+@@ -23,10 +23,6 @@
+  <td valign="top">This book provides example configurations, it documents key aspects of Microsoft Windows networking, provides in-depth insight into the important configuration of Samba-3, and helps to put all of these into a useful framework.</td>
+ </tr>
+ <tr>
+- <td valign="top"><a href="using_samba/toc.html">Using Samba</a>, 2nd Edition</td>
+- <td valign="top"><i>Using Samba</i>, Second Edition is a comprehensive guide to Samba administration. It covers all versions of Samba from 2.0 to 2.2, including selected features from an alpha version of 3.0, as well as the SWAT graphical configuration tool. Updated for Windows 2000, ME, and XP, the book also explores Samba's new role as a primary domain controller and domain member server, its support for the use of Windows NT/2000/XP authentication and filesystem security on the host Unix system, and accessing shared files and printers from Unix clients.</td>
+-</tr>
+-<tr>
+  <td valign="top"><a href="manpages/index.html">Man pages</a></td>
+  <td valign="top">The Samba man pages in HTML.</td>
+ </tr>
meta-oe/recipes-connectivity/samba/samba-3.6.8/bug_604768_upstream_7826_fix-WHATSNEW-link.patch new file +18 -0
new file mode 100644
index 0000000..c7dd043
@@ -0,0 +1,18 @@
+Description: Fix WHATSNEW.txt link in HTML documentation summary to fit Debian files organization
+Author: Christian Perrier <[email protected]>
+Bug-Debian: http://bugs.debian.org/604768
+Forwarded: not-needed
+
+Index: samba/docs/htmldocs/index.html
+===================================================================
+--- samba.orig/docs/htmldocs/index.html
++++ samba/docs/htmldocs/index.html
+@@ -27,7 +27,7 @@
+  <td valign="top">The Samba man pages in HTML.</td>
+ </tr>
+ <tr>
+- <td valign="top"><a href="../../WHATSNEW.txt">WHATSNEW</a></td>
++ <td valign="top"><a href="../WHATSNEW.txt">WHATSNEW</a></td>
+   <td valign="top">Samba Release Notes.</td>
+ </tr>
+ </table></body></html>
meta-oe/recipes-connectivity/samba/samba-3.6.8/configure-disable-core_pattern-cross-check.patch new file +20 -0
new file mode 100644
index 0000000..2d96189
@@ -0,0 +1,20 @@
+--- samba-3.6.8/source3/configure.orig	2012-10-01 16:28:17.559074996 -0300
++++ samba-3.6.8/source3/configure	2012-10-01 16:39:07.747700087 -0300
+@@ -16718,7 +16718,7 @@
+ #################################################
+ # Check to see if core dump directory is defined in linux
+ # with /proc/sys/kernel/core_pattern
+-
++if false; then
+ { $as_echo "$as_me:${as_lineno-$LINENO}: checking for /proc/sys/kernel/core_pattern" >&5
+ $as_echo_n "checking for /proc/sys/kernel/core_pattern... " >&6; }
+ if ${ac_cv_file__proc_sys_kernel_core_pattern+:} false; then :
+@@ -16739,7 +16739,7 @@
+ $as_echo "#define HAVE_SYS_KERNEL_PROC_CORE_PATTERN 1" >>confdefs.h
+ 
+ fi
+-
++fi
+ 
+ #############################
+ # check if building with gpfs
meta-oe/recipes-connectivity/samba/samba-3.6.8/configure-disable-getaddrinfo-cross.patch new file +11 -0
new file mode 100644
index 0000000..84ecd49
@@ -0,0 +1,11 @@
+--- samba-3.6.6/source3/configure.orig	2012-10-01 15:50:15.371574883 -0300
++++ samba-3.6.6/source3/configure	2012-10-01 15:50:35.563699659 -0300
+@@ -13302,7 +13302,7 @@
+ 	# getaddrinfo is broken on some AIX systems
+ 	# see bug 5910, use our replacements if we detect
+ 	# a broken system.
+-	if test "$cross_compiling" = yes; then :
++	if test "$cross_compiling" = foo; then :
+   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
+ $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
+ as_fn_error "cannot run test program while cross compiling
meta-oe/recipes-connectivity/samba/samba-3.6.8/documentation.patch new file +302 -0

302 lines not on this page · raw message

meta-oe/recipes-connectivity/samba/samba-3.6.8/documentation2.patch new file +314 -0

314 lines not on this page · raw message

meta-oe/recipes-connectivity/samba/samba-3.6.8/dont-build-VFS-examples.patch new file +31 -0
new file mode 100644
index 0000000..beff7db
@@ -0,0 +1,31 @@
+Description: Do not build VFS examples
+Author: Christian Perrier <[email protected]>
+Forwarded: not-needed
+
+Index: samba/source3/Makefile.in
+===================================================================
+--- samba.orig/source3/Makefile.in
++++ samba/source3/Makefile.in
+@@ -1616,8 +1616,7 @@
+ 
+ 
+ everything:: all libtalloc libsmbclient libnetapi debug2html smbfilter talloctort replacetort smbconftort modules torture \
+-	$(EVERYTHING_PROGS) \
+-	vfs_examples
++	$(EVERYTHING_PROGS)
+ 
+ .SUFFIXES:
+ .SUFFIXES: .c .o .lo
+@@ -3552,12 +3551,3 @@
+ bin/ndrdump4: $(BINARY_PREREQS)
+ 	$(MAKE) -f Makefile-smbtorture4 bin/ndrdump4
+ 
+-.PHONY: vfs_examples
+-
+-vfs_examples:
+-	( \
+-	cd ../examples/VFS && \
+-	./configure && \
+-	make clean && \
+-	make \
+-	)
meta-oe/recipes-connectivity/samba/samba-3.6.8/fhs-filespaths.patch new file +65 -0

65 lines not on this page · raw message

meta-oe/recipes-connectivity/samba/samba-3.6.8/installswat.sh.patch new file +23 -0
new file mode 100644
index 0000000..3f08e49
@@ -0,0 +1,23 @@
+Description: Do not install the Using Samba book when installing SWAT
+ Using Samba is packaged in samba-doc, however upstream also
+ installs it in SWAT install dirs
+Author: Christian Perrier <[email protected]>
+Forwarded: not-needed
+
+Index: experimental/source3/script/installswat.sh
+===================================================================
+--- experimental.orig/source3/script/installswat.sh
++++ experimental/source3/script/installswat.sh
+@@ -198,7 +198,11 @@
+ 
+ # Install/ remove Using Samba book (but only if it is there)
+ 
+-if [ "x$BOOKDIR" != "x" -a -f $SRCDIR../docs/htmldocs/using_samba/toc.html ]; then
++# Under Debian we don't actually install the book. The book is part of
++# the samba-doc package, so we just provide a symlink that points to
++# where the book is actually installed. The symlink is created in
++# debian/rules.
++if /bin/false; then
+ 
+     # Create directories
+ 
meta-oe/recipes-connectivity/samba/samba-3.6.8/libutil_drop_AI_ADDRCONFIG.patch new file +54 -0

54 lines not on this page · raw message

meta-oe/recipes-connectivity/samba/samba-3.6.8/only_export_public_symbols.patch new file +21 -0
new file mode 100644
index 0000000..f4fbd56
@@ -0,0 +1,21 @@
+Description: only export public symbols
+ Force usage of the symbols list when linking shared libraries. Otherwise,
+ private symbols get exported in libsmbclient and libwbclient.
+Forwarded: no
+Author: Ivo De Decker <[email protected]>
+Last-Update: 2012-06-27
+
+--- samba-3.6.6.orig/source3/Makefile.in
++++ samba-3.6.6/source3/Makefile.in
+@@ -28,8 +28,9 @@ SHLD=@SHLD@
+ LIB_PATH_VAR=@LIB_PATH_VAR@
+ 
+ ## Dynamic shared libraries build settings
+-DSO_EXPORTS_CMD=-Wl,--version-script,$(srcdir)/exports/`basename $@ | sed 's:\.@SHLIBEXT@[\.0-9]*$$:.@SYMSEXT@:'`
+-DSO_EXPORTS=@DSO_EXPORTS@
++# force using syms file
++DSO_EXPORTS=-Wl,--version-script,$(srcdir)/exports/`basename $@ | sed 's:\.@SHLIBEXT@[\.0-9]*$$:.@SYMSEXT@:'`
++#DSO_EXPORTS=@DSO_EXPORTS@
+ SHLD_DSO = $(SHLD) $(LDSHFLAGS) $(DSO_EXPORTS) -o $@
+ 
+ # The MODULE_EXPORTS variable contains the platform-specific linker flags
meta-oe/recipes-connectivity/samba/samba-3.6.8/pam-examples.patch new file +17 -0
new file mode 100644
index 0000000..9b36e14
@@ -0,0 +1,17 @@
+Description: Fix examples directory location  in pam_smbpass README
+Author: Christian Perrier <[email protected]>
+Forwarded: not-needed
+
+Index: experimental/source3/pam_smbpass/README
+===================================================================
+--- experimental.orig/source3/pam_smbpass/README
++++ experimental/source3/pam_smbpass/README
+@@ -37,7 +37,7 @@
+ 	smbconf=<file>	-	specify an alternate path to the smb.conf
+ 				file.
+ 
+-See the samples/ directory for example PAM configurations using this
++See the examples/ directory for example PAM configurations using this
+ module.
+ 
+ Thanks go to the following people:
meta-oe/recipes-connectivity/samba/samba-3.6.8/shadow_copy2_backport.patch new file +2101 -0

1,987 lines not on this page · raw message

meta-oe/recipes-connectivity/samba/samba-3.6.8/smbclient-pager.patch new file +18 -0
new file mode 100644
index 0000000..429f2ce

Lines of this file are not shown. View the raw message.

meta-oe/recipes-connectivity/samba/samba-3.6.8/smbtar-bashism.patch new file +19 -0
new file mode 100644
index 0000000..27a47cb

Lines of this file are not shown. View the raw message.

meta-oe/recipes-connectivity/samba/samba-3.6.8/smbtorture-manpage.patch new file +94 -0

94 lines not on this page · raw message

meta-oe/recipes-connectivity/samba/samba-3.6.8/undefined-symbols.patch new file +24 -0
new file mode 100644
index 0000000..3ab0027

Lines of this file are not shown. View the raw message.

meta-oe/recipes-connectivity/samba/samba-3.6.8/usershare.patch new file +38 -0
new file mode 100644
index 0000000..3673db7

Lines of this file are not shown. View the raw message.

meta-oe/recipes-connectivity/samba/samba-3.6.8/waf-as-source.patch new file +18538 -0

18,538 lines not on this page · raw message

meta-oe/recipes-connectivity/samba/samba-basic.inc +33 -2
index f0a9bd7..5d816f9 100644

Lines of this file are not shown. View the raw message.

meta-oe/recipes-connectivity/samba/samba.inc +23 -8
index e5fa06e..faa2be0 100644

Lines of this file are not shown. View the raw message.

meta-oe/recipes-connectivity/samba/samba/init.samba renamed from meta-oe/recipes-connectivity/samba/samba/init +0 -0
similarity index 100%
rename from meta-oe/recipes-connectivity/samba/samba/init
rename to meta-oe/recipes-connectivity/samba/samba/init.samba
meta-oe/recipes-connectivity/samba/samba/init.winbind new file +38 -0
new file mode 100644
index 0000000..53de2ee

Lines of this file are not shown. View the raw message.

meta-oe/recipes-connectivity/samba/samba_3.5.6.bb deleted +0 -37
deleted file mode 100644
index 881c121..0000000

Lines of this file are not shown. View the raw message.

meta-oe/recipes-connectivity/samba/samba_3.6.8.bb new file +56 -0

56 lines not on this page · raw message

The rest of this diff is not shown. View the raw message.

Signature · 1 line
1.7.2.5

Part of the diff is not shown here. View the raw message.