blob: 9ffeedbe5a0106864588cc5b592c361ab8db4598 [file] [log] [blame]
Patrick Williamsc124f4f2015-09-15 14:41:29 -05001
2#
3# Patch managed by http://www.mn-logistik.de/unsupported/pxa250/patcher
4#
5
6Upstream-Status: Pending
7
8Index: libgpg-error-1.17/configure.ac
9===================================================================
10--- libgpg-error-1.17.orig/configure.ac
11+++ libgpg-error-1.17/configure.ac
12@@ -529,6 +529,7 @@ AC_CONFIG_FILES([src/Makefile tests/Make
13 AC_CONFIG_FILES([lang/Makefile lang/cl/Makefile lang/cl/gpg-error.asd])
14 AC_CONFIG_FILES([src/versioninfo.rc src/gpg-error.w32-manifest])
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
20Index: libgpg-error-1.17/src/Makefile.am
21===================================================================
22--- libgpg-error-1.17.orig/src/Makefile.am
23+++ libgpg-error-1.17/src/Makefile.am
24@@ -75,6 +75,8 @@ nodist_include_HEADERS = gpg-error.h
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@@ -82,7 +84,7 @@ EXTRA_DIST = mkstrtable.awk err-sources.
34 mkheader.c 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.vers gpg-error.def.in \
37- versioninfo.rc.in gpg-error.w32-manifest.in \
38+ versioninfo.rc.in gpg-error.w32-manifest.in gpg-error.pc \
39 $(lock_obj_pub)
40
41 BUILT_SOURCES = err-sources.h err-codes.h code-to-errno.h code-from-errno.h \
42Index: libgpg-error-1.17/src/gpg-error.m4
43===================================================================
44--- libgpg-error-1.17.orig/src/gpg-error.m4
45+++ libgpg-error-1.17/src/gpg-error.m4
46@@ -26,73 +26,13 @@ dnl is added to the gpg_config_script_wa
47 dnl
48 AC_DEFUN([AM_PATH_GPG_ERROR],
49 [ AC_REQUIRE([AC_CANONICAL_HOST])
50- gpg_error_config_prefix=""
51- dnl --with-libgpg-error-prefix=PFX is the preferred name for this option,
52- dnl since that is consistent with how our three siblings use the directory/
53- dnl package name in --with-$dir_name-prefix=PFX.
54- AC_ARG_WITH(libgpg-error-prefix,
55- AC_HELP_STRING([--with-libgpg-error-prefix=PFX],
56- [prefix where GPG Error is installed (optional)]),
57- [gpg_error_config_prefix="$withval"])
58-
59- dnl Accept --with-gpg-error-prefix and make it work the same as
60- dnl --with-libgpg-error-prefix above, for backwards compatibility,
61- dnl but do not document this old, inconsistently-named option.
62- AC_ARG_WITH(gpg-error-prefix,,
63- [gpg_error_config_prefix="$withval"])
64+ min_gpg_error_version=ifelse([$1], ,0.0,$1)
65
66- if test x"${GPG_ERROR_CONFIG}" = x ; then
67- if test x"${gpg_error_config_prefix}" != x ; then
68- GPG_ERROR_CONFIG="${gpg_error_config_prefix}/bin/gpg-error-config"
69- else
70- case "${SYSROOT}" in
71- /*)
72- if test -x "${SYSROOT}/bin/gpg-error-config" ; then
73- GPG_ERROR_CONFIG="${SYSROOT}/bin/gpg-error-config"
74- fi
75- ;;
76- '')
77- ;;
78- *)
79- AC_MSG_WARN([Ignoring \$SYSROOT as it is not an absolute path.])
80- ;;
81- esac
82- fi
83- fi
84+ PKG_CHECK_MODULES(GPG_ERROR, [gpg-error >= $min_gpg_error_version], [ok=yes], [ok=no])
85
86- AC_PATH_PROG(GPG_ERROR_CONFIG, gpg-error-config, no)
87- min_gpg_error_version=ifelse([$1], ,0.0,$1)
88- AC_MSG_CHECKING(for GPG Error - version >= $min_gpg_error_version)
89- ok=no
90- if test "$GPG_ERROR_CONFIG" != "no" \
91- && test -f "$GPG_ERROR_CONFIG" ; then
92- req_major=`echo $min_gpg_error_version | \
93- sed 's/\([[0-9]]*\)\.\([[0-9]]*\)/\1/'`
94- req_minor=`echo $min_gpg_error_version | \
95- sed 's/\([[0-9]]*\)\.\([[0-9]]*\)/\2/'`
96- gpg_error_config_version=`$GPG_ERROR_CONFIG $gpg_error_config_args --version`
97- major=`echo $gpg_error_config_version | \
98- sed 's/\([[0-9]]*\)\.\([[0-9]]*\).*/\1/'`
99- minor=`echo $gpg_error_config_version | \
100- sed 's/\([[0-9]]*\)\.\([[0-9]]*\).*/\2/'`
101- if test "$major" -gt "$req_major"; then
102- ok=yes
103- else
104- if test "$major" -eq "$req_major"; then
105- if test "$minor" -ge "$req_minor"; then
106- ok=yes
107- fi
108- fi
109- fi
110- fi
111 if test $ok = yes; then
112- GPG_ERROR_CFLAGS=`$GPG_ERROR_CONFIG $gpg_error_config_args --cflags`
113- GPG_ERROR_LIBS=`$GPG_ERROR_CONFIG $gpg_error_config_args --libs`
114- GPG_ERROR_MT_CFLAGS=`$GPG_ERROR_CONFIG $gpg_error_config_args --mt --cflags 2>/dev/null`
115- GPG_ERROR_MT_LIBS=`$GPG_ERROR_CONFIG $gpg_error_config_args --mt --libs 2>/dev/null`
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@@ -107,11 +47,6 @@ AC_DEFUN([AM_PATH_GPG_ERROR],
124 fi
125 fi
126 else
127- GPG_ERROR_CFLAGS=""
128- GPG_ERROR_LIBS=""
129- GPG_ERROR_MT_CFLAGS=""
130- GPG_ERROR_MT_LIBS=""
131- AC_MSG_RESULT(no)
132 ifelse([$3], , :, [$3])
133 fi
134 AC_SUBST(GPG_ERROR_CFLAGS)
135Index: libgpg-error-1.17/src/gpg-error.pc.in
136===================================================================
137--- /dev/null
138+++ libgpg-error-1.17/src/gpg-error.pc.in
139@@ -0,0 +1,11 @@
140+prefix=@prefix@
141+exec_prefix=@exec_prefix@
142+libdir=@libdir@
143+includedir=@includedir@
144+host=@GPG_ERROR_CONFIG_HOST@
145+
146+Name: gpg-error
147+Description: a library that defines common error values for all GnuPG components
148+Version: @VERSION@
149+Libs: -L${libdir} -lgpg-error
150+Cflags: -I${includedir}