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 <vsoch@users.noreply.github.com>

Co-authored-by: vsoch <vsoch@users.noreply.github.com>
This commit is contained in:
Vanessasaurus 2021-06-12 00:31:29 -06:00 committed by GitHub
parent 8a0a60c575
commit ae91d49f21
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 19 additions and 0 deletions

View file

@ -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")

View file

@ -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')