File: use-absolute-install-paths.diff

package info (click to toggle)
kajongg 4%3A25.04.0-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 11,948 kB
  • sloc: python: 22,183; sh: 204; xml: 196; makefile: 7
file content (21 lines) | stat: -rw-r--r-- 1,001 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
Author: Pino Toscano <pino@debian.org>
Description: Use full installation paths when creating symlinks.
 Otherwise, setting the full path for either the bindir or the datadir will
 result in a path with the install prefix unconditionally added at the
 beginning.
Forwarded: no
Last-Update: 2020-08-03

--- a/cmake-modules/KDEPython.cmake
+++ b/cmake-modules/KDEPython.cmake
@@ -105,8 +105,8 @@ MACRO(KDE_ADD_PYTHON_EXECUTABLE _pyname
          MESSAGE(STATUS "Project name is necessary to create symlink against python program!!! It will fail.")
     endif(NOT PROJECT_NAME)
 
-    set(TARGET ${CMAKE_INSTALL_PREFIX}/${KDE_INSTALL_DATADIR}/${PROJECT_NAME}/${_pyname})
-    set(LINK_NAME ${CMAKE_INSTALL_PREFIX}/${KDE_INSTALL_BINDIR}/${_exename})
+    set(TARGET ${KDE_INSTALL_FULL_DATADIR}/${PROJECT_NAME}/${_pyname})
+    set(LINK_NAME ${KDE_INSTALL_FULL_BINDIR}/${_exename})
 
     GET_FILENAME_COMPONENT(abs_link_name ${LINK_NAME} ABSOLUTE)
     GET_FILENAME_COMPONENT(link_path ${LINK_NAME} PATH)