[svn] commit: r2056 - in /branches/trac223/src/bin: auth/main.cc bind10/run_bind10.sh.in xfrin/xfrin.py.in xfrout/xfrout.py.in
BIND 10 source code commits
bind10-changes at lists.isc.org
Wed Jun 2 14:03:02 UTC 2010
Author: jelte
Date: Wed Jun 2 14:03:02 2010
New Revision: 2056
Log:
add a second B10_FROM_SOURCE env var to run_bind10.sh.in; B10_FROM_BUILD (some spec files are now generated and end up in the build tree instead of the source tree)
Modified:
branches/trac223/src/bin/auth/main.cc
branches/trac223/src/bin/bind10/run_bind10.sh.in
branches/trac223/src/bin/xfrin/xfrin.py.in
branches/trac223/src/bin/xfrout/xfrout.py.in
Modified: branches/trac223/src/bin/auth/main.cc
==============================================================================
--- branches/trac223/src/bin/auth/main.cc (original)
+++ branches/trac223/src/bin/auth/main.cc Wed Jun 2 14:03:02 2010
@@ -135,8 +135,8 @@
int ret = 0;
try {
string specfile;
- if (getenv("B10_FROM_SOURCE")) {
- specfile = string(getenv("B10_FROM_SOURCE")) +
+ if (getenv("B10_FROM_BUILD")) {
+ specfile = string(getenv("B10_FROM_BUILD")) +
"/src/bin/auth/auth.spec";
} else {
specfile = string(AUTH_SPECFILE_LOCATION);
Modified: branches/trac223/src/bin/bind10/run_bind10.sh.in
==============================================================================
--- branches/trac223/src/bin/bind10/run_bind10.sh.in (original)
+++ branches/trac223/src/bin/bind10/run_bind10.sh.in Wed Jun 2 14:03:02 2010
@@ -23,11 +23,17 @@
PATH=@abs_top_builddir@/src/bin/msgq:@abs_top_builddir@/src/bin/auth:@abs_top_builddir@/src/bin/cfgmgr:@abs_top_builddir@/src/bin/cmdctl:@abs_top_builddir@/src/bin/xfrin:@abs_top_builddir@/src/bin/xfrout:$PATH
export PATH
-PYTHONPATH=@abs_top_builddir@/src/lib/python:@abs_top_builddir@/src/lib/dns/.libs:@abs_top_builddir@/src/lib/xfr/.libs
+PYTHONPATH=@abs_top_srcdir@/src/lib/python:@abs_top_builddir@/src/lib/python:@abs_top_builddir@/src/lib/dns/.libs:@abs_top_builddir@/src/lib/xfr/.libs
export PYTHONPATH
B10_FROM_SOURCE=@abs_top_srcdir@
export B10_FROM_SOURCE
+# TODO: We need to do this feature based (ie. no general from_source)
+# But right now we need a second one because some spec files are
+# generated and hence end up under builddir
+B10_FROM_BUILD=@abs_top_builddir@
+export B10_FROM_BUILD
+
BIND10_MSGQ_SOCKET_FILE=@abs_top_srcdir@/msgq_socket
export BIND10_MSGQ_SOCKET_FILE
Modified: branches/trac223/src/bin/xfrin/xfrin.py.in
==============================================================================
--- branches/trac223/src/bin/xfrin/xfrin.py.in (original)
+++ branches/trac223/src/bin/xfrin/xfrin.py.in Wed Jun 2 14:03:02 2010
@@ -35,11 +35,11 @@
# must keep running, so we warn about it and move forward.
sys.stderr.write('[b10-xfrin] failed to import DNS module: %s\n' % str(e))
-# If B10_FROM_SOURCE is set in the environment, we use data files
+# If B10_FROM_BUILD is set in the environment, we use data files
# from a directory relative to that, otherwise we use the ones
# installed on the system
-if "B10_FROM_SOURCE" in os.environ:
- SPECFILE_PATH = os.environ["B10_FROM_SOURCE"] + "/src/bin/xfrin"
+if "B10_FROM_BUILD" in os.environ:
+ SPECFILE_PATH = os.environ["B10_FROM_BUILD"] + "/src/bin/xfrin"
else:
PREFIX = "@prefix@"
DATAROOTDIR = "@datarootdir@"
Modified: branches/trac223/src/bin/xfrout/xfrout.py.in
==============================================================================
--- branches/trac223/src/bin/xfrout/xfrout.py.in (original)
+++ branches/trac223/src/bin/xfrout/xfrout.py.in Wed Jun 2 14:03:02 2010
@@ -37,8 +37,8 @@
# must keep running, so we warn about it and move forward.
sys.stderr.write('[b10-xfrout] failed to import DNS or XFR module: %s\n' % str(e))
-if "B10_FROM_SOURCE" in os.environ:
- SPECFILE_PATH = os.environ["B10_FROM_SOURCE"] + "/src/bin/xfrout"
+if "B10_FROM_BUILD" in os.environ:
+ SPECFILE_PATH = os.environ["B10_FROM_BUILD"] + "/src/bin/xfrout"
else:
PREFIX = "@prefix@"
DATAROOTDIR = "@datarootdir@"
More information about the bind10-changes
mailing list