Merge pull request #34464 from Gricad/irods-4.2.2-bz
irods: 4.2.1 -> 4.2.2 + server bugfixes
This commit is contained in:
commit
b5bdc5a73a
@ -1,7 +1,10 @@
|
|||||||
{ 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 }:
|
{ 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 }:
|
||||||
|
|
||||||
with stdenv;
|
with stdenv;
|
||||||
|
|
||||||
|
let
|
||||||
|
avro-cpp=avro-cpp_llvm;
|
||||||
|
in
|
||||||
let
|
let
|
||||||
common = import ./common.nix {
|
common = import ./common.nix {
|
||||||
inherit stdenv bzip2 zlib autoconf automake cmake gnumake
|
inherit stdenv bzip2 zlib autoconf automake cmake gnumake
|
||||||
@ -13,13 +16,13 @@ in rec {
|
|||||||
|
|
||||||
# irods: libs and server package
|
# irods: libs and server package
|
||||||
irods = stdenv.mkDerivation (common // rec {
|
irods = stdenv.mkDerivation (common // rec {
|
||||||
version = "4.2.1";
|
version = "4.2.2";
|
||||||
prefix = "irods";
|
prefix = "irods";
|
||||||
name = "${prefix}-${version}";
|
name = "${prefix}-${version}";
|
||||||
|
|
||||||
src = fetchurl {
|
src = fetchurl {
|
||||||
url = "https://github.com/irods/irods/releases/download/${version}/irods-${version}.tar.gz";
|
url = "https://github.com/irods/irods/releases/download/${version}/irods-${version}.tar.gz";
|
||||||
sha256 = "07yj5g1mwra4sankhqx967mk4z28kc40rir5cb85x23ljql74abq";
|
sha256 = "0b89hs7sizwrs2ja7jl521byiwb58g297p0p7zg5frxmv4ig8dw7";
|
||||||
};
|
};
|
||||||
|
|
||||||
# Patches:
|
# Patches:
|
||||||
@ -53,11 +56,11 @@ in rec {
|
|||||||
|
|
||||||
# icommands (CLI) package, depends on the irods package
|
# icommands (CLI) package, depends on the irods package
|
||||||
irods-icommands = stdenv.mkDerivation (common // rec {
|
irods-icommands = stdenv.mkDerivation (common // rec {
|
||||||
version = "4.2.1";
|
version = "4.2.2";
|
||||||
name = "irods-icommands-${version}";
|
name = "irods-icommands-${version}";
|
||||||
src = fetchurl {
|
src = fetchurl {
|
||||||
url = "http://github.com/irods/irods_client_icommands/archive/${version}.tar.gz";
|
url = "http://github.com/irods/irods_client_icommands/archive/${version}.tar.gz";
|
||||||
sha256 = "1kg07frv2rf32nf53a1nxscwzgr0rpgxvp5fkmh5439knby10fqw";
|
sha256 = "15zcxrx0q5c3rli3snd0b2q4i0hs3zzcrbpnibbhsip855qvs77h";
|
||||||
};
|
};
|
||||||
|
|
||||||
buildInputs = common.buildInputs ++ [ irods ];
|
buildInputs = common.buildInputs ++ [ irods ];
|
||||||
|
@ -1,5 +1,6 @@
|
|||||||
--- a/lib/core/src/irods_default_paths.cpp 2016-10-24 17:09:02.955889536 +0200
|
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
|
||||||
+++ b/lib/core/src/irods_default_paths.cpp 2016-10-24 17:09:43.178722157 +0200
|
--- irods-4.2.0.orig/lib/core/src/irods_default_paths.cpp 2016-11-15 06:23:55.000000000 +0000
|
||||||
|
+++ irods-4.2.0/lib/core/src/irods_default_paths.cpp 2016-12-20 18:03:17.156883399 +0000
|
||||||
@@ -18,7 +18,7 @@
|
@@ -18,7 +18,7 @@
|
||||||
try {
|
try {
|
||||||
boost::filesystem::path path{dl_info.dli_fname};
|
boost::filesystem::path path{dl_info.dli_fname};
|
||||||
@ -9,3 +10,62 @@
|
|||||||
return path;
|
return path;
|
||||||
} catch(const boost::filesystem::filesystem_error& e) {
|
} catch(const boost::filesystem::filesystem_error& e) {
|
||||||
THROW(-1, e.what());
|
THROW(-1, e.what());
|
||||||
|
@@ -27,8 +27,7 @@
|
||||||
|
|
||||||
|
boost::filesystem::path
|
||||||
|
get_irods_config_directory() {
|
||||||
|
- boost::filesystem::path path{get_irods_root_directory()};
|
||||||
|
- path.append("etc").append("irods");
|
||||||
|
+ boost::filesystem::path path("/etc/irods");
|
||||||
|
return path;
|
||||||
|
}
|
||||||
|
|
||||||
|
diff -r -u irods-4.2.0.orig/scripts/irods/paths.py irods-4.2.0/scripts/irods/paths.py
|
||||||
|
--- irods-4.2.0.orig/scripts/irods/paths.py 2016-11-15 06:23:55.000000000 +0000
|
||||||
|
+++ irods-4.2.0/scripts/irods/paths.py 2016-12-21 15:17:07.437864606 +0000
|
||||||
|
@@ -10,7 +10,7 @@
|
||||||
|
return os.path.join(root_directory(), 'var', 'lib', 'irods')
|
||||||
|
|
||||||
|
def config_directory():
|
||||||
|
- return os.path.join(root_directory(), 'etc', 'irods')
|
||||||
|
+ return os.path.join(os.path.abspath('/'), 'etc', 'irods')
|
||||||
|
|
||||||
|
def plugins_directory():
|
||||||
|
return os.path.join(root_directory(), 'usr', 'lib', 'irods', 'plugins')
|
||||||
|
@@ -37,7 +37,7 @@
|
||||||
|
|
||||||
|
def version_path():
|
||||||
|
return os.path.join(
|
||||||
|
- irods_directory(),
|
||||||
|
+ home_directory(),
|
||||||
|
'VERSION.json')
|
||||||
|
|
||||||
|
def hosts_config_path():
|
||||||
|
@@ -64,7 +64,7 @@
|
||||||
|
|
||||||
|
def log_directory():
|
||||||
|
return os.path.join(
|
||||||
|
- irods_directory(),
|
||||||
|
+ home_directory(),
|
||||||
|
'log')
|
||||||
|
|
||||||
|
def control_log_path():
|
||||||
|
@@ -110,8 +110,7 @@
|
||||||
|
def server_bin_directory():
|
||||||
|
return os.path.join(
|
||||||
|
root_directory(),
|
||||||
|
- 'usr',
|
||||||
|
- 'sbin')
|
||||||
|
+ 'bin')
|
||||||
|
|
||||||
|
def server_executable():
|
||||||
|
return os.path.join(
|
||||||
|
@@ -132,7 +131,7 @@
|
||||||
|
return os.path.join(config_directory(), 'service_account.config')
|
||||||
|
|
||||||
|
def genosauth_path():
|
||||||
|
- return os.path.join(irods_directory(), 'clients', 'bin', 'genOSAuth')
|
||||||
|
+ return os.path.join(home_directory(), 'clients', 'bin', 'genOSAuth')
|
||||||
|
|
||||||
|
def irods_user_and_group_entries():
|
||||||
|
try:
|
||||||
|
@ -2927,6 +2927,7 @@ with pkgs;
|
|||||||
stdenv = llvmPackages_38.libcxxStdenv;
|
stdenv = llvmPackages_38.libcxxStdenv;
|
||||||
libcxx = llvmPackages_38.libcxx;
|
libcxx = llvmPackages_38.libcxx;
|
||||||
boost = boost160.override { inherit stdenv; };
|
boost = boost160.override { inherit stdenv; };
|
||||||
|
avro-cpp_llvm = avro-cpp.override { inherit stdenv boost; };
|
||||||
})
|
})
|
||||||
irods
|
irods
|
||||||
irods-icommands;
|
irods-icommands;
|
||||||
|
Loading…
Reference in New Issue
Block a user