OpenSDE Packages Database (without history before r20070)
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

165 lines
6.3 KiB

  1. # --- SDE-COPYRIGHT-NOTE-BEGIN ---
  2. # This copyright note is auto-generated by ./scripts/Create-CopyPatch.
  3. #
  4. # Filename: package/.../libgpg-error/pkgconfig.patch
  5. # Copyright (C) 2015 The OpenSDE Project
  6. #
  7. # More information can be found in the files COPYING and README.
  8. #
  9. # This patch file is dual-licensed. It is available under the license the
  10. # patched project is licensed under, as long as it is an OpenSource license
  11. # as defined at http://www.opensource.org/ (e.g. BSD, X11) or under the terms
  12. # of the GNU General Public License as published by the Free Software
  13. # Foundation; either version 2 of the License, or (at your option) any later
  14. # version.
  15. # --- SDE-COPYRIGHT-NOTE-END ---
  16. #
  17. # Patch managed by http://www.mn-logistik.de/unsupported/pxa250/patcher
  18. #
  19. Upstream-Status: Pending
  20. Index: libgpg-error-1.17/configure.ac
  21. ===================================================================
  22. --- libgpg-error-1.17.orig/configure.ac
  23. +++ libgpg-error-1.17/configure.ac
  24. @@ -521,6 +521,7 @@ AC_CONFIG_FILES([src/Makefile tests/Make
  25. AC_CONFIG_FILES([lang/Makefile lang/cl/Makefile lang/cl/gpg-error.asd])
  26. AC_CONFIG_FILES([src/versioninfo.rc])
  27. AC_CONFIG_FILES([src/gpg-error-config], [chmod +x src/gpg-error-config])
  28. +AC_CONFIG_FILES([src/gpg-error.pc])
  29. AC_OUTPUT
  30. Index: libgpg-error-1.17/src/Makefile.am
  31. ===================================================================
  32. --- libgpg-error-1.17.orig/src/Makefile.am
  33. +++ libgpg-error-1.17/src/Makefile.am
  34. @@ -74,13 +74,15 @@ nodist_include_HEADERS = gpg-error.h
  35. bin_SCRIPTS = gpg-error-config
  36. m4datadir = $(datadir)/aclocal
  37. m4data_DATA = gpg-error.m4
  38. +pkgconfigdir = $(libdir)/pkgconfig
  39. +pkgconfig_DATA = gpg-error.pc
  40. EXTRA_DIST = mkstrtable.awk err-sources.h.in err-codes.h.in \
  41. mkerrnos.awk errnos.in README \
  42. mkerrcodes.awk mkerrcodes1.awk mkerrcodes2.awk mkerrcodes.c \
  43. mkheader.c gpg-error.h.in mkw32errmap.c w32-add.h w32ce-add.h \
  44. err-sources.h err-codes.h gpg-error-config.in gpg-error.m4 \
  45. - gpg-error.vers gpg-error.def.in versioninfo.rc.in \
  46. + gpg-error.vers gpg-error.def.in versioninfo.rc.in gpg-error.pc \
  47. $(lock_obj_pub)
  48. BUILT_SOURCES = err-sources.h err-codes.h code-to-errno.h code-from-errno.h \
  49. Index: libgpg-error-1.17/src/gpg-error.pc.in
  50. ===================================================================
  51. --- /dev/null
  52. +++ libgpg-error-1.17/src/gpg-error.pc.in
  53. @@ -0,0 +1,11 @@
  54. +prefix=@prefix@
  55. +exec_prefix=@exec_prefix@
  56. +libdir=@libdir@
  57. +includedir=@includedir@
  58. +host=@GPG_ERROR_CONFIG_HOST@
  59. +
  60. +Name: gpg-error
  61. +Description: a library that defines common error values for all GnuPG components
  62. +Version: @VERSION@
  63. +Libs: -L${libdir} -lgpg-error
  64. +Cflags: -I${includedir}
  65. Index: libgpg-error-1.17/src/gpg-error.m4
  66. ===================================================================
  67. --- libgpg-error-1.17.orig/src/gpg-error.m4
  68. +++ libgpg-error-1.17/src/gpg-error.m4
  69. @@ -26,73 +26,13 @@ dnl is added to the gpg_config_script_wa
  70. dnl
  71. AC_DEFUN([AM_PATH_GPG_ERROR],
  72. [ AC_REQUIRE([AC_CANONICAL_HOST])
  73. - gpg_error_config_prefix=""
  74. - dnl --with-libgpg-error-prefix=PFX is the preferred name for this option,
  75. - dnl since that is consistent with how our three siblings use the directory/
  76. - dnl package name in --with-$dir_name-prefix=PFX.
  77. - AC_ARG_WITH(libgpg-error-prefix,
  78. - AC_HELP_STRING([--with-libgpg-error-prefix=PFX],
  79. - [prefix where GPG Error is installed (optional)]),
  80. - [gpg_error_config_prefix="$withval"])
  81. -
  82. - dnl Accept --with-gpg-error-prefix and make it work the same as
  83. - dnl --with-libgpg-error-prefix above, for backwards compatibility,
  84. - dnl but do not document this old, inconsistently-named option.
  85. - AC_ARG_WITH(gpg-error-prefix,,
  86. - [gpg_error_config_prefix="$withval"])
  87. + min_gpg_error_version=ifelse([$1], ,0.0,$1)
  88. - if test x"${GPG_ERROR_CONFIG}" = x ; then
  89. - if test x"${gpg_error_config_prefix}" != x ; then
  90. - GPG_ERROR_CONFIG="${gpg_error_config_prefix}/bin/gpg-error-config"
  91. - else
  92. - case "${SYSROOT}" in
  93. - /*)
  94. - if test -x "${SYSROOT}/bin/gpg-error-config" ; then
  95. - GPG_ERROR_CONFIG="${SYSROOT}/bin/gpg-error-config"
  96. - fi
  97. - ;;
  98. - '')
  99. - ;;
  100. - *)
  101. - AC_MSG_WARN([Ignoring \$SYSROOT as it is not an absolute path.])
  102. - ;;
  103. - esac
  104. - fi
  105. - fi
  106. + PKG_CHECK_MODULES(GPG_ERROR, [gpg-error >= $min_gpg_error_version], [ok=yes], [ok=no])
  107. - AC_PATH_PROG(GPG_ERROR_CONFIG, gpg-error-config, no)
  108. - min_gpg_error_version=ifelse([$1], ,0.0,$1)
  109. - AC_MSG_CHECKING(for GPG Error - version >= $min_gpg_error_version)
  110. - ok=no
  111. - if test "$GPG_ERROR_CONFIG" != "no" \
  112. - && test -f "$GPG_ERROR_CONFIG" ; then
  113. - req_major=`echo $min_gpg_error_version | \
  114. - sed 's/\([[0-9]]*\)\.\([[0-9]]*\)/\1/'`
  115. - req_minor=`echo $min_gpg_error_version | \
  116. - sed 's/\([[0-9]]*\)\.\([[0-9]]*\)/\2/'`
  117. - gpg_error_config_version=`$GPG_ERROR_CONFIG $gpg_error_config_args --version`
  118. - major=`echo $gpg_error_config_version | \
  119. - sed 's/\([[0-9]]*\)\.\([[0-9]]*\).*/\1/'`
  120. - minor=`echo $gpg_error_config_version | \
  121. - sed 's/\([[0-9]]*\)\.\([[0-9]]*\).*/\2/'`
  122. - if test "$major" -gt "$req_major"; then
  123. - ok=yes
  124. - else
  125. - if test "$major" -eq "$req_major"; then
  126. - if test "$minor" -ge "$req_minor"; then
  127. - ok=yes
  128. - fi
  129. - fi
  130. - fi
  131. - fi
  132. if test $ok = yes; then
  133. - GPG_ERROR_CFLAGS=`$GPG_ERROR_CONFIG $gpg_error_config_args --cflags`
  134. - GPG_ERROR_LIBS=`$GPG_ERROR_CONFIG $gpg_error_config_args --libs`
  135. - GPG_ERROR_MT_CFLAGS=`$GPG_ERROR_CONFIG $gpg_error_config_args --mt --cflags 2>/dev/null`
  136. - GPG_ERROR_MT_LIBS=`$GPG_ERROR_CONFIG $gpg_error_config_args --mt --libs 2>/dev/null`
  137. - AC_MSG_RESULT([yes ($gpg_error_config_version)])
  138. ifelse([$2], , :, [$2])
  139. - gpg_error_config_host=`$GPG_ERROR_CONFIG $gpg_error_config_args --host 2>/dev/null || echo none`
  140. + gpg_error_config_host=`$PKG_CONFIG --variable=host gpg-error`
  141. if test x"$gpg_error_config_host" != xnone ; then
  142. if test x"$gpg_error_config_host" != x"$host" ; then
  143. AC_MSG_WARN([[
  144. @@ -107,11 +47,6 @@ AC_DEFUN([AM_PATH_GPG_ERROR],
  145. fi
  146. fi
  147. else
  148. - GPG_ERROR_CFLAGS=""
  149. - GPG_ERROR_LIBS=""
  150. - GPG_ERROR_MT_CFLAGS=""
  151. - GPG_ERROR_MT_LIBS=""
  152. - AC_MSG_RESULT(no)
  153. ifelse([$3], , :, [$3])
  154. fi
  155. AC_SUBST(GPG_ERROR_CFLAGS)