From 6fefb924136da4814e96525dd6b2d73a523ca5dc Mon Sep 17 00:00:00 2001 From: Wouter Deconinck Date: Tue, 10 Jan 2023 06:25:57 -0600 Subject: cernlib: depends_on freetype, libnsl, libxcrypt, openssl; and patch (#34702) * cernlib: depends_on freetype, libnsl, libxcrypt, openssl; and patch In addition to #34448, cernlib depends on these additional packages. This also applies a patch to the current release in which crypto is specified wbere libcrypt (in libxcrypt) is actually needed. Because the upstream git repository is behind a CERN login, we cannot patch by gitlab URL link. * [@spackbot] updating style on behalf of wdconinc Co-authored-by: wdconinc --- var/spack/repos/builtin/packages/cernlib/package.py | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/var/spack/repos/builtin/packages/cernlib/package.py b/var/spack/repos/builtin/packages/cernlib/package.py index add2a5dacc..fb0078ba3d 100644 --- a/var/spack/repos/builtin/packages/cernlib/package.py +++ b/var/spack/repos/builtin/packages/cernlib/package.py @@ -20,10 +20,19 @@ class Cernlib(CMakePackage): sha256="733d148415ef78012ff81f21922d3bf641be7514b0242348dd0200cf1b003e46", ) + depends_on("freetype") depends_on("motif") + depends_on("libnsl") depends_on("libx11") depends_on("libxaw") depends_on("libxt") + depends_on("libxcrypt") + + depends_on("openssl", when="os=linux") + + @when("@2022.11.08.0-free") + def patch(self): + filter_file("crypto", "crypt", "packlib/CMakeLists.txt") def cmake_args(self): args = ["-DCERNLIB_BUILD_SHARED:BOOL=ON"] -- cgit v1.2.3-70-g09d2