summaryrefslogtreecommitdiff
path: root/var
diff options
context:
space:
mode:
authorJames Wynne III <wynnejr@gpujake.com>2016-10-06 05:48:05 -0400
committerTodd Gamblin <tgamblin@llnl.gov>2016-10-06 02:48:05 -0700
commit7dc11472bf2d74e4a89a940a60023ed8e91f7bc2 (patch)
tree168d039175b327535835ad62a309182056616ae5 /var
parent92ca6d64239186c269430b9bf6aa81bc2ecf904e (diff)
downloadspack-7dc11472bf2d74e4a89a940a60023ed8e91f7bc2.tar.gz
spack-7dc11472bf2d74e4a89a940a60023ed8e91f7bc2.tar.bz2
spack-7dc11472bf2d74e4a89a940a60023ed8e91f7bc2.tar.xz
spack-7dc11472bf2d74e4a89a940a60023ed8e91f7bc2.zip
Sqlite ppc64le configure build guess fix (#1684)
* Added check for ppc64le because configure cant guess the build type for rhel on ppc64le Expand/clarify description of dependency types Refactored getting the arch so that its less verbose * Fixed flake8 issues
Diffstat (limited to 'var')
-rw-r--r--var/spack/repos/builtin/packages/sqlite/package.py11
1 files changed, 10 insertions, 1 deletions
diff --git a/var/spack/repos/builtin/packages/sqlite/package.py b/var/spack/repos/builtin/packages/sqlite/package.py
index 513f8ec6d4..78c2e14b34 100644
--- a/var/spack/repos/builtin/packages/sqlite/package.py
+++ b/var/spack/repos/builtin/packages/sqlite/package.py
@@ -23,6 +23,7 @@
# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
##############################################################################
from spack import *
+from spack import architecture
class Sqlite(Package):
@@ -35,7 +36,15 @@ class Sqlite(Package):
version('3.8.5', '0544ef6d7afd8ca797935ccc2685a9ed',
url='http://www.sqlite.org/2014/sqlite-autoconf-3080500.tar.gz')
+ def get_arch(self):
+ arch = architecture.Arch()
+ arch.platform = architecture.platform()
+ return str(arch.platform.target('default_target'))
+
def install(self, spec, prefix):
- configure("--prefix=" + prefix)
+ config = ["--prefix=" + prefix]
+ if self.get_arch() == 'ppc64le':
+ config.append("--build=powerpc64le-redhat-linux-gnu")
+ configure(*config)
make()
make("install")