Skip to content

[mailio] correct hint#23799

Merged
strega-nil-ms merged 10 commits intomicrosoft:masterfrom
david-antiteum:master
Apr 5, 2022
Merged

[mailio] correct hint#23799
strega-nil-ms merged 10 commits intomicrosoft:masterfrom
david-antiteum:master

Conversation

@david-antiteum
Copy link
Copy Markdown
Contributor

Copy link
Copy Markdown

@github-actions github-actions bot left a 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 portfile where deprecated functions are used.

Details

If you feel able to do so, please consider migrating them to the new functions:
vcpkg_install_cmake -> vcpkg_cmake_install (from port vcpkg-cmake)
vcpkg_build_cmake -> vcpkg_cmake_build (from port vcpkg-cmake)
vcpkg_configure_cmake -> vcpkg_cmake_configure (Please remove the option PREFER_NINJA) (from port vcpkg-cmake)
vcpkg_fixup_cmake_targets -> vcpkg_cmake_config_fixup (from port vcpkg-cmake-config)

In the ports that use the new function, you have to add the corresponding dependencies:

{
  "name": "vcpkg-cmake",
  "host": true
},
{
  "name": "vcpkg-cmake-config",
  "host": true
}

The following files are affected:

  • ports/mailio/portfile.cmake

@dg0yt
Copy link
Copy Markdown
Contributor

dg0yt commented Mar 27, 2022

Could the mailio cmake config be found at all, before this change?

@LilyWangLL LilyWangLL added the category:port-bug The issue is with a library, which is something the port should already support label Mar 28, 2022
@LilyWangLL
Copy link
Copy Markdown
Contributor

LilyWangLL commented Mar 28, 2022

Thanks for your PR, string(COMPARE EQUAL "${VCPKG_LIBRARY_LINKAGE}" "dynamic" BUILD_SHARED) should be removed, I can found where BUILD_SHARED is used.
And PREFER_NINJA should be removed too, vcpkg_cmake_configure doesn't need it.

)
vcpkg_cmake_install()

vcpkg_fixup_cmake_targets(
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This legacy function has been replaced by vcpkg_cmake_config_fixup (from port vcpkg-cmake-config).

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It also need add dependency vcpkg-cmake-config in vcpkg.json.

@david-antiteum
Copy link
Copy Markdown
Contributor Author

@LilyWangLL I just saw this MR #23772 that contain some of these fixes. Maybe you can accept first that MR and then update this one if something is missing.

@LilyWangLL
Copy link
Copy Markdown
Contributor

I think PR #23772 can closed and its fix can merged to this PR, it just add vcpkg_cmake_config_fixup. So could you address the review suggestions? Thanks.

@david-antiteum
Copy link
Copy Markdown
Contributor Author

Done.

Copy link
Copy Markdown

@github-actions github-actions bot left a 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 9ff4659a075d5f4f30aaca9f7c4e7f059ecc1d6d -- versions
./vcpkg x-add-version --all
Diff
diff --git a/versions/m-/mailio.json b/versions/m-/mailio.json
index dab3280..1fdf4c1 100644
--- a/versions/m-/mailio.json
+++ b/versions/m-/mailio.json
@@ -1,7 +1,7 @@
 {
   "versions": [
     {
-      "git-tree": "61b298737570de13efc96c3427220b8146140526",
+      "git-tree": "72c0f040b1fbad74b2e6ff069d1dcf996233ef16",
       "version": "0.21.0",
       "port-version": 1
     },

@LilyWangLL
Copy link
Copy Markdown
Contributor

Hi @david-antiteum, can you please resolve the conflicts against master?

Copy link
Copy Markdown

@github-actions github-actions bot left a 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!

PRs must add only one version and must not modify any published versions

When making any changes to a library, the version or port-version in vcpkg.json or CONTROL must be modified.

Error: Local changes detected for mailio but no changes to version or port version.
-- Version: 0.21.0#1
-- Old SHA: 80186942edc09cad3c911ebbc6dd77d30af68502
-- New SHA: f0fde0f6599aacd2b890c94326f504bf2af8f642
-- Did you remember to update the version or port version?
-- Pass `--overwrite-version` to bypass this check.
***No files were updated.***
After committing all other changes, the version database must be updated
git add -u && git commit
git checkout 773516ecf6014d89cc69b11bb54605ad4be56694 -- versions
./vcpkg x-add-version --all
Diff
diff --git a/versions/m-/mailio.json b/versions/m-/mailio.json
index 1fdf4c1..571caa9 100644
--- a/versions/m-/mailio.json
+++ b/versions/m-/mailio.json
@@ -1,7 +1,7 @@
 {
   "versions": [
     {
-      "git-tree": "72c0f040b1fbad74b2e6ff069d1dcf996233ef16",
+      "git-tree": "80186942edc09cad3c911ebbc6dd77d30af68502",
       "version": "0.21.0",
       "port-version": 1
     },

Copy link
Copy Markdown

@github-actions github-actions bot left a 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!

PRs must add only one version and must not modify any published versions

When making any changes to a library, the version or port-version in vcpkg.json or CONTROL must be modified.

Error: Local changes detected for mailio but no changes to version or port version.
-- Version: 0.21.0#1
-- Old SHA: 80186942edc09cad3c911ebbc6dd77d30af68502
-- New SHA: f0fde0f6599aacd2b890c94326f504bf2af8f642
-- Did you remember to update the version or port version?
-- Pass `--overwrite-version` to bypass this check.
***No files were updated.***
After committing all other changes, the version database must be updated
git add -u && git commit
git checkout 773516ecf6014d89cc69b11bb54605ad4be56694 -- versions
./vcpkg x-add-version --all
Diff
diff --git a/versions/m-/mailio.json b/versions/m-/mailio.json
index e96c42b..571caa9 100644
--- a/versions/m-/mailio.json
+++ b/versions/m-/mailio.json
@@ -1,7 +1,7 @@
 {
   "versions": [
     {
-      "git-tree": "f0fde0f6599aacd2b890c94326f504bf2af8f642",
+      "git-tree": "80186942edc09cad3c911ebbc6dd77d30af68502",
       "version": "0.21.0",
       "port-version": 1
     },

@LilyWangLL
Copy link
Copy Markdown
Contributor

@david-antiteum Please update port-version in vcpkg.json. Your version change was overwritten by #23772.

Copy link
Copy Markdown

@github-actions github-actions bot left a 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 773516ecf6014d89cc69b11bb54605ad4be56694 -- versions
./vcpkg x-add-version --all
Diff
diff --git a/versions/m-/mailio.json b/versions/m-/mailio.json
index fe4eba4..7cf1089 100644
--- a/versions/m-/mailio.json
+++ b/versions/m-/mailio.json
@@ -6,7 +6,7 @@
       "port-version": 2
     },
     {
-      "git-tree": "f0fde0f6599aacd2b890c94326f504bf2af8f642",
+      "git-tree": "80186942edc09cad3c911ebbc6dd77d30af68502",
       "version": "0.21.0",
       "port-version": 1
     },

Copy link
Copy Markdown

@github-actions github-actions bot left a 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 773516ecf6014d89cc69b11bb54605ad4be56694 -- versions
./vcpkg x-add-version --all
Diff
diff --git a/versions/m-/mailio.json b/versions/m-/mailio.json
index 156df34..5051932 100644
--- a/versions/m-/mailio.json
+++ b/versions/m-/mailio.json
@@ -6,7 +6,7 @@
       "port-version": 2
     },
     {
-      "git-tree": "f0fde0f6599aacd2b890c94326f504bf2af8f642",
+      "git-tree": "80186942edc09cad3c911ebbc6dd77d30af68502",
       "version": "0.21.0",
       "port-version": 1
     },

@LilyWangLL LilyWangLL added the info:needs-maintainer-attention Lets the current 'on rotation' vcpkg maintainer know they need to look at this. label Apr 1, 2022
@strega-nil-ms
Copy link
Copy Markdown
Contributor

Thanks!

@strega-nil-ms strega-nil-ms merged commit bfda043 into microsoft:master Apr 5, 2022
ssauermann added a commit to Seclous/vcpkg-registry that referenced this pull request Jun 10, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

category:port-bug The issue is with a library, which is something the port should already support info:needs-maintainer-attention Lets the current 'on rotation' vcpkg maintainer know they need to look at this.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[mailio] hint message after installing mailio is incorrect

4 participants