W32 build fixes for libgpg-error-1.10

LRN lrn1986 at gmail.com
Sat Jan 26 04:12:33 CET 2013


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Subj is attached.
If you need patches against git master HEAD, just ask.

01-mingw32-fix-potomo.mingw32.patch:
iconv.exe provided by mingw32-libiconv package from mingw.org hangs up
when --silent is given, but works with -s just fine.
Yes, i know that this should be fixed by mingw.org.
No, i doubt that i can make them fix this within a year.

02-fix-symbollist-on.mingw32.patch:
- -export-symbols libtool option takes a _symbol list_.
What you are giving it is not a symbol list, it's a MS .def file.
If you truly need a .def file (why would you?), then add a separate
.symbols file and use it for -export-symbols.
This patch assumes that you don't really need a .def file, and fixes
it to be libtool-compatible symbols list.
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.11 (MingW32)
Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/

iQEcBAEBAgAGBQJRA0mgAAoJEOs4Jb6SI2CwOTIH/11+fMsLVfXMHInFbGcz/7FF
ArhIuA6UzeW7zuXJAolDP/W8wCvdQTMPIrfvsbu9yEmWkzqOpzhpsloH5LA9mjX+
+cBW3tYcyS9wWqWWUBOdeYXZHxJf0FXD0puHVksOqN2AJT28agmiNVbBgThHO4Gr
Mjf9Z/r03zEchVIqzdZW7zJ7EGAgtIpfrh/kWpdLw86Uo2u+yE30TAFNaV8cnVTY
U6sYyJsiqqLyMSYH1aFEtgPGZwHRe9+WRpbGBmopNU//OtrMx5g9sk7VmXOGi3Sd
THsBe8frpV1KZJoGxi5UjHQrrdI1blJBHmWacUubhpvvQrdsAacng1eJO5rig6s=
=pVH0
-----END PGP SIGNATURE-----
-------------- next part --------------
--- libgpg-error-1.10/potomo	2010-10-20 18:27:58 +0400
+++ libgpg-error-1.10/potomo	2011-04-03 15:05:06 +0400
@@ -57,7 +57,7 @@
         ;;   
     *)
         echo "potomo: '$infile' converting from $fromset to utf-8" >&2
-        iconv --silent --from-code=$fromset --to-code=utf-8 < "$infile" |\
+        iconv -s --from-code=$fromset --to-code=utf-8 < "$infile" |\
             sed "/^\"Content-Type:/ s/charset=[a-zA-Z0-9_-]*/charset=utf-8/"|\
             msgfmt --output-file="$outfile" -
         ;;
-------------- next part --------------
--- libgpg-error-1.10/src/gpg-error.def.in.orig	2012-12-21 13:48:57 +0400
+++ libgpg-error-1.10/src/gpg-error.def.in	2012-12-21 15:37:31 +0400
@@ -4,7 +4,6 @@
 
 #include <config.h>
 
-EXPORTS
  gpg_strerror                 @1
  gpg_strerror_r               @2  
  gpg_strsource                @3  


More information about the Gnupg-devel mailing list