[packages/open62541] - added rpath patch (library needs rpath due to libtpm2_pkcs11 location); release 3

qboosh qboosh at pld-linux.org
Sun Jul 3 22:41:11 CEST 2022


commit 2a976e07565443ddca06135c67df6baa57cc8c1f
Author: Jakub Bogusz <qboosh at pld-linux.org>
Date:   Sun Jul 3 22:42:48 2022 +0200

    - added rpath patch (library needs rpath due to libtpm2_pkcs11 location); release 3

 open62541-rpath.patch | 12 ++++++++++++
 open62541.spec        |  4 +++-
 2 files changed, 15 insertions(+), 1 deletion(-)
---
diff --git a/open62541.spec b/open62541.spec
index 4dbfc34..e10667f 100644
--- a/open62541.spec
+++ b/open62541.spec
@@ -7,7 +7,7 @@ Summary:	Open source C implementation of OPC UA
 Summary(pl.UTF-8):	Mająca otwarte źródła, napisana w C implementacja OPC UA
 Name:		open62541
 Version:	1.3.2
-Release:	2
+Release:	3
 License:	MPL v2.0
 Group:		Libraries
 #Source0Download: https://github.com/open62541/open62541/releases
@@ -17,6 +17,7 @@ Patch0:		%{name}-types.patch
 Patch1:		%{name}-bpf.patch
 Patch2:		%{name}-libwebsockets4.patch
 Patch3:		%{name}-visibility.patch
+Patch4:		%{name}-rpath.patch
 URL:		http://www.open62541.org/
 BuildRequires:	cmake >= 3.0
 BuildRequires:	libwebsockets-devel
@@ -82,6 +83,7 @@ Dokumentacja API biblioteki open62541.
 %patch1 -p1
 %patch2 -p1
 %patch3 -p1
+%patch4 -p1
 
 # not for gcc
 %{__sed} -i -e '/check_add_.*-Wno-static-in-inline/d' CMakeLists.txt
diff --git a/open62541-rpath.patch b/open62541-rpath.patch
new file mode 100644
index 0000000..5e79dbc
--- /dev/null
+++ b/open62541-rpath.patch
@@ -0,0 +1,12 @@
+--- open62541-1.3.2/CMakeLists.txt.orig	2022-07-03 20:43:12.521687098 +0200
++++ open62541-1.3.2/CMakeLists.txt	2022-07-03 21:15:49.954416108 +0200
+@@ -1517,7 +1517,8 @@ list(APPEND open62541_LIBRARIES ${ua_arc
+ target_compile_definitions(open62541 PUBLIC UA_ARCHITECTURE_${UA_ARCHITECTURE_UPPER})
+ 
+ # DLL requires linking to dependencies
+-target_link_libraries(open62541 ${open62541_LIBRARIES})
++target_link_libraries(open62541 ${open62541_LIBRARIES})
++set_target_properties(open62541 PROPERTIES INSTALL_RPATH "/usr/lib${LIB_SUFFIX}/pkcs11")
+ 
+ ##########################
+ # Build Selected Targets #
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/open62541.git/commitdiff/2a976e07565443ddca06135c67df6baa57cc8c1f



More information about the pld-cvs-commit mailing list