dev-cpp/azure-identity: Sync with Gentoo

It's from Gentoo commit f62944e5c07133a2d7aec1fc8027936e7a1b5e18.

Signed-off-by: Flatcar Buildbot <buildbot@flatcar-linux.org>
This commit is contained in:
Flatcar Buildbot 2025-10-13 07:06:39 +00:00 committed by Krzesimir Nowak
parent 15fd4aa722
commit f67bd4c7ff
4 changed files with 4 additions and 30 deletions

View File

@ -1,2 +1,2 @@
DIST azure-sdk-for-cpp-11a2a38aa79daf573c2a16353dd9121536ac9fc1.tar.gz 3375477 BLAKE2B ee381975a7464c62b6a2d6a7aeaa52118cf6941a6c91b81eb8e056cc5deef9cd0d23dc7e56f273796fa906a064e9e23acb763762013b9c27837788cc261253ce SHA512 892223ff787bf68dd782e058962120b06f12891383fe26e157d9efd59ecc4d5d216f4fb1df6d46a46a57167ec1c3cfe864757e4e198a3c8a6a721603d7c51695
DIST azure-sdk-for-cpp-6aea93d0410f5bc3e3a58a8d492a3063cac3aced.tar.gz 3360426 BLAKE2B 027729aece30196a607a3bb9d6b12e1f884069526b96773701fe211945426a0175ed94d65ae5df6577dfe871a89cbbcff53ea1c6ab814719385af9c9a821aad5 SHA512 f7abcf97468caa04c841935911490c134f1d860b9ae11f2ba57a2a480b9c63a7277fe2ed1440ae0d3c8d2ba76890bc170f38ee936016f9a4ba9b4989f2b7eb11
DIST azure-sdk-for-cpp-fe5e5ad9e50423ad992648a60151696ed896b7c6.tar.gz 3399411 BLAKE2B dba68b4c673bfa48c3e8bb08d51f4e677e82cdd9a2eb651ec91f62b0a658d22493d5ded51346ee08c43b3da369ab6dbd77dc57396544facf48fe5082d8682312 SHA512 7fe149e37d17e54fb3669f143b7ba16c8d4bde3caf56e132786aa97d7c3d662b753a99d0ed460ca29dfc469776aaf5e0d36df17e419458c4f941c1c5763990dd

View File

@ -13,7 +13,7 @@ SRC_URI="https://github.com/Azure/azure-sdk-for-cpp/archive/${COMMIT}.tar.gz ->
S="${WORKDIR}/${MY_P}/sdk/identity/${PN}"
LICENSE="MIT"
SLOT="0/${PV}"
KEYWORDS="~amd64"
KEYWORDS="amd64"
IUSE="doc"
RESTRICT="test" # Too many online tests.

View File

@ -5,7 +5,7 @@ EAPI=8
inherit cmake
COMMIT="6aea93d0410f5bc3e3a58a8d492a3063cac3aced"
COMMIT="fe5e5ad9e50423ad992648a60151696ed896b7c6"
MY_P="azure-sdk-for-cpp-${COMMIT}"
DESCRIPTION="Azure SDK for C++"
HOMEPAGE="https://azure.github.io/azure-sdk-for-cpp/"
@ -13,7 +13,7 @@ SRC_URI="https://github.com/Azure/azure-sdk-for-cpp/archive/${COMMIT}.tar.gz ->
S="${WORKDIR}/${MY_P}/sdk/identity/${PN}"
LICENSE="MIT"
SLOT="0/${PV}"
KEYWORDS="amd64"
KEYWORDS="~amd64"
IUSE="doc"
RESTRICT="test" # Too many online tests.
@ -30,10 +30,6 @@ BDEPEND="
doc? ( app-text/doxygen )
"
PATCHES=(
"${FILESDIR}"/${PN}-imds-double-slash.patch
)
src_configure() {
local mycmakeargs=(
-DBUILD_DOCUMENTATION=$(usex doc)

View File

@ -1,22 +0,0 @@
From 72f327b2c19afffa9df2ce0ef817c13b3dd75804 Mon Sep 17 00:00:00 2001
From: James Le Cuirot <jlecuirot@microsoft.com>
Date: Wed, 13 Aug 2025 15:52:31 +0100
Subject: [PATCH] Fix IMDS token requests for managed identities
This was broken by a035ee5f9416ef9188533de40b4ab1c37fb7c0af, which
accidentally constructed the IMDS URL with a double slash at the start
of the path. This is not properly routed on the server side, leading to
a 404 error with some very misleading XML.
Signed-off-by: James Le Cuirot <jlecuirot@microsoft.com>
--- a/src/managed_identity_source.cpp
+++ b/src/managed_identity_source.cpp
@@ -527,7 +527,7 @@ std::unique_ptr<ManagedIdentitySource> ImdsManagedIdentitySource::Create(
imdsUrl = Core::Url{imdsEndpointEnvVarValue};
}
- imdsUrl.SetPath("/metadata/identity/oauth2/token");
+ imdsUrl.SetPath("metadata/identity/oauth2/token");
return std::unique_ptr<ManagedIdentitySource>(
new ImdsManagedIdentitySource(clientId, objectId, resourceId, imdsUrl, options));