[Bug 1460490] [NEW] pkg-config not correctly parsing some cflags and libs formats
Valmiki
1460490 at bugs.launchpad.net
Sun May 31 23:18:31 UTC 2015
Public bug reported:
Running 'pkg-config --cflags --libs' on the following (and attached)
foo.pc, outputs:
'-I/usr/include/ -I/usr/include/foo -I/usr/include/foo/ -L/usr/lib/
-L/usr/lib/foo -L/usr/lib/foo/ -lfoo'
The contents of foo.pc:
# Begin file
prefix=/usr
exec_prefix=${prefix}
includedir_1=${prefix}/include
includedir_2=${prefix}/include/
includedir_3=${prefix}/include/foo
includedir_4=${prefix}/include/foo/
libdir_1=${exec_prefix}/lib
libdir_2=${exec_prefix}/lib/
libdir_3=${exec_prefix}/lib/foo
libdir_4=${exec_prefix}/lib/foo/
Name: foo
Description: The foo library
Version: 1.0.0
Cflags: -I${includedir_2} -I${includedir_1} -I${includedir_3} -I${includedir_4}
Libs: -L${libdir_2} -L${libdir_1} -L${libdir_3} -L${libdir_4} -lfoo
#End file
Notice that 'includedir_1' and 'libdir_1' are not in the output. A
trailing slash had to be added to to their values to be parsed
correctly. This affects other libraries that use such variable use in
their pc config file, such as x11.pc and opencv.pc.
** Affects: pkg-config (Ubuntu)
Importance: Undecided
Status: New
** Attachment added: "foo.pc"
https://bugs.launchpad.net/bugs/1460490/+attachment/4407762/+files/foo.pc
--
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to pkg-config in Ubuntu.
https://bugs.launchpad.net/bugs/1460490
Title:
pkg-config not correctly parsing some cflags and libs formats
Status in pkg-config package in Ubuntu:
New
Bug description:
Running 'pkg-config --cflags --libs' on the following (and attached)
foo.pc, outputs:
'-I/usr/include/ -I/usr/include/foo -I/usr/include/foo/ -L/usr/lib/
-L/usr/lib/foo -L/usr/lib/foo/ -lfoo'
The contents of foo.pc:
# Begin file
prefix=/usr
exec_prefix=${prefix}
includedir_1=${prefix}/include
includedir_2=${prefix}/include/
includedir_3=${prefix}/include/foo
includedir_4=${prefix}/include/foo/
libdir_1=${exec_prefix}/lib
libdir_2=${exec_prefix}/lib/
libdir_3=${exec_prefix}/lib/foo
libdir_4=${exec_prefix}/lib/foo/
Name: foo
Description: The foo library
Version: 1.0.0
Cflags: -I${includedir_2} -I${includedir_1} -I${includedir_3} -I${includedir_4}
Libs: -L${libdir_2} -L${libdir_1} -L${libdir_3} -L${libdir_4} -lfoo
#End file
Notice that 'includedir_1' and 'libdir_1' are not in the output. A
trailing slash had to be added to to their values to be parsed
correctly. This affects other libraries that use such variable use in
their pc config file, such as x11.pc and opencv.pc.
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/pkg-config/+bug/1460490/+subscriptions
More information about the foundations-bugs
mailing list