summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndreas Enge <andreas@enge.fr>2025-09-14 18:40:33 +0200
committerAndreas Enge <andreas@enge.fr>2025-09-14 18:40:33 +0200
commit55af1ceb7967d33f04dfb8bf2403f6bac9b5d5be (patch)
tree92156d4e43b5a751fa90222d8641f0d93c27daf3
parentf06368081da8be0aa617562ef2a8e0467c3f8bc1 (diff)
gnu: Remove irods.
* gnu/packages/irods.scm (irods): Delete variable. Change-Id: I81a0110ac51b18833493af8787137272f4a43c6a
-rw-r--r--gnu/packages/irods.scm122
1 files changed, 0 insertions, 122 deletions
diff --git a/gnu/packages/irods.scm b/gnu/packages/irods.scm
index e955c353a0b..08f4773cc63 100644
--- a/gnu/packages/irods.scm
+++ b/gnu/packages/irods.scm
@@ -43,125 +43,3 @@
43 #:use-module (gnu packages serialization) 43 #:use-module (gnu packages serialization)
44 #:use-module (gnu packages tls) 44 #:use-module (gnu packages tls)
45 #:use-module (srfi srfi-1)) 45 #:use-module (srfi srfi-1))
46
47(define-public irods
48 (package
49 (name "irods")
50 (version "4.2.8")
51 (source (origin
52 (method url-fetch)
53 (uri (string-append "https://github.com/irods/irods/releases/download/"
54 version "/irods-" version ".tar.gz"))
55 (sha256
56 (base32
57 "0ny54c3r0j692rvbr4iibg7xgd2i7g9x8yyrw04j889bywix14rc"))))
58 (build-system cmake-build-system)
59 (arguments
60 `(#:configure-flags
61 (list
62 "-DCMAKE_BUILD_TYPE=Release"
63 (string-append "-DCMAKE_MODULE_LINKER_FLAGS=-Wl,-rpath="
64 (assoc-ref %outputs "out") "/lib")
65 (string-append "-DCMAKE_SHARED_LINKER_FLAGS=-Wl,-rpath="
66 (assoc-ref %outputs "out") "/lib")
67 (string-append "-DCMAKE_EXE_LINKER_FLAGS=-Wl,-rpath="
68 (assoc-ref %outputs "out") "/lib")
69
70 ;; Configuration aborts if no generator format is set
71 "-DCPACK_GENERATOR=TGZ"
72
73 ;; Configuration attempts to guess the distribution with Python.
74 "-DIRODS_LINUX_DISTRIBUTION_NAME=guix"
75 "-DIRODS_LINUX_DISTRIBUTION_VERSION_MAJOR=1"
76
77 (string-append "-DIRODS_EXTERNALS_FULLPATH_CLANG="
78 (assoc-ref %build-inputs "clang"))
79 (string-append "-DIRODS_EXTERNALS_FULLPATH_CLANG_RUNTIME="
80 (assoc-ref %build-inputs "clang-runtime"))
81 (string-append "-DIRODS_EXTERNALS_FULLPATH_CPPZMQ="
82 (assoc-ref %build-inputs "cppzmq"))
83 (string-append "-DIRODS_EXTERNALS_FULLPATH_ARCHIVE="
84 (assoc-ref %build-inputs "libarchive"))
85 (string-append "-DIRODS_EXTERNALS_FULLPATH_AVRO="
86 (assoc-ref %build-inputs "avro-cpp"))
87 (string-append "-DIRODS_EXTERNALS_FULLPATH_BOOST="
88 (assoc-ref %build-inputs "boost"))
89 (string-append "-DIRODS_EXTERNALS_FULLPATH_ZMQ="
90 (assoc-ref %build-inputs "zeromq"))
91 (string-append "-DIRODS_EXTERNALS_FULLPATH_JSON="
92 (assoc-ref %build-inputs "json"))
93 (string-append "-DIRODS_EXTERNALS_FULLPATH_CATCH2="
94 (assoc-ref %build-inputs "catch2"))
95 (string-append "-DIRODS_EXTERNALS_FULLPATH_NANODBC="
96 (assoc-ref %build-inputs "nanodbc"))
97 (string-append "-DIRODS_EXTERNALS_FULLPATH_FMT="
98 (assoc-ref %build-inputs "fmt")))
99
100 #:phases
101 (modify-phases %standard-phases
102 (add-after 'unpack 'unset-Werror
103 (lambda _
104 ;; -Werror kills the build due to a comparison REQUIRE(errs.size() == err->len);
105 ;; in unit_tests/src/test_irods_lifetime_manager.cpp
106 (substitute* "CMakeLists.txt"
107 (("-Werror") ""))))
108 (add-after 'unpack 'remove-FHS-and-prefix-assumptions
109 (lambda* (#:key inputs #:allow-other-keys)
110 (substitute* '("CMakeLists.txt"
111 "cmake/server.cmake"
112 "cmake/development_library.cmake"
113 "cmake/runtime_library.cmake")
114 (("usr/") ""))
115 (substitute* "lib/core/src/irods_default_paths.cpp"
116 (("path.append\\(\"usr\"\\)") "path")
117 (("path.remove_filename\\(\\).remove_filename\\(\\).remove_filename\\(\\)")
118 "path.remove_filename().remove_filename()"))
119 (substitute* "scripts/irods/paths.py"
120 (("'usr', 'lib', 'irods'") "'lib', 'irods'"))
121 (substitute* "scripts/irods/pypyodbc.py"
122 (("\"/usr/lib/libodbc.so\"")
123 (search-input-file inputs "/lib/libodbc.so")))))
124 (add-after 'set-paths 'adjust-CPLUS_INCLUDE_PATH
125 (lambda* (#:key inputs #:allow-other-keys)
126 (let ((gcc (assoc-ref inputs "gcc")))
127 (setenv "CPLUS_INCLUDE_PATH"
128 (string-join
129 (cons* (search-input-directory inputs "/include/c++/v1")
130 (search-input-directory inputs "/include/catch2")
131 (search-input-directory inputs "/include/nlohmann")
132 ;; Hide GCC's C++ headers so that they do not interfere with
133 ;; the Clang headers.
134 (delete (string-append gcc "/include/c++")
135 (string-split (getenv "CPLUS_INCLUDE_PATH")
136 #\:)))
137 ":"))
138 (format #true
139 "environment variable `CPLUS_INCLUDE_PATH' changed to ~a~%"
140 (getenv "CPLUS_INCLUDE_PATH"))))))))
141 (inputs
142 `(("avro-cpp" ,avro-cpp-1.9-for-irods)
143 ("boost" ,boost-for-irods)
144 ("cppzmq" ,cppzmq)
145 ("fmt" ,fmt-6)
146 ("json" ,nlohmann-json)
147 ("libarchive" ,libarchive)
148 ("libcxxabi" ,libcxxabi-6) ; we need this for linking with -lc++abi
149 ("linux-pam" ,linux-pam)
150 ("mit-krb5" ,mit-krb5)
151 ("nanodbc" ,nanodbc-for-irods)
152 ("openssl" ,openssl)
153 ("python" ,python-wrapper)
154 ("unixodbc" ,unixodbc)
155 ("zeromq" ,zeromq)))
156 (native-inputs
157 `(("catch2" ,catch2)
158 ("clang" ,clang-toolchain-6)
159 ("clang-runtime" ,clang-runtime-6)
160 ("libcxx+libcxxabi" ,libcxx+libcxxabi-6)))
161 (home-page "https://irods.org")
162 (synopsis "Data management software")
163 (description "The Integrated Rule-Oriented Data System (iRODS) is data
164management software. iRODS virtualizes data storage resources, so users can
165take control of their data, regardless of where and on what device the data is
166stored.")
167 (license license:bsd-3)))