summaryrefslogtreecommitdiffstats
path: root/meta/recipes-support/pinentry
diff options
context:
space:
mode:
authorAlexander Kanavin <alex.kanavin@gmail.com>2021-02-28 16:36:55 +0100
committerRichard Purdie <richard.purdie@linuxfoundation.org>2021-03-02 14:15:33 +0000
commit1ad1e4f15928f717fdb2695da339c3f325320f0b (patch)
treeeb001fd6ef7d1b2de68dea36ffbc4a1f98db222c /meta/recipes-support/pinentry
parent31421cc447f15fdcd5ad023bebca451282764750 (diff)
downloadpoky-1ad1e4f15928f717fdb2695da339c3f325320f0b.tar.gz
pinentry: update 1.1.0 -> 1.1.1
Refresh xxx-config->pkg-config patches. (From OE-Core rev: 0995cd6083a42469aa2913c4d696b0b46e336854) Signed-off-by: Alexander Kanavin <alex.kanavin@gmail.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-support/pinentry')
-rw-r--r--meta/recipes-support/pinentry/pinentry-1.1.0/gpg-error_pkconf.patch100
-rw-r--r--meta/recipes-support/pinentry/pinentry-1.1.1/gpg-error_pkconf.patch177
-rw-r--r--meta/recipes-support/pinentry/pinentry-1.1.1/libassuan_pkgconf.patch (renamed from meta/recipes-support/pinentry/pinentry-1.1.0/libassuan_pkgconf.patch)111
-rw-r--r--meta/recipes-support/pinentry/pinentry_1.1.1.bb (renamed from meta/recipes-support/pinentry/pinentry_1.1.0.bb)3
4 files changed, 242 insertions, 149 deletions
diff --git a/meta/recipes-support/pinentry/pinentry-1.1.0/gpg-error_pkconf.patch b/meta/recipes-support/pinentry/pinentry-1.1.0/gpg-error_pkconf.patch
deleted file mode 100644
index 431edb0351..0000000000
--- a/meta/recipes-support/pinentry/pinentry-1.1.0/gpg-error_pkconf.patch
+++ /dev/null
@@ -1,100 +0,0 @@
1Convert to pkg-config support to match changes done to
2the gpg-error recipe for gpg-error.pc generation.
3
4Upstream-Status: Inappropriate [OE specific]
5
6Signed-off-by: Armin Kuster <akuster@mvista.com>
7
8Index: pinentry-1.0.0/m4/gpg-error.m4
9===================================================================
10--- pinentry-1.0.0.orig/m4/gpg-error.m4
11+++ pinentry-1.0.0/m4/gpg-error.m4
12@@ -25,74 +25,12 @@ dnl config script does not match the hos
13 dnl is added to the gpg_config_script_warn variable.
14 dnl
15 AC_DEFUN([AM_PATH_GPG_ERROR],
16-[ AC_REQUIRE([AC_CANONICAL_HOST])
17- gpg_error_config_prefix=""
18- dnl --with-libgpg-error-prefix=PFX is the preferred name for this option,
19- dnl since that is consistent with how our three siblings use the directory/
20- dnl package name in --with-$dir_name-prefix=PFX.
21- AC_ARG_WITH(libgpg-error-prefix,
22- AC_HELP_STRING([--with-libgpg-error-prefix=PFX],
23- [prefix where GPG Error is installed (optional)]),
24- [gpg_error_config_prefix="$withval"])
25-
26- dnl Accept --with-gpg-error-prefix and make it work the same as
27- dnl --with-libgpg-error-prefix above, for backwards compatibility,
28- dnl but do not document this old, inconsistently-named option.
29- AC_ARG_WITH(gpg-error-prefix,,
30- [gpg_error_config_prefix="$withval"])
31-
32- if test x"${GPG_ERROR_CONFIG}" = x ; then
33- if test x"${gpg_error_config_prefix}" != x ; then
34- GPG_ERROR_CONFIG="${gpg_error_config_prefix}/bin/gpg-error-config"
35- else
36- case "${SYSROOT}" in
37- /*)
38- if test -x "${SYSROOT}/bin/gpg-error-config" ; then
39- GPG_ERROR_CONFIG="${SYSROOT}/bin/gpg-error-config"
40- fi
41- ;;
42- '')
43- ;;
44- *)
45- AC_MSG_WARN([Ignoring \$SYSROOT as it is not an absolute path.])
46- ;;
47- esac
48- fi
49- fi
50-
51- AC_PATH_PROG(GPG_ERROR_CONFIG, gpg-error-config, no)
52+[
53 min_gpg_error_version=ifelse([$1], ,0.0,$1)
54- AC_MSG_CHECKING(for GPG Error - version >= $min_gpg_error_version)
55- ok=no
56- if test "$GPG_ERROR_CONFIG" != "no" \
57- && test -f "$GPG_ERROR_CONFIG" ; then
58- req_major=`echo $min_gpg_error_version | \
59- sed 's/\([[0-9]]*\)\.\([[0-9]]*\)/\1/'`
60- req_minor=`echo $min_gpg_error_version | \
61- sed 's/\([[0-9]]*\)\.\([[0-9]]*\)/\2/'`
62- gpg_error_config_version=`$GPG_ERROR_CONFIG $gpg_error_config_args --version`
63- major=`echo $gpg_error_config_version | \
64- sed 's/\([[0-9]]*\)\.\([[0-9]]*\).*/\1/'`
65- minor=`echo $gpg_error_config_version | \
66- sed 's/\([[0-9]]*\)\.\([[0-9]]*\).*/\2/'`
67- if test "$major" -gt "$req_major"; then
68- ok=yes
69- else
70- if test "$major" -eq "$req_major"; then
71- if test "$minor" -ge "$req_minor"; then
72- ok=yes
73- fi
74- fi
75- fi
76- fi
77+ PKG_CHECK_MODULES(GPG_ERROR, [gpg-error >= $min_gpg_error_version gpg-error], [ok=yes], [ok=no])
78 if test $ok = yes; then
79- GPG_ERROR_CFLAGS=`$GPG_ERROR_CONFIG $gpg_error_config_args --cflags`
80- GPG_ERROR_LIBS=`$GPG_ERROR_CONFIG $gpg_error_config_args --libs`
81- GPG_ERROR_MT_CFLAGS=`$GPG_ERROR_CONFIG $gpg_error_config_args --mt --cflags 2>/dev/null`
82- GPG_ERROR_MT_LIBS=`$GPG_ERROR_CONFIG $gpg_error_config_args --mt --libs 2>/dev/null`
83- AC_MSG_RESULT([yes ($gpg_error_config_version)])
84 ifelse([$2], , :, [$2])
85- gpg_error_config_host=`$GPG_ERROR_CONFIG $gpg_error_config_args --host 2>/dev/null || echo none`
86+ gpg_error_config_host=`$PKG_CONFIG --host gpg-error 2>/dev/null || echo none`
87 if test x"$gpg_error_config_host" != xnone ; then
88 if test x"$gpg_error_config_host" != x"$host" ; then
89 AC_MSG_WARN([[
90@@ -107,10 +45,6 @@ AC_DEFUN([AM_PATH_GPG_ERROR],
91 fi
92 fi
93 else
94- GPG_ERROR_CFLAGS=""
95- GPG_ERROR_LIBS=""
96- GPG_ERROR_MT_CFLAGS=""
97- GPG_ERROR_MT_LIBS=""
98 AC_MSG_RESULT(no)
99 ifelse([$3], , :, [$3])
100 fi
diff --git a/meta/recipes-support/pinentry/pinentry-1.1.1/gpg-error_pkconf.patch b/meta/recipes-support/pinentry/pinentry-1.1.1/gpg-error_pkconf.patch
new file mode 100644
index 0000000000..537735dba8
--- /dev/null
+++ b/meta/recipes-support/pinentry/pinentry-1.1.1/gpg-error_pkconf.patch
@@ -0,0 +1,177 @@
1From 7b60f1563ecdb7020c145de8a96cae1c0a66c595 Mon Sep 17 00:00:00 2001
2From: Armin Kuster <akuster@mvista.com>
3Date: Fri, 2 Sep 2005 11:50:01 +0000
4Subject: [PATCH] Add gtk+, avahi, dbus-0.34 (.36 coming soon) and
5
6Convert to pkg-config support to match changes done to
7the gpg-error recipe for gpg-error.pc generation.
8
9Upstream-Status: Inappropriate [OE specific]
10
11Signed-off-by: Armin Kuster <akuster@mvista.com>
12
13---
14 m4/gpg-error.m4 | 141 ++----------------------------------------------
15 1 file changed, 4 insertions(+), 137 deletions(-)
16
17diff --git a/m4/gpg-error.m4 b/m4/gpg-error.m4
18index c9b235f..a4fd41c 100644
19--- a/m4/gpg-error.m4
20+++ b/m4/gpg-error.m4
21@@ -25,141 +25,12 @@ dnl config script does not match the host specification the script
22 dnl is added to the gpg_config_script_warn variable.
23 dnl
24 AC_DEFUN([AM_PATH_GPG_ERROR],
25-[ AC_REQUIRE([AC_CANONICAL_HOST])
26- gpg_error_config_prefix=""
27- dnl --with-libgpg-error-prefix=PFX is the preferred name for this option,
28- dnl since that is consistent with how our three siblings use the directory/
29- dnl package name in --with-$dir_name-prefix=PFX.
30- AC_ARG_WITH(libgpg-error-prefix,
31- AS_HELP_STRING([--with-libgpg-error-prefix=PFX],
32- [prefix where GPG Error is installed (optional)]),
33- [gpg_error_config_prefix="$withval"])
34-
35- dnl Accept --with-gpg-error-prefix and make it work the same as
36- dnl --with-libgpg-error-prefix above, for backwards compatibility,
37- dnl but do not document this old, inconsistently-named option.
38- AC_ARG_WITH(gpg-error-prefix,,
39- [gpg_error_config_prefix="$withval"])
40-
41- if test x"${GPG_ERROR_CONFIG}" = x ; then
42- if test x"${gpg_error_config_prefix}" != x ; then
43- GPG_ERROR_CONFIG="${gpg_error_config_prefix}/bin/gpg-error-config"
44- else
45- case "${SYSROOT}" in
46- /*)
47- if test -x "${SYSROOT}/bin/gpg-error-config" ; then
48- GPG_ERROR_CONFIG="${SYSROOT}/bin/gpg-error-config"
49- fi
50- ;;
51- '')
52- ;;
53- *)
54- AC_MSG_WARN([Ignoring \$SYSROOT as it is not an absolute path.])
55- ;;
56- esac
57- fi
58- fi
59-
60- AC_PATH_PROG(GPG_ERROR_CONFIG, gpg-error-config, no)
61- min_gpg_error_version=ifelse([$1], ,1.33,$1)
62- ok=no
63-
64- if test "$prefix" = NONE ; then
65- prefix_option_expanded=/usr/local
66- else
67- prefix_option_expanded="$prefix"
68- fi
69- if test "$exec_prefix" = NONE ; then
70- exec_prefix_option_expanded=$prefix_option_expanded
71- else
72- exec_prefix_option_expanded=$(prefix=$prefix_option_expanded eval echo $exec_prefix)
73- fi
74- libdir_option_expanded=$(prefix=$prefix_option_expanded exec_prefix=$exec_prefix_option_expanded eval echo $libdir)
75-
76- if test -f $libdir_option_expanded/pkgconfig/gpg-error.pc; then
77- gpgrt_libdir=$libdir_option_expanded
78- else
79- if crt1_path=$(${CC:-cc} -print-file-name=crt1.o 2>/dev/null); then
80- if possible_libdir=$(cd ${crt1_path%/*} && pwd 2>/dev/null); then
81- if test -f $possible_libdir/pkgconfig/gpg-error.pc; then
82- gpgrt_libdir=$possible_libdir
83- fi
84- fi
85- fi
86- fi
87-
88- if test "$GPG_ERROR_CONFIG" = "no" -a -n "$gpgrt_libdir"; then
89- AC_PATH_PROG(GPGRT_CONFIG, gpgrt-config, no)
90- if test "$GPGRT_CONFIG" = "no"; then
91- unset GPGRT_CONFIG
92- else
93- GPGRT_CONFIG="$GPGRT_CONFIG --libdir=$gpgrt_libdir"
94- if $GPGRT_CONFIG gpg-error >/dev/null 2>&1; then
95- GPG_ERROR_CONFIG="$GPGRT_CONFIG gpg-error"
96- AC_MSG_NOTICE([Use gpgrt-config with $gpgrt_libdir as gpg-error-config])
97- gpg_error_config_version=`$GPG_ERROR_CONFIG --modversion`
98- else
99- unset GPGRT_CONFIG
100- fi
101- fi
102- else
103- gpg_error_config_version=`$GPG_ERROR_CONFIG --version`
104- fi
105- if test "$GPG_ERROR_CONFIG" != "no"; then
106- req_major=`echo $min_gpg_error_version | \
107- sed 's/\([[0-9]]*\)\.\([[0-9]]*\)/\1/'`
108- req_minor=`echo $min_gpg_error_version | \
109- sed 's/\([[0-9]]*\)\.\([[0-9]]*\)/\2/'`
110- major=`echo $gpg_error_config_version | \
111- sed 's/\([[0-9]]*\)\.\([[0-9]]*\).*/\1/'`
112- minor=`echo $gpg_error_config_version | \
113- sed 's/\([[0-9]]*\)\.\([[0-9]]*\).*/\2/'`
114- if test "$major" -gt "$req_major"; then
115- ok=yes
116- else
117- if test "$major" -eq "$req_major"; then
118- if test "$minor" -ge "$req_minor"; then
119- ok=yes
120- fi
121- fi
122- fi
123- if test -z "$GPGRT_CONFIG" -a -n "$gpgrt_libdir"; then
124- if test "$major" -gt 1 -o "$major" -eq 1 -a "$minor" -ge 33; then
125- AC_PATH_PROG(GPGRT_CONFIG, gpgrt-config, no)
126- if test "$GPGRT_CONFIG" = "no"; then
127- unset GPGRT_CONFIG
128- else
129- GPGRT_CONFIG="$GPGRT_CONFIG --libdir=$gpgrt_libdir"
130- if $GPGRT_CONFIG gpg-error >/dev/null 2>&1; then
131- GPG_ERROR_CONFIG="$GPGRT_CONFIG gpg-error"
132- AC_MSG_NOTICE([Use gpgrt-config with $gpgrt_libdir as gpg-error-config])
133- else
134- unset GPGRT_CONFIG
135- fi
136- fi
137- fi
138- fi
139- fi
140- AC_MSG_CHECKING(for GPG Error - version >= $min_gpg_error_version)
141+[
142+ min_gpg_error_version=ifelse([$1], ,0.0,$1)
143+ PKG_CHECK_MODULES(GPG_ERROR, [gpg-error >= $min_gpg_error_version gpg-error], [ok=yes], [ok=no])
144 if test $ok = yes; then
145- GPG_ERROR_CFLAGS=`$GPG_ERROR_CONFIG --cflags`
146- GPG_ERROR_LIBS=`$GPG_ERROR_CONFIG --libs`
147- if test -z "$GPGRT_CONFIG"; then
148- GPG_ERROR_MT_CFLAGS=`$GPG_ERROR_CONFIG --mt --cflags 2>/dev/null`
149- GPG_ERROR_MT_LIBS=`$GPG_ERROR_CONFIG --mt --libs 2>/dev/null`
150- else
151- GPG_ERROR_MT_CFLAGS=`$GPG_ERROR_CONFIG --variable=mtcflags 2>/dev/null`
152- GPG_ERROR_MT_CFLAGS="$GPG_ERROR_CFLAGS${GPG_ERROR_CFLAGS:+ }$GPG_ERROR_MT_CFLAGS"
153- GPG_ERROR_MT_LIBS=`$GPG_ERROR_CONFIG --variable=mtlibs 2>/dev/null`
154- GPG_ERROR_MT_LIBS="$GPG_ERROR_LIBS${GPG_ERROR_LIBS:+ }$GPG_ERROR_MT_LIBS"
155- fi
156- AC_MSG_RESULT([yes ($gpg_error_config_version)])
157 ifelse([$2], , :, [$2])
158- if test -z "$GPGRT_CONFIG"; then
159- gpg_error_config_host=`$GPG_ERROR_CONFIG --host 2>/dev/null || echo none`
160- else
161- gpg_error_config_host=`$GPG_ERROR_CONFIG --variable=host 2>/dev/null || echo none`
162- fi
163+ gpg_error_config_host=`$PKG_CONFIG --host gpg-error 2>/dev/null || echo none`
164 if test x"$gpg_error_config_host" != xnone ; then
165 if test x"$gpg_error_config_host" != x"$host" ; then
166 AC_MSG_WARN([[
167@@ -174,10 +45,6 @@ AC_DEFUN([AM_PATH_GPG_ERROR],
168 fi
169 fi
170 else
171- GPG_ERROR_CFLAGS=""
172- GPG_ERROR_LIBS=""
173- GPG_ERROR_MT_CFLAGS=""
174- GPG_ERROR_MT_LIBS=""
175 AC_MSG_RESULT(no)
176 ifelse([$3], , :, [$3])
177 fi
diff --git a/meta/recipes-support/pinentry/pinentry-1.1.0/libassuan_pkgconf.patch b/meta/recipes-support/pinentry/pinentry-1.1.1/libassuan_pkgconf.patch
index 11d564f35d..f4aec2d1c3 100644
--- a/meta/recipes-support/pinentry/pinentry-1.1.0/libassuan_pkgconf.patch
+++ b/meta/recipes-support/pinentry/pinentry-1.1.1/libassuan_pkgconf.patch
@@ -1,3 +1,8 @@
1From 26fb6c3faa27180c8ed9ada1728c3d8683a65f3a Mon Sep 17 00:00:00 2001
2From: Armin Kuster <akuster@mvista.com>
3Date: Thu, 22 May 2014 10:50:00 +0100
4Subject: [PATCH] libassuan: Improve pkgconfig support
5
1Convert to pkg-config support to match changes done to 6Convert to pkg-config support to match changes done to
2the libassuan recipe for libassuan.pc generation. 7the libassuan recipe for libassuan.pc generation.
3 8
@@ -5,55 +10,70 @@ Upstream-Status: Inappropriate [OE specific]
5 10
6Signed-off-by: Armin Kuster <akuster@mvista.com> 11Signed-off-by: Armin Kuster <akuster@mvista.com>
7 12
8Index: pinentry-1.0.0/m4/libassuan.m4 13---
9=================================================================== 14 configure.ac | 4 +--
10--- pinentry-1.0.0.orig/m4/libassuan.m4 15 m4/libassuan.m4 | 93 ++++---------------------------------------------
11+++ pinentry-1.0.0/m4/libassuan.m4 16 2 files changed, 9 insertions(+), 88 deletions(-)
12@@ -13,34 +13,8 @@ dnl 17
18diff --git a/configure.ac b/configure.ac
19index d8dcc0c..ca51766 100644
20--- a/configure.ac
21+++ b/configure.ac
22@@ -267,8 +267,8 @@ if test "$have_libassuan" = "yes"; then
23 [version of the libassuan library])
24 fi
25
26-COMMON_CFLAGS="$LIBASSUAN_CFLAGS $COMMON_CFLAGS"
27-COMMON_LIBS="$LIBASSUAN_LIBS $COMMON_LIBS"
28+COMMON_CFLAGS="$LIBASSUAN_COMMON_CFLAGS $COMMON_CFLAGS"
29+COMMON_LIBS="$LIBASSUAN_COMMON_LIBS $COMMON_LIBS"
30
31
32 dnl Checks for libsecmem.
33diff --git a/m4/libassuan.m4 b/m4/libassuan.m4
34index df50484..2057412 100644
35--- a/m4/libassuan.m4
36+++ b/m4/libassuan.m4
37@@ -15,30 +15,8 @@ dnl
13 dnl Common code used for libassuan detection [internal] 38 dnl Common code used for libassuan detection [internal]
14 dnl Returns ok set to yes or no. 39 dnl Returns ok set to yes or no.
15 dnl 40 dnl
16-AC_DEFUN([_AM_PATH_LIBASSUAN_COMMON], 41-AC_DEFUN([_AM_PATH_LIBASSUAN_COMMON],
17-[ AC_REQUIRE([AC_CANONICAL_HOST]) 42-[ AC_REQUIRE([AC_CANONICAL_HOST])
18- AC_ARG_WITH(libassuan-prefix, 43- AC_ARG_WITH(libassuan-prefix,
19- AC_HELP_STRING([--with-libassuan-prefix=PFX], 44- AS_HELP_STRING([--with-libassuan-prefix=PFX],
20- [prefix where LIBASSUAN is installed (optional)]), 45- [prefix where LIBASSUAN is installed (optional)]),
21- libassuan_config_prefix="$withval", libassuan_config_prefix="") 46- libassuan_config_prefix="$withval", libassuan_config_prefix="")
22- if test x$libassuan_config_prefix != x ; then 47- if test x$libassuan_config_prefix != x ; then
23- libassuan_config_args="$libassuan_config_args --prefix=$libassuan_config_prefix"
24- if test x${LIBASSUAN_CONFIG+set} != xset ; then 48- if test x${LIBASSUAN_CONFIG+set} != xset ; then
25- LIBASSUAN_CONFIG=$libassuan_config_prefix/bin/libassuan-config 49- LIBASSUAN_CONFIG=$libassuan_config_prefix/bin/libassuan-config
26- fi 50- fi
27- else
28- case "${SYSROOT}" in
29- /*)
30- if test -x "${SYSROOT}/bin/libassuan-config" ; then
31- LIBASSUAN_CONFIG="${SYSROOT}/bin/libassuan-config"
32- fi
33- ;;
34- '')
35- ;;
36- *)
37- AC_MSG_WARN([Ignoring \$SYSROOT as it is not an absolute path.])
38- ;;
39- esac
40- fi 51- fi
41- 52-
42- AC_PATH_TOOL(LIBASSUAN_CONFIG, libassuan-config, no) 53- use_gpgrt_config=""
54- if test x"${LIBASSUAN_CONFIG}" = x -a x"$GPGRT_CONFIG" != x -a "$GPGRT_CONFIG" != "no"; then
55- if $GPGRT_CONFIG libassuan --exists; then
56- LIBASSUAN_CONFIG="$GPGRT_CONFIG libassuan"
57- AC_MSG_NOTICE([Use gpgrt-config as libassuan-config])
58- use_gpgrt_config=yes
59- fi
60- fi
61- if test -z "$use_gpgrt_config"; then
62- AC_PATH_PROG(LIBASSUAN_CONFIG, libassuan-config, no)
63- fi
43- 64-
44+AC_DEFUN([AM_PATH_LIBASSUAN_COMMON], 65+AC_DEFUN([AM_PATH_LIBASSUAN_COMMON],
45+[ 66+[
46 tmp=ifelse([$1], ,1:0.9.2,$1) 67 tmp=ifelse([$1], ,1:0.9.2,$1)
47 if echo "$tmp" | grep ':' >/dev/null 2>/dev/null ; then 68 if echo "$tmp" | grep ':' >/dev/null 2>/dev/null ; then
48 req_libassuan_api=`echo "$tmp" | sed 's/\(.*\):\(.*\)/\1/'` 69 req_libassuan_api=`echo "$tmp" | sed 's/\(.*\):\(.*\)/\1/'`
49@@ -50,51 +24,11 @@ AC_DEFUN([_AM_PATH_LIBASSUAN_COMMON], 70@@ -48,58 +26,11 @@ AC_DEFUN([_AM_PATH_LIBASSUAN_COMMON],
50 min_libassuan_version="$tmp" 71 min_libassuan_version="$tmp"
51 fi 72 fi
52 73
53- AC_MSG_CHECKING(for LIBASSUAN - version >= $min_libassuan_version) 74- AC_MSG_CHECKING(for LIBASSUAN - version >= $min_libassuan_version)
54- ok=no 75- ok=no
55- if test "$LIBASSUAN_CONFIG" != "no" \ 76- if test "$LIBASSUAN_CONFIG" != "no"; then
56- && test -f "$LIBASSUAN_CONFIG" ; then
57- req_major=`echo $min_libassuan_version | \ 77- req_major=`echo $min_libassuan_version | \
58- sed 's/\([[0-9]]*\)\.\([[0-9]]*\)\.\([[0-9]]*\)/\1/'` 78- sed 's/\([[0-9]]*\)\.\([[0-9]]*\)\.\([[0-9]]*\)/\1/'`
59- req_minor=`echo $min_libassuan_version | \ 79- req_minor=`echo $min_libassuan_version | \
@@ -61,7 +81,11 @@ Index: pinentry-1.0.0/m4/libassuan.m4
61- req_micro=`echo $min_libassuan_version | \ 81- req_micro=`echo $min_libassuan_version | \
62- sed 's/\([[0-9]]*\)\.\([[0-9]]*\)\.\([[0-9]]*\)/\3/'` 82- sed 's/\([[0-9]]*\)\.\([[0-9]]*\)\.\([[0-9]]*\)/\3/'`
63- 83-
64- libassuan_config_version=`$LIBASSUAN_CONFIG --version` 84- if test -z "$use_gpgrt_config"; then
85- libassuan_config_version=`$LIBASSUAN_CONFIG --version`
86- else
87- libassuan_config_version=`$LIBASSUAN_CONFIG --modversion`
88- fi
65- major=`echo $libassuan_config_version | \ 89- major=`echo $libassuan_config_version | \
66- sed 's/\([[0-9]]*\)\.\([[0-9]]*\)\.\([[0-9]]*\).*/\1/'` 90- sed 's/\([[0-9]]*\)\.\([[0-9]]*\)\.\([[0-9]]*\).*/\1/'`
67- minor=`echo $libassuan_config_version | \ 91- minor=`echo $libassuan_config_version | \
@@ -95,21 +119,29 @@ Index: pinentry-1.0.0/m4/libassuan.m4
95 119
96 if test $ok = yes; then 120 if test $ok = yes; then
97 if test "$req_libassuan_api" -gt 0 ; then 121 if test "$req_libassuan_api" -gt 0 ; then
98- tmp=`$LIBASSUAN_CONFIG --api-version 2>/dev/null || echo 0` 122- if test -z "$use_gpgrt_config"; then
123- tmp=`$LIBASSUAN_CONFIG --api-version 2>/dev/null || echo 0`
124- else
125- tmp=`$LIBASSUAN_CONFIG --variable=api_version 2>/dev/null || echo 0`
126- fi
99+ tmp=`$PKG_CONFIG --variable=api_version libassuan 2>/dev/null || echo 0` 127+ tmp=`$PKG_CONFIG --variable=api_version libassuan 2>/dev/null || echo 0`
100 if test "$tmp" -gt 0 ; then 128 if test "$tmp" -gt 0 ; then
101 AC_MSG_CHECKING([LIBASSUAN API version]) 129 AC_MSG_CHECKING([LIBASSUAN API version])
102 if test "$req_libassuan_api" -eq "$tmp" ; then 130 if test "$req_libassuan_api" -eq "$tmp" ; then
103@@ -109,7 +43,7 @@ AC_DEFUN([_AM_PATH_LIBASSUAN_COMMON], 131@@ -114,11 +45,7 @@ AC_DEFUN([_AM_PATH_LIBASSUAN_COMMON],
104 132
105 if test $ok = yes; then 133 if test $ok = yes; then
106 if test x"$host" != x ; then 134 if test x"$host" != x ; then
107- libassuan_config_host=`$LIBASSUAN_CONFIG --host 2>/dev/null || echo none` 135- if test -z "$use_gpgrt_config"; then
136- libassuan_config_host=`$LIBASSUAN_CONFIG --host 2>/dev/null || echo none`
137- else
138- libassuan_config_host=`$LIBASSUAN_CONFIG --variable=host 2>/dev/null || echo none`
139- fi
108+ libassuan_config_host=`$PKG_CONFIG --host libassuan 2>/dev/null || echo 0` 140+ libassuan_config_host=`$PKG_CONFIG --host libassuan 2>/dev/null || echo 0`
109 if test x"$libassuan_config_host" != xnone ; then 141 if test x"$libassuan_config_host" != xnone ; then
110 if test x"$libassuan_config_host" != x"$host" ; then 142 if test x"$libassuan_config_host" != x"$host" ; then
111 AC_MSG_WARN([[ 143 AC_MSG_WARN([[
112@@ -132,7 +66,7 @@ dnl Test whether libassuan has at least 144@@ -141,7 +68,7 @@ dnl Test whether libassuan has at least MINIMUM-VERSION. This is
113 dnl used to test for features only available in newer versions. 145 dnl used to test for features only available in newer versions.
114 dnl 146 dnl
115 AC_DEFUN([AM_CHECK_LIBASSUAN], 147 AC_DEFUN([AM_CHECK_LIBASSUAN],
@@ -118,15 +150,15 @@ Index: pinentry-1.0.0/m4/libassuan.m4
118 if test $ok = yes; then 150 if test $ok = yes; then
119 ifelse([$2], , :, [$2]) 151 ifelse([$2], , :, [$2])
120 else 152 else
121@@ -148,16 +82,10 @@ dnl [ACTION-IF-FOUND [ 153@@ -157,16 +84,10 @@ dnl [ACTION-IF-FOUND [, ACTION-IF-NOT-FOUND ]]])
122 dnl Test for libassuan and define LIBASSUAN_CFLAGS and LIBASSUAN_LIBS 154 dnl Test for libassuan and define LIBASSUAN_CFLAGS and LIBASSUAN_LIBS
123 dnl 155 dnl
124 AC_DEFUN([AM_PATH_LIBASSUAN], 156 AC_DEFUN([AM_PATH_LIBASSUAN],
125-[ _AM_PATH_LIBASSUAN_COMMON($1) 157-[ _AM_PATH_LIBASSUAN_COMMON($1)
126+[ AM_PATH_LIBASSUAN_COMMON($1) 158+[ AM_PATH_LIBASSUAN_COMMON($1)
127 if test $ok = yes; then 159 if test $ok = yes; then
128- LIBASSUAN_CFLAGS=`$LIBASSUAN_CONFIG $libassuan_config_args --cflags` 160- LIBASSUAN_CFLAGS=`$LIBASSUAN_CONFIG --cflags`
129- LIBASSUAN_LIBS=`$LIBASSUAN_CONFIG $libassuan_config_args --libs` 161- LIBASSUAN_LIBS=`$LIBASSUAN_CONFIG --libs`
130 ifelse([$2], , :, [$2]) 162 ifelse([$2], , :, [$2])
131 else 163 else
132- LIBASSUAN_CFLAGS="" 164- LIBASSUAN_CFLAGS=""
@@ -136,18 +168,3 @@ Index: pinentry-1.0.0/m4/libassuan.m4
136- AC_SUBST(LIBASSUAN_CFLAGS) 168- AC_SUBST(LIBASSUAN_CFLAGS)
137- AC_SUBST(LIBASSUAN_LIBS) 169- AC_SUBST(LIBASSUAN_LIBS)
138 ]) 170 ])
139Index: pinentry-1.0.0/configure.ac
140===================================================================
141--- pinentry-1.0.0.orig/configure.ac
142+++ pinentry-1.0.0/configure.ac
143@@ -266,8 +266,8 @@ if test "$have_libassuan" = "yes"; then
144 [version of the libassuan library])
145 fi
146
147-COMMON_CFLAGS="$LIBASSUAN_CFLAGS $COMMON_CFLAGS"
148-COMMON_LIBS="$LIBASSUAN_LIBS $COMMON_LIBS"
149+COMMON_CFLAGS="$LIBASSUAN_COMMON_CFLAGS $COMMON_CFLAGS"
150+COMMON_LIBS="$LIBASSUAN_COMMON_LIBS $COMMON_LIBS"
151
152
153 dnl Checks for libsecmem.
diff --git a/meta/recipes-support/pinentry/pinentry_1.1.0.bb b/meta/recipes-support/pinentry/pinentry_1.1.1.bb
index d9ca0732f7..98577fe3ef 100644
--- a/meta/recipes-support/pinentry/pinentry_1.1.0.bb
+++ b/meta/recipes-support/pinentry/pinentry_1.1.1.bb
@@ -16,8 +16,7 @@ SRC_URI = "${GNUPG_MIRROR}/${BPN}/${BPN}-${PV}.tar.bz2 \
16 file://gpg-error_pkconf.patch \ 16 file://gpg-error_pkconf.patch \
17" 17"
18 18
19SRC_URI[md5sum] = "3829315cb0a1e9cedc05ffe6def7a2c6" 19SRC_URI[sha256sum] = "cd12a064013ed18e2ee8475e669b9f58db1b225a0144debdb85a68cecddba57f"
20SRC_URI[sha256sum] = "68076686fa724a290ea49cdf0d1c0c1500907d1b759a3bcbfbec0293e8f56570"
21 20
22inherit autotools pkgconfig 21inherit autotools pkgconfig
23 22