31 lines
991 B
Plaintext
31 lines
991 B
Plaintext
$OpenBSD: patch-configure_py,v 1.11 2012/11/01 22:54:18 sthen Exp $
|
|
--- configure.py.orig Sat Sep 29 12:34:33 2012
|
|
+++ configure.py Tue Oct 30 21:17:41 2012
|
|
@@ -1191,6 +1191,17 @@ def run_command(cmd, envvars=None):
|
|
|
|
cmd is the command to run.
|
|
"""
|
|
+ try:
|
|
+ localbase = os.environ["LOCALBASE"]
|
|
+ except KeyError:
|
|
+ localbase = "/usr/local"
|
|
+ try:
|
|
+ x11base = os.environ["X11BASE"]
|
|
+ except KeyError:
|
|
+ x11base = "/usr/X11R6"
|
|
+
|
|
+ cmd = cmd.replace("${LOCALBASE}", localbase).replace("$(LOCALBASE)", localbase)
|
|
+ cmd = cmd.replace("${X11BASE}", x11base).replace("$(X11BASE)", x11base)
|
|
if opts.verbose:
|
|
sys.stdout.write(cmd + "\n")
|
|
|
|
@@ -1858,7 +1869,7 @@ Type 'no' to decline the terms of the license.
|
|
sys.stdout.flush()
|
|
|
|
try:
|
|
- resp = sys.stdin.readline()
|
|
+ resp = "yes"
|
|
except KeyboardInterrupt:
|
|
raise SystemExit
|
|
except:
|