File: ac-path-pkgconfig.patch

package info (click to toggle)
libscca 20200717-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 13,228 kB
  • sloc: ansic: 198,355; sh: 6,050; makefile: 1,277; python: 410; cpp: 88; sed: 16
file content (32 lines) | stat: -rw-r--r-- 910 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
23
24
25
26
27
28
29
30
31
32
From: Debian Security Tools <team+pkg-security@tracker.debian.org>
Date: Tue, 2 Feb 2021 15:15:38 +0100
Subject: Use cross-build compatible macro for finding pkg-config.

Origin: other
Last-Update: 2021-01-01


The package uses AC_PATH_PROG to discover the location of pkg-config(1). This
macro fails to select the correct version to support cross-compilation.

This patch changes it to use AC_PATH_TOOL.

Refer to https://bugs.debian.org/884798 for details.
=== modified file 'configure.ac'
---
 configure.ac | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/configure.ac b/configure.ac
index a99bcee..d6403d3 100644
--- a/configure.ac
+++ b/configure.ac
@@ -30,7 +30,7 @@ AC_PROG_LIBTOOL
 AC_SUBST(LIBTOOL_DEPS)
 
 dnl Check for pkg-config
-AC_PATH_PROG(PKGCONFIG,[pkg-config])
+AC_PATH_TOOL(PKGCONFIG,[pkg-config])
 
 dnl Support of internationalization (i18n)
 AM_GNU_GETTEXT([external])