1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-09-11 15:08:33 +01:00

Merge pull request #29020 from danbst/salt-update

salt: 2016.11.5 -> 2017.7.1, patch fix
This commit is contained in:
Joachim F 2017-09-24 03:31:41 +00:00 committed by GitHub
commit 92513b8a41
2 changed files with 11 additions and 8 deletions

View file

@ -8,12 +8,12 @@
python2Packages.buildPythonApplication rec {
pname = "salt";
version = "2016.11.5";
version = "2017.7.1";
name = "${pname}-${version}";
src = python2Packages.fetchPypi {
inherit pname version;
sha256 = "1gpq6s87vy782z4b5h6s7zwndcxnllbdr2wldxr9hyp4lfj2f55q";
sha256 = "079kymgxyzhf47dd42l7f42jp45gx5im4k3g31bj25p1s0aq91py";
};
propagatedBuildInputs = with python2Packages; [

View file

@ -1,11 +1,14 @@
diff --git a/salt/utils/rsax931.py b/salt/utils/rsax931.py
index 9eb1f4a..d764f7a 100644
index f827cc6db8..b728595186 100644
--- a/salt/utils/rsax931.py
+++ b/salt/utils/rsax931.py
@@ -36,7 +36,6 @@ def _load_libcrypto():
'libcrypto.so*'))
@@ -47,6 +47,9 @@ def _load_libcrypto():
lib = lib[0] if len(lib) > 0 else None
- if lib:
- return cdll.LoadLibrary(lib)
if lib:
return cdll.LoadLibrary(lib)
+ else:
+ return cdll.LoadLibrary('@libcrypto@')
+
raise OSError('Cannot locate OpenSSL libcrypto')