diff options
author | Teodor Nikolov <teodor.nikolov22@gmail.com> | 2022-02-11 21:47:50 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-02-11 13:47:50 -0700 |
commit | 7ec9958b485390825fc2756d88dab7cf77b17314 (patch) | |
tree | 9420a3ab03add3590cd6ce9538e0251003ab5728 | |
parent | 853200c42d6d72057341cd68b092e8fd460a090a (diff) | |
download | spack-7ec9958b485390825fc2756d88dab7cf77b17314.tar.gz spack-7ec9958b485390825fc2756d88dab7cf77b17314.tar.bz2 spack-7ec9958b485390825fc2756d88dab7cf77b17314.tar.xz spack-7ec9958b485390825fc2756d88dab7cf77b17314.zip |
[rocm-smi-lib] Disable pdf generation with a patch (#28842)
- Installation often hangs building the documentation. This happens when
doxygen and latex are found. To avoid the issue, comment-out that part
of the code until an explicit cmake variable to disable documentation
generation is available.
-rw-r--r-- | var/spack/repos/builtin/packages/rocm-smi-lib/disable_pdf_generation_with_doxygen_and_latex.patch | 15 | ||||
-rw-r--r-- | var/spack/repos/builtin/packages/rocm-smi-lib/package.py | 2 |
2 files changed, 17 insertions, 0 deletions
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') |