summaryrefslogtreecommitdiffstats
path: root/meta/recipes-support/libgpg-error/libgpg-error/pkgconfig.patch
diff options
context:
space:
mode:
Diffstat (limited to 'meta/recipes-support/libgpg-error/libgpg-error/pkgconfig.patch')
-rw-r--r--meta/recipes-support/libgpg-error/libgpg-error/pkgconfig.patch129
1 files changed, 72 insertions, 57 deletions
diff --git a/meta/recipes-support/libgpg-error/libgpg-error/pkgconfig.patch b/meta/recipes-support/libgpg-error/libgpg-error/pkgconfig.patch
index 83054a9c44..aea8eba5fa 100644
--- a/meta/recipes-support/libgpg-error/libgpg-error/pkgconfig.patch
+++ b/meta/recipes-support/libgpg-error/libgpg-error/pkgconfig.patch
@@ -1,4 +1,4 @@
1From ec309e20b5a27d42a5fb915c328d61e924ab5f19 Mon Sep 17 00:00:00 2001 1From 62651c5c7b4a391f16dbe1b09c6e220efe5c8a35 Mon Sep 17 00:00:00 2001
2From: Hongxu Jia <hongxu.jia@windriver.com> 2From: Hongxu Jia <hongxu.jia@windriver.com>
3Date: Thu, 29 Mar 2018 15:12:17 +0800 3Date: Thu, 29 Mar 2018 15:12:17 +0800
4Subject: [PATCH] support pkgconfig 4Subject: [PATCH] support pkgconfig
@@ -12,15 +12,16 @@ Signed-off-by: Hongxu Jia <hongxu.jia@windriver.com>
12Refactored for 1.33 12Refactored for 1.33
13Signed-off-by: Armin Kuster <akuster808@gmail.com> 13Signed-off-by: Armin Kuster <akuster808@gmail.com>
14Signed-off-by: Zheng Ruoqin <zhengrq.fnst@cn.fujitsu.com> 14Signed-off-by: Zheng Ruoqin <zhengrq.fnst@cn.fujitsu.com>
15
15--- 16---
16 src/gpg-error.m4 | 142 +---------------------------------------------- 17 src/gpg-error.m4 | 159 +----------------------------------------------
17 1 file changed, 3 insertions(+), 139 deletions(-) 18 1 file changed, 3 insertions(+), 156 deletions(-)
18 19
19diff --git a/src/gpg-error.m4 b/src/gpg-error.m4 20diff --git a/src/gpg-error.m4 b/src/gpg-error.m4
20index c9b235f..176bd6a 100644 21index d910754..76f045c 100644
21--- a/src/gpg-error.m4 22--- a/src/gpg-error.m4
22+++ b/src/gpg-error.m4 23+++ b/src/gpg-error.m4
23@@ -26,139 +26,12 @@ dnl is added to the gpg_config_script_warn variable. 24@@ -27,156 +27,12 @@ dnl is added to the gpg_config_script_warn variable.
24 dnl 25 dnl
25 AC_DEFUN([AM_PATH_GPG_ERROR], 26 AC_DEFUN([AM_PATH_GPG_ERROR],
26 [ AC_REQUIRE([AC_CANONICAL_HOST]) 27 [ AC_REQUIRE([AC_CANONICAL_HOST])
@@ -62,45 +63,78 @@ index c9b235f..176bd6a 100644
62- min_gpg_error_version=ifelse([$1], ,1.33,$1) 63- min_gpg_error_version=ifelse([$1], ,1.33,$1)
63- ok=no 64- ok=no
64- 65-
65- if test "$prefix" = NONE ; then 66- AC_PATH_PROG(GPGRT_CONFIG, gpgrt-config, no)
66- prefix_option_expanded=/usr/local 67- if test "$GPGRT_CONFIG" != "no"; then
67- else 68- # Determine gpgrt_libdir
68- prefix_option_expanded="$prefix" 69- #
69- fi 70- # Get the prefix of gpgrt-config assuming it's something like:
70- if test "$exec_prefix" = NONE ; then 71- # <PREFIX>/bin/gpgrt-config
71- exec_prefix_option_expanded=$prefix_option_expanded 72- gpgrt_prefix=${GPGRT_CONFIG%/*/*}
72- else 73- possible_libdir1=${gpgrt_prefix}/lib
73- exec_prefix_option_expanded=$(prefix=$prefix_option_expanded eval echo $exec_prefix) 74- # Determine by using system libdir-format with CC, it's like:
74- fi 75- # Normal style: /usr/lib
75- libdir_option_expanded=$(prefix=$prefix_option_expanded exec_prefix=$exec_prefix_option_expanded eval echo $libdir) 76- # GNU cross style: /usr/<triplet>/lib
77- # Debian style: /usr/lib/<multiarch-name>
78- # Fedora/openSUSE style: /usr/lib, /usr/lib32 or /usr/lib64
79- # It is assumed that CC is specified to the one of host on cross build.
80- if libdir_candidates=$(${CC:-cc} -print-search-dirs | \
81- sed -n -e "/^libraries/{s/libraries: =//;s/:/\n/gp}"); then
82- # From the output of -print-search-dirs, select valid pkgconfig dirs.
83- libdir_candidates=$(for dir in $libdir_candidates; do
84- if p=$(cd $dir 2>/dev/null && pwd); then
85- test -d "$p/pkgconfig" && echo $p;
86- fi
87- done)
76- 88-
77- if test -f $libdir_option_expanded/pkgconfig/gpg-error.pc; then 89- for possible_libdir0 in $libdir_candidates; do
78- gpgrt_libdir=$libdir_option_expanded 90- # possible_libdir0:
79- else 91- # Fallback candidate, the one of system-installed (by $CC)
80- if crt1_path=$(${CC:-cc} -print-file-name=crt1.o 2>/dev/null); then 92- # (/usr/<triplet>/lib, /usr/lib/<multiarch-name> or /usr/lib32)
81- if possible_libdir=$(cd ${crt1_path%/*} && pwd 2>/dev/null); then 93- # possible_libdir1:
82- if test -f $possible_libdir/pkgconfig/gpg-error.pc; then 94- # Another candidate, user-locally-installed
83- gpgrt_libdir=$possible_libdir 95- # (<gpgrt_prefix>/lib)
96- # possible_libdir2
97- # Most preferred
98- # (<gpgrt_prefix>/<triplet>/lib,
99- # <gpgrt_prefix>/lib/<multiarch-name> or <gpgrt_prefix>/lib32)
100- if test "${possible_libdir0##*/}" = "lib"; then
101- possible_prefix0=${possible_libdir0%/lib}
102- possible_prefix0_triplet=${possible_prefix0##*/}
103- if test -z "$possible_prefix0_triplet"; then
104- continue
105- fi
106- possible_libdir2=${gpgrt_prefix}/$possible_prefix0_triplet/lib
107- else
108- possible_prefix0=${possible_libdir0%%/lib*}
109- possible_libdir2=${gpgrt_prefix}${possible_libdir0#$possible_prefix0}
110- fi
111- if test -f ${possible_libdir2}/pkgconfig/gpg-error.pc; then
112- gpgrt_libdir=${possible_libdir2}
113- elif test -f ${possible_libdir1}/pkgconfig/gpg-error.pc; then
114- gpgrt_libdir=${possible_libdir1}
115- elif test -f ${possible_libdir0}/pkgconfig/gpg-error.pc; then
116- gpgrt_libdir=${possible_libdir0}
84- fi 117- fi
85- fi 118- if test -n "$gpgrt_libdir"; then break; fi
119- done
120- else
121- # When we cannot determine system libdir-format, use this:
122- gpgrt_libdir=${possible_libdir1}
86- fi 123- fi
124- else
125- unset GPGRT_CONFIG
87- fi 126- fi
88- 127-
89- if test "$GPG_ERROR_CONFIG" = "no" -a -n "$gpgrt_libdir"; then 128- if test -n "$gpgrt_libdir"; then
90- AC_PATH_PROG(GPGRT_CONFIG, gpgrt-config, no) 129- GPGRT_CONFIG="$GPGRT_CONFIG --libdir=$gpgrt_libdir"
91- if test "$GPGRT_CONFIG" = "no"; then 130- if $GPGRT_CONFIG gpg-error >/dev/null 2>&1; then
92- unset GPGRT_CONFIG 131- GPG_ERROR_CONFIG="$GPGRT_CONFIG gpg-error"
132- AC_MSG_NOTICE([Use gpgrt-config with $gpgrt_libdir as gpg-error-config])
133- gpg_error_config_version=`$GPG_ERROR_CONFIG --modversion`
93- else 134- else
94- GPGRT_CONFIG="$GPGRT_CONFIG --libdir=$gpgrt_libdir" 135- unset GPGRT_CONFIG
95- if $GPGRT_CONFIG gpg-error >/dev/null 2>&1; then
96- GPG_ERROR_CONFIG="$GPGRT_CONFIG gpg-error"
97- AC_MSG_NOTICE([Use gpgrt-config with $gpgrt_libdir as gpg-error-config])
98- gpg_error_config_version=`$GPG_ERROR_CONFIG --modversion`
99- else
100- unset GPGRT_CONFIG
101- fi
102- fi 136- fi
103- else 137- elif test "$GPG_ERROR_CONFIG" != "no"; then
104- gpg_error_config_version=`$GPG_ERROR_CONFIG --version` 138- gpg_error_config_version=`$GPG_ERROR_CONFIG --version`
105- fi 139- fi
106- if test "$GPG_ERROR_CONFIG" != "no"; then 140- if test "$GPG_ERROR_CONFIG" != "no"; then
@@ -121,22 +155,6 @@ index c9b235f..176bd6a 100644
121- fi 155- fi
122- fi 156- fi
123- fi 157- fi
124- if test -z "$GPGRT_CONFIG" -a -n "$gpgrt_libdir"; then
125- if test "$major" -gt 1 -o "$major" -eq 1 -a "$minor" -ge 33; then
126- AC_PATH_PROG(GPGRT_CONFIG, gpgrt-config, no)
127- if test "$GPGRT_CONFIG" = "no"; then
128- unset GPGRT_CONFIG
129- else
130- GPGRT_CONFIG="$GPGRT_CONFIG --libdir=$gpgrt_libdir"
131- if $GPGRT_CONFIG gpg-error >/dev/null 2>&1; then
132- GPG_ERROR_CONFIG="$GPGRT_CONFIG gpg-error"
133- AC_MSG_NOTICE([Use gpgrt-config with $gpgrt_libdir as gpg-error-config])
134- else
135- unset GPGRT_CONFIG
136- fi
137- fi
138- fi
139- fi
140- fi 158- fi
141- AC_MSG_CHECKING(for GPG Error - version >= $min_gpg_error_version) 159- AC_MSG_CHECKING(for GPG Error - version >= $min_gpg_error_version)
142+ min_gpg_error_version=ifelse([$1], ,0.0,$1) 160+ min_gpg_error_version=ifelse([$1], ,0.0,$1)
@@ -163,7 +181,7 @@ index c9b235f..176bd6a 100644
163 fi 181 fi
164 if test x"$gpg_error_config_host" != xnone ; then 182 if test x"$gpg_error_config_host" != xnone ; then
165 if test x"$gpg_error_config_host" != x"$host" ; then 183 if test x"$gpg_error_config_host" != x"$host" ; then
166@@ -174,15 +47,6 @@ AC_DEFUN([AM_PATH_GPG_ERROR], 184@@ -192,15 +48,6 @@ AC_DEFUN([AM_PATH_GPG_ERROR],
167 fi 185 fi
168 fi 186 fi
169 else 187 else
@@ -179,6 +197,3 @@ index c9b235f..176bd6a 100644
179- AC_SUBST(GPG_ERROR_MT_CFLAGS) 197- AC_SUBST(GPG_ERROR_MT_CFLAGS)
180- AC_SUBST(GPG_ERROR_MT_LIBS) 198- AC_SUBST(GPG_ERROR_MT_LIBS)
181 ]) 199 ])
182--
1832.25.1
184