BIND 10 trac1246, updated. 78252609c39a14fb24a879c74108705c7cffed49 [1246] only check B10_FROM_SOURCE env var once
BIND 10 source code commits
bind10-changes at lists.isc.org
Mon Oct 24 10:04:09 UTC 2011
The branch, trac1246 has been updated
via 78252609c39a14fb24a879c74108705c7cffed49 (commit)
from 299473702fedd1cab6967683ad7172b88c35f353 (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 78252609c39a14fb24a879c74108705c7cffed49
Author: Jelte Jansen <jelte at isc.org>
Date: Mon Oct 24 12:03:50 2011 +0200
[1246] only check B10_FROM_SOURCE env var once
-----------------------------------------------------------------------
Summary of changes:
src/bin/bind10/bind10_src.py.in | 8 +++++---
1 files changed, 5 insertions(+), 3 deletions(-)
-----------------------------------------------------------------------
diff --git a/src/bin/bind10/bind10_src.py.in b/src/bin/bind10/bind10_src.py.in
index fd83c1f..ce19543 100755
--- a/src/bin/bind10/bind10_src.py.in
+++ b/src/bin/bind10/bind10_src.py.in
@@ -44,10 +44,12 @@ import os
# installed on the system
if "B10_FROM_SOURCE" in os.environ:
SPECFILE_LOCATION = os.environ["B10_FROM_SOURCE"] + "/src/bin/bind10/bob.spec"
+ ADD_LIBEXEC_AND_LD_PATH = False
else:
PREFIX = "@prefix@"
DATAROOTDIR = "@datarootdir@"
SPECFILE_LOCATION = "@datadir@/@PACKAGE@/bob.spec".replace("${datarootdir}", DATAROOTDIR).replace("${prefix}", PREFIX)
+ ADD_LIBEXEC_AND_LD_PATH = True
import subprocess
import signal
@@ -187,7 +189,7 @@ class ProcessInfo:
# on construction (self.env).
spawn_env = copy.deepcopy(os.environ)
spawn_env.update(self.env)
- if 'B10_FROM_SOURCE' not in os.environ:
+ if ADD_LIBEXEC_AND_LD_PATH:
spawn_env['PATH'] = "@@LIBEXECDIR@@:" + spawn_env['PATH']
self.process = subprocess.Popen(self.args,
stdin=subprocess.PIPE,
@@ -357,7 +359,7 @@ class BoB:
def start_creator(self):
self.curproc = 'b10-sockcreator'
creator_path = os.environ['PATH']
- if 'B10_FROM_SOURCE' not in os.environ:
+ if ADD_LIBEXEC_AND_LD_PATH:
creator_path = "@@LIBEXECDIR@@:" + creator_path
self.sockcreator = isc.bind10.sockcreator.Creator(creator_path)
@@ -590,7 +592,7 @@ class BoB:
# 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:
+ if ADD_LIBEXEC_AND_LD_PATH:
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
More information about the bind10-changes
mailing list