Libraries are deduped (differs from pkg-config) #78
Loading…
Reference in New Issue
There is no content yet.
Delete Branch "%!s(<nil>)"
Deleting a branch is permanent. Although the deleted branch may exist for a short time before cleaning up, in most cases it CANNOT be undone. Continue?
Given 2 pc files:
pkgconf and pkg-config produce different output.
I discovered this while debugging a build failure for the efibootmgr software. In case you are curious to see some of the weird pkgconfig files that people create:
e9626bda6f
The deduplication is intentional in non-static mode. pkg-config also has naive deduplication code, but ours is better.
I assume that efibootmgr is a static build?
Actually, the fix you made seems to break an invalid pkg-config file to be honest.
@bapt what do you think?
No, it is not.
I don't know what you mean by that.
@floppym
can you drop by
#pkgconf
on freenode so we can help determine whether this is a pkgconf bug or a bug in the file to begin with? we need more information, as pkgconf does make optimizations that pkg-config doesn't, and generally, those optimizations depend on .pc files being correct. I think the change you made to efivar, for example, fixes the problem and it was just dumb luck that it ever worked on freedesktop's implementation to begin with.we would like to fix this before releasing 0.9.12 if it really winds up being a problem on our side, but bug-for-bug compatibility, in general, isn't a design goal of pkgconf.
But we should more explicitly document that pkgconf is more pedantic. So I will commit that documentation change soon.