From 1e53bc2a779418e1a8faf9df8137e97c69dcb66b Mon Sep 17 00:00:00 2001 From: Alexander Dahl Date: Fri, 4 Sep 2026 09:13:09 +0200 Subject: [PATCH] posix: Remove dependency to libcap When udp protocol stuff was removed with commit 3f78da205f15 ("Rebase fixes") the only user of libcap was removed. It is not necessary to install libcap-dev and link against libcap anymore. Simplifies packaging in distros. Fixes: 3f78da205f15 ("Rebase fixes") Signed-off-by: Alexander Dahl --- README.md | 3 +-- source/src/ports/POSIX/CMakeLists.txt | 2 +- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index b11de48aa..2228f2441 100644 --- a/README.md +++ b/README.md @@ -28,7 +28,6 @@ installed. You will need to have the following installed: * gcc * make * binutils -* the development library of libcap (libcap-dev or equivalient) for normal building. These should be installed on most Linux installations and are part of the development packages of Cygwin. @@ -183,7 +182,7 @@ This uses Ubuntu as the base image. It will copy OpENer to the image root and in #Filename: Dockerfile FROM ubuntu:20.04 ADD ./bin/posix/src/ports/POSIX/OpENer / -RUN apt-get update && apt-get install -y --no-install-recommends libcap-dev nmap +RUN apt-get update && apt-get install -y --no-install-recommends nmap ENTRYPOINT ["./OpENer", "eth0"] 3. Create a docker-compose.yml that will let you connect the macvlan network to the containers and easily build them and tear them down: diff --git a/source/src/ports/POSIX/CMakeLists.txt b/source/src/ports/POSIX/CMakeLists.txt index b0b0dd852..3405c1ea9 100755 --- a/source/src/ports/POSIX/CMakeLists.txt +++ b/source/src/ports/POSIX/CMakeLists.txt @@ -49,7 +49,7 @@ endif() if( NOT OpENer_TESTS) add_executable(OpENer main.c) - target_link_libraries( OpENer PLATFORM_GENERIC ${OpENer_PLATFORM}PLATFORM ${PLATFORM_SPEC_LIBS} CIP Utils SAMPLE_APP ENET_ENCAP NVDATA rt cap pthread) + target_link_libraries( OpENer PLATFORM_GENERIC ${OpENer_PLATFORM}PLATFORM ${PLATFORM_SPEC_LIBS} CIP Utils SAMPLE_APP ENET_ENCAP NVDATA rt pthread) # Add additional CIP Objects string(COMPARE NOTEQUAL "${OpENer_ADD_CIP_OBJECTS}" "" OpENer_HAS_ADDITIONAL_OBJECT )