-
Notifications
You must be signed in to change notification settings - Fork 6.4k
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-cmake-config] Merge INTERFACE_LINK_LIBRARIES configurations #22546
Conversation
3d8c4d2
to
6f73fe3
Compare
Direct references to binaries must match the active build type when used.
6f73fe3
to
ea150d5
Compare
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.
This is a new experimental fast check for PR issues. Please let us know if this bot is helpful!
After committing all other changes, the version database must be updated
git add -u && git commit
git checkout bba8794b82a0f44b8709f294850a2c8e96b61415 -- versions
./vcpkg x-add-version --all
Diff
diff --git a/versions/baseline.json b/versions/baseline.json
index 6b49bfc..a5c17f6 100644
--- a/versions/baseline.json
+++ b/versions/baseline.json
@@ -7157,7 +7157,7 @@
"port-version": 0
},
"vcpkg-cmake-config": {
- "baseline": "2021-12-28",
+ "baseline": "2022-01-15",
"port-version": 0
},
"vcpkg-gfortran": {
diff --git a/versions/v-/vcpkg-cmake-config.json b/versions/v-/vcpkg-cmake-config.json
index c0cfef2..0f2b443 100644
--- a/versions/v-/vcpkg-cmake-config.json
+++ b/versions/v-/vcpkg-cmake-config.json
@@ -1,5 +1,10 @@
{
"versions": [
+ {
+ "git-tree": "ad6139358631fba00d80023ce72387703c2348ef",
+ "version-date": "2022-01-15",
+ "port-version": 0
+ },
{
"git-tree": "e33152002c946b93a0262931ba8bf54a2e6ab9ad",
"version-date": "2021-12-28",
As soon as these changes are approved. |
The aws-c-common error is an issue with repeated calls of this function: The second call processes all cmake files again, but doesn't have the debug files from the first call. |
Sure |
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.
This is a new experimental fast check for PR issues. Please let us know if this bot is helpful!
After committing all other changes, the version database must be updated
git add -u && git commit
git checkout bba8794b82a0f44b8709f294850a2c8e96b61415 -- versions
./vcpkg x-add-version --all
Diff
diff --git a/versions/baseline.json b/versions/baseline.json
index 6b49bfc..a5c17f6 100644
--- a/versions/baseline.json
+++ b/versions/baseline.json
@@ -7157,7 +7157,7 @@
"port-version": 0
},
"vcpkg-cmake-config": {
- "baseline": "2021-12-28",
+ "baseline": "2022-01-15",
"port-version": 0
},
"vcpkg-gfortran": {
diff --git a/versions/v-/vcpkg-cmake-config.json b/versions/v-/vcpkg-cmake-config.json
index c0cfef2..995181e 100644
--- a/versions/v-/vcpkg-cmake-config.json
+++ b/versions/v-/vcpkg-cmake-config.json
@@ -1,5 +1,10 @@
{
"versions": [
+ {
+ "git-tree": "003440e4640da05ce8d7bd49f4028a5c69a39212",
+ "version-date": "2022-01-15",
+ "port-version": 0
+ },
{
"git-tree": "e33152002c946b93a0262931ba8bf54a2e6ab9ad",
"version-date": "2021-12-28",
#21763 changes a different port. So merging that PR here isn't appropriate if it doesn't qualify for #21415 (comment). |
The xzing-cpp error on linux seems to be a missing Apart from this, CI looks good. The ultimate test would be seing most of the 300 warnings added by #21415 being resolved by this PR (after solving the merge conflict). After all, these are serious issues for the debug builds. |
I had to learn that this was indeed caused by this PR. This is the downside of strict text matching, and there might have been additional hidden cases. But now it should be fixed in a robust way. |
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 a "license" field is missing.
If you feel able to do so, please consider adding a "license" field to the following files:
ports/tmx/vcpkg.json
ports/vcpkg-cmake-config/vcpkg.json
scripts/test_ports/unit-test-cmake/vcpkg.json
Valid values for the license field are listed at https://spdx.org/licenses/
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.
Apparently I didn't click "submit review".
Co-authored-by: nicole mazzuca <[email protected]>
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.
This is a new experimental fast check for PR issues. Please let us know if this bot is helpful!
After committing all other changes, the version database must be updated
git add -u && git commit
git checkout bba8794b82a0f44b8709f294850a2c8e96b61415 -- versions
./vcpkg x-add-version --all
Diff
diff --git a/versions/v-/vcpkg-cmake-config.json b/versions/v-/vcpkg-cmake-config.json
index 8f1a2f9..4558dde 100644
--- a/versions/v-/vcpkg-cmake-config.json
+++ b/versions/v-/vcpkg-cmake-config.json
@@ -1,7 +1,7 @@
{
"versions": [
{
- "git-tree": "342ab2e2d183e3e962c7a52802085a47f0992d81",
+ "git-tree": "a9ca96f97d8ec147035515a8317d2ce0e06b85c7",
"version-date": "2022-01-15",
"port-version": 0
},
You have modified or added at least one vcpkg.json where a "license" field is missing.
If you feel able to do so, please consider adding a "license" field to the following files:
ports/tmx/vcpkg.json
ports/vcpkg-cmake-config/vcpkg.json
scripts/test_ports/unit-test-cmake/vcpkg.json
Valid values for the license field are listed at https://spdx.org/licenses/
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 a "license" field is missing.
If you feel able to do so, please consider adding a "license" field to the following files:
ports/tmx/vcpkg.json
ports/vcpkg-cmake-config/vcpkg.json
scripts/test_ports/unit-test-cmake/vcpkg.json
Valid values for the license field are listed at https://spdx.org/licenses/
Something @ras0219-msft pointed out: It would probably be good to stop parsing CMake with regex, which we could do by instead taking the |
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 a "license" field is missing.
If you feel able to do so, please consider adding a "license" field to the following files:
ports/tmx/vcpkg.json
ports/vcpkg-cmake-config/vcpkg.json
scripts/test_ports/unit-test-cmake/vcpkg.json
Valid values for the license field are listed at https://spdx.org/licenses/
We talked about this at the meeting, and we like the general PR; however, we were wondering if it would be possible to instead wrap the entire lists in
this would result in uglier files, but would also mean we don't have to parse CMake with regex. |
How do you suggest to find "the entire thing", inside a cmake command which may also set other properties? I suggest you improve incrementally if desired. You only need to edit the installed script, and build aws-c-common (the port which needs the already-fixed handling) and libwebsockets (known bad config). |
Ping @strega-nil-ms for reply. |
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 a "license" field is missing.
If you feel able to do so, please consider adding a "license" field to the following files:
ports/tmx/vcpkg.json
ports/vcpkg-cmake-config/vcpkg.json
scripts/test_ports/unit-test-cmake/vcpkg.json
Valid values for the license field are listed at https://spdx.org/licenses/
Three more weeks with no feedback? |
Sorry for late, I will ping Nicole again. |
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.
alright; I'm okay with this, but I want @ras0219-msft to say okay.
@dg0yt it is very, very difficult to deal with notifications from this repo; I recommend poking me on Discord or emailing me or something if you want me to take a look immediately
Contributing is very difficult, too, sometimes. And I don't get notifications when you edit the comment, even with the explicit mention. |
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.
I have small nits like "maybe we could combine the regex searches into 2 instead of 4" and "I'm not 100% confident that this is the right regex" but I agree that the right thing to do at this point is to merge this and iterate on the results.
Thanks for the PR!
What does your PR fix?
Fixes direct references in exported cmake config from
INTERFACE_LINK_LIBRARIES
to binary objects in the release tree, affecting debug usage.Example:
INTERFACE_LINK_LIBRARIES
of libwebsockets:x64-linux.Before this change:
After this change:
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: probably to be combined with other PRs.