Skip to content

Add CLI implementation to PkgConfigCLI - #16042

Closed
tristan957 wants to merge 1 commit into
mesonbuild:masterfrom
tristan957:pkg-config
Closed

Add CLI implementation to PkgConfigCLI#16042
tristan957 wants to merge 1 commit into
mesonbuild:masterfrom
tristan957:pkg-config

Conversation

@tristan957

Copy link
Copy Markdown
Member

By knowing the implementation of pkg-config, we can make better decisions when special-casing code. As you can see in the following test change, that version comparison was really only meant for the FreeDesktop implementation.

@thesamesam

Copy link
Copy Markdown
Member

Are you sure that the change there is intentional, and not another regression? Why is this different to pkgconf/pkgconf#575?

I appreciate that the version comparison was wrong here but I'd still like to know if this was a change pkgconf actually wants to make or not.

Please also tag #16019.

@tristan957
tristan957 marked this pull request as draft July 28, 2026 15:35
@tristan957

Copy link
Copy Markdown
Member Author

I would like to resolve pkgconf/pkgconf#575 (comment) before continuing to move forward with this PR.

@bonzini

bonzini commented Jul 29, 2026

Copy link
Copy Markdown
Contributor

The pkgconf maintainer said that this is considered a regression in 3.0.4.

@moi15moi

Copy link
Copy Markdown
Contributor

I would like to resolve pkgconf/pkgconf#575 (comment) before continuing to move forward with this PR.

Note that this was fixed with pkgconf 3.0.5.

@tristan957
tristan957 marked this pull request as ready for review August 24, 2026 17:29
@tristan957

Copy link
Copy Markdown
Member Author

I pushed what I believe to be a working commit now that 3.0.5 has the fix we need. I think I have correctly fixed the version check to test what correct value should be.

By knowing the implementation of pkg-config, we can make better
decisions when special-casing code. As you can see in the following test
change, that version comparison was really only meant for the
FreeDesktop implementation.

Signed-off-by: Tristan Partin <tristan@partin.io>
Comment thread unittests/linuxliketests.py
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants