aboutsummaryrefslogtreecommitdiff
path: root/gn/packages/file-systems.scm
diff options
context:
space:
mode:
authorEfraim Flashner2020-12-15 17:42:44 +0200
committerEfraim Flashner2020-12-15 17:43:05 +0200
commitd09831c40ad3ba659c22c8604ba595670a546e63 (patch)
tree9bdc2a2181d1b2dd5e004f3ec7aafb0f255f1383 /gn/packages/file-systems.scm
parentb35a5989ce99b819bfe6767d0cf3ee1dc032383b (diff)
downloadguix-bioinformatics-d09831c40ad3ba659c22c8604ba595670a546e63.tar.gz
octopus: Add lizardfs service
Diffstat (limited to 'gn/packages/file-systems.scm')
-rw-r--r--gn/packages/file-systems.scm18
1 files changed, 14 insertions, 4 deletions
diff --git a/gn/packages/file-systems.scm b/gn/packages/file-systems.scm
index 0e874c2..f5fb2fb 100644
--- a/gn/packages/file-systems.scm
+++ b/gn/packages/file-systems.scm
@@ -36,17 +36,27 @@
"-DENABLE_STATIC=NO"
"-DENABLE_VERBOSE_ASCIIDOC=YES"
"-DENABLE_TCMALLOC=NO"
+ ;"-DLIB_SUBDIR=lib" ; no 64 suffix
;; Some directories need to be changed
- "-DRUN_SUBDIR=/var/run/lizardfs"
- "-DDATA_SUBDIR=/var/lib/lizardfs"
+ ;"-DRUN_SUBDIR=/var/run/lizardfs"
+ ;"-DDATA_SUBDIR=/var/lib/lizardfs"
+ ;"-DETC_SUBDIR=/etc/lizardfs"
"-DENABLE_UTILS=YES")
#:tests? #f ; Tests fail to build.
#:phases
(modify-phases %standard-phases
- (add-after 'unpack 'dont-use-lib64
+ (add-after 'unpack 'configure-through-cmakelists.txt
(lambda _
+ ;; For some reason some configure flags don't work.
(substitute* "CMakeLists.txt"
- (("\"64\"") "\"\""))
+ (("\"64\"") "\"\"")
+ (("var/run/mfs") "/var/run/lizardfs")
+ (("var/lib/mfs") "/var/lib/lizardfs")
+ (("etc/mfs") "/etc/lizardfs"))
+ ;; Then adjust the install directories back.
+ (substitute* "src/data/CMakeLists.txt"
+ (("\\$\\{ETC_SUBDIR\\}") "etc/lizardfs")
+ (("\\$\\{DATA_SUBDIR\\}") "var/lib/lizardfs"))
#t))
(add-after 'unpack 'use-system-libraries
(lambda* (#:key inputs #:allow-other-keys)