31 lines
977 B
Plaintext
31 lines
977 B
Plaintext
$OpenBSD: patch-configure_py,v 1.7 2010/11/10 22:12:40 jasper Exp $
|
|
--- configure.py.orig Fri Oct 29 16:43:52 2010
|
|
+++ configure.py Wed Nov 10 22:50:26 2010
|
|
@@ -1083,6 +1083,17 @@ def run_command(cmd):
|
|
|
|
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")
|
|
|
|
@@ -1697,7 +1708,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:
|