diff options
author | Jonathan Wong <jonwong12@users.noreply.github.com> | 2017-06-21 04:47:06 -0700 |
---|---|---|
committer | Adam J. Stewart <ajstewart426@gmail.com> | 2017-06-21 06:47:06 -0500 |
commit | cb87edf230c80fa1e0fc54027d0773f6a4d0b270 (patch) | |
tree | e443415e1985d44d2974312b3358cb9ed02fc6fd | |
parent | 2525363c11a4939f6597a8c93bb8a361ece6cfc0 (diff) | |
download | spack-cb87edf230c80fa1e0fc54027d0773f6a4d0b270.tar.gz spack-cb87edf230c80fa1e0fc54027d0773f6a4d0b270.tar.bz2 spack-cb87edf230c80fa1e0fc54027d0773f6a4d0b270.tar.xz spack-cb87edf230c80fa1e0fc54027d0773f6a4d0b270.zip |
Modified ipopt package to support build on ppc64le (#4561)
Added line in package.py to patch using ipopt_ppc_build.patch. The patch simply adds support in config.guess and Ipopt/config.guess to build ipopt on ppc64le.
-rw-r--r-- | var/spack/repos/builtin/packages/ipopt/ipopt_ppc_build.patch | 26 | ||||
-rw-r--r-- | var/spack/repos/builtin/packages/ipopt/package.py | 2 |
2 files changed, 28 insertions, 0 deletions
diff --git a/var/spack/repos/builtin/packages/ipopt/ipopt_ppc_build.patch b/var/spack/repos/builtin/packages/ipopt/ipopt_ppc_build.patch new file mode 100644 index 0000000000..a903544cc7 --- /dev/null +++ b/var/spack/repos/builtin/packages/ipopt/ipopt_ppc_build.patch @@ -0,0 +1,26 @@ +--- ipopt/config.guess 2017-06-20 14:49:19.618016003 -0700 ++++ ipopt/config.guess.new 2017-06-20 14:50:35.678878802 -0700 +@@ -908,6 +908,9 @@ + ppc:Linux:*:*) + echo powerpc-unknown-linux-gnu + exit ;; ++ ppc64le:Linux:*:*) ++ echo powerpc64-unknown-linux-gnu ++ exit ;; + ppc64:Linux:*:*) + echo powerpc64-unknown-linux-gnu + exit ;; + + +--- ipopt/Ipopt/config.guess 2017-06-20 14:49:19.618016003 -0700 ++++ ipopt/Ipopt/config.guess.new 2017-06-20 14:50:35.678878802 -0700 +@@ -908,6 +908,9 @@ + ppc:Linux:*:*) + echo powerpc-unknown-linux-gnu + exit ;; ++ ppc64le:Linux:*:*) ++ echo powerpc64-unknown-linux-gnu ++ exit ;; + ppc64:Linux:*:*) + echo powerpc64-unknown-linux-gnu + exit ;; diff --git a/var/spack/repos/builtin/packages/ipopt/package.py b/var/spack/repos/builtin/packages/ipopt/package.py index 8bfda4a10b..d5bc0b21a4 100644 --- a/var/spack/repos/builtin/packages/ipopt/package.py +++ b/var/spack/repos/builtin/packages/ipopt/package.py @@ -52,6 +52,8 @@ class Ipopt(Package): depends_on('coinhsl', when='+coinhsl') depends_on('metis@4.0:4.999', when='+metis') + patch('ipopt_ppc_build.patch', when='arch=ppc64le') + def install(self, spec, prefix): # Dependency directories blas_dir = spec['blas'].prefix |