summaryrefslogtreecommitdiff
path: root/SConstruct
diff options
context:
space:
mode:
authorGlenn Strauss <gstrauss@gluelogic.com>2021-02-06 13:14:32 -0500
committerGlenn Strauss <gstrauss@gluelogic.com>2021-02-07 12:43:46 -0500
commit165600498b07ac7cb7283fec98ae17a431d2749d (patch)
tree31cd28978749591c773b700baa71d8b46f8c9bd6 /SConstruct
parent4a600dabd5e2799bf0c3048859ee4f00808b7d89 (diff)
downloadlighttpd-git-165600498b07ac7cb7283fec98ae17a431d2749d.tar.gz
[build] fix SCons pkg-config err handling (fixes #3066)
(thx elchenberg) x-ref: "OSError in SConstruct on Alpine Linux" https://redmine.lighttpd.net/issues/3066
Diffstat (limited to 'SConstruct')
-rw-r--r--SConstruct2
1 files changed, 2 insertions, 0 deletions
diff --git a/SConstruct b/SConstruct
index 8950b45b..ff0295a9 100644
--- a/SConstruct
+++ b/SConstruct
@@ -140,6 +140,8 @@ class Autoconf:
try:
self.conf.env.ParseConfig(*args, **kw)
return True
+ except OSError:
+ return False
except Exception as e:
print(e.message, file=sys.stderr)
return False