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

add port vcpkg-tool-python2 #23431

Merged
merged 38 commits into from
Mar 14, 2022
Merged

Conversation

Neumann-A
Copy link
Contributor

adds two ports

  • vcpkg-tool-lessmsi to not use msiexec to extract msi files
  • vcpkg-tool-python2 to extract python2 with lessmsi.

Other stuff:

  • make qt5-base switch to python3 (needs ci testing)
  • make qt5-webengine use python2 explicitly (similar to qtbase/qtwebengine)
  • added the vcpkg-tool-python2 to some ports using python2 (but not all)

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 5962cf5a3bfc2124e8de991a4e45a8edcb3b4c69 -- versions
./vcpkg x-add-version --all
Diff
diff --git a/versions/baseline.json b/versions/baseline.json
index 86debae..e827c0e 100644
--- a/versions/baseline.json
+++ b/versions/baseline.json
@@ -5614,7 +5614,7 @@
     },
     "qt5-base": {
       "baseline": "5.15.3",
-      "port-version": 0
+      "port-version": 1
     },
     "qt5-canvas3d": {
       "baseline": "0",
@@ -5742,7 +5742,7 @@
     },
     "qt5-webengine": {
       "baseline": "5.15.3",
-      "port-version": 0
+      "port-version": 1
     },
     "qt5-webglplugin": {
       "baseline": "5.15.3",
@@ -7244,6 +7244,10 @@
       "baseline": "2021-10-23",
       "port-version": 0
     },
+    "vcpkg-tool-lessmsi": {
+      "baseline": "1.10.0",
+      "port-version": 0
+    },
     "vcpkg-tool-meson": {
       "baseline": "0.60.2",
       "port-version": 2
@@ -7252,6 +7256,10 @@
       "baseline": "14.17.4",
       "port-version": 0
     },
+    "vcpkg-tool-python2": {
+      "baseline": "2.7.18",
+      "port-version": 0
+    },
     "vectorclass": {
       "baseline": "2.00.01",
       "port-version": 2
diff --git a/versions/q-/qt5-base.json b/versions/q-/qt5-base.json
index fc639f1..3cfd72e 100644
--- a/versions/q-/qt5-base.json
+++ b/versions/q-/qt5-base.json
@@ -1,5 +1,10 @@
 {
   "versions": [
+    {
+      "git-tree": "c3f2a311bffa94b9a66d5d0e4f04b1d235813227",
+      "version": "5.15.3",
+      "port-version": 1
+    },
     {
       "git-tree": "8c2fa92b6281b496e3aead1b02238ab7668c204a",
       "version": "5.15.3",
diff --git a/versions/q-/qt5-webengine.json b/versions/q-/qt5-webengine.json
index b7b79a2..eb34c4d 100644
--- a/versions/q-/qt5-webengine.json
+++ b/versions/q-/qt5-webengine.json
@@ -1,5 +1,10 @@
 {
   "versions": [
+    {
+      "git-tree": "66ae5d14ade46af7612f7b3ee4657e787ff05889",
+      "version": "5.15.3",
+      "port-version": 1
+    },
     {
       "git-tree": "4b097155aca1faecdaa639daec2395e9a8c0cdad",
       "version": "5.15.3",

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/vcpkg-tool-lessmsi/vcpkg.json
  • ports/vcpkg-tool-python2/vcpkg.json

Valid values for the license field can be found in the documentation

ports/vcpkg-tool-lessmsi/portfile.cmake Outdated Show resolved Hide resolved
@@ -0,0 +1,17 @@
set(VCPKG_POLICY_EMPTY_PACKAGE enabled)
Copy link
Contributor

Choose a reason for hiding this comment

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

I'd like a script to go along with this eventually, but I'm not going to block on that.

ports/vcpkg-tool-python2/portfile.cmake Outdated Show resolved Hide resolved
@JackBoosY JackBoosY added the category:new-port The issue is requesting a new library to be added; consider making a PR! label Mar 9, 2022
@JackBoosY
Copy link
Contributor

Since my PR #23478 and this PR requires each other, can you please merge my changes into this?

@JackBoosY
Copy link
Contributor

And what about the python3:x64-linux regression?

@Neumann-A
Copy link
Contributor Author

Neumann-A commented Mar 11, 2022

And what about the python3:x64-linux regression?

that is a vcpkg-tool update regression. Previously stuff like that was not checked on other platforms then windows.
Maybe @Hoikas can help here?

@JackBoosY
Copy link
Contributor

And what about the python3:x64-linux regression?

that is a vcpkg-tool update regression. Previously stuff like that was not checked on other platforms then windows. Maybe @Hoikas can help here?

Ah I remember that just now, that's because the dependency libraries are mismatched.

@JackBoosY
Copy link
Contributor

CMake Error at scripts/cmake/vcpkg_find_acquire_program.cmake:696 (message):
Unable to find PYTHON2

@Neumann-A
Copy link
Contributor Author

Neumann-A commented Mar 11, 2022

can you please merge my changes into this?

@JackBoosY : please do that yourself. I want have time until very much later today.

CMake Error at scripts/cmake/vcpkg_find_acquire_program.cmake:696 (message):
Unable to find PYTHON2

Where did you see that?

@JackBoosY
Copy link
Contributor

Where did you see that?

When building vcpkg-find-acquire-program:x64-windows:

Starting package 7/7: vcpkg-find-acquire-program:x64-windows
Building package vcpkg-find-acquire-program[core]:x64-windows...
-- Installing port from location: C:\a\1\s\scripts/test_ports\vcpkg-find-acquire-program
-- Downloading https://dl.google.com/go/go1.16.6.windows-386.zip -> go1.16.6.windows-386.zip...
-- Downloading https://download.qt.io/official_releases/jom/jom_1_1_3.zip;https://mirrors.ocf.berkeley.edu/qt/official_releases/jom/jom_1_1_3.zip -> jom_1_1_3.zip...
-- Downloading https://www.nasm.us/pub/nasm/releasebuilds/2.15.05/win32/nasm-2.15.05-win32.zip;https://fossies.org/windows/misc/nasm-2.15.05-win32.zip -> nasm-2.15.05-win32.zip...
-- Downloading https://strawberryperl.com/download/5.32.1.1/strawberry-perl-5.32.1.1-32bit.zip -> strawberry-perl-5.32.1.1-32bit.zip...
-- Downloading https://www.tortall.net/projects/yasm/snapshots/v1.3.0.6.g1962/yasm-1.3.0.6.g1962.exe -> yasm-1.3.0.6.g1962.exe...
-- Installing: D:/downloads/tools/yasm/1.3.0.6/yasm.exe
-- Downloading https://www.python.org/ftp/python/2.7.18/python-2.7.18.amd64.msi -> python-2.7.18.amd64.msi...
The Windows Installer Service could not be accessed. This can occur if the Windows Installer is not correctly installed. Contact your support personnel for assistance.

CMake Error at scripts/cmake/vcpkg_find_acquire_program.cmake:696 (message):
  Unable to find PYTHON2
Call Stack (most recent call first):
  scripts/test_ports/vcpkg-find-acquire-program/portfile.cmake:5 (vcpkg_find_acquire_program)
  scripts/ports.cmake:145 (include)


Error: Building package vcpkg-find-acquire-program:x64-windows failed with: BUILD_FAILED
Elapsed time for package vcpkg-find-acquire-program:x64-windows: 11.77 s

@Neumann-A
Copy link
Contributor Author

@JackBoosY: Yeah that is because I didn't adjust all usages of vcpkg_find_acquire_program(PYTHON2) to depend on vcpkg-tool-python2. Basically just the manifest needs to include it to make it work.

@JackBoosY
Copy link
Contributor

@Neumann-A Does that mean we can't use this changes to fix the python2 regression completely?

@Neumann-A
Copy link
Contributor Author

Neumann-A commented Mar 11, 2022

Does that mean we can't use this changes to fix the python2 regression completely?

It is only fixed if the ports using python2 are depending on vcpkg-tool-python2 or if vcpkg-tool-python2 gets installed before the port using python2. I didn't fix all ports in this PR which are using python2. The python2 issues is mainly a CI issue not a user issue. So failures in CI should be fixed if they are observed

@JackBoosY JackBoosY changed the title [vcpkg baseline] add port vcpkg-tool-python2 add port vcpkg-tool-python2 Mar 11, 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.

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/blitz/vcpkg.json
  • ports/shiva/vcpkg.json
  • ports/v8/vcpkg.json
  • ports/vcpkg-gn/vcpkg.json

Valid values for the license field can be found in the documentation

ports/qt5-webengine/vcpkg.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/blitz/vcpkg.json
  • ports/shiva/vcpkg.json
  • ports/v8/vcpkg.json
  • ports/vcpkg-gn/vcpkg.json

Valid values for the license field can be found in the documentation

@vicroms vicroms dismissed their stale review March 11, 2022 19:53

changes made

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 af2287382b1991dbdcb7e5112d236f3323b9dd7a -- versions
./vcpkg x-add-version --all
Diff
diff --git a/versions/baseline.json b/versions/baseline.json
index 19a1479..6542309 100644
--- a/versions/baseline.json
+++ b/versions/baseline.json
@@ -5838,7 +5838,7 @@
     },
     "qtinterfaceframework": {
       "baseline": "6.2.3",
-      "port-version": 1
+      "port-version": 2
     },
     "qtkeychain": {
       "baseline": "0.13.2",
diff --git a/versions/q-/qtinterfaceframework.json b/versions/q-/qtinterfaceframework.json
index f1d4811..3dc3a83 100644
--- a/versions/q-/qtinterfaceframework.json
+++ b/versions/q-/qtinterfaceframework.json
@@ -1,5 +1,10 @@
 {
   "versions": [
+    {
+      "git-tree": "42968cd54d91bbbf94a3c5aaaf6f1de876b0efac",
+      "version": "6.2.3",
+      "port-version": 2
+    },
     {
       "git-tree": "26fa7610125a5a6b54ced0cda87ab6621a42a1d9",
       "version": "6.2.3",

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/blitz/vcpkg.json
  • ports/shiva/vcpkg.json
  • ports/v8/vcpkg.json
  • ports/vcpkg-gn/vcpkg.json

Valid values for the license field can be found in the documentation

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/blitz/vcpkg.json
  • ports/shiva/vcpkg.json
  • ports/v8/vcpkg.json
  • ports/vcpkg-gn/vcpkg.json

Valid values for the license field can be found in the documentation

@Neumann-A
Copy link
Contributor Author

depends #23525 to be green in CI

@JackBoosY JackBoosY added the depends:different-pr This PR or Issue depends on a PR which has been filed label Mar 14, 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.

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/blitz/vcpkg.json
  • ports/shiva/vcpkg.json
  • ports/v8/vcpkg.json
  • ports/vcpkg-gn/vcpkg.json

Valid values for the license field can be found in the documentation

@JackBoosY JackBoosY removed the depends:different-pr This PR or Issue depends on a PR which has been filed label Mar 14, 2022
@vicroms vicroms merged commit fad0644 into microsoft:master Mar 14, 2022
@Neumann-A Neumann-A deleted the add_vcpkg_tool_python2 branch March 14, 2022 17:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
category:new-port The issue is requesting a new library to be added; consider making a PR!
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants