File: cross.patch

package info (click to toggle)
corectrl 1.5.1%2Bds-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 4,644 kB
  • sloc: cpp: 42,650; ansic: 174; javascript: 158; makefile: 18; sh: 3
file content (33 lines) | stat: -rw-r--r-- 1,499 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
Description: Use shell variable for pkgconfig
 This patch uses the shell variable for the pkconfig exectuable, thus allowing crossbuilding.
Author: Helmut Grohne <helmut@subdivi.de> , Matthias Geiger <werdahias@riseup.net>
Bug: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1040535
Forwarded: not-needed
Last-Update: 2025-08-02
---
This patch header follows DEP-3: http://dep.debian.net/deps/dep3/


diff --git a/src/helper/CMakeLists.txt b/src/helper/CMakeLists.txt
index 38deb12..dc0de4b 100644
--- a/src/helper/CMakeLists.txt
+++ b/src/helper/CMakeLists.txt
@@ -13,7 +13,7 @@ option(INSTALL_DBUS_FILES_IN_PREFIX "Use installation prefix for D-Bus files" OF
 if(NOT INSTALL_DBUS_FILES_IN_PREFIX)
   pkg_check_modules(DBUS REQUIRED dbus-1)
   execute_process(
-    COMMAND pkg-config --variable=datadir dbus-1
+    COMMAND ${PKG_CONFIG_EXECUTABLE} --variable=datadir dbus-1
     RESULT_VARIABLE DBUS_DATADIR_PREFIX_DIR_RESULT
     OUTPUT_VARIABLE DBUS_DATADIR_PREFIX_DIR
     OUTPUT_STRIP_TRAILING_WHITESPACE
@@ -30,7 +30,7 @@ option(POLKIT_POLICY_INSTALL_DIR "Polkit policy files installation directory" OF
 if(NOT POLKIT_POLICY_INSTALL_DIR)
   pkg_check_modules(POLKIT REQUIRED polkit-gobject-1)
   execute_process(
-    COMMAND pkg-config --variable=policydir polkit-gobject-1
+  COMMAND ${PKG_CONFIG_EXECUTABLE} --variable=policydir polkit-gobject-1
     RESULT_VARIABLE POLKIT_POLICY_INSTALL_DIR_RESULT
     OUTPUT_VARIABLE POLKIT_POLICY_INSTALL_DIR
     OUTPUT_STRIP_TRAILING_WHITESPACE