Skip to content
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

[libgcrypt] Fix arm64-osx compilation, add Windows support #20433

Closed
wants to merge 16 commits into from

Conversation

wrobelda
Copy link
Contributor

@wrobelda wrobelda commented Sep 29, 2021

Describe the pull request

  • What does your PR fix?

  • Which triplets are supported/not supported? Have you updated the CI baseline?

    No change, plus:

    • added libgcrypt arm64-osx and Windows
  • Does your PR follow the maintainer guide?

    I am still working on this PR

  • If you have added/updated a port: Have you run ./vcpkg x-add-version --all and committed the result?

    I am still working on this PR

Copy link

@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 9b6135efafdc26c77f35a8dc4e6db18a8174e662 -- versions
./vcpkg x-add-version --all
Diff
diff --git a/versions/baseline.json b/versions/baseline.json
index 854de77..113d31f 100644
--- a/versions/baseline.json
+++ b/versions/baseline.json
@@ -3377,8 +3377,8 @@
       "port-version": 1
     },
     "libgcrypt": {
-      "baseline": "1.8.7",
-      "port-version": 2
+      "baseline": "1.9.3",
+      "port-version": 0
     },
     "libgd": {
       "baseline": "2.3.2",
diff --git a/versions/l-/libgcrypt.json b/versions/l-/libgcrypt.json
index 75cf88e..ec1b61f 100644
--- a/versions/l-/libgcrypt.json
+++ b/versions/l-/libgcrypt.json
@@ -1,5 +1,10 @@
 {
   "versions": [
+    {
+      "git-tree": "78b0c3c53165c3a9cb9337c3959167a28770480c",
+      "version-string": "1.9.3",
+      "port-version": 0
+    },
     {
       "git-tree": "43a3a46962e0195eefd661d621f1a69c267d067e",
       "version-string": "1.8.7",

Copy link

@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 9b6135efafdc26c77f35a8dc4e6db18a8174e662 -- versions
./vcpkg x-add-version --all
Diff
diff --git a/versions/l-/libgcrypt.json b/versions/l-/libgcrypt.json
index 2b1e37c..06e8a93 100644
--- a/versions/l-/libgcrypt.json
+++ b/versions/l-/libgcrypt.json
@@ -5,11 +5,6 @@
       "version": "1.9.4",
       "port-version": 0
     },
-    {
-      "git-tree": "667d5a01ac92b62b72940ddeaa9d05014c40125e",
-      "version": "1.9.3",
-      "port-version": 0
-    },
     {
       "git-tree": "43a3a46962e0195eefd661d621f1a69c267d067e",
       "version-string": "1.8.7",

Copy link

@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 9b6135efafdc26c77f35a8dc4e6db18a8174e662 -- versions
./vcpkg x-add-version --all
Diff
diff --git a/versions/l-/libgcrypt.json b/versions/l-/libgcrypt.json
index 503112d..acf1031 100644
--- a/versions/l-/libgcrypt.json
+++ b/versions/l-/libgcrypt.json
@@ -5,11 +5,6 @@
       "version": "1.9.4",
       "port-version": 0
     },
-    {
-      "git-tree": "667d5a01ac92b62b72940ddeaa9d05014c40125e",
-      "version": "1.9.3",
-      "port-version": 0
-    },
     {
       "git-tree": "43a3a46962e0195eefd661d621f1a69c267d067e",
       "version-string": "1.8.7",

Copy link

@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 9b6135efafdc26c77f35a8dc4e6db18a8174e662 -- versions
./vcpkg x-add-version --all
Diff
diff --git a/versions/l-/libgcrypt.json b/versions/l-/libgcrypt.json
index 94dd70d..348dbed 100644
--- a/versions/l-/libgcrypt.json
+++ b/versions/l-/libgcrypt.json
@@ -5,11 +5,6 @@
       "version": "1.9.4",
       "port-version": 0
     },
-    {
-      "git-tree": "667d5a01ac92b62b72940ddeaa9d05014c40125e",
-      "version": "1.9.3",
-      "port-version": 0
-    },
     {
       "git-tree": "43a3a46962e0195eefd661d621f1a69c267d067e",
       "version-string": "1.8.7",

Copy link

@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 9b6135efafdc26c77f35a8dc4e6db18a8174e662 -- versions
./vcpkg x-add-version --all
Diff
diff --git a/versions/l-/libgcrypt.json b/versions/l-/libgcrypt.json
index 08cab38..193e08d 100644
--- a/versions/l-/libgcrypt.json
+++ b/versions/l-/libgcrypt.json
@@ -5,11 +5,6 @@
       "version": "1.9.4",
       "port-version": 0
     },
-    {
-      "git-tree": "667d5a01ac92b62b72940ddeaa9d05014c40125e",
-      "version": "1.9.3",
-      "port-version": 0
-    },
     {
       "git-tree": "43a3a46962e0195eefd661d621f1a69c267d067e",
       "version-string": "1.8.7",

Copy link

@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 9b6135efafdc26c77f35a8dc4e6db18a8174e662 -- versions
./vcpkg x-add-version --all
Diff
diff --git a/versions/l-/libgcrypt.json b/versions/l-/libgcrypt.json
index da27137..237b6dd 100644
--- a/versions/l-/libgcrypt.json
+++ b/versions/l-/libgcrypt.json
@@ -5,11 +5,6 @@
       "version": "1.9.4",
       "port-version": 0
     },
-    {
-      "git-tree": "667d5a01ac92b62b72940ddeaa9d05014c40125e",
-      "version": "1.9.3",
-      "port-version": 0
-    },
     {
       "git-tree": "43a3a46962e0195eefd661d621f1a69c267d067e",
       "version-string": "1.8.7",

@JackBoosY JackBoosY added the category:community-triplet A PR or issue related to community triplets not officially validated by the vcpkg team. label Sep 30, 2021
@wrobelda wrobelda changed the title [gnupg and deps] Fix arm64-osx compilation, other fixes [gnupg and deps] Fix arm64-osx compilation, add Windows support Sep 30, 2021
@wrobelda
Copy link
Contributor Author

wrobelda commented Sep 30, 2021

@JackBoosY this is a WIP, I already added Windows support to the port since creating this issue, so this isn't a "community-triplet" exclusively.

@JackBoosY JackBoosY added category:port-feature The issue is with a library, which is requesting new capabilities that didn’t exist and removed category:community-triplet A PR or issue related to community triplets not officially validated by the vcpkg team. labels Sep 30, 2021
Copy link

@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 9b6135efafdc26c77f35a8dc4e6db18a8174e662 -- versions
./vcpkg x-add-version --all
Diff
diff --git a/versions/l-/libgcrypt.json b/versions/l-/libgcrypt.json
index 1e06a78..fdfee70 100644
--- a/versions/l-/libgcrypt.json
+++ b/versions/l-/libgcrypt.json
@@ -5,11 +5,6 @@
       "version": "1.9.4",
       "port-version": 0
     },
-    {
-      "git-tree": "667d5a01ac92b62b72940ddeaa9d05014c40125e",
-      "version": "1.9.3",
-      "port-version": 0
-    },
     {
       "git-tree": "43a3a46962e0195eefd661d621f1a69c267d067e",
       "version-string": "1.8.7",

Copy link

@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 8ad33ead9075cd8d6d357e0b870ba8d501efe35c -- versions
./vcpkg x-add-version --all
Diff
diff --git a/versions/l-/libgcrypt.json b/versions/l-/libgcrypt.json
index 1e06a78..fdfee70 100644
--- a/versions/l-/libgcrypt.json
+++ b/versions/l-/libgcrypt.json
@@ -5,11 +5,6 @@
       "version": "1.9.4",
       "port-version": 0
     },
-    {
-      "git-tree": "667d5a01ac92b62b72940ddeaa9d05014c40125e",
-      "version": "1.9.3",
-      "port-version": 0
-    },
     {
       "git-tree": "43a3a46962e0195eefd661d621f1a69c267d067e",
       "version-string": "1.8.7",

Copy link

@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 8ad33ead9075cd8d6d357e0b870ba8d501efe35c -- versions
./vcpkg x-add-version --all
Diff
diff --git a/versions/l-/libgcrypt.json b/versions/l-/libgcrypt.json
index 41d1399..dab3318 100644
--- a/versions/l-/libgcrypt.json
+++ b/versions/l-/libgcrypt.json
@@ -5,11 +5,6 @@
       "version": "1.9.4",
       "port-version": 0
     },
-    {
-      "git-tree": "667d5a01ac92b62b72940ddeaa9d05014c40125e",
-      "version": "1.9.3",
-      "port-version": 0
-    },
     {
       "git-tree": "43a3a46962e0195eefd661d621f1a69c267d067e",
       "version-string": "1.8.7",

@wrobelda wrobelda force-pushed the gnupg_osx_arm64 branch 2 times, most recently from 1af6140 to 80b8ff8 Compare September 30, 2021 12:21
Copy link

@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 8ad33ead9075cd8d6d357e0b870ba8d501efe35c -- versions
./vcpkg x-add-version --all
Diff
diff --git a/versions/l-/libgcrypt.json b/versions/l-/libgcrypt.json
index 9503686..8177b3e 100644
--- a/versions/l-/libgcrypt.json
+++ b/versions/l-/libgcrypt.json
@@ -5,11 +5,6 @@
       "version": "1.9.4",
       "port-version": 0
     },
-    {
-      "git-tree": "667d5a01ac92b62b72940ddeaa9d05014c40125e",
-      "version": "1.9.3",
-      "port-version": 0
-    },
     {
       "git-tree": "43a3a46962e0195eefd661d621f1a69c267d067e",
       "version-string": "1.8.7",

Copy link

@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 8ad33ead9075cd8d6d357e0b870ba8d501efe35c -- versions
./vcpkg x-add-version --all
Diff
diff --git a/versions/l-/libgcrypt.json b/versions/l-/libgcrypt.json
index 50640c3..6f08d7c 100644
--- a/versions/l-/libgcrypt.json
+++ b/versions/l-/libgcrypt.json
@@ -5,11 +5,6 @@
       "version": "1.9.4",
       "port-version": 0
     },
-    {
-      "git-tree": "667d5a01ac92b62b72940ddeaa9d05014c40125e",
-      "version": "1.9.3",
-      "port-version": 0
-    },
     {
       "git-tree": "43a3a46962e0195eefd661d621f1a69c267d067e",
       "version-string": "1.8.7",

Copy link

@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 8ad33ead9075cd8d6d357e0b870ba8d501efe35c -- versions
./vcpkg x-add-version --all
Diff
diff --git a/versions/l-/libgcrypt.json b/versions/l-/libgcrypt.json
index 64b12d2..2af367e 100644
--- a/versions/l-/libgcrypt.json
+++ b/versions/l-/libgcrypt.json
@@ -5,11 +5,6 @@
       "version": "1.9.4",
       "port-version": 0
     },
-    {
-      "git-tree": "667d5a01ac92b62b72940ddeaa9d05014c40125e",
-      "version": "1.9.3",
-      "port-version": 0
-    },
     {
       "git-tree": "43a3a46962e0195eefd661d621f1a69c267d067e",
       "version-string": "1.8.7",

@wrobelda wrobelda marked this pull request as ready for review September 30, 2021 17:43
Copy link

@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 8ad33ead9075cd8d6d357e0b870ba8d501efe35c -- versions
./vcpkg x-add-version --all
Diff
diff --git a/versions/l-/libgcrypt.json b/versions/l-/libgcrypt.json
index bd98870..568c1eb 100644
--- a/versions/l-/libgcrypt.json
+++ b/versions/l-/libgcrypt.json
@@ -5,11 +5,6 @@
       "version": "1.9.4",
       "port-version": 0
     },
-    {
-      "git-tree": "667d5a01ac92b62b72940ddeaa9d05014c40125e",
-      "version": "1.9.3",
-      "port-version": 0
-    },
     {
       "git-tree": "43a3a46962e0195eefd661d621f1a69c267d067e",
       "version-string": "1.8.7",

Copy link

@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 8ad33ead9075cd8d6d357e0b870ba8d501efe35c -- versions
./vcpkg x-add-version --all
Diff
diff --git a/versions/l-/libgcrypt.json b/versions/l-/libgcrypt.json
index bd98870..568c1eb 100644
--- a/versions/l-/libgcrypt.json
+++ b/versions/l-/libgcrypt.json
@@ -5,11 +5,6 @@
       "version": "1.9.4",
       "port-version": 0
     },
-    {
-      "git-tree": "667d5a01ac92b62b72940ddeaa9d05014c40125e",
-      "version": "1.9.3",
-      "port-version": 0
-    },
     {
       "git-tree": "43a3a46962e0195eefd661d621f1a69c267d067e",
       "version-string": "1.8.7",

@wrobelda
Copy link
Contributor Author

wrobelda commented Oct 6, 2021

@JackBoosY, @phoebeHu, FYI,i this is ready for a review since a while.


file(REMOVE "${CURRENT_PACKAGES_DIR}/lib/COPYING.LIB" "${CURRENT_PACKAGES_DIR}/debug/lib/COPYING.LIB")
else()
vcpkg_from_git(
Copy link
Contributor

Choose a reason for hiding this comment

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

Can we use the single repo in the different triplets?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

We could, but again, this mimics all the other ports that use ShiftMediaProject forks such that they are only used for Windows builds.

message(WARNING "libgcrypt on Windows uses a fork managed by the ShiftMediaProject: https://shiftmediaproject.github.io/")
vcpkg_from_github(
OUT_SOURCE_PATH SOURCE_PATH
REPO ShiftMediaProject/libgcrypt
Copy link
Contributor

Choose a reason for hiding this comment

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

Also I noticed that this repo is not official.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

It is not, hence the warning message. As explained previously, this is how other ports are prepared (gmp, nettle, gcrypt, gnutls) and is the easiest way of obtaining those libs on Windows.

Copy link
Contributor

Choose a reason for hiding this comment

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

We can intercept the places available on this repo, and we do not accept the use of unofficial repo.

Copy link
Contributor Author

@wrobelda wrobelda Oct 8, 2021

Choose a reason for hiding this comment

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

OK, this seems somewhat arbitrary: you have 3 other ports in the repo that already use this particular fork, so you did make an exception: https://github.com/microsoft/vcpkg/search?q=shiftmediaproject

If you mean that we should instead diff the upstream and the fork, we would end up with a massive patch. I don't see how is that different from using the fork itself – the latter provides same transparency and is less hassle.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

@JackBoosY also see: #18029

Copy link
Contributor

Choose a reason for hiding this comment

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

OK, this seems somewhat arbitrary: you have 3 other ports in the repo that already use this particular fork, so you did make an exception: https://github.com/microsoft/vcpkg/search?q=shiftmediaproject

Well, I think we should have a vote about that.

Copy link
Contributor

Choose a reason for hiding this comment

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

@strega-nil-ms what do you think about that?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Closing this as "Won't merge" based on the discussion here: #18029 (comment)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
category:port-feature The issue is with a library, which is requesting new capabilities that didn’t exist requires:vcpkg-team-review This PR or issue requires someone on the vcpkg team to take a further look.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants