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 +++---
 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
@@ -148,7 +148,7 @@ if(${ENABLE_FDNETDEV})
     )
 
     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}"
     )
     build_exec(
       EXECNAME raw-sock-creator
@@ -181,7 +181,7 @@ if(${ENABLE_FDNETDEV})
     )
 
     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}"
     )

     build_exec(
@@ -231,7 +231,7 @@ if(${ENABLE_FDNETDEV})
     )
 
     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}"
     )

     build_exec(
-- 
2.37.1

openSUSE Build Service is sponsored by