diff options
author | Manuela Kuhn <36827019+manuelakuhn@users.noreply.github.com> | 2021-09-27 14:52:23 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-09-27 14:52:23 +0200 |
commit | 2acfe55b746a72088e5aaad31e6ed264857895c6 (patch) | |
tree | 88a4bbc8f41f41ae9e09af3769436957cd4c224b /var | |
parent | 87103533368f0f1dd087bf9d24cf81e65146a4eb (diff) | |
download | spack-2acfe55b746a72088e5aaad31e6ed264857895c6.tar.gz spack-2acfe55b746a72088e5aaad31e6ed264857895c6.tar.bz2 spack-2acfe55b746a72088e5aaad31e6ed264857895c6.tar.xz spack-2acfe55b746a72088e5aaad31e6ed264857895c6.zip |
exempi: fix expat dependency (#26221)
* exempi: fix expat dependency and fix test with --test=root
Co-authored-by: Bernhard Kaindl <bernhardkaindl7@gmail.com>
Diffstat (limited to 'var')
-rw-r--r-- | var/spack/repos/builtin/packages/exempi/package.py | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/var/spack/repos/builtin/packages/exempi/package.py b/var/spack/repos/builtin/packages/exempi/package.py index e9b5ecfa1b..878f9f3c2b 100644 --- a/var/spack/repos/builtin/packages/exempi/package.py +++ b/var/spack/repos/builtin/packages/exempi/package.py @@ -23,9 +23,17 @@ class Exempi(AutotoolsPackage): depends_on('iconv') depends_on('boost@1.48.0:') depends_on('pkgconfig') + depends_on('expat') conflicts('%gcc@:4.5') + def patch(self): + # fix make check: Fix undefined reference to `boost::unit_test::unit_test_main`: + # BOOST_TEST_DYN_LINK only works with shlib and when boost is linked after src: + # https://bugs.launchpad.net/widelands/+bug/662908 + # https://github.com/bincrafters/community/issues/127 + filter_file('#define BOOST_TEST_DYN_LINK', '', 'exempi/tests/test-adobesdk.cpp') + def configure_args(self): args = ['--with-boost={0}'.format(self.spec['boost'].prefix)] |