On Sat, Oct 07, 2023 at 07:27:51PM +0200, Theo Buehler wrote:
> On Sat, Oct 07, 2023 at 10:04:35AM -0700, Greg Steuck wrote:
> > Theo Buehler <t...@theobuehler.org> writes:
> > 
> > >> Alright. I've added that and will let you know if it happens again.
> > >
> > > This gives slightly more info. No change in the rest of the log except
> > > time stamps.
> > 
> > I'm pretty sure this is both new and actionable:
> > 
> > > Running: /usr/bin/pkg-config --version
> > > Running: /usr/bin/pkg-config --variable pc_path pkg-config
> > > Running: /usr/bin/pkg-config --version
> > > Running: /usr/bin/pkg-config --list-all
> > > Failed to query pkg-config, Cabal will continue without solving for 
> > > pkg-config
> > > constraints: dieVerbatim: user error (CallStack (from HasCallStack):
> > > withMetadata, called at src/Distribution/Simple/Utils.hs:368:14 in
> > > Cabal-3.10.1.0-KNis1qL4Wul5JivvGU00XF:Distribution.Simple.Utils
> > > Error: cabal: '/usr/bin/pkg-config' exited with an error:
> > > Problem reading file /usr/local/lib/pkgconfig/dcmtk.pc
> > 
> > I don't normally have /usr/local/lib/pkgconfig/dcmtk.pc, installing
> > graphics/dcmtk allows me to reproduce the bug. In particular, something
> > is fishy about this file or pkg-config:
> 
> The file has a single space leading whitespace. pkgconf can deal with
> it, base pkg-config can't.

Apparently other pkgconf implementations also have issues. Upstream
removed the offending whitespace.

https://github.com/DCMTK/dcmtk/pull/82

Reply via email to