From ae91d49f21a240a7b5bbf3bdfcfb4329ac4df44a Mon Sep 17 00:00:00 2001 From: Vanessasaurus <814322+vsoch@users.noreply.github.com> Date: Sat, 12 Jun 2021 00:31:29 -0600 Subject: libinih: add new package (#24289) xfsprogs currently does not install with error message: FATAL ERROR: could not find a valid ini.h header. Adding this package libinih, and including it as a dependency for xfsprogs seems to fix the issue. It could be that we only need to add it for newer versions (if it worked before) and maybe a maintainer can comment on that. Signed-off-by: vsoch Co-authored-by: vsoch --- var/spack/repos/builtin/packages/libinih/package.py | 18 ++++++++++++++++++ var/spack/repos/builtin/packages/xfsprogs/package.py | 1 + 2 files changed, 19 insertions(+) create mode 100644 var/spack/repos/builtin/packages/libinih/package.py (limited to 'var') diff --git a/var/spack/repos/builtin/packages/libinih/package.py b/var/spack/repos/builtin/packages/libinih/package.py new file mode 100644 index 0000000000..19e2ea208d --- /dev/null +++ b/var/spack/repos/builtin/packages/libinih/package.py @@ -0,0 +1,18 @@ +# Copyright 2013-2021 Lawrence Livermore National Security, LLC and other +# Spack Project Developers. See the top-level COPYRIGHT file for details. +# +# SPDX-License-Identifier: (Apache-2.0 OR MIT) + +from spack import * + + +class Libinih(MesonPackage): + """ + inih (INI Not Invented Here) is a simple .INI file parser written in C. + """ + + homepage = "https://github.com/benhoyt/inih" + url = "https://github.com/benhoyt/inih/archive/refs/tags/r53.tar.gz" + git = "https://github.com/benhoyt/inih.git" + + version('master', branch="master") diff --git a/var/spack/repos/builtin/packages/xfsprogs/package.py b/var/spack/repos/builtin/packages/xfsprogs/package.py index 21478ea978..7657e01bf0 100644 --- a/var/spack/repos/builtin/packages/xfsprogs/package.py +++ b/var/spack/repos/builtin/packages/xfsprogs/package.py @@ -19,6 +19,7 @@ class Xfsprogs(AutotoolsPackage): version('4.20.0', sha256='beafdfd080352a8c9d543491e0874d0e8809cb643a3b9d352d5feed38d77022a') + depends_on('libinih') depends_on('gettext') depends_on('uuid') depends_on('util-linux') -- cgit v1.2.3-60-g2f50