From 2acfe55b746a72088e5aaad31e6ed264857895c6 Mon Sep 17 00:00:00 2001 From: Manuela Kuhn <36827019+manuelakuhn@users.noreply.github.com> Date: Mon, 27 Sep 2021 14:52:23 +0200 Subject: exempi: fix expat dependency (#26221) * exempi: fix expat dependency and fix test with --test=root Co-authored-by: Bernhard Kaindl --- var/spack/repos/builtin/packages/exempi/package.py | 8 ++++++++ 1 file changed, 8 insertions(+) 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)] -- cgit v1.2.3-70-g09d2