-
Notifications
You must be signed in to change notification settings - Fork 6.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[vcpkg_fixup_pkgconfig] Check for more problems, add unit test #23898
Conversation
cc @Neumann-A |
FTR It is only a draft now, to get an idea of the size of the problem. What already popped up is |
Updated 2022-07-03:
Errror classes:
|
Seems like this could be fixed with |
Also a check for targets might be appropiate: |
Basically I need a |
BTW, I do have the cmake code to expand the Libs from the target properties. An early version is here in port curl, and an extended version is in GDAL. (Covering common generator expressions, too.) Maybe I should wrap that as a CMake package in a vcpkg port, and patch it in where needed. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You have modified or added at least one vcpkg.json where you should check the license
field.
If you feel able to do so, please consider adding a "license" field to the following files:
scripts/test_ports/unit-test-cmake/vcpkg.json
Valid values for the license field can be found in the documentation
unit-test-cmake: Must no longer expect errors. qtwebengine: Strange!
But this log file is not in the failure logs archive. There is also no trace of the config step. I guess it is due to
not considered during CI log collection. |
Ping @LilyWangLL |
Nice, been waiting for this! Would you consider fixing up
Or maybe they should be just stripped out completely in a shared build's pc files? Thanks! |
This might be a nice-to-have option for vcpkg, under the assumption that vcpkg should never use static libs from outside. |
Ping for merge or new feedback. |
The port is ready to merge: Only known baseline regression, no new regressions from this PR's changes. |
Depends on: #28352 |
Thank you for:
<3 |
What does your PR fix?
Adds a unit test for
vcpkg_fixup_pkgconfig
.Improves
vcpkg_fixup_pkgconfig
:Handle line continuations.
Replaces
';'
with' '
.Resolves CMake linking keywords
optimized
,debug
,general
(fromselect_library_configurations
)Check for invalid
Libs
content:<namespace>::<target>
(from<Pkg>_LIBRARIES
)...-NOTFOUND
(fromfind_library
)Failed checks are reported as warning, not error, to avoid problems with old port versions in manifest mode.
Which triplets are supported/not supported? Have you updated the CI baseline?
all, no
Does your PR follow the maintainer guide?
yes
If you have added/updated a port: Have you run
./vcpkg x-add-version --all
and committed the result?no