public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
* [rpms/netgen-mesher] rawhide: Add netgen_norpath.patch
@ 2026-10-16 23:28 Sandro Mani
  0 siblings, 0 replies; only message in thread
From: Sandro Mani @ 2026-10-16 23:28 UTC (permalink / raw)
  To: git-commits

A new commit has been pushed.

Repo   : rpms/netgen-mesher
Branch : rawhide
Commit : 1ca4888003e6ec95b8c2cb7701d40826f004f607
Author : Sandro Mani <manisandro@gmail.com>
Date   : 2026-10-17T01:28:13+02:00
Stats  : +28/-0 in 2 file(s)
URL    : https://src.fedoraproject.org/rpms/netgen-mesher/c/1ca4888003e6ec95b8c2cb7701d40826f004f607?branch=rawhide

Log:
Add netgen_norpath.patch

---
diff --git a/netgen-mesher.spec b/netgen-mesher.spec
index 174b615..6faa34b 100644
--- a/netgen-mesher.spec
+++ b/netgen-mesher.spec
@@ -53,6 +53,8 @@ Patch4:         netgen_libjpeg.patch
 # /usr/include/mpich-x86_64/mpicxx.h:160:18: error: expected identifier before ‘int’
 #   160 |     friend class Status;
 Patch5:         netgen_include-order.patch
+# Revert change which adds RPATH
+Patch6:         netgen_norpath.patch
 # Port bundled togl to tk9
 # Patch8:         netgen-togl-tk9.patch
 

diff --git a/netgen_norpath.patch b/netgen_norpath.patch
new file mode 100644
index 0000000..d1e63a9
--- /dev/null
+++ b/netgen_norpath.patch
@@ -0,0 +1,26 @@
+diff -rupN --no-dereference netgen-6.2.2608/CMakeLists.txt netgen-6.2.2608-new/CMakeLists.txt
+--- netgen-6.2.2608/CMakeLists.txt	2026-10-17 00:55:20.906977114 +0200
++++ netgen-6.2.2608-new/CMakeLists.txt	2026-10-17 00:55:20.959282634 +0200
+@@ -415,22 +415,6 @@ if (USE_OCC)
+     endif()
+     target_include_directories(occ_libs INTERFACE ${occ_include_dir})
+     message(STATUS "OpenCasCade include dirs: ${occ_include_dir}")
+-    # The OpenCascade libraries are not copied into the install tree, so the
+-    # install rpath (@loader_path) alone cannot find them. Append where they
+-    # really are as a fallback - @loader_path stays first, so a bundled
+-    # OpenCascade still takes precedence.
+-    if(OpenCASCADE_LIBRARY_DIR AND OpenCASCADE_BUILD_SHARED_LIBS)
+-      # for targets created after this point
+-      list(APPEND CMAKE_INSTALL_RPATH "${OpenCASCADE_LIBRARY_DIR}")
+-      # nglib and nggui are created further up, so they already captured the
+-      # old value of CMAKE_INSTALL_RPATH - extend their property directly
+-      foreach(occ_target nglib nggui)
+-        if(TARGET ${occ_target})
+-          set_property(TARGET ${occ_target} APPEND PROPERTY INSTALL_RPATH "${OpenCASCADE_LIBRARY_DIR}")
+-        endif()
+-      endforeach()
+-      message(STATUS "OpenCasCade library dir added to install rpath: ${OpenCASCADE_LIBRARY_DIR}")
+-    endif()
+     if(NOT OpenCASCADE_BUILD_SHARED_LIBS)
+       if(OpenCASCADE_WITH_FREETYPE)
+         find_library( FREETYPE NAMES freetype HINTS ${OpenCASCADE_LIBRARY_DIR})

^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2026-10-16 23:28 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-10-16 23:28 [rpms/netgen-mesher] rawhide: Add netgen_norpath.patch Sandro Mani

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox