[packages/open62541] - adjusted bpf patch to link with libxdp; release 2

qboosh qboosh at pld-linux.org
Mon Oct 24 22:01:11 CEST 2022


commit 53eb630e70152bff02319ffcecd4138da05c59b4
Author: Jakub Bogusz <qboosh at pld-linux.org>
Date:   Mon Oct 24 22:02:17 2022 +0200

    - adjusted bpf patch to link with libxdp; release 2

 open62541-bpf.patch | 11 +++++++++++
 open62541.spec      |  2 +-
 2 files changed, 12 insertions(+), 1 deletion(-)
---
diff --git a/open62541.spec b/open62541.spec
index 244d617..cec103c 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.3
-Release:	1
+Release:	2
 License:	MPL v2.0
 Group:		Libraries
 #Source0Download: https://github.com/open62541/open62541/releases
diff --git a/open62541-bpf.patch b/open62541-bpf.patch
index c10cd87..9d592dd 100644
--- a/open62541-bpf.patch
+++ b/open62541-bpf.patch
@@ -81,3 +81,14 @@
          UA_free(channelDataEthernet->xdpsocket->umem->buffer);
          UA_free(channelDataEthernet->xdpsocket->umem);
          UA_free(channelDataEthernet->xdpsocket);
+--- open62541-1.3.3/CMakeLists.txt.orig	2022-08-03 10:12:48.000000000 +0200
++++ open62541-1.3.3/CMakeLists.txt	2022-10-24 21:15:11.600677093 +0200
+@@ -1088,7 +1088,7 @@ if(UA_ENABLE_PUBSUB)
+         list(APPEND default_plugin_sources ${PROJECT_SOURCE_DIR}/plugins/ua_pubsub_ethernet.c)
+         find_library(LIB_BPF bpf)
+         if(LIB_BPF)
+-            list(APPEND open62541_LIBRARIES bpf)
++            list(APPEND open62541_LIBRARIES xdp bpf)
+         else()
+             message("bpf library not found. XDP functionalities will not be available.")
+         endif()
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/open62541.git/commitdiff/53eb630e70152bff02319ffcecd4138da05c59b4



More information about the pld-cvs-commit mailing list