BIND 10 master, updated. e2c88f03e394ed8ebcfcff936ee888bf593e22d1 fix typo in comment in #1300 quick hack
BIND 10 source code commits
bind10-changes at lists.isc.org
Thu Oct 13 13:20:04 UTC 2011
The branch, master has been updated
via e2c88f03e394ed8ebcfcff936ee888bf593e22d1 (commit)
via 930d4317ed56bdb7cb0d7d53bac5db297ddd0551 (commit)
from 1db00151f61cdd1c58bcd80dad38f3f97c67dae7 (commit)
Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.
- Log -----------------------------------------------------------------
commit e2c88f03e394ed8ebcfcff936ee888bf593e22d1
Author: reed <reed at new-host.(none)>
Date: Thu Oct 13 08:19:46 2011 -0500
fix typo in comment in #1300 quick hack
commit 930d4317ed56bdb7cb0d7d53bac5db297ddd0551
Author: reed <reed at new-host.(none)>
Date: Thu Oct 13 08:19:13 2011 -0500
Quick hack for ticket #1300 to workaround dlopen can't find library
This was from jinmei.
The real fix will be done in #1292.
-----------------------------------------------------------------------
Summary of changes:
src/bin/bind10/Makefile.am | 1 +
src/bin/bind10/bind10_src.py.in | 16 ++++++++++++++++
2 files changed, 17 insertions(+), 0 deletions(-)
-----------------------------------------------------------------------
diff --git a/src/bin/bind10/Makefile.am b/src/bin/bind10/Makefile.am
index 5ec0c9f..69ea256 100644
--- a/src/bin/bind10/Makefile.am
+++ b/src/bin/bind10/Makefile.am
@@ -33,6 +33,7 @@ $(PYTHON_LOGMSGPKG_DIR)/work/bind10_messages.py : bind10_messages.mes
# this is done here since configure.ac AC_OUTPUT doesn't expand exec_prefix
bind10: bind10_src.py $(PYTHON_LOGMSGPKG_DIR)/work/bind10_messages.py
$(SED) -e "s|@@PYTHONPATH@@|@pyexecdir@|" \
+ -e "s|@@LIBDIR@@|$(libdir)|" \
-e "s|@@LIBEXECDIR@@|$(pkglibexecdir)|" bind10_src.py >$@
chmod a+x $@
diff --git a/src/bin/bind10/bind10_src.py.in b/src/bin/bind10/bind10_src.py.in
index 1687cb1..94747f2 100755
--- a/src/bin/bind10/bind10_src.py.in
+++ b/src/bin/bind10/bind10_src.py.in
@@ -579,6 +579,22 @@ class BoB:
self.start_simple("b10-xfrout", c_channel_env)
def start_xfrin(self, c_channel_env):
+ # XXX: a quick-hack workaround. xfrin will implicitly use dynamically
+ # loadable data source modules, which will be installed in $(libdir).
+ # On some OSes (including MacOS X and *BSDs) the main process (python)
+ # cannot find the modules unless they are located in a common shared
+ # object path or a path in the (DY)LD_LIBRARY_PATH. We should seek
+ # a cleaner solution, but for a short term workaround we specify the
+ # path here, unconditionally, and without even bothering which
+ # environment variable should be used.
+ if not "B10_FROM_SOURCE" in os.environ:
+ cur_path = os.getenv('DYLD_LIBRARY_PATH')
+ cur_path = '' if cur_path is None else ':' + cur_path
+ c_channel_env['DYLD_LIBRARY_PATH'] = "@@LIBDIR@@" + cur_path
+
+ cur_path = os.getenv('LD_LIBRARY_PATH')
+ cur_path = '' if cur_path is None else ':' + cur_path
+ c_channel_env['LD_LIBRARY_PATH'] = "@@LIBDIR@@" + cur_path
self.start_simple("b10-xfrin", c_channel_env)
def start_zonemgr(self, c_channel_env):
More information about the bind10-changes
mailing list