summaryrefslogtreecommitdiff
path: root/var
diff options
context:
space:
mode:
authorMassimiliano Culpo <massimiliano.culpo@googlemail.com>2017-01-31 15:49:29 +0100
committerTodd Gamblin <tgamblin@llnl.gov>2017-01-31 09:49:29 -0500
commit19cf7a2833ba2ffcff46bd4543ed93fd80c1d8ea (patch)
treefbe371e34f5658ffc178484ac26bb92cbf679560 /var
parent75763bb8e38f7fbb2b855ace453d0c31ec542427 (diff)
downloadspack-19cf7a2833ba2ffcff46bd4543ed93fd80c1d8ea.tar.gz
spack-19cf7a2833ba2ffcff46bd4543ed93fd80c1d8ea.tar.bz2
spack-19cf7a2833ba2ffcff46bd4543ed93fd80c1d8ea.tar.xz
spack-19cf7a2833ba2ffcff46bd4543ed93fd80c1d8ea.zip
libmng: fix trying to run configure on an already configured directory fixes #2959 (#2961)
Diffstat (limited to 'var')
-rw-r--r--var/spack/repos/builtin/packages/libmng/package.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/var/spack/repos/builtin/packages/libmng/package.py b/var/spack/repos/builtin/packages/libmng/package.py
index a867c1997e..c8ea90401b 100644
--- a/var/spack/repos/builtin/packages/libmng/package.py
+++ b/var/spack/repos/builtin/packages/libmng/package.py
@@ -42,3 +42,7 @@ class Libmng(AutotoolsPackage):
# jpeg requires stdio to beincluded before its headrs.
filter_file(r'^(\#include \<jpeglib\.h\>)',
'#include<stdio.h>\n\\1', 'libmng_types.h')
+
+ @run_before('configure')
+ def clean_configure_directory(self):
+ make('distclean')