summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGregory Lee <lee218@llnl.gov>2019-07-31 14:48:06 -0700
committerGreg Becker <becker33@llnl.gov>2019-07-31 16:48:06 -0500
commit2c2abb454c3c4c2846da73dd2153682715ead763 (patch)
treef7d68666a505a777d497dcf82e270db389c44e62
parent162f1338d9afcb46b11dbceb6d9bc5f9d329fc9d (diff)
downloadspack-2c2abb454c3c4c2846da73dd2153682715ead763.tar.gz
spack-2c2abb454c3c4c2846da73dd2153682715ead763.tar.bz2
spack-2c2abb454c3c4c2846da73dd2153682715ead763.tar.xz
spack-2c2abb454c3c4c2846da73dd2153682715ead763.zip
fix mpa package build error with a patch (#12217)
-rw-r--r--var/spack/repos/builtin/packages/mount-point-attributes/mpa_type_conversion.patch21
-rw-r--r--var/spack/repos/builtin/packages/mount-point-attributes/package.py2
2 files changed, 23 insertions, 0 deletions
diff --git a/var/spack/repos/builtin/packages/mount-point-attributes/mpa_type_conversion.patch b/var/spack/repos/builtin/packages/mount-point-attributes/mpa_type_conversion.patch
new file mode 100644
index 0000000000..9900880f1a
--- /dev/null
+++ b/var/spack/repos/builtin/packages/mount-point-attributes/mpa_type_conversion.patch
@@ -0,0 +1,21 @@
+*** MountPointAttributes/src/MountPointAttr.h.orig Wed Jul 31 10:08:33 2019
+--- MountPointAttributes/src/MountPointAttr.h Wed Jul 31 10:09:55 2019
+***************
+*** 248,255 ****
+ */
+ struct FileSystemTypeInfo {
+ FileSystemType t;
+! unsigned short speed;
+! unsigned short scalability;
+ const char *fs_name;
+ };
+
+--- 248,255 ----
+ */
+ struct FileSystemTypeInfo {
+ FileSystemType t;
+! short speed;
+! short scalability;
+ const char *fs_name;
+ };
+
diff --git a/var/spack/repos/builtin/packages/mount-point-attributes/package.py b/var/spack/repos/builtin/packages/mount-point-attributes/package.py
index e3a743b4a7..ea29c077c9 100644
--- a/var/spack/repos/builtin/packages/mount-point-attributes/package.py
+++ b/var/spack/repos/builtin/packages/mount-point-attributes/package.py
@@ -18,3 +18,5 @@ class MountPointAttributes(AutotoolsPackage):
depends_on('autoconf', type='build')
depends_on('automake', type='build')
depends_on('libtool', type='build')
+
+ patch('mpa_type_conversion.patch', when='@1.1')