Package: libpgm-dev
Version: 5.2.122~dfsg-2
Severity: serious

Dear Maintainer,

Upstream's pkg-config file adds a -I flag to a non-
existing /usr/lib/x86_64-linux-gnu/pgm-5.2/include directory:

$ pkg-config --cflags openpgm-5.2
-I/usr/include/pgm-5.2 -I/usr/lib/x86_64-linux-gnu/pgm-5.2/include

This unfortunately breaks programs that use strict compiler flags.

The patch is very simple and attached, submitted upstream as:

https://github.com/steve-o/openpgm/pull/57

I'm happy to do an NMU ASAP if you'd like help, as it is breaking one
of my applications :-)

-- 
Kind regards,
Luca Boccassi
Author: Luca Boccassi <bl...@debian.org>
Description: pkg-config: do not add -I to non-existing directory
 foo/lib/pgm-5.2/include does not exist, so applications using strict
 compiler flags will fail to build due to this -I flag
Origin: https://github.com/steve-o/openpgm/pull/57
--- a/openpgm/pgm/openpgm-5.2.pc.in
+++ b/openpgm/pgm/openpgm-5.2.pc.in
@@ -9,4 +9,4 @@ Version: @PACKAGE_VERSION@
 # packagers may wish to move @LIBS@ to Libs.private for platforms with
 # versions of pkg-config that support static linking.
 Libs: -L${libdir} -lpgm @LIBS@
-Cflags: -I${includedir}/pgm-@VERSION_MAJOR@.@VERSION_MINOR@ -I${libdir}/pgm-@VERSION_MAJOR@.@VERSION_MINOR@/include
+Cflags: -I${includedir}/pgm-@VERSION_MAJOR@.@VERSION_MINOR@

Attachment: signature.asc
Description: This is a digitally signed message part

Reply via email to