sys-cluster/cinder: don't use vendored urllib3

Closes: https://bugs.gentoo.org/840026
Signed-off-by: Alessandro Barbieri <lssndrbarbieri@gmail.com>
This commit is contained in:
Alessandro Barbieri
2022-04-23 02:46:10 +02:00
parent beb69911d9
commit d00ac2f9d8
2 changed files with 13 additions and 0 deletions

View File

@@ -87,6 +87,7 @@ RDEPEND="
>=dev-python/boto3-1.16.51[${PYTHON_USEDEP}]
>=dev-python/sqlalchemy-1.4.23[${PYTHON_USEDEP}]
dev-python/urllib3[${PYTHON_USEDEP}]
acct-user/cinder
acct-group/cinder
@@ -109,6 +110,7 @@ BDEPEND="
"
RESTRICT="!test? ( test )"
PATCHES=( "${FILESDIR}/${P}-no-vendored-urllib.patch" )
pkg_pretend() {
linux-info_pkg_setup

View File

@@ -0,0 +1,11 @@
--- a/cinder/backup/drivers/s3.py
+++ b/cinder/backup/drivers/s3.py
@@ -74,7 +74,7 @@
import boto3
from botocore.config import Config
from botocore import exceptions as boto_exc
-from botocore.vendored.requests.packages.urllib3 import exceptions as \
+from urllib3 import exceptions as \
urrlib_exc
from oslo_config import cfg
from oslo_log import log as logging