diff options
author | Michael Mair-Keimberger <mmk@levelnine.at> | 2023-08-28 21:45:44 +0200 |
---|---|---|
committer | Conrad Kostecki <conikost@gentoo.org> | 2023-08-29 09:48:30 +0200 |
commit | b5fac48036eaaf2af6b7b68d98d43860cc50b67d (patch) | |
tree | 947eefd80416c046aa5696ff69ad8aa3f62e6cdb /app-antivirus | |
parent | net-libs/rpcsvc-proto: remove unused patch(es) (diff) | |
download | gentoo-b5fac48036eaaf2af6b7b68d98d43860cc50b67d.tar.gz gentoo-b5fac48036eaaf2af6b7b68d98d43860cc50b67d.tar.bz2 gentoo-b5fac48036eaaf2af6b7b68d98d43860cc50b67d.zip |
app-antivirus/clamav: remove unused patch
Signed-off-by: Michael Mair-Keimberger <mmk@levelnine.at>
Closes: https://github.com/gentoo/gentoo/pull/32497
Signed-off-by: Conrad Kostecki <conikost@gentoo.org>
Diffstat (limited to 'app-antivirus')
-rw-r--r-- | app-antivirus/clamav/files/clamav-1.0.1-select-python.patch | 44 |
1 files changed, 0 insertions, 44 deletions
diff --git a/app-antivirus/clamav/files/clamav-1.0.1-select-python.patch b/app-antivirus/clamav/files/clamav-1.0.1-select-python.patch deleted file mode 100644 index 70bedc029399..000000000000 --- a/app-antivirus/clamav/files/clamav-1.0.1-select-python.patch +++ /dev/null @@ -1,44 +0,0 @@ -This patch enables us to tell CMake to find a particular python -impl on a multi-impl system. - ---- a/CMakeLists.txt -+++ b/CMakeLists.txt -@@ -223,20 +223,26 @@ if(ENABLE_TESTS) - find_package(Libcheck REQUIRED) - - # Used to generate the test files and for the application feature test framework -- find_package(Python3 REQUIRED) -+ # In distros that support multiple implementations of python it is helpful to specify the impl to use -+ if(DEFINED PYTHON_FIND_VERSION) -+ find_package(Python3 EXACT ${PYTHON_FIND_VERSION} REQUIRED) -+ else() -+ find_package(Python3 REQUIRED) -+ # Not requesting a specific python impl; try using pytest from the PATH -+ execute_process( -+ COMMAND pytest --version -+ RESULT_VARIABLE PYTEST_EXIT_CODE -+ ERROR_QUIET OUTPUT_QUIET -+ ) - -- # First try using pytest from the PATH -- execute_process( -- COMMAND pytest --version -- RESULT_VARIABLE PYTEST_EXIT_CODE -- ERROR_QUIET OUTPUT_QUIET -- ) -+ if(${PYTEST_EXIT_CODE} EQUAL 0) -+ # pytest found in the path. -+ set(PythonTest_COMMAND "pytest;-v") -+ endif() -+ endif() - -- if(${PYTEST_EXIT_CODE} EQUAL 0) -- # pytest found in the path. -- set(PythonTest_COMMAND "pytest;-v") -- else() -- # Not in the path, try using: python3 -m pytest -+ if("${PythonTest_COMMAND}" STREQUAL "") -+ # Not in the path or specified a python impl; try using: python3 -m pytest - execute_process( - COMMAND ${Python3_EXECUTABLE} -m pytest --version - RESULT_VARIABLE PYTEST_MODULE_EXIT_CODE |