Opened 17 months ago

Last modified 17 months ago

#67580 closed defect

libmagic @5.44_0: pkgconfig file is missing CFlags: directive — at Version 2

Reported by: rafork (raf) Owned by: ryandesign (Ryan Carsten Schmidt)
Priority: Normal Milestone:
Component: ports Version:
Keywords: haspatch Cc:
Port: libmagic

Description (last modified by ryandesign (Ryan Carsten Schmidt))

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.

Change History (3)

Changed 17 months ago by rafork (raf)

Attachment: libmagic.pc.patch added

patch for pkgconfig file

comment:1 Changed 17 months ago by rafork (raf)

Keywords: haspatch added

comment:2 Changed 17 months ago by ryandesign (Ryan Carsten Schmidt)

Description: modified (diff)
Owner: set to ryandesign
Status: newaccepted
Summary: libmagic @5.44_0: pkfconfig file is missing CFlags: directivelibmagic @5.44_0: pkgconfig file is missing CFlags: directive

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.

Note: See TracTickets for help on using tickets.