Add missing readline dependency to sqlite (#4001)
* Add missing readline dependency to sqlite * Fix typo
This commit is contained in:
parent
378935916a
commit
348e715da7
@ -26,7 +26,7 @@
|
|||||||
from spack import architecture
|
from spack import architecture
|
||||||
|
|
||||||
|
|
||||||
class Sqlite(Package):
|
class Sqlite(AutotoolsPackage):
|
||||||
"""SQLite3 is an SQL database engine in a C library. Programs that
|
"""SQLite3 is an SQL database engine in a C library. Programs that
|
||||||
link the SQLite3 library can have SQL database access without
|
link the SQLite3 library can have SQL database access without
|
||||||
running a separate RDBMS process.
|
running a separate RDBMS process.
|
||||||
@ -38,15 +38,17 @@ class Sqlite(Package):
|
|||||||
version('3.8.5', '0544ef6d7afd8ca797935ccc2685a9ed',
|
version('3.8.5', '0544ef6d7afd8ca797935ccc2685a9ed',
|
||||||
url='https://www.sqlite.org/2014/sqlite-autoconf-3080500.tar.gz')
|
url='https://www.sqlite.org/2014/sqlite-autoconf-3080500.tar.gz')
|
||||||
|
|
||||||
|
depends_on('readline')
|
||||||
|
|
||||||
def get_arch(self):
|
def get_arch(self):
|
||||||
arch = architecture.Arch()
|
arch = architecture.Arch()
|
||||||
arch.platform = architecture.platform()
|
arch.platform = architecture.platform()
|
||||||
return str(arch.platform.target('default_target'))
|
return str(arch.platform.target('default_target'))
|
||||||
|
|
||||||
def install(self, spec, prefix):
|
def configure_args(self):
|
||||||
config = ["--prefix=" + prefix]
|
args = []
|
||||||
|
|
||||||
if self.get_arch() == 'ppc64le':
|
if self.get_arch() == 'ppc64le':
|
||||||
config.append("--build=powerpc64le-redhat-linux-gnu")
|
args.append('--build=powerpc64le-redhat-linux-gnu')
|
||||||
configure(*config)
|
|
||||||
make()
|
return args
|
||||||
make("install")
|
|
||||||
|
Loading…
Reference in New Issue
Block a user