[MacPorts] #67580: libmagic @5.44_0: pkgconfig file is missing CFlags: directive (was: libmagic @5.44_0: pkfconfig file is missing CFlags: directive)
MacPorts
noreply at macports.org
Tue Jun 6 09:11:57 UTC 2023
#67580: libmagic @5.44_0: pkgconfig file is missing CFlags: directive
-----------------------+------------------------
Reporter: rafork | Owner: ryandesign
Type: defect | Status: accepted
Priority: Normal | Milestone:
Component: ports | Version:
Resolution: | Keywords: haspatch
Port: libmagic |
-----------------------+------------------------
Changes (by ryandesign):
* owner: (none) => ryandesign
* status: new => accepted
Old description:
> Using {{{pkg-config --cflags libmagic}}} produces an empty line when it
> should output {{{-I/opt/local/inlude}}}. {{{pkg-config --libs libmagic}}}
> correctly outputs {{{-L/opt/local/lib -lmagic}}}. This lead to my
> libmagic client not compiling. The .pc file is missing a line that should
> say:
>
> Cflags: -I${includedir}
>
> Diff is attached.
New description:
Using {{{pkg-config --cflags libmagic}}} produces an empty line when it
should output {{{-I/opt/local/inlude}}}. {{{pkg-config --libs libmagic}}}
correctly outputs {{{-L/opt/local/lib -lmagic}}}. This lead to my libmagic
client not compiling. The .pc file is missing a line that should say:
{{{
Cflags: -I${includedir}
}}}
Diff is attached.
--
Comment:
Thanks. Looks like the developers have made a similar change already for
the next version:
https://github.com/file/file/commit/8bc37a45bad67bc4604471c64f0c9f3372b55d2c
The port's revision will have to be increased.
--
Ticket URL: <https://trac.macports.org/ticket/67580#comment:2>
MacPorts <https://www.macports.org/>
Ports system for macOS
More information about the macports-tickets
mailing list