File 0001-Use-libexecdir-for-path-to-helper-binaries.patch of Package ns3

From cb9ebd747f48613b315c727989b960a802facb22 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Stefan=20Br=C3=BCns?= <stefan.bruens@rwth-aachen.de>
Date: Fri, 2 Sep 2022 18:10:53 +0200
Subject: [PATCH] Use libexecdir for path to helper binaries

---
 src/fd-net-device/CMakeLists.txt | 6 +++---
 src/tap-bridge/CMakeLists.txt    | 2 +-
 2 files changed, 4 insertions(+), 4 deletions(-)

diff --git a/src/fd-net-device/CMakeLists.txt b/src/fd-net-device/CMakeLists.txt
index 0982e9f..dfdf140 100644
--- a/src/fd-net-device/CMakeLists.txt
+++ b/src/fd-net-device/CMakeLists.txt
@@ -159,7 +159,7 @@ if(${ENABLE_FDNETDEV})
       helper/raw-sock-creator.cc
     )
     add_definitions(
-      -DRAW_SOCK_CREATOR="${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/src/fd-net-device/ns${NS3_VER}-raw-sock-creator${build_profile_suffix}"
+      -DRAW_SOCK_CREATOR="${CMAKE_INSTALL_FULL_LIBEXECDIR}/ns3/ns${NS3_VER}-raw-sock-creator${build_profile_suffix}"
     )
     set_runtime_outputdirectory(
       raw-sock-creator
@@ -194,7 +194,7 @@ if(${ENABLE_FDNETDEV})
       helper/tap-device-creator.cc
     )
     add_definitions(
-      -DTAP_DEV_CREATOR="${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/src/fd-net-device/ns${NS3_VER}-tap-device-creator${build_profile_suffix}"
+      -DTAP_DEV_CREATOR="${CMAKE_INSTALL_FULL_LIBEXECDIR}/ns3/ns${NS3_VER}-tap-device-creator${build_profile_suffix}"
     )
     set_runtime_outputdirectory(
       tap-device-creator
@@ -231,7 +231,7 @@ if(${ENABLE_FDNETDEV})
       helper/netmap-device-creator.cc
     )
     add_definitions(
-      -DNETMAP_DEV_CREATOR="${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/src/fd-net-device/ns${NS3_VER}-netmap-device-creator${build_profile_suffix}"
+      -DNETMAP_DEV_CREATOR="${CMAKE_INSTALL_FULL_LIBEXECDIR}/ns3/ns${NS3_VER}-netmap-device-creator${build_profile_suffix}"
     )
     set_runtime_outputdirectory(
       netmap-device-creator
diff --git a/src/tap-bridge/CMakeLists.txt b/src/tap-bridge/CMakeLists.txt
index f7e1f9c..ac758f9 100644
--- a/src/tap-bridge/CMakeLists.txt
+++ b/src/tap-bridge/CMakeLists.txt
@@ -37,7 +37,7 @@ build_lib(
 )
 
 add_definitions(
-  -DTAP_CREATOR="${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/src/tap-bridge/ns${NS3_VER}-tap-creator${build_profile_suffix}"
+  -DTAP_CREATOR="${CMAKE_INSTALL_FULL_LIBEXECDIR}/ns3/ns${NS3_VER}-tap-creator${build_profile_suffix}"
 )
 add_executable(
   tap-creator
-- 
2.37.1

openSUSE Build Service is sponsored by