Theo Buehler <[email protected]> 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:

% /usr/bin/pkg-config --list-all > /dev/null
Problem reading file /usr/local/lib/pkgconfig/dcmtk.pc
% echo $?
1
% pkg-config --exists dcmtk
% echo $?
1
% ls -l /usr/local/lib/pkgconfig/dcmtk.pc
-rw-r--r--  1 root  bin  666 Oct  5 04:36 /usr/local/lib/pkgconfig/dcmtk.pc

Thanks
Greg

Reply via email to