summaryrefslogtreecommitdiff
path: root/var
diff options
context:
space:
mode:
authorDenis Davydov <davydden@gmail.com>2017-04-18 13:55:11 +0200
committerAdam J. Stewart <ajstewart426@gmail.com>2017-04-18 06:55:11 -0500
commitfc938962fadd99d4831b33679257143d493ab027 (patch)
treef1f3eef5814a7bd98c560e645a04a230fb81d0f8 /var
parent89f531c18ac4c45deb8fe57674ba7a5a5623006a (diff)
downloadspack-fc938962fadd99d4831b33679257143d493ab027.tar.gz
spack-fc938962fadd99d4831b33679257143d493ab027.tar.bz2
spack-fc938962fadd99d4831b33679257143d493ab027.tar.xz
spack-fc938962fadd99d4831b33679257143d493ab027.zip
octave: add 4.2.1 (#3872)
Also switch to arpack-ng, which is maintained and has bugfixes, whereas the original arpack code is abandoned.
Diffstat (limited to 'var')
-rw-r--r--var/spack/repos/builtin/packages/octave/package.py12
-rw-r--r--var/spack/repos/builtin/packages/octave/patch_4.2.1_inline.diff12
2 files changed, 21 insertions, 3 deletions
diff --git a/var/spack/repos/builtin/packages/octave/package.py b/var/spack/repos/builtin/packages/octave/package.py
index 33ed5c8bc3..b02ed33613 100644
--- a/var/spack/repos/builtin/packages/octave/package.py
+++ b/var/spack/repos/builtin/packages/octave/package.py
@@ -38,10 +38,15 @@ class Octave(AutotoolsPackage):
extendable = True
+ version('4.2.1', '80c28f6398576b50faca0e602defb9598d6f7308b0903724442c2a35a605333b')
version('4.2.0', '443ba73782f3531c94bcf016f2f0362a58e186ddb8269af7dcce973562795567')
version('4.0.2', 'c2a5cacc6e4c52f924739cdf22c2c687')
version('4.0.0', 'a69f8320a4f20a8480c1b278b1adb799')
+ # patches
+ # see https://savannah.gnu.org/bugs/?50234
+ patch('patch_4.2.1_inline.diff', when='@4.2.1')
+
# Variants
variant('readline', default=True)
variant('arpack', default=False)
@@ -77,7 +82,7 @@ class Octave(AutotoolsPackage):
depends_on('readline', when='+readline')
# Optional dependencies
- depends_on('arpack', when='+arpack')
+ depends_on('arpack-ng', when='+arpack')
depends_on('curl', when='+curl')
depends_on('fftw', when='+fftw')
depends_on('fltk', when='+fltk')
@@ -120,9 +125,10 @@ class Octave(AutotoolsPackage):
# Optional dependencies
if '+arpack' in spec:
+ sa = spec['arpack-ng']
config_args.extend([
- "--with-arpack-includedir=%s" % spec['arpack'].prefix.include,
- "--with-arpack-libdir=%s" % spec['arpack'].prefix.lib
+ "--with-arpack-includedir=%s" % sa.prefix.include,
+ "--with-arpack-libdir=%s" % sa.prefix.lib
])
else:
config_args.append("--without-arpack")
diff --git a/var/spack/repos/builtin/packages/octave/patch_4.2.1_inline.diff b/var/spack/repos/builtin/packages/octave/patch_4.2.1_inline.diff
new file mode 100644
index 0000000000..880818fbce
--- /dev/null
+++ b/var/spack/repos/builtin/packages/octave/patch_4.2.1_inline.diff
@@ -0,0 +1,12 @@
+diff -r 73f7ef7169ac liboctave/system/file-stat.cc
+--- a/liboctave/system/file-stat.cc Thu Feb 23 16:08:44 2017 -0800
++++ b/liboctave/system/file-stat.cc Fri Feb 24 11:02:36 2017 -0800
+@@ -174,7 +174,7 @@ namespace octave
+ update_internal ();
+ }
+
+- inline file_stat::~file_stat () { }
++ file_stat::~file_stat () { }
+
+ void
+ file_stat::update_internal (bool force)