[postbuildlint] Add checks to ensure that the pkgconfig files are at the right location#171
Conversation
|
Hmm short summary what is expected and what would error? |
|
Here is the error log of what the output when I try to install the broken yaml-cpp port: |
bfa575b to
698ee21
Compare
The question was more like: Which paths are allowed and which paths would error for Also |
for cmake: no
Yeah qt5 installs to
Maybe require them at |
Maybe only error when there is a |
The point is not all cmake files need to be fixed. The reason cmake files needs fixing is due to naked
breaks single config builds. |
|
Ok will remove the cmake check. Maybe add a policy that allows "unusual" *.pc file locations? Because afaik currently it is an error with a probability of 90% . |
698ee21 to
ad24655
Compare
|
Are there any current ports that install .pc files in share? We support installing pkgconfig files in share, in vcpkg_fixup_pkgconfig, so this would be a change. |
#9966 had one. In general pc files in share could be installed by any header only library which just needs the include path. |
|
Then probably we want to allow .pc files in share/pkg-config as well. |
Ok, we allow files in |
|
@autoantwort or |
ad24655 to
72b09e5
Compare
|
Done. Now also searches for *.pc files instead of |
|
We can now also remove the Policy |
fc357e1 to
4e38cb0
Compare
…the right location
4e38cb0 to
d2fece5
Compare
BillyONeal
left a comment
There was a problem hiding this comment.
Requesting changes only to the code comment, the lambda suggestion is an optional nitpick.
Co-authored-by: Billy O'Neal <bion@microsoft.com>
|
Thanks for the new post-build check. Going to be "fun" running this on the whole tree.... :D |
|
I think in the future before merging things like this we need to run against the full tree because blocking shipping a new tool for weeks while we deal with the fallout isn't really OK :/ |
|
Yeah that's true. |
These checks would have stopped the regression introduced by microsoft/vcpkg#19272 reported in microsoft/vcpkg#19701 (and fixed in microsoft/vcpkg#19703)