tangled
alpha
login
or
join now
pyrox.dev
/
nixpkgs
0
fork
atom
lol
0
fork
atom
overview
issues
pulls
pipelines
irods: 4.2.1 -> 4.2.2 + server bugfixes
Bruno Bzeznik
8 years ago
b45f4745
8343a6c7
+71
-7
3 changed files
expand all
collapse all
unified
split
pkgs
tools
filesystems
irods
default.nix
irods_root_path.patch
top-level
all-packages.nix
+8
-5
pkgs/tools/filesystems/irods/default.nix
reviewed
···
1
1
-
{ stdenv, fetchurl, python, bzip2, zlib, autoconf, automake, cmake, gnumake, help2man , texinfo, libtool , cppzmq , libarchive, avro-cpp, boost, jansson, zeromq, openssl , pam, libiodbc, kerberos, gcc, libcxx, which }:
1
1
+
{ stdenv, fetchurl, python, bzip2, zlib, autoconf, automake, cmake, gnumake, help2man , texinfo, libtool , cppzmq , libarchive, avro-cpp_llvm, boost, jansson, zeromq, openssl , pam, libiodbc, kerberos, gcc, libcxx, which }:
2
2
3
3
with stdenv;
4
4
5
5
+
let
6
6
+
avro-cpp=avro-cpp_llvm;
7
7
+
in
5
8
let
6
9
common = import ./common.nix {
7
10
inherit stdenv bzip2 zlib autoconf automake cmake gnumake
···
13
16
14
17
# irods: libs and server package
15
18
irods = stdenv.mkDerivation (common // rec {
16
16
-
version = "4.2.1";
19
19
+
version = "4.2.2";
17
20
prefix = "irods";
18
21
name = "${prefix}-${version}";
19
22
20
23
src = fetchurl {
21
24
url = "https://github.com/irods/irods/releases/download/${version}/irods-${version}.tar.gz";
22
22
-
sha256 = "07yj5g1mwra4sankhqx967mk4z28kc40rir5cb85x23ljql74abq";
25
25
+
sha256 = "0b89hs7sizwrs2ja7jl521byiwb58g297p0p7zg5frxmv4ig8dw7";
23
26
};
24
27
25
28
# Patches:
···
53
56
54
57
# icommands (CLI) package, depends on the irods package
55
58
irods-icommands = stdenv.mkDerivation (common // rec {
56
56
-
version = "4.2.1";
59
59
+
version = "4.2.2";
57
60
name = "irods-icommands-${version}";
58
61
src = fetchurl {
59
62
url = "http://github.com/irods/irods_client_icommands/archive/${version}.tar.gz";
60
60
-
sha256 = "1kg07frv2rf32nf53a1nxscwzgr0rpgxvp5fkmh5439knby10fqw";
63
63
+
sha256 = "15zcxrx0q5c3rli3snd0b2q4i0hs3zzcrbpnibbhsip855qvs77h";
61
64
};
62
65
63
66
buildInputs = common.buildInputs ++ [ irods ];
+62
-2
pkgs/tools/filesystems/irods/irods_root_path.patch
reviewed
···
1
1
-
--- a/lib/core/src/irods_default_paths.cpp 2016-10-24 17:09:02.955889536 +0200
2
2
-
+++ b/lib/core/src/irods_default_paths.cpp 2016-10-24 17:09:43.178722157 +0200
1
1
+
diff -r -u irods-4.2.0.orig/lib/core/src/irods_default_paths.cpp irods-4.2.0/lib/core/src/irods_default_paths.cpp
2
2
+
--- irods-4.2.0.orig/lib/core/src/irods_default_paths.cpp 2016-11-15 06:23:55.000000000 +0000
3
3
+
+++ irods-4.2.0/lib/core/src/irods_default_paths.cpp 2016-12-20 18:03:17.156883399 +0000
3
4
@@ -18,7 +18,7 @@
4
5
try {
5
6
boost::filesystem::path path{dl_info.dli_fname};
···
9
10
return path;
10
11
} catch(const boost::filesystem::filesystem_error& e) {
11
12
THROW(-1, e.what());
13
13
+
@@ -27,8 +27,7 @@
14
14
+
15
15
+
boost::filesystem::path
16
16
+
get_irods_config_directory() {
17
17
+
- boost::filesystem::path path{get_irods_root_directory()};
18
18
+
- path.append("etc").append("irods");
19
19
+
+ boost::filesystem::path path("/etc/irods");
20
20
+
return path;
21
21
+
}
22
22
+
23
23
+
diff -r -u irods-4.2.0.orig/scripts/irods/paths.py irods-4.2.0/scripts/irods/paths.py
24
24
+
--- irods-4.2.0.orig/scripts/irods/paths.py 2016-11-15 06:23:55.000000000 +0000
25
25
+
+++ irods-4.2.0/scripts/irods/paths.py 2016-12-21 15:17:07.437864606 +0000
26
26
+
@@ -10,7 +10,7 @@
27
27
+
return os.path.join(root_directory(), 'var', 'lib', 'irods')
28
28
+
29
29
+
def config_directory():
30
30
+
- return os.path.join(root_directory(), 'etc', 'irods')
31
31
+
+ return os.path.join(os.path.abspath('/'), 'etc', 'irods')
32
32
+
33
33
+
def plugins_directory():
34
34
+
return os.path.join(root_directory(), 'usr', 'lib', 'irods', 'plugins')
35
35
+
@@ -37,7 +37,7 @@
36
36
+
37
37
+
def version_path():
38
38
+
return os.path.join(
39
39
+
- irods_directory(),
40
40
+
+ home_directory(),
41
41
+
'VERSION.json')
42
42
+
43
43
+
def hosts_config_path():
44
44
+
@@ -64,7 +64,7 @@
45
45
+
46
46
+
def log_directory():
47
47
+
return os.path.join(
48
48
+
- irods_directory(),
49
49
+
+ home_directory(),
50
50
+
'log')
51
51
+
52
52
+
def control_log_path():
53
53
+
@@ -110,8 +110,7 @@
54
54
+
def server_bin_directory():
55
55
+
return os.path.join(
56
56
+
root_directory(),
57
57
+
- 'usr',
58
58
+
- 'sbin')
59
59
+
+ 'bin')
60
60
+
61
61
+
def server_executable():
62
62
+
return os.path.join(
63
63
+
@@ -132,7 +131,7 @@
64
64
+
return os.path.join(config_directory(), 'service_account.config')
65
65
+
66
66
+
def genosauth_path():
67
67
+
- return os.path.join(irods_directory(), 'clients', 'bin', 'genOSAuth')
68
68
+
+ return os.path.join(home_directory(), 'clients', 'bin', 'genOSAuth')
69
69
+
70
70
+
def irods_user_and_group_entries():
71
71
+
try:
+1
pkgs/top-level/all-packages.nix
reviewed
···
2597
2597
stdenv = llvmPackages_38.libcxxStdenv;
2598
2598
libcxx = llvmPackages_38.libcxx;
2599
2599
boost = boost160.override { inherit stdenv; };
2600
2600
+
avro-cpp_llvm = avro-cpp.override { inherit stdenv boost; };
2600
2601
})
2601
2602
irods
2602
2603
irods-icommands;