[svn] commit: r1837 - in /experiments/python-binding/src: bin/auth/Makefile.am bin/auth/main.cc bin/xfrout/xfrout.py.in lib/Makefile.am lib/dns/python/Makefile.am lib/xfr/Makefile.am lib/xfr/fdshare_python.cc
BIND 10 source code commits
bind10-changes at lists.isc.org
Mon May 17 14:24:05 UTC 2010
Author: jelte
Date: Mon May 17 14:24:05 2010
New Revision: 1837
Log:
made wrappers for libxfr (we need another name for that, i suggest libfdshare), xfrout can now work without boost.python. Boost-system is still needed for boost.asio
Added:
experiments/python-binding/src/lib/xfr/fdshare_python.cc
Modified:
experiments/python-binding/src/bin/auth/Makefile.am
experiments/python-binding/src/bin/auth/main.cc
experiments/python-binding/src/bin/xfrout/xfrout.py.in
experiments/python-binding/src/lib/Makefile.am
experiments/python-binding/src/lib/dns/python/Makefile.am
experiments/python-binding/src/lib/xfr/Makefile.am
Modified: experiments/python-binding/src/bin/auth/Makefile.am
==============================================================================
--- experiments/python-binding/src/bin/auth/Makefile.am (original)
+++ experiments/python-binding/src/bin/auth/Makefile.am Mon May 17 14:24:05 2010
@@ -34,12 +34,10 @@
b10_auth_LDADD += $(top_builddir)/src/lib/exceptions/.libs/libexceptions.a
b10_auth_LDADD += $(SQLITE_LIBS)
if HAVE_BOOST_SYSTEM
-if HAVE_BOOST_PYTHON
b10_auth_LDADD += $(top_builddir)/src/lib/xfr/.libs/libxfr.a
endif
b10_auth_LDFLAGS = $(AM_LDFLAGS) $(BOOST_LDFLAGS)
b10_auth_LDADD += $(BOOST_SYSTEM_LIB)
-endif
# TODO: config.h.in is wrong because doesn't honor pkgdatadir
# and can't use @datadir@ because doesn't expand default ${prefix}
Modified: experiments/python-binding/src/bin/auth/main.cc
==============================================================================
--- experiments/python-binding/src/bin/auth/main.cc (original)
+++ experiments/python-binding/src/bin/auth/main.cc Mon May 17 14:24:05 2010
@@ -43,7 +43,7 @@
#include <cc/data.h>
#include <config/ccsession.h>
-#if defined(HAVE_BOOST_SYSTEM) && defined(HAVE_BOOST_PYTHON)
+#if defined(HAVE_BOOST_SYSTEM)
#define USE_XFROUT
#include <xfr/xfrout_client.h>
#endif
Modified: experiments/python-binding/src/bin/xfrout/xfrout.py.in
==============================================================================
--- experiments/python-binding/src/bin/xfrout/xfrout.py.in (original)
+++ experiments/python-binding/src/bin/xfrout/xfrout.py.in Mon May 17 14:24:05 2010
@@ -30,7 +30,7 @@
import socket
from optparse import OptionParser, OptionValueError
try:
- from bind10_xfr import *
+ from libxfr_python import *
from libdns_python import *
except ImportError as e:
# C++ loadable module may not be installed; even so the xfrout process
@@ -431,6 +431,7 @@
set_cmd_options(parser)
(options, args) = parser.parse_args()
verbose_mode = options.verbose
+ verbose_mode = True # XX remove
set_signal_handler()
xfrout_server = XfroutServer()
Modified: experiments/python-binding/src/lib/Makefile.am
==============================================================================
--- experiments/python-binding/src/lib/Makefile.am (original)
+++ experiments/python-binding/src/lib/Makefile.am Mon May 17 14:24:05 2010
@@ -1,6 +1,1 @@
-SUBDIRS = exceptions dns cc config datasrc python
-if HAVE_BOOST_PYTHON
-if HAVE_BOOST_SYSTEM
-SUBDIRS += xfr
-endif
-endif
+SUBDIRS = exceptions dns cc config datasrc python xfr
Modified: experiments/python-binding/src/lib/dns/python/Makefile.am
==============================================================================
--- experiments/python-binding/src/lib/dns/python/Makefile.am (original)
+++ experiments/python-binding/src/lib/dns/python/Makefile.am Mon May 17 14:24:05 2010
@@ -6,7 +6,7 @@
#libdns_python_name_la_LDFLAGS = $(PYTHON_LDFLAGS)
#lib_LTLIBRARIES = libdns_python_name.la libdns_python_rrset.la
-lib_LTLIBRARIES = libdns_python.la
+pyexec_LTLIBRARIES = libdns_python.la
libdns_python_la_SOURCES = libdns_python.cc libdns_python_common.cc
libdns_python_la_CPPFLAGS = $(AM_CPPFLAGS) $(PYTHON_INCLUDES)
libdns_python_la_LDFLAGS = $(PYTHON_LDFLAGS)
Modified: experiments/python-binding/src/lib/xfr/Makefile.am
==============================================================================
--- experiments/python-binding/src/lib/xfr/Makefile.am (original)
+++ experiments/python-binding/src/lib/xfr/Makefile.am Mon May 17 14:24:05 2010
@@ -14,19 +14,32 @@
libxfr_la_SOURCES = xfrout_client.h xfrout_client.cc
libxfr_la_SOURCES += fd_share.h fd_share.cc
-if HAVE_BOOST_PYTHON
-pyexec_LTLIBRARIES = bind10_xfr.la
-bind10_xfr_la_SOURCES = python_xfr.cc fd_share.cc fd_share.h
-bind10_xfr_la_CPPFLAGS = $(AM_CPPFLAGS) $(PYTHON_INCLUDES)
-if GCC_WERROR_OK
+pyexec_LTLIBRARIES = libxfr_python.la
+libxfr_python_la_SOURCES = fdshare_python.cc
+libxfr_python_la_CPPFLAGS = $(AM_CPPFLAGS) $(PYTHON_INCLUDES)
+libxfr_python_la_LDFLAGS = $(PYTHON_LDFLAGS)
+# (still need boost for asio)
+libxfr_python_la_LDFLAGS += $(BOOST_LDFLAGS) $(PYTHON_LDFLAGS)
+libxfr_python_la_LDFLAGS += -module
+
+libxfr_python_la_LIBADD = $(top_builddir)/src/lib/xfr/libxfr.la
+libxfr_python_la_LIBADD += $(top_builddir)/src/lib/exceptions/libexceptions.la
+libxfr_python_la_LIBADD += $(BOOST_SYSTEM_LIB) $(PYTHON_LIB)
+libxfr_python_la_LIBADD += $(PYTHON_LIB)
+
+#if HAVE_BOOST_PYTHON
+#pyexec_LTLIBRARIES += bind10_xfr.la
+#bind10_xfr_la_SOURCES = python_xfr.cc fd_share.cc fd_share.h
+#bind10_xfr_la_CPPFLAGS = $(AM_CPPFLAGS) $(PYTHON_INCLUDES)
+#if GCC_WERROR_OK
# XXX: Boost.Python triggers strict aliasing violation, so if we use -Werror
# we need to suppress the warnings.
-bind10_xfr_la_CPPFLAGS += -fno-strict-aliasing
-endif
-bind10_xfr_la_LDFLAGS = $(BOOST_LDFLAGS) $(PYTHON_LDFLAGS)
+#bind10_xfr_la_CPPFLAGS += -fno-strict-aliasing
+#endif
+#bind10_xfr_la_LDFLAGS = $(BOOST_LDFLAGS) $(PYTHON_LDFLAGS)
# Python prefers .so, while some OSes (specifically MacOS) use a different
# suffix for dynamic objects. -module is necessary to work this around.
-bind10_xfr_la_LDFLAGS += -module
-bind10_xfr_la_LIBADD = $(BOOST_PYTHON_LIB) $(PYTHON_LIB)
-endif
+#bind10_xfr_la_LDFLAGS += -module
+#bind10_xfr_la_LIBADD = $(BOOST_PYTHON_LIB) $(PYTHON_LIB)
+#endif
More information about the bind10-changes
mailing list