summaryrefslogtreecommitdiff
path: root/var
diff options
context:
space:
mode:
authornoguchi-k <55966120+noguchi-k@users.noreply.github.com>2020-02-19 14:48:46 +0900
committerGitHub <noreply@github.com>2020-02-18 23:48:46 -0600
commit4c215d1fedea02101bcadeef3678d6d3c536929b (patch)
tree91bfff4688797472b75396159239a68ec1458c34 /var
parenta92543803c3f907151c83bb99e8d2a1a0adfd941 (diff)
downloadspack-4c215d1fedea02101bcadeef3678d6d3c536929b.tar.gz
spack-4c215d1fedea02101bcadeef3678d6d3c536929b.tar.bz2
spack-4c215d1fedea02101bcadeef3678d6d3c536929b.tar.xz
spack-4c215d1fedea02101bcadeef3678d6d3c536929b.zip
modern-wheel: add virtual destructor to BaseMultiParms class (#14899)
* modern-wheel: add virtual destructor * modern-wheel: add maintainers
Diffstat (limited to 'var')
-rw-r--r--var/spack/repos/builtin/packages/modern-wheel/add_virtual_destructor.patch17
-rw-r--r--var/spack/repos/builtin/packages/modern-wheel/package.py4
2 files changed, 21 insertions, 0 deletions
diff --git a/var/spack/repos/builtin/packages/modern-wheel/add_virtual_destructor.patch b/var/spack/repos/builtin/packages/modern-wheel/add_virtual_destructor.patch
new file mode 100644
index 0000000000..84e12a8a10
--- /dev/null
+++ b/var/spack/repos/builtin/packages/modern-wheel/add_virtual_destructor.patch
@@ -0,0 +1,17 @@
+--- spack-src/test/prototype_factory_test.cpp.org 2020-02-07 11:17:24.321582233 +0900
++++ spack-src/test/prototype_factory_test.cpp 2020-02-07 11:18:25.598262173 +0900
+@@ -58,6 +58,7 @@
+ virtual clone_type clone(int a) = 0;
+ virtual clone_type clone(int a, int b) = 0;
+ virtual int get() = 0;
++ virtual ~BaseMultiParms() {}
+ };
+
+ class DerivedSum : public BaseMultiParms {
+@@ -121,4 +122,4 @@
+ auto objb = factory.create(0, 3, 6);
+ BOOST_CHECK_EQUAL(objb->get(), 9);
+ }
+-BOOST_AUTO_TEST_SUITE_END()
+\ No newline at end of file
++BOOST_AUTO_TEST_SUITE_END()
diff --git a/var/spack/repos/builtin/packages/modern-wheel/package.py b/var/spack/repos/builtin/packages/modern-wheel/package.py
index e6c76bdc47..9fae68cd0d 100644
--- a/var/spack/repos/builtin/packages/modern-wheel/package.py
+++ b/var/spack/repos/builtin/packages/modern-wheel/package.py
@@ -14,6 +14,7 @@ class ModernWheel(CMakePackage):
homepage = "https://github.com/alalazo/modern_wheel"
url = "https://github.com/alalazo/modern_wheel/archive/1.2.tar.gz"
+ maintainers = ['alalazo']
version('1.2', sha256='48612f698d7159f0eb10d93ddc3e2682b06a54d3a836ff227636be3261aed15e')
version('1.1', sha256='d8ba4891257b96108e9b9406a556f8ced3b71ce85c3fcdca6bfd9cc37bf010a3')
@@ -35,6 +36,9 @@ class ModernWheel(CMakePackage):
depends_on('boost +system +filesystem', when='@:1.1.999')
depends_on('boost@:1.65.999 +system +filesystem', when='@1.2:')
+ # add virtual destructor to BaseMultiParms class.
+ patch('add_virtual_destructor.patch')
+
def cmake_args(self):
spec = self.spec
return [