Created attachment 98179 [details] [review] Patch to fix this If a package has (for example) "Libs: -L/usr/lib -L/usr/lib" then only the first of these is stripped. This is because the iterator is advanced twice when we are removing the unnecessary options. The zlib pc file can be used to quickly check this. Note that this does not seem to be an issue for the include directories (which has similar code).
*** Bug 79613 has been marked as a duplicate of this bug. ***
Duplicate of this issue, http://bugs.freedesktop.org/show_bug.cgi?id=79613 http://bugs.gentoo.org/show_bug.cgi?id=512336 And not sure if this got fixed properly, https://bugs.freedesktop.org/show_bug.cgi?id=58363 Since users are still hitting the issue with, https://bugs.gentoo.org/show_bug.cgi?id=445796#c6 (As in, #58363 got reopened at downstream #445796) Trying to make sense of this all...
I was hitting this bug today, and realized it has already a patch up since april. The patch is trivially correct, so please apply.
patch works for me
thanks. please get this committed to git :) added the patch to gentoo's pkg-config package distribution package version 0.28-r2 for larger audience to test... i don't expect problems, but i'll poke here if there is an regression of somekind
Yikes. Thanks for catching this and sorry for the super slow reply. Applied in ce1a241.
Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.