From 5fb647d17cdcc82e71f8c205c35f2433ab60f303 Mon Sep 17 00:00:00 2001 From: Glenn Johnson Date: Mon, 18 Jan 2021 12:57:15 -0600 Subject: [PATCH] The latest version of imagemagick needs libtool linking (#20969) Imagemagick-7.0.8 needs to link against libltdl. Otherwise, the build will fail with: ``` 2 errors found in build log: 503 checking for libltdl... 504 checking ltdl.h usability... no 505 checking ltdl.h presence... no 506 checking for ltdl.h... no 507 checking for lt_dlinit in -lltdl... no 508 checking if libltdl package is complete... no >> 509 configure: error: in `/tmp/gpjohnsn/spack-stage/spack-stage-imagemagick-7.0.8-7-4y44gaklhhciiwjzhfpxjfwdj5q ltjp3/spack-src': >> 510 configure: error: libltdl is required for modules and OpenCL builds 511 See `config.log' for more details ``` --- var/spack/repos/builtin/packages/imagemagick/package.py | 1 + 1 file changed, 1 insertion(+) diff --git a/var/spack/repos/builtin/packages/imagemagick/package.py b/var/spack/repos/builtin/packages/imagemagick/package.py index e3dea86425..38208f42de 100644 --- a/var/spack/repos/builtin/packages/imagemagick/package.py +++ b/var/spack/repos/builtin/packages/imagemagick/package.py @@ -21,6 +21,7 @@ class Imagemagick(AutotoolsPackage): depends_on('jpeg') depends_on('pango') depends_on('libtool', type='build') + depends_on('libtool', when='@7.0.8:', type=('build', 'link')) depends_on('libpng') depends_on('freetype') depends_on('fontconfig')