From 7a9008eaec852951db002cf18dd1043c316cc921 Mon Sep 17 00:00:00 2001 From: John Kirkham Date: Wed, 3 Jan 2018 01:33:45 -0500 Subject: [PATCH 01/16] recipes: Add vs2008_runtime --- recipes/vs2008_runtime/CMakeLists.txt | 5 ++++ recipes/vs2008_runtime/bld.bat | 15 +++++++++++ recipes/vs2008_runtime/meta.yaml | 37 +++++++++++++++++++++++++++ 3 files changed, 57 insertions(+) create mode 100644 recipes/vs2008_runtime/CMakeLists.txt create mode 100644 recipes/vs2008_runtime/bld.bat create mode 100644 recipes/vs2008_runtime/meta.yaml diff --git a/recipes/vs2008_runtime/CMakeLists.txt b/recipes/vs2008_runtime/CMakeLists.txt new file mode 100644 index 0000000000000..76b3d14b55d4f --- /dev/null +++ b/recipes/vs2008_runtime/CMakeLists.txt @@ -0,0 +1,5 @@ +cmake_minimum_required(VERSION 3.1) + +project(vs2008_runtime) + +include(InstallRequiredSystemLibraries) diff --git a/recipes/vs2008_runtime/bld.bat b/recipes/vs2008_runtime/bld.bat new file mode 100644 index 0000000000000..7cf67a9babd70 --- /dev/null +++ b/recipes/vs2008_runtime/bld.bat @@ -0,0 +1,15 @@ +for %%F in ("." "bin") do ( + cmake -G "%CMAKE_GENERATOR%" ^ + -DCMAKE_INSTALL_PREFIX:PATH="%LIBRARY_PREFIX%" ^ + -DCMAKE_INSTALL_DEBUG_LIBRARIES:BOOL="OFF" ^ + -DCMAKE_INSTALL_DEBUG_LIBRARIES_ONLY:BOOL="OFF" ^ + -DCMAKE_INSTALL_OPENMP_LIBRARIES:BOOL="ON" ^ + -DCMAKE_INSTALL_SYSTEM_RUNTIME_DESTINATION:STRING=%%F ^ + "%RECIPE_DIR%" + if errorlevel 1 exit 1 + + cmake --build "%SRC_DIR%" ^ + --target INSTALL ^ + --config Release + if errorlevel 1 exit 1 +) diff --git a/recipes/vs2008_runtime/meta.yaml b/recipes/vs2008_runtime/meta.yaml new file mode 100644 index 0000000000000..1cb155f2475e0 --- /dev/null +++ b/recipes/vs2008_runtime/meta.yaml @@ -0,0 +1,37 @@ +package: + name: vs2008_runtime + version: "9.00.30729.1" + +build: + number: 0 + skip: true # [not win] + msvc_compiler: 9.0 + +requirements: + build: + - cmake + +test: + commands: + {% set libs = [ + "msvcm90", + "msvcp90", + "msvcr90", + "vcomp90" + ] %} + {% for each_lib in libs %} + - if not exist "%PREFIX%\\Library\\{{ each_lib }}.dll" exit 1 + - if not exist "%PREFIX%\\Library\\bin\\{{ each_lib }}.dll" exit 1 + {% endfor %} + +about: + home: http://www.microsoft.com + license: Proprietary + summary: Bundles of the MSVC 9 (VS 2008) runtime + +extra: + recipe-maintainers: + - gillins + - mingwandroid + - msarahan + - patricksnape From 92855c5fceebe1d528cde73f7d306322b686c56c Mon Sep 17 00:00:00 2001 From: John Kirkham Date: Wed, 3 Jan 2018 01:44:22 -0500 Subject: [PATCH 02/16] wip --- recipes/vs2008_runtime/bld.bat | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/recipes/vs2008_runtime/bld.bat b/recipes/vs2008_runtime/bld.bat index 7cf67a9babd70..fbcb7171981e5 100644 --- a/recipes/vs2008_runtime/bld.bat +++ b/recipes/vs2008_runtime/bld.bat @@ -1,3 +1,14 @@ +for /F "usebackq tokens=3*" %%A in (`REG QUERY "HKEY_LOCAL_MACHINE\Software\Microsoft\DevDiv\VC\Servicing\9.0\IDE" /v UpdateVersion`) do ( + set SP=%%A +) + +if not "%SP%" == "%PKG_VERSION%" ( + echo "Version detected from registry: %SP%" + echo "does not match version of package being built (%PKG_VERSION%)" + echo "Do you have current updates for VS 2008 installed?" + exit 1 +) + for %%F in ("." "bin") do ( cmake -G "%CMAKE_GENERATOR%" ^ -DCMAKE_INSTALL_PREFIX:PATH="%LIBRARY_PREFIX%" ^ From 6f0bf6dce77729ed540b278e5b1a1a87d53772f5 Mon Sep 17 00:00:00 2001 From: Isuru Fernando Date: Wed, 3 Jan 2018 13:08:04 +0530 Subject: [PATCH 03/16] Check for version using cmake --- recipes/vs2008_runtime/CMakeLists.txt | 9 +++++++++ recipes/vs2008_runtime/bld.bat | 11 ----------- 2 files changed, 9 insertions(+), 11 deletions(-) diff --git a/recipes/vs2008_runtime/CMakeLists.txt b/recipes/vs2008_runtime/CMakeLists.txt index 76b3d14b55d4f..455560269e068 100644 --- a/recipes/vs2008_runtime/CMakeLists.txt +++ b/recipes/vs2008_runtime/CMakeLists.txt @@ -2,4 +2,13 @@ cmake_minimum_required(VERSION 3.1) project(vs2008_runtime) +enable_language(C) +enable_language(CXX) + include(InstallRequiredSystemLibraries) + +if (NOT "${CMAKE_CXX_COMPILER_VERSION}" STREQUAL "$ENV{PKG_VERSION}") + message(FATAL_ERROR "Compiler version detected ${CMAKE_CXX_COMPILER_VERSION} " + "does not match version of package being built $ENV{PKG_VERSION}\n" + "Do you have current updates for VS 2008 installed?") +endif() diff --git a/recipes/vs2008_runtime/bld.bat b/recipes/vs2008_runtime/bld.bat index fbcb7171981e5..7cf67a9babd70 100644 --- a/recipes/vs2008_runtime/bld.bat +++ b/recipes/vs2008_runtime/bld.bat @@ -1,14 +1,3 @@ -for /F "usebackq tokens=3*" %%A in (`REG QUERY "HKEY_LOCAL_MACHINE\Software\Microsoft\DevDiv\VC\Servicing\9.0\IDE" /v UpdateVersion`) do ( - set SP=%%A -) - -if not "%SP%" == "%PKG_VERSION%" ( - echo "Version detected from registry: %SP%" - echo "does not match version of package being built (%PKG_VERSION%)" - echo "Do you have current updates for VS 2008 installed?" - exit 1 -) - for %%F in ("." "bin") do ( cmake -G "%CMAKE_GENERATOR%" ^ -DCMAKE_INSTALL_PREFIX:PATH="%LIBRARY_PREFIX%" ^ From 6eb3611cfc2a6771aebf374da3f8a8f96afbd40b Mon Sep 17 00:00:00 2001 From: Isuru Fernando Date: Wed, 3 Jan 2018 13:54:59 +0530 Subject: [PATCH 04/16] Fix version detection --- recipes/vs2008_runtime/CMakeLists.txt | 7 +++++-- recipes/vs2008_runtime/meta.yaml | 2 +- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/recipes/vs2008_runtime/CMakeLists.txt b/recipes/vs2008_runtime/CMakeLists.txt index 455560269e068..9e0bc69a74091 100644 --- a/recipes/vs2008_runtime/CMakeLists.txt +++ b/recipes/vs2008_runtime/CMakeLists.txt @@ -7,8 +7,11 @@ enable_language(CXX) include(InstallRequiredSystemLibraries) -if (NOT "${CMAKE_CXX_COMPILER_VERSION}" STREQUAL "$ENV{PKG_VERSION}") - message(FATAL_ERROR "Compiler version detected ${CMAKE_CXX_COMPILER_VERSION} " +string(SUBSTRING "${CMAKE_CXX_COMPILER_VERSION}" 2 -1 EXPECTED_VERSION) +set(EXPECTED_VERSION "9${EXPECTED_VERSION}") + +if (NOT "${EXPECTED_VERSION}" STREQUAL "$ENV{PKG_VERSION}") + message(FATAL_ERROR "VC runtime version detected ${EXPECTED_VERSION} " "does not match version of package being built $ENV{PKG_VERSION}\n" "Do you have current updates for VS 2008 installed?") endif() diff --git a/recipes/vs2008_runtime/meta.yaml b/recipes/vs2008_runtime/meta.yaml index 1cb155f2475e0..e8b7e07c17d97 100644 --- a/recipes/vs2008_runtime/meta.yaml +++ b/recipes/vs2008_runtime/meta.yaml @@ -1,6 +1,6 @@ package: name: vs2008_runtime - version: "9.00.30729.1" + version: "9.0.30729.1" build: number: 0 From 5ef73fccff634db98a96677f1e81aac1fd9374af Mon Sep 17 00:00:00 2001 From: Isuru Fernando Date: Wed, 3 Jan 2018 15:08:56 +0530 Subject: [PATCH 05/16] Don't use 3.10.0 as it's buggy --- recipes/vs2008_runtime/meta.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/recipes/vs2008_runtime/meta.yaml b/recipes/vs2008_runtime/meta.yaml index e8b7e07c17d97..3355062027cc8 100644 --- a/recipes/vs2008_runtime/meta.yaml +++ b/recipes/vs2008_runtime/meta.yaml @@ -9,7 +9,7 @@ build: requirements: build: - - cmake + - cmake !=3.10.0 test: commands: From 3141e69a4bfd8953cb24acde30c6e64cfc02e777 Mon Sep 17 00:00:00 2001 From: Isuru Fernando Date: Wed, 3 Jan 2018 15:19:42 +0530 Subject: [PATCH 06/16] cmake <3.9.2 is buggy as well --- recipes/vs2008_runtime/meta.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/recipes/vs2008_runtime/meta.yaml b/recipes/vs2008_runtime/meta.yaml index 3355062027cc8..5de7ff5062fd8 100644 --- a/recipes/vs2008_runtime/meta.yaml +++ b/recipes/vs2008_runtime/meta.yaml @@ -9,7 +9,7 @@ build: requirements: build: - - cmake !=3.10.0 + - cmake <3.9.2 test: commands: From 9c061351b85bf917c9870b5851168368a5075d6f Mon Sep 17 00:00:00 2001 From: John Kirkham Date: Wed, 3 Jan 2018 10:58:12 -0500 Subject: [PATCH 07/16] Install Visual C++ 2008 SP1 Redistributables These should hopefully have the missing `vcomp90` library in them. So add this hack to `bld.bat` temporarily to see if this fixes the issue. --- recipes/vs2008_runtime/bld.bat | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/recipes/vs2008_runtime/bld.bat b/recipes/vs2008_runtime/bld.bat index 7cf67a9babd70..980a63a7e57ee 100644 --- a/recipes/vs2008_runtime/bld.bat +++ b/recipes/vs2008_runtime/bld.bat @@ -1,3 +1,13 @@ +powershell -Command "(New-Object Net.WebClient).DownloadFile('https://download.microsoft.com/download/d/d/9/dd9a82d0-52ef-40db-8dab-795376989c03/vcredist_x86.exe', 'vcredist_x86.exe')" +if errorlevel 1 exit 1 +powershell -Command "(New-Object Net.WebClient).DownloadFile('https://download.microsoft.com/download/2/d/6/2d61c766-107b-409d-8fba-c39e61ca08e8/vcredist_x64.exe', 'vcredist_x64.exe')" +if errorlevel 1 exit 1 + +vcredist_x86.exe /qb! +if errorlevel 1 exit 1 +vcredist_x64.exe /qb! +if errorlevel 1 exit 1 + for %%F in ("." "bin") do ( cmake -G "%CMAKE_GENERATOR%" ^ -DCMAKE_INSTALL_PREFIX:PATH="%LIBRARY_PREFIX%" ^ From 556b7dd5d69606897fddf540eb18b4e4fc345944 Mon Sep 17 00:00:00 2001 From: John Kirkham Date: Wed, 3 Jan 2018 22:08:36 -0500 Subject: [PATCH 08/16] Revert "Install Visual C++ 2008 SP1 Redistributables" This reverts commit 9c061351b85bf917c9870b5851168368a5075d6f. --- recipes/vs2008_runtime/bld.bat | 10 ---------- 1 file changed, 10 deletions(-) diff --git a/recipes/vs2008_runtime/bld.bat b/recipes/vs2008_runtime/bld.bat index 980a63a7e57ee..7cf67a9babd70 100644 --- a/recipes/vs2008_runtime/bld.bat +++ b/recipes/vs2008_runtime/bld.bat @@ -1,13 +1,3 @@ -powershell -Command "(New-Object Net.WebClient).DownloadFile('https://download.microsoft.com/download/d/d/9/dd9a82d0-52ef-40db-8dab-795376989c03/vcredist_x86.exe', 'vcredist_x86.exe')" -if errorlevel 1 exit 1 -powershell -Command "(New-Object Net.WebClient).DownloadFile('https://download.microsoft.com/download/2/d/6/2d61c766-107b-409d-8fba-c39e61ca08e8/vcredist_x64.exe', 'vcredist_x64.exe')" -if errorlevel 1 exit 1 - -vcredist_x86.exe /qb! -if errorlevel 1 exit 1 -vcredist_x64.exe /qb! -if errorlevel 1 exit 1 - for %%F in ("." "bin") do ( cmake -G "%CMAKE_GENERATOR%" ^ -DCMAKE_INSTALL_PREFIX:PATH="%LIBRARY_PREFIX%" ^ From 95c96ab45c039c4ebd94f22c506a919130a06720 Mon Sep 17 00:00:00 2001 From: John Kirkham Date: Wed, 3 Jan 2018 23:35:04 -0500 Subject: [PATCH 09/16] Add WinSxS path to vcomp90 --- recipes/vs2008_runtime/bld.bat | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/recipes/vs2008_runtime/bld.bat b/recipes/vs2008_runtime/bld.bat index 7cf67a9babd70..d1d45d6ee4cfe 100644 --- a/recipes/vs2008_runtime/bld.bat +++ b/recipes/vs2008_runtime/bld.bat @@ -1,6 +1,16 @@ +if "%ARCH%" == "32" (set "ARCH_DIR=x86") +if "%ARCH%" == "64" (set "ARCH_DIR=amd64") + +dir /a:d /o:-n /s /b C:\Windows\WinSxS\%ARCH_DIR%_microsoft.vc90.openmp* > vcomp90_locs.txt +type vcomp90_locs.txt + +set /p VCOMP_DIR= Date: Thu, 4 Jan 2018 14:26:33 +0530 Subject: [PATCH 10/16] Use SP1 MFC update --- recipes/vs2008_runtime/bld.bat | 41 ++++++++++++++++---------------- recipes/vs2008_runtime/meta.yaml | 8 ++----- 2 files changed, 23 insertions(+), 26 deletions(-) diff --git a/recipes/vs2008_runtime/bld.bat b/recipes/vs2008_runtime/bld.bat index d1d45d6ee4cfe..4e68a9140ebe2 100644 --- a/recipes/vs2008_runtime/bld.bat +++ b/recipes/vs2008_runtime/bld.bat @@ -1,25 +1,26 @@ -if "%ARCH%" == "32" (set "ARCH_DIR=x86") -if "%ARCH%" == "64" (set "ARCH_DIR=amd64") - -dir /a:d /o:-n /s /b C:\Windows\WinSxS\%ARCH_DIR%_microsoft.vc90.openmp* > vcomp90_locs.txt -type vcomp90_locs.txt +if "%ARCH%" == "32" ( + powershell -Command "(New-Object Net.WebClient).DownloadFile('https://download.microsoft.com/download/d/d/9/dd9a82d0-52ef-40db-8dab-795376989c03/vcredist_x86.exe', 'vcredist_x86.exe')" + if errorlevel 1 exit 1 + vcredist_x86.exe /qb! + if errorlevel 1 exit 1 + set "ARCH_DIR=x86" +) -set /p VCOMP_DIR= Date: Thu, 4 Jan 2018 14:28:12 +0530 Subject: [PATCH 11/16] Remove unnecessary CMakeLists.txt --- recipes/vs2008_runtime/CMakeLists.txt | 17 ----------------- 1 file changed, 17 deletions(-) delete mode 100644 recipes/vs2008_runtime/CMakeLists.txt diff --git a/recipes/vs2008_runtime/CMakeLists.txt b/recipes/vs2008_runtime/CMakeLists.txt deleted file mode 100644 index 9e0bc69a74091..0000000000000 --- a/recipes/vs2008_runtime/CMakeLists.txt +++ /dev/null @@ -1,17 +0,0 @@ -cmake_minimum_required(VERSION 3.1) - -project(vs2008_runtime) - -enable_language(C) -enable_language(CXX) - -include(InstallRequiredSystemLibraries) - -string(SUBSTRING "${CMAKE_CXX_COMPILER_VERSION}" 2 -1 EXPECTED_VERSION) -set(EXPECTED_VERSION "9${EXPECTED_VERSION}") - -if (NOT "${EXPECTED_VERSION}" STREQUAL "$ENV{PKG_VERSION}") - message(FATAL_ERROR "VC runtime version detected ${EXPECTED_VERSION} " - "does not match version of package being built $ENV{PKG_VERSION}\n" - "Do you have current updates for VS 2008 installed?") -endif() From 97ccc95724ff9fc0b5a02e1e46d075d86846a28e Mon Sep 17 00:00:00 2001 From: Isuru Fernando Date: Thu, 4 Jan 2018 14:30:59 +0530 Subject: [PATCH 12/16] Fix download url --- recipes/vs2008_runtime/bld.bat | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/recipes/vs2008_runtime/bld.bat b/recipes/vs2008_runtime/bld.bat index 4e68a9140ebe2..d2987627014ad 100644 --- a/recipes/vs2008_runtime/bld.bat +++ b/recipes/vs2008_runtime/bld.bat @@ -1,5 +1,5 @@ if "%ARCH%" == "32" ( - powershell -Command "(New-Object Net.WebClient).DownloadFile('https://download.microsoft.com/download/d/d/9/dd9a82d0-52ef-40db-8dab-795376989c03/vcredist_x86.exe', 'vcredist_x86.exe')" + powershell -Command "(New-Object Net.WebClient).DownloadFile('https://download.microsoft.com/download/5/D/8/5D8C65CB-C849-4025-8E95-C3966CAFD8AE/vcredist_x86.exe', 'vcredist_x86.exe')" if errorlevel 1 exit 1 vcredist_x86.exe /qb! if errorlevel 1 exit 1 From 49eebdb4879f569c36edfcbe656d7dcd7c8a688f Mon Sep 17 00:00:00 2001 From: John Kirkham Date: Thu, 4 Jan 2018 09:37:28 -0500 Subject: [PATCH 13/16] Add @isuruf as a maintainer [ci skip] --- recipes/vs2008_runtime/meta.yaml | 1 + 1 file changed, 1 insertion(+) diff --git a/recipes/vs2008_runtime/meta.yaml b/recipes/vs2008_runtime/meta.yaml index c3b30a7207f26..a2c9b689f0fbf 100644 --- a/recipes/vs2008_runtime/meta.yaml +++ b/recipes/vs2008_runtime/meta.yaml @@ -28,6 +28,7 @@ about: extra: recipe-maintainers: - gillins + - isuruf - mingwandroid - msarahan - patricksnape From 44745b89672a6ac7580977989f07713baf4eee71 Mon Sep 17 00:00:00 2001 From: Isuru Fernando Date: Thu, 4 Jan 2018 20:37:32 +0530 Subject: [PATCH 14/16] Add link to download url --- recipes/vs2008_runtime/bld.bat | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/recipes/vs2008_runtime/bld.bat b/recipes/vs2008_runtime/bld.bat index d2987627014ad..b0cd0c67d08ab 100644 --- a/recipes/vs2008_runtime/bld.bat +++ b/recipes/vs2008_runtime/bld.bat @@ -1,3 +1,5 @@ +REM Downloads from https://www.microsoft.com/en-us/download/details.aspx?id=26368 + if "%ARCH%" == "32" ( powershell -Command "(New-Object Net.WebClient).DownloadFile('https://download.microsoft.com/download/5/D/8/5D8C65CB-C849-4025-8E95-C3966CAFD8AE/vcredist_x86.exe', 'vcredist_x86.exe')" if errorlevel 1 exit 1 @@ -6,7 +8,6 @@ if "%ARCH%" == "32" ( set "ARCH_DIR=x86" ) - if "%ARCH%" == "64" ( powershell -Command "(New-Object Net.WebClient).DownloadFile('https://download.microsoft.com/download/5/D/8/5D8C65CB-C849-4025-8E95-C3966CAFD8AE/vcredist_x64.exe', 'vcredist_x64.exe')" if errorlevel 1 exit 1 From 367aa1eb264b125b50d4d9bcc9a27978adbcaaa9 Mon Sep 17 00:00:00 2001 From: Isuru Fernando Date: Thu, 4 Jan 2018 21:51:58 +0530 Subject: [PATCH 15/16] Install vcredist only if run on CI --- recipes/vs2008_runtime/bld.bat | 8 +++++--- recipes/vs2008_runtime/meta.yaml | 2 ++ 2 files changed, 7 insertions(+), 3 deletions(-) diff --git a/recipes/vs2008_runtime/bld.bat b/recipes/vs2008_runtime/bld.bat index b0cd0c67d08ab..e3c69eff18f0d 100644 --- a/recipes/vs2008_runtime/bld.bat +++ b/recipes/vs2008_runtime/bld.bat @@ -1,19 +1,21 @@ REM Downloads from https://www.microsoft.com/en-us/download/details.aspx?id=26368 -if "%ARCH%" == "32" ( +if "%CI%" == "True" ( + if "%ARCH%" == "32" ( powershell -Command "(New-Object Net.WebClient).DownloadFile('https://download.microsoft.com/download/5/D/8/5D8C65CB-C849-4025-8E95-C3966CAFD8AE/vcredist_x86.exe', 'vcredist_x86.exe')" if errorlevel 1 exit 1 vcredist_x86.exe /qb! if errorlevel 1 exit 1 set "ARCH_DIR=x86" -) + ) -if "%ARCH%" == "64" ( + if "%ARCH%" == "64" ( powershell -Command "(New-Object Net.WebClient).DownloadFile('https://download.microsoft.com/download/5/D/8/5D8C65CB-C849-4025-8E95-C3966CAFD8AE/vcredist_x64.exe', 'vcredist_x64.exe')" if errorlevel 1 exit 1 vcredist_x64.exe /qb! if errorlevel 1 exit 1 set "ARCH_DIR=amd64" + ) ) cd C:\Windows\WinSxS\%ARCH_DIR%_microsoft.vc90.openmp_*_%PKG_VERSION%_* diff --git a/recipes/vs2008_runtime/meta.yaml b/recipes/vs2008_runtime/meta.yaml index a2c9b689f0fbf..78361d76d635f 100644 --- a/recipes/vs2008_runtime/meta.yaml +++ b/recipes/vs2008_runtime/meta.yaml @@ -6,6 +6,8 @@ build: number: 0 skip: true # [not win] msvc_compiler: 9.0 + script_env: + - CI test: commands: From cac0d86fd65ac0bfce91b4f5bc6d73e067a86870 Mon Sep 17 00:00:00 2001 From: Isuru Fernando Date: Thu, 4 Jan 2018 22:17:31 +0530 Subject: [PATCH 16/16] Use source to download vcredist.exe --- recipes/vs2008_runtime/bld.bat | 24 ++++++++---------------- recipes/vs2008_runtime/meta.yaml | 8 ++++++++ 2 files changed, 16 insertions(+), 16 deletions(-) diff --git a/recipes/vs2008_runtime/bld.bat b/recipes/vs2008_runtime/bld.bat index e3c69eff18f0d..992d3b0ab18b2 100644 --- a/recipes/vs2008_runtime/bld.bat +++ b/recipes/vs2008_runtime/bld.bat @@ -1,21 +1,13 @@ -REM Downloads from https://www.microsoft.com/en-us/download/details.aspx?id=26368 - if "%CI%" == "True" ( - if "%ARCH%" == "32" ( - powershell -Command "(New-Object Net.WebClient).DownloadFile('https://download.microsoft.com/download/5/D/8/5D8C65CB-C849-4025-8E95-C3966CAFD8AE/vcredist_x86.exe', 'vcredist_x86.exe')" - if errorlevel 1 exit 1 - vcredist_x86.exe /qb! - if errorlevel 1 exit 1 - set "ARCH_DIR=x86" - ) + vcredist.exe /qb! +) + +if "%ARCH%" == "32" ( + set "ARCH_DIR=x86" +) - if "%ARCH%" == "64" ( - powershell -Command "(New-Object Net.WebClient).DownloadFile('https://download.microsoft.com/download/5/D/8/5D8C65CB-C849-4025-8E95-C3966CAFD8AE/vcredist_x64.exe', 'vcredist_x64.exe')" - if errorlevel 1 exit 1 - vcredist_x64.exe /qb! - if errorlevel 1 exit 1 - set "ARCH_DIR=amd64" - ) +if "%ARCH%" == "64" ( + set "ARCH_DIR=amd64" ) cd C:\Windows\WinSxS\%ARCH_DIR%_microsoft.vc90.openmp_*_%PKG_VERSION%_* diff --git a/recipes/vs2008_runtime/meta.yaml b/recipes/vs2008_runtime/meta.yaml index 78361d76d635f..87e6d84011c91 100644 --- a/recipes/vs2008_runtime/meta.yaml +++ b/recipes/vs2008_runtime/meta.yaml @@ -2,6 +2,14 @@ package: name: vs2008_runtime version: "9.0.30729.6161" +source: + fn: vcredist.exe + # Downloads from https://www.microsoft.com/en-us/download/details.aspx?id=26368 + url: https://download.microsoft.com/download/5/D/8/5D8C65CB-C849-4025-8E95-C3966CAFD8AE/vcredist_x86.exe # [win32] + sha256: 6b3e4c51c6c0e5f68c8a72b497445af3dbf976394cbb62aa23569065c28deeb6 # [win32] + url: https://download.microsoft.com/download/5/D/8/5D8C65CB-C849-4025-8E95-C3966CAFD8AE/vcredist_x64.exe # [win64] + sha256: b811f2c047a3e828517c234bd4aa4883e1ec591d88fad21289ae68a6915a6665 # [win64] + build: number: 0 skip: true # [not win]