our m4 lacks the -E option to turn warnings into errors.

from Stefan Rinkes
ok sthen@
This commit is contained in:
jasper 2011-12-21 17:41:52 +00:00
parent ab12aa7eda
commit d7078d34d2
2 changed files with 16 additions and 2 deletions

View File

@ -1,11 +1,11 @@
# $OpenBSD: Makefile,v 1.14 2011/09/16 09:24:58 espie Exp $
# $OpenBSD: Makefile,v 1.15 2011/12/21 17:41:52 jasper Exp $
COMMENT= Python-based build system
VERSION= 2.0.1
DISTNAME= scons-${VERSION}
CATEGORIES= devel
REVISION = 1
REVISION = 2
HOMEPAGE= http://www.scons.org/

View File

@ -0,0 +1,14 @@
$OpenBSD: patch-engine_SCons_Tool_m4_py,v 1.1 2011/12/21 17:41:52 jasper Exp $
XXX: OpenBSD's m4(1) lacks the -E option (needs to be implemented though).
--- engine/SCons/Tool/m4.py.orig Wed Dec 21 18:39:51 2011
+++ engine/SCons/Tool/m4.py Wed Dec 21 18:40:07 2011
@@ -50,7 +50,6 @@ def generate(env):
# The src_suffix setup is like so: file.c.m4 -> file.c,
# file.cpp.m4 -> file.cpp etc.
env['M4'] = 'm4'
- env['M4FLAGS'] = SCons.Util.CLVar('-E')
env['M4COM'] = 'cd ${SOURCE.rsrcdir} && $M4 $M4FLAGS < ${SOURCE.file} > ${TARGET.abspath}'
def exists(env):