[packages/samba/DEVEL: 64/111] - removed obsolete nscd patch - fixed internal linking deps - builds/installs, files needs updating

baggins baggins at pld-linux.org
Wed Jan 15 19:43:47 CET 2014


commit c04968c4045be35d02ccd1225e4c031960dd2b02
Author: Jan Rękorajski <baggins at pld-linux.org>
Date:   Wed Oct 16 14:27:05 2013 +0200

    - removed obsolete nscd patch
    - fixed internal linking deps
    - builds/installs, files needs updating
    - added TODO

 link.patch       | 11 +++++++++++
 samba-nscd.patch | 13 -------------
 samba4.spec      | 13 +++++++++----
 3 files changed, 20 insertions(+), 17 deletions(-)
---
diff --git a/samba4.spec b/samba4.spec
index 821f47c..3937d52 100644
--- a/samba4.spec
+++ b/samba4.spec
@@ -1,7 +1,8 @@
 #%package -n samba3-swat
 #Obsoletes:	swat
 #Obsoletes:	samba-swat < 1:4.0.0-1
-
+# TODO:
+#	- unbundle ntdb (no external release as of 16.Oct.2013)
 #
 # Conditional build:
 %bcond_without	ads		# without ActiveDirectory support
@@ -15,6 +16,7 @@
 %define		tdb_ver		2:1.2.11
 %define		ldb_ver		1.1.16
 %define		tevent_ver	0.9.18
+%define		ntdb_ver	0.9
 %endif
 
 %define		virusfilter_version 0.1.3
@@ -41,10 +43,10 @@ Source10:	https://github.com/downloads/fumiyas/samba-virusfilter/samba-virusfilt
 Source11:	samba3.logrotate
 Patch0:		system-heimdal.patch
 Patch1:		samba-c++-nofail.patch
-Patch3:		samba-nscd.patch
 Patch4:		samba-lprng-no-dot-printers.patch
 Patch5:		systemd-pid-dir.patch
 Patch6:		unicodePwd-nthash-values-over-LDAP.patch
+Patch7:		link.patch
 URL:		http://www.samba.org/
 BuildRequires:	acl-devel
 BuildRequires:	autoconf
@@ -85,6 +87,7 @@ BuildRequires:	rpm-pythonprov
 BuildRequires:	sed >= 4.0
 %if %{with system_libs}
 BuildRequires:	ldb-devel >= %{ldb_ver}
+#BuildRequires:	ntdb-devel >= %{ntdb_ver}
 BuildRequires:	python-ldb-devel >= %{ldb_ver}
 BuildRequires:	python-talloc-devel >= %{talloc_ver}
 BuildRequires:	python-tevent >= %{tevent_ver}
@@ -167,6 +170,7 @@ Summary(pl.UTF-8):	Pliki używane przez serwer i klientów Samba
 Group:		Networking/Daemons
 %if %{with system_libs}
 Requires:	ldb >= %{ldb_ver}
+#Requires:	ntdb >= %{ntdb_ver}
 Requires:	talloc >= %{talloc_ver}
 Requires:	tdb >= %{tdb_ver}
 Requires:	tevent >= %{tevent_ver}
@@ -253,6 +257,7 @@ Requires:	python-dns
 Requires:	python-modules
 %if %{with system_libs}
 Requires:	python-ldb >= %{ldb_ver}
+#Requires:	python-ntdb >= %{ntdb_ver}
 Requires:	python-talloc >= %{talloc_ver}
 Requires:	python-tevent >= %{tevent_ver}
 %endif
@@ -710,10 +715,10 @@ Ten pakiet zawiera schemat samby dla openldap-a.
 %setup -q -n samba-%{version}
 %patch0 -p1
 %patch1 -p1
-#%patch3 -p1
 %patch4 -p1
 %patch5 -p1
 %patch6 -p1
+%patch7 -p1
 
 sed -i -e 's|#!/usr/bin/env python|#!/usr/bin/python|' source4/scripting/bin/samba*
 sed -i -e 's|#!/usr/bin/env perl|#!/usr/bin/perl|' pidl/pidl
@@ -749,7 +754,7 @@ CPPFLAGS="${CPPFLAGS:-%rpmcppflags}" \
 	--with-privatedir=%{_sysconfdir}/samba \
 	--disable-rpath-install \
 	--builtin-libraries=replace,ccan \
-	--bundled-libraries=NONE,subunit,iniparser,%{!?with_system_libs:talloc,tdb,ldb,tevent,pytalloc,pytalloc-util,pytdb,pytevent,pyldb,pyldb-util} \
+	--bundled-libraries=NONE,subunit,iniparser,ntdb,%{!?with_system_libs:talloc,tdb,ldb,tevent,pytalloc,pytalloc-util,pytdb,pytevent,pyldb,pyldb-util} \
 	--private-libraries=smbclient,smbsharemodes,wbclient \
 	--with-shared-modules=idmap_ad,idmap_rid,idmap_adex,idmap_hash,idmap_tdb2,pdb_tdbsam,pdb_ldap,pdb_ads,pdb_smbpasswd,pdb_wbc_sam,pdb_samba4,auth_unix,auth_wbc,auth_server,auth_netlogond,auth_script,auth_samba4 \
 	--with-acl-support \
diff --git a/link.patch b/link.patch
new file mode 100644
index 0000000..82da307
--- /dev/null
+++ b/link.patch
@@ -0,0 +1,11 @@
+--- samba-4.1.0/lib/util/wscript_build~	2013-06-13 11:21:02.000000000 +0200
++++ samba-4.1.0/lib/util/wscript_build	2013-10-16 14:07:02.360316706 +0200
+@@ -9,7 +9,7 @@
+                     util_str.c util_str_common.c substitute.c ms_fnmatch.c
+                     server_id.c dprintf.c parmlist.c bitmap.c pidfile.c
+                     tevent_debug.c util_process.c''',
+-                  deps='DYNCONFIG',
++                  deps='DYNCONFIG ccan-hash',
+                   public_deps='talloc tevent execinfo uid_wrapper pthread LIBCRYPTO charset util_setid',
+                   public_headers='debug.h attr.h byteorder.h data_blob.h memory.h safe_string.h time.h talloc_stack.h xfile.h dlinklist.h samba_util.h string_wrappers.h',
+                   header_path= [ ('dlinklist.h samba_util.h', '.'), ('*', 'util') ],
diff --git a/samba-nscd.patch b/samba-nscd.patch
deleted file mode 100644
index 8dc912f..0000000
--- a/samba-nscd.patch
+++ /dev/null
@@ -1,13 +0,0 @@
-diff -urN samba-3.2.1.org/source3/Makefile.in samba-3.2.1/source3/Makefile.in
---- samba-3.2.1.org/source3/Makefile.in	2008-08-05 08:22:33.000000000 +0200
-+++ samba-3.2.1/source3/Makefile.in	2008-08-17 23:24:32.085914644 +0200
-@@ -1430,7 +1430,7 @@
- 	@$(CC) -o $@ $(LDFLAGS) $(RPCCLIENT_OBJ) \
- 		$(DYNEXP) $(TERMLDFLAGS) $(TERMLIBS) $(LIBS) $(POPT_LIBS) \
- 		$(KRB5LIBS) $(LDAP_LIBS) $(LIBTALLOC_LIBS) $(LIBTEVENT_LIBS) $(LIBTDB_LIBS) \
--		$(LIBWBCLIENT_LIBS) $(ZLIB_LIBS) $(PASSDB_LIBS)
-+		$(LIBWBCLIENT_LIBS) $(ZLIB_LIBS) $(PASSDB_LIBS) $(NSCD_LIBS)
- 
- bin/smbclient: $(BINARY_PREREQS) $(CLIENT_OBJ) @BUILD_POPT@ $(LIBTALLOC) $(LIBTEVENT) $(LIBTDB) $(LIBWBCLIENT)
- 	@echo Linking $@
-
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/samba.git/commitdiff/8f2607b83208e9672972be90df9adb474f035876



More information about the pld-cvs-commit mailing list