From 660db7e32214175f17e5df8c0a950a344c37c7c6 Mon Sep 17 00:00:00 2001 From: Alexander Grund Date: Wed, 25 Oct 2023 11:33:07 +0200 Subject: [PATCH] Error out on unknown configure args --- easybuild/easyblocks/generic/configuremake.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/easybuild/easyblocks/generic/configuremake.py b/easybuild/easyblocks/generic/configuremake.py index 9e4066b60be..476a5ccf893 100644 --- a/easybuild/easyblocks/generic/configuremake.py +++ b/easybuild/easyblocks/generic/configuremake.py @@ -49,7 +49,7 @@ from easybuild.tools.config import source_paths, build_option from easybuild.tools.filetools import CHECKSUM_TYPE_SHA256, adjust_permissions, compute_checksum, download_file from easybuild.tools.filetools import read_file, remove_file -from easybuild.tools.run import run_cmd +from easybuild.tools.run import check_log_for_errors, run_cmd # string that indicates that a configure script was generated by Autoconf # note: bytes string since this constant is used to check the contents of 'configure' which is read as bytes @@ -324,6 +324,7 @@ def configure_step(self, cmd_prefix=''): ) (out, _) = run_cmd(cmd, log_all=True, simple=False) + check_log_for_errors(out, ['configure: WARNING: unrecognized options:']) return out