From f7bf9ee4adbbd3f043c32265c2234597e15e8803 Mon Sep 17 00:00:00 2001 From: Jack Lloyd Date: Thu, 12 Jan 2017 20:30:35 -0500 Subject: configure: Remove duplicates from generated module list I ran into this after PKCS11 was enabled by default, as my local build script uses --enable-modules=pkcs11,... this ended up causing the module to be loaded twice! The result was duplicate entries in the Makefile. Would be good for configure to be written more defensively, the result of this error being a bogus Makefile is lame. --- configure.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'configure.py') diff --git a/configure.py b/configure.py index 35f9f7224..523a4ce58 100755 --- a/configure.py +++ b/configure.py @@ -1807,7 +1807,8 @@ def choose_modules_to_use(modules, module_policy, archinfo, ccinfo, options): if modules[mod].warning: logging.warning('%s: %s' % (mod, modules[mod].warning)) - to_load.sort() + # force through set to dedup if required + to_load = sorted(list(set(to_load))) logging.info('Loading modules %s', ' '.join(to_load)) return to_load -- cgit v1.2.3