[SCM] Samba Shared Repository - branch master updated - 6acd90998803c28fa12ff0d1f47056c64b7d8d8d

Jelmer Vernooij jelmer at samba.org
Thu Oct 30 22:30:00 GMT 2008


The branch, master has been updated
       via  6acd90998803c28fa12ff0d1f47056c64b7d8d8d (commit)
       via  0ab0373a97114b2911ed5f38e3548676f196a2c0 (commit)
       via  c9f69f1436cb02567f679b8461e9cb0dfbd5cddc (commit)
      from  782f309df35cba41c9e5b65db242b961bacbbf87 (commit)

http://gitweb.samba.org/?p=samba.git;a=shortlog;h=master


- Log -----------------------------------------------------------------
commit 6acd90998803c28fa12ff0d1f47056c64b7d8d8d
Merge: 0ab0373a97114b2911ed5f38e3548676f196a2c0 782f309df35cba41c9e5b65db242b961bacbbf87
Author: Jelmer Vernooij <jelmer at samba.org>
Date:   Thu Oct 30 23:29:14 2008 +0100

    Merge branch 'master' of git://git.samba.org/samba

commit 0ab0373a97114b2911ed5f38e3548676f196a2c0
Author: Jelmer Vernooij <jelmer at samba.org>
Date:   Thu Oct 30 23:28:50 2008 +0100

    Fix building of SWIG files from merged build.

commit c9f69f1436cb02567f679b8461e9cb0dfbd5cddc
Author: Jelmer Vernooij <jelmer at samba.org>
Date:   Thu Oct 30 23:19:51 2008 +0100

    Fix installation of Samba 4 during merged build.

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

Summary of changes:
 source3/samba4.mk                  |    9 ++++++---
 source4/build/make/python.mk       |    2 +-
 source4/lib/registry/config.mk     |    2 +-
 source4/scripting/python/config.mk |    2 +-
 4 files changed, 9 insertions(+), 6 deletions(-)


Changeset truncated at 500 lines:

diff --git a/source3/samba4.mk b/source3/samba4.mk
index e08cbfc..c3b6af1 100644
--- a/source3/samba4.mk
+++ b/source3/samba4.mk
@@ -118,20 +118,21 @@ tallocsrcdir := $(samba4srcdir)/../lib/talloc
 comsrcdir := $(samba4srcdir)/lib/com
 override ASN1C = bin/asn1_compile4
 override ET_COMPILER = bin/compile_et4
+include $(samba4srcdir)/build/make/python.mk
 include samba4-data.mk
 include $(samba4srcdir)/static_deps.mk
-include $(samba4srcdir)/build/make/python.mk
 
 INSTALLPERMS = 0755
+$(foreach SCRIPT,$(wildcard scripting/bin/*),$(eval $(call binary_install_template,$(SCRIPT))))
 
-$(DESTDIR)$(bindir)/%: bin/%4 installdirs
+$(DESTDIR)$(bindir)/%4: bin/%4 installdirs
 	@mkdir -p $(@D)
 	@echo Installing $(@F) as $@
 	@if test -f $@; then rm -f $@.old; mv $@ $@.old; fi
 	@cp $< $@
 	@chmod $(INSTALLPERMS) $@
 
-$(DESTDIR)$(sbindir)/%: bin/%4 installdirs
+$(DESTDIR)$(sbindir)/%4: bin/%4 installdirs
 	@mkdir -p $(@D)
 	@echo Installing $(@F) as $@
 	@if test -f $@; then rm -f $@.old; mv $@ $@.old; fi
@@ -158,6 +159,8 @@ clean::
 proto:: $(PROTO_HEADERS)
 modules:: $(PLUGINS)
 
+pythonmods:: $(PYTHON_PYS) $(PYTHON_SO)
+
 all:: bin/samba4 bin/regpatch4 bin/regdiff4 bin/regshell4 bin/regtree4 bin/smbclient4
 torture:: bin/smbtorture4
 everything:: $(patsubst %,%4,$(BINARIES))
diff --git a/source4/build/make/python.mk b/source4/build/make/python.mk
index 66e5def..e307ba7 100644
--- a/source4/build/make/python.mk
+++ b/source4/build/make/python.mk
@@ -46,7 +46,7 @@ swig:: pythonmods
 .SUFFIXES: _wrap.c .i .py
 
 %_wrap.c %.py: %.i
-	[ "$(SWIG)" == "no" ] || $(SWIG) -O -Wall -I$(srcdir)/scripting/swig -python -keyword $<
+	[ "$(SWIG)" == "no" ] || $(SWIG) -O -Wall -python -keyword  -I../source4 $<
 
 realdistclean::
 	@echo "Removing SWIG output files"
diff --git a/source4/lib/registry/config.mk b/source4/lib/registry/config.mk
index fd1fd01..2e2b45a 100644
--- a/source4/lib/registry/config.mk
+++ b/source4/lib/registry/config.mk
@@ -109,6 +109,6 @@ PUBLIC_DEPENDENCIES = registry
 
 swig_registry_OBJ_FILES = $(libregistrysrcdir)/registry_wrap.o
 
-$(eval $(call python_py_module_template,samba/registry.py,lib/registry/registry.py))
+$(eval $(call python_py_module_template,samba/registry.py,$(libregistrysrcdir)/registry.py))
 
 $(swig_registry_OBJ_FILES): CFLAGS+=$(CFLAG_NO_UNUSED_MACROS) $(CFLAG_NO_CAST_QUAL)
diff --git a/source4/scripting/python/config.mk b/source4/scripting/python/config.mk
index 5a44fd5..7024684 100644
--- a/source4/scripting/python/config.mk
+++ b/source4/scripting/python/config.mk
@@ -25,7 +25,7 @@ $(python_misc_OBJ_FILES): CFLAGS+=$(CFLAG_NO_UNUSED_MACROS) $(CFLAG_NO_CAST_QUAL
 
 _PY_FILES = $(shell find $(pyscriptsrcdir)/samba ../lib/subunit/python -name "*.py")
 
-$(foreach pyfile, $(_PY_FILES),$(eval $(call python_py_module_template,$(patsubst $(pyscriptsrcdir)/%,%,$(pyfile)),$(pyfile))))
+$(eval $(foreach pyfile, $(_PY_FILES),$(call python_py_module_template,$(patsubst $(pyscriptsrcdir)/%,%,$(pyfile)),$(pyfile))))
 
 $(eval $(call python_py_module_template,samba/misc.py,$(pyscriptsrcdir)/misc.py))
 


-- 
Samba Shared Repository


More information about the samba-cvs mailing list