On Thu, 2021-12-16 at 13:42 -0800, Dan Williams wrote:
> On Fri, Dec 10, 2021 at 2:34 PM Vishal Verma <[email protected]> wrote:
> > 
> > From: QI Fuli <[email protected]>
> > 
> > Add parse-config util to help ndctl commands parse ndctl global
> > configuration files. This provides a parse_configs_prefix() helper which
> > uses the iniparser APIs to read all applicable config files, and either
> > return a 'value' for a requested 'key', or perform a callback if
> > requested. The operation is defined by a 'struct config' which
> > encapsulates the key to search for, the location to store the value, and
> > any callbacks to be executed.
> > 
> > Signed-off-by: QI Fuli <[email protected]>
> > Signed-off-by: Vishal Verma <[email protected]>
> [..]
> > diff --git a/ndctl/Makefile.am b/ndctl/Makefile.am
> > index a63b1e0..afdd03c 100644
> > --- a/ndctl/Makefile.am
> > +++ b/ndctl/Makefile.am
> > @@ -56,7 +56,8 @@ ndctl_LDADD =\
> >         ../libutil.a \
> >         $(UUID_LIBS) \
> >         $(KMOD_LIBS) \
> > -       $(JSON_LIBS)
> > +       $(JSON_LIBS) \
> > +       -liniparser
> 
> Darn, no pkgconfig for iniparser. Oh well.

Actually upstream has a pkgconfig file, but Fedora didn't package it
for some reason. I've pinged the maintainer to see if it can be added.

https://github.com/ndevilla/iniparser/blob/master/iniparser.pc

Reply via email to