summaryrefslogtreecommitdiffstats
path: root/meta/recipes-support/gnupg/gnupg/0002-use-pkgconfig-instead-of-npth-config.patch
diff options
context:
space:
mode:
Diffstat (limited to 'meta/recipes-support/gnupg/gnupg/0002-use-pkgconfig-instead-of-npth-config.patch')
-rw-r--r--meta/recipes-support/gnupg/gnupg/0002-use-pkgconfig-instead-of-npth-config.patch85
1 files changed, 85 insertions, 0 deletions
diff --git a/meta/recipes-support/gnupg/gnupg/0002-use-pkgconfig-instead-of-npth-config.patch b/meta/recipes-support/gnupg/gnupg/0002-use-pkgconfig-instead-of-npth-config.patch
new file mode 100644
index 0000000000..6d86e5c99b
--- /dev/null
+++ b/meta/recipes-support/gnupg/gnupg/0002-use-pkgconfig-instead-of-npth-config.patch
@@ -0,0 +1,85 @@
1From 53c2aec2e13f4e2d09be7148869c862f07dfdd4d Mon Sep 17 00:00:00 2001
2From: Saul Wold <sgw@linux.intel.com>
3Date: Wed, 16 Aug 2017 11:16:30 +0800
4Subject: [PATCH 2/4] use pkgconfig instead of npth config
5
6Upstream-Status: Inappropriate [openembedded specific]
7
8Signed-off-by: Saul Wold <sgw@linux.intel.com>
9
10Rebase to 2.1.23
11Signed-off-by: Hongxu Jia <hongxu.jia@windriver.com>
12---
13 m4/npth.m4 | 34 ++++++++--------------------------
14 1 file changed, 8 insertions(+), 26 deletions(-)
15
16diff --git a/m4/npth.m4 b/m4/npth.m4
17index 17c2644..15a931b 100644
18--- a/m4/npth.m4
19+++ b/m4/npth.m4
20@@ -17,10 +17,10 @@ AC_DEFUN([_AM_PATH_NPTH_CONFIG],
21 if test "x$npth_config_prefix" != x ; then
22 NPTH_CONFIG="$npth_config_prefix/bin/npth-config"
23 fi
24- AC_PATH_PROG(NPTH_CONFIG, npth-config, no)
25+ AC_PATH_PROG(PKGCONFIG, pkg-config, no)
26
27- if test "$NPTH_CONFIG" != "no" ; then
28- npth_version=`$NPTH_CONFIG --version`
29+ if test "$PKGCONFIG" != "no" ; then
30+ npth_version=`$PKGCONFIG --modversion npth`
31 fi
32 npth_version_major=`echo $npth_version | \
33 sed 's/\([[0-9]]*\)\.\([[0-9]]*\).*/\1/'`
34@@ -45,7 +45,7 @@ AC_DEFUN([AM_PATH_NPTH],
35
36 AC_MSG_CHECKING(for NPTH - version >= $min_npth_version)
37 ok=no
38- if test "$NPTH_CONFIG" != "no" ; then
39+ if test "$PKGCONFIG" != "no" ; then
40 req_major=`echo $min_npth_version | \
41 sed 's/\([[0-9]]*\)\.\([[0-9]]*\)/\1/'`
42 req_minor=`echo $min_npth_version | \
43@@ -66,28 +66,9 @@ AC_DEFUN([AM_PATH_NPTH],
44 fi
45 if test $ok = yes; then
46 AC_MSG_RESULT([yes ($npth_version)])
47- else
48- AC_MSG_RESULT(no)
49- fi
50- if test $ok = yes; then
51- # If we have a recent NPTH, we should also check that the
52- # API is compatible.
53- if test "$req_npth_api" -gt 0 ; then
54- tmp=`$NPTH_CONFIG --api-version 2>/dev/null || echo 0`
55- if test "$tmp" -gt 0 ; then
56- AC_MSG_CHECKING([NPTH API version])
57- if test "$req_npth_api" -eq "$tmp" ; then
58- AC_MSG_RESULT([okay])
59- else
60- ok=no
61- AC_MSG_RESULT([does not match. want=$req_npth_api got=$tmp])
62- fi
63- fi
64- fi
65- fi
66- if test $ok = yes; then
67- NPTH_CFLAGS=`$NPTH_CONFIG --cflags`
68- NPTH_LIBS=`$NPTH_CONFIG --libs`
69+ NPTH_CFLAGS=`$PKGCONFIG --cflags npth`
70+ NPTH_LIBS=`$PKGCONFIG --libs npth`
71+ AC_MSG_WARN([[GOT HERE - $NPTH_LIBS ]])
72 ifelse([$2], , :, [$2])
73 npth_config_host=`$NPTH_CONFIG --host 2>/dev/null || echo none`
74 if test x"$npth_config_host" != xnone ; then
75@@ -103,6 +84,7 @@ AC_DEFUN([AM_PATH_NPTH],
76 fi
77 fi
78 else
79+ AC_MSG_RESULT(no)
80 NPTH_CFLAGS=""
81 NPTH_LIBS=""
82 ifelse([$3], , :, [$3])
83--
841.8.3.1
85