summaryrefslogtreecommitdiff
path: root/var
diff options
context:
space:
mode:
authoriarspider <iarspider@gmail.com>2021-02-01 19:23:56 +0100
committerGitHub <noreply@github.com>2021-02-01 10:23:56 -0800
commit586ff05af1000a9a7455870dae8fd265a71a8fb9 (patch)
treeeedb87e9ed6886aecfc95257ea5109696d21efd1 /var
parent5add6c4e03afa2c6244ac7341c16cf86536cbd83 (diff)
downloadspack-586ff05af1000a9a7455870dae8fd265a71a8fb9.tar.gz
spack-586ff05af1000a9a7455870dae8fd265a71a8fb9.tar.bz2
spack-586ff05af1000a9a7455870dae8fd265a71a8fb9.tar.xz
spack-586ff05af1000a9a7455870dae8fd265a71a8fb9.zip
New package: frontier-client (#21405)
Diffstat (limited to 'var')
-rw-r--r--var/spack/repos/builtin/packages/frontier-client/frontier-client.patch13
-rw-r--r--var/spack/repos/builtin/packages/frontier-client/package.py38
2 files changed, 51 insertions, 0 deletions
diff --git a/var/spack/repos/builtin/packages/frontier-client/frontier-client.patch b/var/spack/repos/builtin/packages/frontier-client/frontier-client.patch
new file mode 100644
index 0000000000..cf9888ed08
--- /dev/null
+++ b/var/spack/repos/builtin/packages/frontier-client/frontier-client.patch
@@ -0,0 +1,13 @@
+--- client/frontier_config.c 2020-07-28 09:20:59.456311478 +0200
++++ client/frontier_config.c 2020-07-28 09:26:49.147996572 +0200
+@@ -47,8 +47,8 @@
+
+ #define ENV_BUF_SIZE 1024
+
+-void *(*frontier_mem_alloc)(size_t size);
+-void (*frontier_mem_free)(void *ptr);
++extern void *(*frontier_mem_alloc)(size_t size);
++extern void (*frontier_mem_free)(void *ptr);
+
+ int frontier_pacparser_init(void);
+
diff --git a/var/spack/repos/builtin/packages/frontier-client/package.py b/var/spack/repos/builtin/packages/frontier-client/package.py
new file mode 100644
index 0000000000..283d176822
--- /dev/null
+++ b/var/spack/repos/builtin/packages/frontier-client/package.py
@@ -0,0 +1,38 @@
+# Copyright 2013-2021 Lawrence Livermore National Security, LLC and other
+# Spack Project Developers. See the top-level COPYRIGHT file for details.
+#
+# SPDX-License-Identifier: (Apache-2.0 OR MIT)
+
+from spack import *
+
+
+class FrontierClient(MakefilePackage):
+ """The Frontier distributed database caching system distributes data from
+ data sources to many client systems around the world. The name comes
+ from "N Tier" where N is any number and tiers are layers of locations
+ of distribution."""
+
+ homepage = "http://frontier.cern.ch/"
+ url = "https://github.com/fermitools/frontier/archive/v2_9_1.tar.gz"
+
+ version('2_9_1', sha256='d21370fbe142807966e3c2218ce361ea3bb573498e1b8387b801fb6641c3ed22')
+ version('2_9_0', sha256='e58dba3f177c5b74609f244101a22a5c14d42bf019013fe2dba72c09f819c62a')
+ version('2_8_21', sha256='7df9ba61c3e1778aca75c5da6e45ee4d00b5c061d3f7162208e2fbd2ec266a9e')
+ version('2_8_20', sha256='81b0f45762d96a33f156e0238631a60eef910a176644e95c6c19a36824bef7e1')
+
+ depends_on('pacparser')
+ depends_on('expat')
+
+ patch('frontier-client.patch', level=0)
+
+ def edit(self, spec, prefix):
+ makefile = FileFilter('client/Makefile')
+ makefile.filter('EXPAT_DIR}/lib', 'EXPAT_DIR}/lib64')
+
+ def build(self, spec, prefix):
+ with working_dir('client'):
+ make('-j1', 'dist', 'PACPARSER_DIR=' + self.spec['pacparser'].prefix,
+ 'EXPAT_DIR=' + self.spec['expat'].prefix)
+
+ def install(self, spec, prefix):
+ install_tree(join_path('client', 'dist'), prefix)