tangled
alpha
login
or
join now
pyrox.dev
/
nixpkgs
0
fork
atom
lol
0
fork
atom
overview
issues
pulls
pipelines
rnp: 0.17.0 -> 0.17.1
Jeffrey Lau
2 years ago
d9687d72
84ffa43f
+3
-92
3 changed files
expand all
collapse all
unified
split
pkgs
tools
security
rnp
default.nix
sexp_sexpp_rename.patch
unbundle-sexpp.patch
+3
-4
pkgs/tools/security/rnp/default.nix
···
16
16
17
17
stdenv.mkDerivation (finalAttrs: {
18
18
pname = "rnp";
19
19
-
version = "0.17.0";
19
19
+
version = "0.17.1";
20
20
21
21
src = fetchFromGitHub {
22
22
owner = "rnpgp";
23
23
repo = "rnp";
24
24
rev = "v${finalAttrs.version}";
25
25
-
hash = "sha256-4fB7Sl9+ATrJTRnhbNG5BoW3XLxR7IP167RK96+gxj0=";
25
25
+
hash = "sha256-jUh7BxRnB6KePCk1jIvKzXgxSmWdKlQYmxshZZY4SBQ";
26
26
};
27
27
28
28
buildInputs = [ zlib bzip2 json_c botan2 sexpp ];
29
29
30
30
patches = [
31
31
-
./unbundle-sexpp.patch
32
32
-
./sexp_sexpp_rename.patch
33
31
];
34
32
35
33
cmakeFlags = [
···
38
36
"-DBUILD_TESTING=on"
39
37
"-DDOWNLOAD_GTEST=off"
40
38
"-DDOWNLOAD_RUBYRNP=off"
39
39
+
"-DSYSTEM_LIBSEXPP=on"
41
40
];
42
41
43
42
nativeBuildInputs = [ asciidoctor cmake gnupg gtest pkg-config python3 ];
-50
pkgs/tools/security/rnp/sexp_sexpp_rename.patch
···
1
1
-
diff --git i/src/lib/CMakeLists.txt w/src/lib/CMakeLists.txt
2
2
-
index 086ac57d..2ce59ca1 100755
3
3
-
--- i/src/lib/CMakeLists.txt
4
4
-
+++ w/src/lib/CMakeLists.txt
5
5
-
@@ -328,7 +328,7 @@ elseif (CRYPTO_BACKEND_OPENSSL)
6
6
-
target_link_libraries(librnp-obj PRIVATE OpenSSL::Crypto)
7
7
-
endif()
8
8
-
9
9
-
-target_link_libraries(librnp-obj PRIVATE sexp)
10
10
-
+target_link_libraries(librnp-obj PRIVATE sexpp)
11
11
-
12
12
-
set_target_properties(librnp-obj PROPERTIES CXX_VISIBILITY_PRESET hidden)
13
13
-
if (TARGET BZip2::BZip2)
14
14
-
@@ -384,7 +384,7 @@ foreach (prop LINK_LIBRARIES INTERFACE_LINK_LIBRARIES INCLUDE_DIRECTORIES INTERF
15
15
-
get_target_property(val librnp-obj ${prop})
16
16
-
if (BUILD_SHARED_LIBS)
17
17
-
set_property(TARGET librnp-static PROPERTY ${prop} ${val})
18
18
-
- list(REMOVE_ITEM val "$<LINK_ONLY:sexp>")
19
19
-
+ list(REMOVE_ITEM val "$<LINK_ONLY:sexpp>")
20
20
-
set_property(TARGET librnp PROPERTY ${prop} ${val})
21
21
-
else()
22
22
-
set_property(TARGET librnp PROPERTY ${prop} ${val})
23
23
-
diff --git i/src/librekey/g23_sexp.hpp w/src/librekey/g23_sexp.hpp
24
24
-
index b888680f..b062c52f 100644
25
25
-
--- i/src/librekey/g23_sexp.hpp
26
26
-
+++ w/src/librekey/g23_sexp.hpp
27
27
-
@@ -27,8 +27,8 @@
28
28
-
#ifndef RNP_G23_SEXP_HPP
29
29
-
#define RNP_G23_SEXP_HPP
30
30
-
31
31
-
-#include "sexp/sexp.h"
32
32
-
-#include "sexp/ext-key-format.h"
33
33
-
+#include "sexpp/sexp.h"
34
34
-
+#include "sexpp/ext-key-format.h"
35
35
-
36
36
-
#define SXP_MAX_DEPTH 30
37
37
-
38
38
-
diff --git i/src/tests/CMakeLists.txt w/src/tests/CMakeLists.txt
39
39
-
index 7d2a6b0c..88aeaf9f 100644
40
40
-
--- i/src/tests/CMakeLists.txt
41
41
-
+++ w/src/tests/CMakeLists.txt
42
42
-
@@ -176,7 +176,7 @@ target_link_libraries(rnp_tests
43
43
-
PRIVATE
44
44
-
librnp-static
45
45
-
JSON-C::JSON-C
46
46
-
- sexp
47
47
-
+ sexpp
48
48
-
${GTestMain}
49
49
-
)
50
50
-
if (CRYPTO_BACKEND_LOWERCASE STREQUAL "openssl")
-38
pkgs/tools/security/rnp/unbundle-sexpp.patch
···
1
1
-
diff --git i/CMakeLists.txt w/CMakeLists.txt
2
2
-
index bb6d40cb..30171e7c 100644
3
3
-
--- i/CMakeLists.txt
4
4
-
+++ w/CMakeLists.txt
5
5
-
@@ -176,11 +176,6 @@ if (ENABLE_FUZZERS)
6
6
-
endif()
7
7
-
add_subdirectory(src/common)
8
8
-
9
9
-
-set(WITH_SEXP_CLI OFF)
10
10
-
-set(WITH_SEXP_TESTS OFF)
11
11
-
-set(CMAKE_INSTALL_DEFAULT_COMPONENT_NAME development)
12
12
-
-add_subdirectory(src/libsexp EXCLUDE_FROM_ALL)
13
13
-
-
14
14
-
add_subdirectory(src/lib)
15
15
-
add_subdirectory(src/rnp)
16
16
-
add_subdirectory(src/rnpkeys)
17
17
-
diff --git i/src/lib/CMakeLists.txt w/src/lib/CMakeLists.txt
18
18
-
index 086ac57d..b219ef06 100755
19
19
-
--- i/src/lib/CMakeLists.txt
20
20
-
+++ w/src/lib/CMakeLists.txt
21
21
-
@@ -433,7 +433,7 @@ install(TARGETS librnp
22
22
-
COMPONENT development
23
23
-
)
24
24
-
25
25
-
- install(TARGETS librnp-static sexp
26
26
-
+ install(TARGETS librnp-static
27
27
-
EXPORT rnp-targets
28
28
-
ARCHIVE
29
29
-
DESTINATION "${CMAKE_INSTALL_LIBDIR}"
30
30
-
@@ -441,7 +441,7 @@ install(TARGETS librnp
31
31
-
)
32
32
-
else(BUILD_SHARED_LIBS)
33
33
-
# static libraries only
34
34
-
-install(TARGETS librnp sexp
35
35
-
+install(TARGETS librnp
36
36
-
EXPORT rnp-targets
37
37
-
ARCHIVE
38
38
-
DESTINATION "${CMAKE_INSTALL_LIBDIR}"