diff --git a/var/spack/repos/builtin/packages/rocm-smi-lib/disable_pdf_generation_with_doxygen_and_latex.patch b/var/spack/repos/builtin/packages/rocm-smi-lib/disable_pdf_generation_with_doxygen_and_latex.patch new file mode 100644 index 0000000000..d3811be8a2 --- /dev/null +++ b/var/spack/repos/builtin/packages/rocm-smi-lib/disable_pdf_generation_with_doxygen_and_latex.patch @@ -0,0 +1,15 @@ +diff --git a/rocm_smi/CMakeLists.txt b/rocm_smi/CMakeLists.txt +index 90cad13..02ea897 100755 +--- a/rocm_smi/CMakeLists.txt ++++ b/rocm_smi/CMakeLists.txt +@@ -140,8 +140,8 @@ install(FILES ${CMAKE_CURRENT_BINARY_DIR}/bindings_link + + + # Generate Doxygen documentation +-find_package(Doxygen) +-find_package(LATEX COMPONENTS PDFLATEX) ++#find_package(Doxygen) ++#find_package(LATEX COMPONENTS PDFLATEX) + + if (DOXYGEN_FOUND AND LATEX_FOUND) + set (RSMI_MANUAL_NAME "ROCm_SMI_Manual") diff --git a/var/spack/repos/builtin/packages/rocm-smi-lib/package.py b/var/spack/repos/builtin/packages/rocm-smi-lib/package.py index f371fc3ae7..8a87576bb3 100644 --- a/var/spack/repos/builtin/packages/rocm-smi-lib/package.py +++ b/var/spack/repos/builtin/packages/rocm-smi-lib/package.py @@ -40,6 +40,8 @@ class RocmSmiLib(CMakePackage): depends_on('cmake@3:', type='build') depends_on('python@3:', type=('build', 'run'), when='@3.9.0:') + patch('disable_pdf_generation_with_doxygen_and_latex.patch', when='@4.5.2:') + def cmake_args(self): return [ self.define_from_variant('BUILD_SHARED_LIBS', 'shared')