Patch Tuesday for September 2024 (#40921)

This commit is contained in:
Billy O'Neal 2024-09-16 17:40:40 -07:00 committed by GitHub
parent b6fbec7350
commit efb544d5a5
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
17 changed files with 66 additions and 15 deletions

View File

@ -9,6 +9,7 @@ vcpkg_from_github(
fix_narrowing.patch
fix-uwp.patch
fix-clang-dllimport.patch # workaround for https://github.com/microsoft/cpprestsdk/issues/1710
silence-stdext-checked-array-iterators-warning.patch
)
set(OPTIONS)

View File

@ -0,0 +1,12 @@
diff --git a/Release/CMakeLists.txt b/Release/CMakeLists.txt
index 3d6df65..9ff6d66 100644
--- a/Release/CMakeLists.txt
+++ b/Release/CMakeLists.txt
@@ -178,6 +178,7 @@ elseif(CMAKE_CXX_COMPILER_ID MATCHES "MSVC")
set(WARNINGS)
set(CMAKE_STATIC_LINKER_FLAGS "${CMAKE_STATIC_LINKER_FLAGS} /ignore:4264")
add_compile_options(/bigobj)
+ add_compile_options(/D_SILENCE_STDEXT_ARR_ITERS_DEPRECATION_WARNING)
set(CMAKE_CXX_FLAGS_DEBUG "${CMAKE_CXX_FLAGS_DEBUG} /MP")
set(CMAKE_CXX_FLAGS_MINSIZEREL "${CMAKE_CXX_FLAGS_MINSIZEREL} /MP")
set(CMAKE_CXX_FLAGS_RELEASE "${CMAKE_CXX_FLAGS_RELEASE} /MP")

View File

@ -1,7 +1,7 @@
{
"name": "cpprestsdk",
"version": "2.10.19",
"port-version": 1,
"port-version": 2,
"description": [
"C++11 JSON, REST, and OAuth library",
"The C++ REST SDK is a Microsoft project for cloud-based client-server communication in native code using a modern asynchronous C++ API design. This project aims to help C++ developers connect to and interact with services."

View File

@ -1,3 +1,9 @@
vcpkg_download_distfile(MSVC_ARM64_INTRINSICS_FIX
URLS https://github.com/ngtcp2/nghttp3/commit/2c4a3816bbeab45e7c9092aecc915b54a3c88ccb.patch?full_index=1
SHA512 ccdd14a71bfa51f3480252faf2a4664544e1e11f3c5b6be9bfe577d46f0fc6c22e22f86b721987d6d1ca17d96ba2e55e32b0d01a6c291ab9ba2fc2279275aeae
FILENAME nghttp3-msvc-arm64-intrinsicis-2c4a3816bbeab45e7c9092aecc915b54a3c88ccb.patch.patch
)
vcpkg_from_github(
OUT_SOURCE_PATH SOURCE_PATH
REPO ngtcp2/nghttp3
@ -6,6 +12,7 @@ vcpkg_from_github(
HEAD_REF main
PATCHES
fix-include-usage.patch
"${MSVC_ARM64_INTRINSICS_FIX}"
)
vcpkg_from_github(

View File

@ -1,6 +1,7 @@
{
"name": "nghttp3",
"version": "1.5.0",
"port-version": 1,
"description": "Implementation of RFC 9114 HTTP/3 mapping over QUIC and RFC 9204 QPACK in C",
"homepage": "https://github.com/ngtcp2/nghttp3",
"license": "MIT",

View File

@ -0,0 +1,13 @@
diff --git a/lib/ngtcp2_ringbuf.c b/lib/ngtcp2_ringbuf.c
index c381c23..73d9230 100644
--- a/lib/ngtcp2_ringbuf.c
+++ b/lib/ngtcp2_ringbuf.c
@@ -32,7 +32,7 @@
#include "ngtcp2_macro.h"
#if defined(_MSC_VER) && !defined(__clang__) && \
- (defined(_M_ARM) || defined(_M_ARM64))
+ (defined(_M_ARM) || (defined(_M_ARM64) && _MSC_VER < 1941))
static unsigned int __popcnt(unsigned int x) {
unsigned int c = 0;
for (; x; ++c) {

View File

@ -5,7 +5,8 @@ vcpkg_from_github(
SHA512 891a7339122f60b1796bb24d29ab75d0316717c2a64a45bade805242b70cb8713abc7642cdf0ec646ab9e80085d65117f0ea9b1e671d76bcd54038b0ea9bc868
HEAD_REF main
PATCHES
openssl_required.patch
openssl_required.patch
popcnt_intrinsic.patch # https://github.com/ngtcp2/ngtcp2/pull/1351
)
string(COMPARE EQUAL "${VCPKG_LIBRARY_LINKAGE}" "static" ENABLE_STATIC_LIB)
@ -13,9 +14,9 @@ string(COMPARE EQUAL "${VCPKG_LIBRARY_LINKAGE}" "dynamic" ENABLE_SHARED_LIB)
vcpkg_check_features(OUT_FEATURE_OPTIONS FEATURE_OPTIONS
FEATURES
wolfssl ENABLE_WOLFSSL
gnutls ENABLE_GNUTLS
libressl ENABLE_OPENSSL
wolfssl ENABLE_WOLFSSL
gnutls ENABLE_GNUTLS
libressl ENABLE_OPENSSL
)
vcpkg_cmake_configure(

View File

@ -1,6 +1,7 @@
{
"name": "ngtcp2",
"version": "1.7.0",
"port-version": 1,
"description": "ngtcp2 project is an effort to implement RFC9000 QUIC protocol.",
"homepage": "https://github.com/ngtcp2/ngtcp2",
"license": "MIT",

View File

@ -6,7 +6,7 @@ jobs:
- job: x64_windows
pool:
name: vcpkg-testing-msvc
demands: ImageVersionOverride -equals 2024.08.28
demands: ImageVersionOverride -equals 2024.09.11
workspace:
clean: resources
timeoutInMinutes: 2880 # 2 days

View File

@ -20,7 +20,7 @@ jobs:
condition: and(succeeded(), contains('^${{ replace(parameters.jobName, '_', '-') }}$', '${{ parameters.tripletPattern }}'))
pool:
name: PrWin-1ES
demands: ImageVersionOverride -equals 2024.08.28
demands: ImageVersionOverride -equals 2024.09.11
workspace:
clean: resources
timeoutInMinutes: 2880 # 2 days

View File

@ -262,7 +262,7 @@ New-AzGalleryImageVersion `
-GalleryImageDefinitionName 'PrWinWus3-TrustedLaunch' `
-Name $GalleryImageVersion `
-Location $Location `
-SourceImageId $VMCreated.ID `
-SourceImageVMId $VMCreated.ID `
-ReplicaCount 1 `
-StorageAccountType 'Premium_LRS' `
-PublishingProfileExcludeFromLatest `

View File

@ -9,10 +9,10 @@ if (Test-Path "$PSScriptRoot/utility-prefix.ps1") {
[string]$AzCliUrl
if ([string]::IsNullOrEmpty($SasToken)) {
$AzCliUrl = 'https://azcliprod.blob.core.windows.net/msi/azure-cli-2.62.0-x64.msi'
$AzCliUrl = 'https://azcliprod.blob.core.windows.net/msi/azure-cli-2.64.0-x64.msi'
} else {
$SasToken = $SasToken.Replace('"', '')
$AzCliUrl = "https://vcpkgimageminting.blob.core.windows.net/assets/azure-cli-2.62.0-x64.msi?$SasToken"
$AzCliUrl = "https://vcpkgimageminting.blob.core.windows.net/assets/azure-cli-2.64.0-x64.msi?$SasToken"
}
DownloadAndInstall -Url $AzCliUrl -Name 'Azure CLI' -Args @('/quiet', '/norestart')

View File

@ -8,8 +8,8 @@ if (Test-Path "$PSScriptRoot/utility-prefix.ps1") {
}
# See https://learn.microsoft.com/en-us/visualstudio/releases/2022/release-history
# 17.8.12
$VisualStudioBootstrapperUrl = 'https://download.visualstudio.microsoft.com/download/pr/a762cfe2-a734-454f-b7ed-26b22a4ea98d/d5e65f8ed2070bd56a564f88ce1f67eec82347170d4176b5d94c5713cbd4b9a5/vs_Enterprise.exe'
# 17.11.3
$VisualStudioBootstrapperUrl = 'https://download.visualstudio.microsoft.com/download/pr/030a0062-e1e5-4a6c-9385-a6f146dbd9db/85d31bd580a0b36936164315bd423d22af90f90d180a540ef4245522e0bcd085/vs_Enterprise.exe'
$Workloads = @(
'Microsoft.VisualStudio.Workload.NativeDesktop',
'Microsoft.VisualStudio.Workload.Universal',

View File

@ -1974,7 +1974,7 @@
},
"cpprestsdk": {
"baseline": "2.10.19",
"port-version": 1
"port-version": 2
},
"cppslippi": {
"baseline": "1.4.3.16",
@ -6278,7 +6278,7 @@
},
"nghttp3": {
"baseline": "1.5.0",
"port-version": 0
"port-version": 1
},
"ngspice": {
"baseline": "41",
@ -6286,7 +6286,7 @@
},
"ngtcp2": {
"baseline": "1.7.0",
"port-version": 0
"port-version": 1
},
"nifly": {
"baseline": "1.0.0",

View File

@ -1,5 +1,10 @@
{
"versions": [
{
"git-tree": "fe8937b292f7e41d1a5d64a89a0176537a0911c0",
"version": "2.10.19",
"port-version": 2
},
{
"git-tree": "a10a640d968ca2ac8f1d0df0836e3d23a7fb2199",
"version": "2.10.19",

View File

@ -1,5 +1,10 @@
{
"versions": [
{
"git-tree": "266af41d2ae35c2d64ccee22c99a4fcc57f4fb3f",
"version": "1.5.0",
"port-version": 1
},
{
"git-tree": "35b52ed7827b7da3b3dd1aa78a41aad9c3c13d59",
"version": "1.5.0",

View File

@ -1,5 +1,10 @@
{
"versions": [
{
"git-tree": "b0694dae4b89a7212beb478571821e45c3715335",
"version": "1.7.0",
"port-version": 1
},
{
"git-tree": "909f14f6bf7e0e65f72114fed6c3deb990755ba6",
"version": "1.7.0",