diff options
Diffstat (limited to 'meta/recipes-support/libgpg-error/libgpg-error-1.12/pkgconfig.patch')
-rw-r--r-- | meta/recipes-support/libgpg-error/libgpg-error-1.12/pkgconfig.patch | 132 |
1 files changed, 132 insertions, 0 deletions
diff --git a/meta/recipes-support/libgpg-error/libgpg-error-1.12/pkgconfig.patch b/meta/recipes-support/libgpg-error/libgpg-error-1.12/pkgconfig.patch new file mode 100644 index 0000000000..89c9d22bf2 --- /dev/null +++ b/meta/recipes-support/libgpg-error/libgpg-error-1.12/pkgconfig.patch | |||
@@ -0,0 +1,132 @@ | |||
1 | |||
2 | # | ||
3 | # Patch managed by http://www.mn-logistik.de/unsupported/pxa250/patcher | ||
4 | # | ||
5 | |||
6 | Upstream-Status: Pending | ||
7 | |||
8 | Index: libgpg-error-1.12/configure.ac | ||
9 | =================================================================== | ||
10 | --- libgpg-error-1.12.orig/configure.ac 2014-05-13 21:14:26.846393236 +0000 | ||
11 | +++ libgpg-error-1.12/configure.ac 2014-05-13 21:14:26.926393236 +0000 | ||
12 | @@ -217,6 +217,7 @@ | ||
13 | AC_CONFIG_FILES([lang/Makefile lang/cl/Makefile lang/cl/gpg-error.asd]) | ||
14 | AC_CONFIG_FILES([src/versioninfo.rc]) | ||
15 | AC_CONFIG_FILES([src/gpg-error-config], [chmod +x src/gpg-error-config]) | ||
16 | +AC_CONFIG_FILES([src/gpg-error.pc]) | ||
17 | |||
18 | AC_OUTPUT | ||
19 | |||
20 | Index: libgpg-error-1.12/src/Makefile.am | ||
21 | =================================================================== | ||
22 | --- libgpg-error-1.12.orig/src/Makefile.am 2014-05-13 21:14:26.846393236 +0000 | ||
23 | +++ libgpg-error-1.12/src/Makefile.am 2014-05-13 21:14:26.934393236 +0000 | ||
24 | @@ -37,13 +37,15 @@ | ||
25 | bin_SCRIPTS = gpg-error-config | ||
26 | m4datadir = $(datadir)/aclocal | ||
27 | m4data_DATA = gpg-error.m4 | ||
28 | +pkgconfigdir = $(libdir)/pkgconfig | ||
29 | +pkgconfig_DATA = gpg-error.pc | ||
30 | |||
31 | EXTRA_DIST = mkstrtable.awk err-sources.h.in err-codes.h.in \ | ||
32 | mkerrnos.awk errnos.in README \ | ||
33 | mkerrcodes.awk mkerrcodes1.awk mkerrcodes2.awk mkerrcodes.c \ | ||
34 | mkheader.awk gpg-error.h.in mkw32errmap.c w32-add.h w32ce-add.h \ | ||
35 | err-sources.h err-codes.h gpg-error-config.in gpg-error.m4 \ | ||
36 | - gpg-error.def.in versioninfo.rc.in | ||
37 | + gpg-error.def.in versioninfo.rc.in gpg-error.pc.in | ||
38 | |||
39 | BUILT_SOURCES = err-sources.h err-codes.h code-to-errno.h code-from-errno.h \ | ||
40 | err-sources-sym.h err-codes-sym.h errnos-sym.h gpg-error.h \ | ||
41 | Index: libgpg-error-1.12/src/gpg-error.pc.in | ||
42 | =================================================================== | ||
43 | --- /dev/null 1970-01-01 00:00:00.000000000 +0000 | ||
44 | +++ libgpg-error-1.12/src/gpg-error.pc.in 2014-05-13 21:48:20.266382916 +0000 | ||
45 | @@ -0,0 +1,11 @@ | ||
46 | +prefix=@prefix@ | ||
47 | +exec_prefix=@exec_prefix@ | ||
48 | +libdir=@libdir@ | ||
49 | +includedir=@includedir@ | ||
50 | +host=@GPG_ERROR_CONFIG_HOST@ | ||
51 | + | ||
52 | +Name: gpg-error | ||
53 | +Description: a library that defines common error values for all GnuPG components | ||
54 | +Version: @VERSION@ | ||
55 | +Libs: -L${libdir} -lgpg-error | ||
56 | +Cflags: -I${includedir} | ||
57 | Index: libgpg-error-1.12/src/gpg-error.m4 | ||
58 | =================================================================== | ||
59 | --- libgpg-error-1.12.orig/src/gpg-error.m4 2014-05-13 21:45:02.038383922 +0000 | ||
60 | +++ libgpg-error-1.12/src/gpg-error.m4 2014-05-13 21:47:08.362383281 +0000 | ||
61 | @@ -15,58 +15,14 @@ | ||
62 | dnl | ||
63 | AC_DEFUN([AM_PATH_GPG_ERROR], | ||
64 | [ AC_REQUIRE([AC_CANONICAL_HOST]) | ||
65 | - gpg_error_config_prefix="" | ||
66 | - dnl --with-libgpg-error-prefix=PFX is the preferred name for this option, | ||
67 | - dnl since that is consistent with how our three siblings use the directory/ | ||
68 | - dnl package name in --with-$dir_name-prefix=PFX. | ||
69 | - AC_ARG_WITH(libgpg-error-prefix, | ||
70 | - AC_HELP_STRING([--with-libgpg-error-prefix=PFX], | ||
71 | - [prefix where GPG Error is installed (optional)]), | ||
72 | - [gpg_error_config_prefix="$withval"]) | ||
73 | |||
74 | - dnl Accept --with-gpg-error-prefix and make it work the same as | ||
75 | - dnl --with-libgpg-error-prefix above, for backwards compatibility, | ||
76 | - dnl but do not document this old, inconsistently-named option. | ||
77 | - AC_ARG_WITH(gpg-error-prefix,, | ||
78 | - [gpg_error_config_prefix="$withval"]) | ||
79 | + min_gpg_error_version=ifelse([$1], ,0.0,$1) | ||
80 | |||
81 | - if test x$gpg_error_config_prefix != x ; then | ||
82 | - if test x${GPG_ERROR_CONFIG+set} != xset ; then | ||
83 | - GPG_ERROR_CONFIG=$gpg_error_config_prefix/bin/gpg-error-config | ||
84 | - fi | ||
85 | - fi | ||
86 | + PKG_CHECK_MODULES(GPG_ERROR, [gpg-error >= $min_gpg_error_version], [ok=yes], [ok=no]) | ||
87 | |||
88 | - AC_PATH_TOOL(GPG_ERROR_CONFIG, gpg-error-config, no) | ||
89 | - min_gpg_error_version=ifelse([$1], ,0.0,$1) | ||
90 | - AC_MSG_CHECKING(for GPG Error - version >= $min_gpg_error_version) | ||
91 | - ok=no | ||
92 | - if test "$GPG_ERROR_CONFIG" != "no" \ | ||
93 | - && test -f "$GPG_ERROR_CONFIG" ; then | ||
94 | - req_major=`echo $min_gpg_error_version | \ | ||
95 | - sed 's/\([[0-9]]*\)\.\([[0-9]]*\)/\1/'` | ||
96 | - req_minor=`echo $min_gpg_error_version | \ | ||
97 | - sed 's/\([[0-9]]*\)\.\([[0-9]]*\)/\2/'` | ||
98 | - gpg_error_config_version=`$GPG_ERROR_CONFIG $gpg_error_config_args --version` | ||
99 | - major=`echo $gpg_error_config_version | \ | ||
100 | - sed 's/\([[0-9]]*\)\.\([[0-9]]*\).*/\1/'` | ||
101 | - minor=`echo $gpg_error_config_version | \ | ||
102 | - sed 's/\([[0-9]]*\)\.\([[0-9]]*\).*/\2/'` | ||
103 | - if test "$major" -gt "$req_major"; then | ||
104 | - ok=yes | ||
105 | - else | ||
106 | - if test "$major" -eq "$req_major"; then | ||
107 | - if test "$minor" -ge "$req_minor"; then | ||
108 | - ok=yes | ||
109 | - fi | ||
110 | - fi | ||
111 | - fi | ||
112 | - fi | ||
113 | if test $ok = yes; then | ||
114 | - GPG_ERROR_CFLAGS=`$GPG_ERROR_CONFIG $gpg_error_config_args --cflags` | ||
115 | - GPG_ERROR_LIBS=`$GPG_ERROR_CONFIG $gpg_error_config_args --libs` | ||
116 | - AC_MSG_RESULT([yes ($gpg_error_config_version)]) | ||
117 | ifelse([$2], , :, [$2]) | ||
118 | - gpg_error_config_host=`$GPG_ERROR_CONFIG $gpg_error_config_args --host 2>/dev/null || echo none` | ||
119 | + gpg_error_config_host=`$PKG_CONFIG --variable=host gpg-error` | ||
120 | if test x"$gpg_error_config_host" != xnone ; then | ||
121 | if test x"$gpg_error_config_host" != x"$host" ; then | ||
122 | AC_MSG_WARN([[ | ||
123 | @@ -80,9 +36,6 @@ | ||
124 | fi | ||
125 | fi | ||
126 | else | ||
127 | - GPG_ERROR_CFLAGS="" | ||
128 | - GPG_ERROR_LIBS="" | ||
129 | - AC_MSG_RESULT(no) | ||
130 | ifelse([$3], , :, [$3]) | ||
131 | fi | ||
132 | AC_SUBST(GPG_ERROR_CFLAGS) | ||