File: remove_rpath_from_examples.patch

package info (click to toggle)
qt6-base 6.9.2%2Bdfsg-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 317,244 kB
  • sloc: cpp: 2,117,791; ansic: 382,065; xml: 142,588; python: 21,637; java: 8,805; asm: 4,009; javascript: 2,290; sh: 1,651; perl: 1,028; makefile: 131
file content (22 lines) | stat: -rw-r--r-- 1,029 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
Description: remove RPATH/RUNPATH from examples' binaries.
 On Debian the examples are built against system's libraries, so there is no
 need to set RPATH/RUNPATH.
Author: Lisandro Damián Nicanor Pérez Meyer <lisandro@debian.org>
Forwarded: not-needed
Last-Update: 2024-02-15

---
 cmake/QtBuildInternals/QtBuildInternalsConfig.cmake |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

--- a/cmake/QtBuildRepoExamplesHelpers.cmake
+++ b/cmake/QtBuildRepoExamplesHelpers.cmake
@@ -97,7 +97,7 @@ macro(qt_examples_build_begin)
     # This means that installed examples are not relocatable at the moment. We would need to
     # annotate where each example is installed to, to be able to derive a relative rpath, and it
     # seems there's no way to query such information from CMake itself.
-    set(CMAKE_INSTALL_RPATH "${_default_install_rpath}")
+    #set(CMAKE_INSTALL_RPATH "${_default_install_rpath}")

     install(CODE "
 # Backup CMAKE_INSTALL_PREFIX because we're going to change it in each example subdirectory