commit:     27b7f7d3630743c707cfe755865c1e5916f0b0ca
Author:     Sv. Lockal <lockalsash <AT> gmail <DOT> com>
AuthorDate: Mon Oct 27 19:25:30 2025 +0000
Commit:     Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Tue Oct 28 09:17:02 2025 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=27b7f7d3

sci-libs/hipBLASLt: fix network-isolated builds with new pip

Without --no-build-isolation "pip install" attempts to reinstall
setuptools from pypi, causing "Network is unreachable" error.

Closes: https://bugs.gentoo.org/965169
Closes: https://bugs.gentoo.org/965154
Signed-off-by: Sv. Lockal <lockalsash <AT> gmail.com>
Part-of: https://github.com/gentoo/gentoo/pull/44356
Closes: https://github.com/gentoo/gentoo/pull/44356
Signed-off-by: Sam James <sam <AT> gentoo.org>

 .../hipBLASLt/files/hipBLASLt-7.0.1-fix-setuptools.patch     | 12 ++++++++++++
 sci-libs/hipBLASLt/hipBLASLt-7.0.2.ebuild                    |  5 ++++-
 2 files changed, 16 insertions(+), 1 deletion(-)

diff --git a/sci-libs/hipBLASLt/files/hipBLASLt-7.0.1-fix-setuptools.patch 
b/sci-libs/hipBLASLt/files/hipBLASLt-7.0.1-fix-setuptools.patch
new file mode 100644
index 000000000000..5be2c450ab7a
--- /dev/null
+++ b/sci-libs/hipBLASLt/files/hipBLASLt-7.0.1-fix-setuptools.patch
@@ -0,0 +1,12 @@
+Without --no-build-isolation "pip install" attempts to reinstall setuptools 
from pypi
+--- a/cmake/virtualenv.cmake
++++ b/cmake/virtualenv.cmake
+@@ -28,7 +28,7 @@ endfunction()
+ function(virtualenv_install)
+     virtualenv_create()
+     execute_process(
+-      COMMAND ${VIRTUALENV_BIN_DIR}/${VIRTUALENV_PYTHON_EXENAME} -m pip 
install ${ARGN}
++      COMMAND ${VIRTUALENV_BIN_DIR}/${VIRTUALENV_PYTHON_EXENAME} -m pip 
install --no-build-isolation ${ARGN}
+       COMMAND_ECHO STDOUT
+       RESULT_VARIABLE return_code
+       ERROR_VARIABLE error_message

diff --git a/sci-libs/hipBLASLt/hipBLASLt-7.0.2.ebuild 
b/sci-libs/hipBLASLt/hipBLASLt-7.0.2.ebuild
index dc4f49547e09..aaf7ce38c043 100644
--- a/sci-libs/hipBLASLt/hipBLASLt-7.0.2.ebuild
+++ b/sci-libs/hipBLASLt/hipBLASLt-7.0.2.ebuild
@@ -47,6 +47,7 @@ BDEPEND="
                dev-python/pyyaml[\${PYTHON_USEDEP}]
                dev-python/joblib[\${PYTHON_USEDEP}]
                dev-python/nanobind[\${PYTHON_USEDEP}]
+               dev-python/setuptools[\${PYTHON_USEDEP}]
        ")
        $(llvm_gen_dep "llvm-core/clang:\${LLVM_SLOT}")
        test? (
@@ -69,13 +70,15 @@ PATCHES=(
        "${FILESDIR}"/${PN}-6.4.1-gentoopath.patch
        "${FILESDIR}"/${PN}-7.0.1-system-nanobind.patch
        "${FILESDIR}"/${PN}-7.0.1-no-arch.patch
+       "${FILESDIR}"/${PN}-7.0.1-fix-setuptools.patch
 )
 
 python_check_deps() {
        python_has_version "dev-python/msgpack[${PYTHON_USEDEP}]" &&
        python_has_version "dev-python/pyyaml[${PYTHON_USEDEP}]" &&
        python_has_version "dev-python/joblib[${PYTHON_USEDEP}]" &&
-       python_has_version "dev-python/nanobind[${PYTHON_USEDEP}]"
+       python_has_version "dev-python/nanobind[${PYTHON_USEDEP}]" &&
+       python_has_version "dev-python/setuptools[${PYTHON_USEDEP}]"
 }
 
 pkg_setup() {

Reply via email to