summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGeorgy Yakovlev <gyakovlev@gentoo.org>2021-10-18 10:57:44 -0700
committerGeorgy Yakovlev <gyakovlev@gentoo.org>2021-10-18 10:58:13 -0700
commit87d7930b379117cd4c95846276ac7026fcd94d08 (patch)
tree0fdd2cf024d346d893f2224ca563d673fc77c387 /dev-util/sccache
parentwww-plugins/chrome-binary-plugins: automated update (95.0.4638.54_beta) (diff)
downloadgentoo-87d7930b379117cd4c95846276ac7026fcd94d08.tar.gz
gentoo-87d7930b379117cd4c95846276ac7026fcd94d08.tar.bz2
gentoo-87d7930b379117cd4c95846276ac7026fcd94d08.zip
dev-util/sccache: fix build with USE=azure
Bug: https://bugs.gentoo.org/808621 Signed-off-by: Georgy Yakovlev <gyakovlev@gentoo.org>
Diffstat (limited to 'dev-util/sccache')
-rw-r--r--dev-util/sccache/files/reqwest-azure.patch11
-rw-r--r--dev-util/sccache/sccache-0.2.15.ebuild2
2 files changed, 13 insertions, 0 deletions
diff --git a/dev-util/sccache/files/reqwest-azure.patch b/dev-util/sccache/files/reqwest-azure.patch
new file mode 100644
index 000000000000..70b4b9d1252a
--- /dev/null
+++ b/dev-util/sccache/files/reqwest-azure.patch
@@ -0,0 +1,11 @@
+--- a/Cargo.toml 2021-01-12 14:25:51.000000000 -0800
++++ b/Cargo.toml 2021-10-18 10:52:26.206057993 -0700
+@@ -122,7 +122,7 @@
+ [features]
+ default = ["all"]
+ all = ["dist-client", "redis", "s3", "memcached", "gcs", "azure"]
+-azure = ["chrono", "hyper", "hyperx", "url", "hmac", "md-5", "sha2"]
++azure = ["chrono", "hyper", "hyperx", "reqwest", "url", "hmac", "md-5", "sha2"]
+ s3 = ["chrono", "hyper", "hyperx", "reqwest", "simple-s3", "hmac", "sha-1"]
+ simple-s3 = []
+ gcs = ["chrono", "hyper", "hyperx", "percent-encoding", "reqwest", "ring", "untrusted", "url"]
diff --git a/dev-util/sccache/sccache-0.2.15.ebuild b/dev-util/sccache/sccache-0.2.15.ebuild
index 2716995b2bea..b1e5c6f04f76 100644
--- a/dev-util/sccache/sccache-0.2.15.ebuild
+++ b/dev-util/sccache/sccache-0.2.15.ebuild
@@ -421,6 +421,8 @@ RDEPEND="${DEPEND}
QA_FLAGS_IGNORED="usr/bin/sccache*"
+PATCHES=( "${FILESDIR}/reqwest-azure.patch" )
+
src_unpack() {
if [[ "${PV}" == *9999* ]]; then
git-r3_src_unpack