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

[Sockpp][Android] Compile Sockpp port for android #19769

Merged
merged 8 commits into from
Jan 26, 2022

Conversation

talregev
Copy link
Contributor

@talregev talregev commented Aug 27, 2021

Compile Sockpp port for android

@talregev talregev force-pushed the TalR/sockpp_android_compilation branch from 5750171 to 64d2af2 Compare August 27, 2021 09:59
@JackBoosY JackBoosY added the category:community-triplet A PR or issue related to community triplets not officially validated by the vcpkg team. label Aug 30, 2021
ports/sockpp/usage Outdated Show resolved Hide resolved
ports/sockpp/0001-fix-android-strerror.patch Outdated Show resolved Hide resolved
@talregev talregev force-pushed the TalR/sockpp_android_compilation branch from 064b060 to a9a1d25 Compare August 30, 2021 13:41
@talregev talregev force-pushed the TalR/sockpp_android_compilation branch from a9a1d25 to 7d91dab Compare August 31, 2021 08:36
@talregev talregev marked this pull request as draft August 31, 2021 09:16
@talregev talregev changed the title [Sockpp][Android] Compile Sockpp port for android [Sockpp][Android] Compile Sockpp port for android and mingw Aug 31, 2021
@talregev talregev changed the title [Sockpp][Android] Compile Sockpp port for android and mingw [Sockpp][Android][Mingw] Compile Sockpp port for android and mingw Aug 31, 2021
@talregev
Copy link
Contributor Author

I want to compile sockpp in mingw-static
i get this error:
error: 'inet_ntop' was not declared in this scope;

I search in stack overflow:
I want to try this solution:
#define _WIN32_WINNT 0x0601
https://stackoverflow.com/a/64577702/550384

For my trial:
https://github.com/microsoft/vcpkg/pull/19769/files#diff-6dd900697e25811d0b4e4d5e91f7d2efed33b150b354338469fb62a978b3beb1R27
I get this error:

The following variables are not used in CMakeLists.txt:

      _WIN32_WINNT

Can someone help?

I guess I define the _WIN32_WINNT inside cmake and not inside the code as I intended.

@talregev
Copy link
Contributor Author

@talregev talregev changed the title [Sockpp][Android][Mingw] Compile Sockpp port for android and mingw [Sockpp][Android] Compile Sockpp port for android Aug 31, 2021
@talregev
Copy link
Contributor Author

I decided to focus here only for android. then do another PR for mingw.

@talregev talregev marked this pull request as ready for review August 31, 2021 16:54
@talregev talregev force-pushed the TalR/sockpp_android_compilation branch from 7d91dab to d1dea56 Compare August 31, 2021 17:40
@talregev talregev force-pushed the TalR/sockpp_android_compilation branch 2 times, most recently from 626776a to 587b94c Compare August 31, 2021 18:53
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 9fb1585e7a375cfa873697557ced116dfacbd1d7 -- versions
./vcpkg x-add-version --all
Diff
diff --git a/versions/s-/sockpp.json b/versions/s-/sockpp.json
index c8ad519..dbedea1 100644
--- a/versions/s-/sockpp.json
+++ b/versions/s-/sockpp.json
@@ -1,7 +1,7 @@
 {
   "versions": [
     {
-      "git-tree": "18610a158f9f9185e68c84365f38a250ab333b4a",
+      "git-tree": "97a77b226a4c2a655daac0100ec95411b9abbace",
       "version": "0.7",
       "port-version": 1
     },

@BillyONeal
Copy link
Member

I see, it was submitted upstream. The upstream maintainer seems responsive, so I think we should see prognosis of fpagliughi/sockpp#55

@JackBoosY
Copy link
Contributor

Change this PR to draft until the upstream approve the changes.

@JackBoosY JackBoosY marked this pull request as draft November 5, 2021 06:44
@talregev
Copy link
Contributor Author

@JackBoosY @BillyONeal The upstream was merged. Can you review it again?

@talregev talregev marked this pull request as ready for review January 24, 2022 17:54
@talregev
Copy link
Contributor Author

@JackBoosY Can you help me with the conflicts?

@JackBoosY JackBoosY removed the depends:upstream-changes Waiting on a change to the upstream project label Jan 25, 2022
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 b18b17865cfb6bd24620a00f30691be6775abb96 -- versions
./vcpkg x-add-version --all
Diff
diff --git a/versions/s-/sockpp.json b/versions/s-/sockpp.json
index 80d29c33..a3fa2069 100644
--- a/versions/s-/sockpp.json
+++ b/versions/s-/sockpp.json
@@ -6,8 +6,8 @@
       "port-version": 2
     },
     {
-      "git-tree": "97a77b226a4c2a655daac0100ec95411b9abbace",
-      "version": "0.7",
+      "git-tree": "69d23d693d1ab8cfeeab35c6b2794d6f2a9ca748",
+      "version-string": "0.7",
       "port-version": 1
     },
     {

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/sockpp/vcpkg.json

Valid values for the license field are listed at https://spdx.org/licenses/

versions/s-/sockpp.json Outdated Show resolved Hide resolved
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.

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/sockpp/vcpkg.json

Valid values for the license field are listed at https://spdx.org/licenses/

@JackBoosY JackBoosY added the info:reviewed Pull Request changes follow basic guidelines label Jan 25, 2022
@ras0219-msft
Copy link
Contributor

It looks like this patch was included in the minor release 0.7.1 from upstream (https://github.com/fpagliughi/sockpp). Could we change this PR to a simple update that doesn't need the patch?

With that change, LGTM!

@talregev
Copy link
Contributor Author

It looks like this patch was included in the minor release 0.7.1 from upstream (https://github.com/fpagliughi/sockpp). Could we change this PR to a simple update that doesn't need the patch?

With that change, LGTM!

I agree!
@JackBoosY Can you help?

@JackBoosY
Copy link
Contributor

JackBoosY commented Jan 26, 2022

I should keep this PR folder on my disk 😢

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.

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/sockpp/vcpkg.json

Valid values for the license field are listed at https://spdx.org/licenses/

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.

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/sockpp/vcpkg.json

Valid values for the license field are listed at https://spdx.org/licenses/

@BillyONeal BillyONeal merged commit ff99d5c into microsoft:master Jan 26, 2022
@BillyONeal
Copy link
Member

Thanks <3

@talregev talregev deleted the TalR/sockpp_android_compilation branch March 26, 2022 18:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
category:community-triplet A PR or issue related to community triplets not officially validated by the vcpkg team. info:reviewed Pull Request changes follow basic guidelines
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants