[mingw32-libxml2] Rebuild against the mingw-w64 toolchain
by Erik van Pienbroek
commit aa900bcbb4b789e4e96148232c738d20b245d39d
Author: Erik van Pienbroek <epienbro(a)fedoraproject.org>
Date: Mon Feb 27 23:30:17 2012 +0100
Rebuild against the mingw-w64 toolchain
mingw32-libxml2.spec | 5 ++++-
1 files changed, 4 insertions(+), 1 deletions(-)
---
diff --git a/mingw32-libxml2.spec b/mingw32-libxml2.spec
index 0941d9c..6f1fc35 100644
--- a/mingw32-libxml2.spec
+++ b/mingw32-libxml2.spec
@@ -7,7 +7,7 @@
Name: mingw32-libxml2
Version: 2.7.8
-Release: 3%{?dist}
+Release: 4%{?dist}
Summary: MinGW Windows libxml2 XML processing library
License: MIT
@@ -129,6 +129,9 @@ rm -rf $RPM_BUILD_ROOT
%changelog
+* Mon Feb 27 2012 Erik van Pienbroek <epienbro(a)fedoraproject.org> - 2.7.8-4
+- Rebuild against the mingw-w64 toolchain
+
* Fri Jan 6 2012 Erik van Pienbroek <epienbro(a)fedoraproject.org> - 2.7.8-3
- Re-added patch which was dropped in 2.7.8-1 as it is still needed
to get DTD validation working (GNOME BZ #561340, #663588)
12 years, 2 months
[mingw32-glib2] Rebuild against the mingw-w64 toolchain
by Erik van Pienbroek
commit 9e623840a0143f00a6bbfac500cda17f8dd871b6
Author: Erik van Pienbroek <epienbro(a)fedoraproject.org>
Date: Mon Feb 27 23:29:53 2012 +0100
Rebuild against the mingw-w64 toolchain
mingw32-glib2.spec | 5 ++++-
1 files changed, 4 insertions(+), 1 deletions(-)
---
diff --git a/mingw32-glib2.spec b/mingw32-glib2.spec
index df738f3..64de048 100644
--- a/mingw32-glib2.spec
+++ b/mingw32-glib2.spec
@@ -4,7 +4,7 @@
Name: mingw32-glib2
Version: 2.31.16
-Release: 1%{?dist}
+Release: 2%{?dist}
Summary: MinGW Windows GLib2 library
License: LGPLv2+
@@ -186,6 +186,9 @@ rm -rf $RPM_BUILD_ROOT%{_mingw32_libdir}/gdbus-2.0
%changelog
+* Mon Feb 27 2012 Erik van Pienbroek <epienbro(a)fedoraproject.org> - 2.31.16-2
+- Rebuild against the mingw-w64 toolchain
+
* Tue Feb 07 2012 Kalev Lember <kalevlember(a)gmail.com> - 2.31.16-1
- Update to 2.31.16
12 years, 2 months
[mingw32-libgpg-error] Rebuild against the mingw-w64 toolchain
by Erik van Pienbroek
commit d3301b7611789d31d03d889ae948e1030df54783
Author: Erik van Pienbroek <epienbro(a)fedoraproject.org>
Date: Mon Feb 27 23:29:07 2012 +0100
Rebuild against the mingw-w64 toolchain
mingw32-libgpg-error.spec | 5 ++++-
1 files changed, 4 insertions(+), 1 deletions(-)
---
diff --git a/mingw32-libgpg-error.spec b/mingw32-libgpg-error.spec
index 02b87aa..0607ca0 100644
--- a/mingw32-libgpg-error.spec
+++ b/mingw32-libgpg-error.spec
@@ -7,7 +7,7 @@
Name: mingw32-libgpg-error
Version: 1.6
-Release: 15%{?dist}
+Release: 16%{?dist}
Summary: MinGW Windows GnuPGP error library
License: LGPLv2+
@@ -71,6 +71,9 @@ rm -rf $RPM_BUILD_ROOT
%changelog
+* Mon Feb 27 2012 Erik van Pienbroek <epienbro(a)fedoraproject.org> - 1.6-16
+- Rebuild against the mingw-w64 toolchain
+
* Fri Jan 13 2012 Fedora Release Engineering <rel-eng(a)lists.fedoraproject.org> - 1.6-15
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
12 years, 2 months
[mingw32-sqlite] Rebuild against the mingw-w64 toolchain
by Erik van Pienbroek
commit 8101d19e8b4d2e559ba496cac395b13c32423181
Author: Erik van Pienbroek <epienbro(a)fedoraproject.org>
Date: Mon Feb 27 23:28:00 2012 +0100
Rebuild against the mingw-w64 toolchain
mingw32-sqlite.spec | 5 ++++-
1 files changed, 4 insertions(+), 1 deletions(-)
---
diff --git a/mingw32-sqlite.spec b/mingw32-sqlite.spec
index 209690c..3c0f80b 100644
--- a/mingw32-sqlite.spec
+++ b/mingw32-sqlite.spec
@@ -16,7 +16,7 @@
Name: mingw32-%{name1}
Version: %{rpmver}
-Release: 1%{?dist}
+Release: 2%{?dist}
Summary: MinGW Windows port of sqlite embeddable SQL database engine
License: Public Domain
@@ -164,6 +164,9 @@ rm -rf $RPM_BUILD_ROOT
%{_mingw32_libdir}/libsqlite3.a
%changelog
+* Mon Feb 27 2012 Erik van Pienbroek <epienbro(a)fedoraproject.org> - 3.7.9-2
+- Rebuild against the mingw-w64 toolchain
+
* Mon Jan 16 2012 Thomas Sailer <t.sailer(a)alumni.ethz.ch> - 3.7.9-1
- update to 3.7.9
12 years, 2 months
[mingw32-gettext] Added a patch to fix compatibility with mingw-w64
by Erik van Pienbroek
commit fded1ce3a158f7d5e3050a842ff0f53c9b3bd93e
Author: Erik van Pienbroek <epienbro(a)fedoraproject.org>
Date: Mon Feb 27 22:16:26 2012 +0100
Added a patch to fix compatibility with mingw-w64
gettext-0.18.1.1-tml.patch | 177 ++++++++++++++++++++++++++++++++++++++++++++
mingw32-gettext.spec | 9 ++-
2 files changed, 185 insertions(+), 1 deletions(-)
---
diff --git a/gettext-0.18.1.1-tml.patch b/gettext-0.18.1.1-tml.patch
new file mode 100644
index 0000000..55e295f
--- /dev/null
+++ b/gettext-0.18.1.1-tml.patch
@@ -0,0 +1,177 @@
+--- gettext-runtime/intl/printf.c
++++ gettext-runtime/intl/printf.c
+@@ -69,7 +69,7 @@
+ #define STATIC static
+
+ /* This needs to be consistent with libgnuintl.h.in. */
+-#if defined __NetBSD__ || defined __BEOS__ || defined __CYGWIN__ || defined __MINGW32__
++#if defined __NetBSD__ || defined __BEOS__ || defined __CYGWIN__
+ /* Don't break __attribute__((format(printf,M,N))).
+ This redefinition is only possible because the libc in NetBSD, Cygwin,
+ mingw does not have a function __printf__. */
+--- gettext-runtime/intl/libgnuintl.h.in
++++ gettext-runtime/intl/libgnuintl.h.in
+@@ -330,7 +330,7 @@
+
+ #if !(defined printf && defined _GL_STDIO_H) /* don't override gnulib */
+ #undef printf
+-#if defined __NetBSD__ || defined __BEOS__ || defined __CYGWIN__ || defined __MINGW32__
++#if defined __NetBSD__ || defined __BEOS__ || defined __CYGWIN__
+ /* Don't break __attribute__((format(printf,M,N))).
+ This redefinition is only possible because the libc in NetBSD, Cygwin,
+ mingw does not have a function __printf__.
+---- gettext-tools/gnulib-lib/clean-temp.c
++++ gettext-tools/gnulib-lib/clean-temp.c
+@@ -66,9 +66,11 @@
+ # endif
+ #endif
+
++#ifndef _WIN64
+ #ifndef uintptr_t
+ # define uintptr_t unsigned long
+ #endif
++#endif
+
+ #if !GNULIB_FCNTL_SAFER
+ /* The results of open() in this file are not used with fchdir,
+--- gettext-tools/gnulib-lib/fstrcmp.c
++++ gettext-tools/gnulib-lib/fstrcmp.c
+@@ -55,9 +55,11 @@
+ #include "minmax.h"
+ #include "xalloc.h"
+
++#ifndef _WIN64
+ #ifndef uintptr_t
+ # define uintptr_t unsigned long
+ #endif
++#endif
+
+
+ #define ELEMENT char
+--- gettext-tools/gnulib-lib/gl_array_list.c
++++ gettext-tools/gnulib-lib/gl_array_list.c
+@@ -55,9 +55,11 @@
+ /* Checked size_t computations. */
+ #include "xsize.h"
+
++#ifndef _WIN64
+ #ifndef uintptr_t
+ # define uintptr_t unsigned long
+ #endif
++#endif
+
+ /* -------------------------- gl_list_t Data Type -------------------------- */
+
+--- gettext-tools/gnulib-lib/gl_linkedhash_list.c
++++ gettext-tools/gnulib-lib/gl_linkedhash_list.c
+@@ -55,9 +55,11 @@
+
+ #include "xsize.h"
+
++#ifndef _WIN64
+ #ifndef uintptr_t
+ # define uintptr_t unsigned long
+ #endif
++#endif
+
+ #define WITH_HASHTABLE 1
+
+--- gettext-tools/gnulib-lib/stdio.in.h
++++ gettext-tools/gnulib-lib/stdio.in.h
+@@ -642,10 +642,6 @@
+ # if (@GNULIB_PRINTF_POSIX@ && @REPLACE_PRINTF@) \
+ || (@GNULIB_PRINTF@ && @REPLACE_STDIO_WRITE_FUNCS@ && @GNULIB_STDIO_H_SIGPIPE@)
+ # if defined __GNUC__
+-# if !(defined __cplusplus && defined GNULIB_NAMESPACE)
+-/* Don't break __attribute__((format(printf,M,N))). */
+-# define printf __printf__
+-# endif
+ _GL_FUNCDECL_RPL_1 (__printf__, int,
+ (const char *format, ...)
+ __asm__ (@ASM_SYMBOL_PREFIX@
+--- gettext-tools/gnulib-lib/tempname.c
++++ gettext-tools/gnulib-lib/tempname.c
+@@ -54,6 +54,10 @@
+ #include <stdint.h>
+ #include <unistd.h>
+
++#ifdef _WIN32
++# include <direct.h>
++#endif
++
+ #include <sys/stat.h>
+
+ #if _LIBC
+@@ -73,6 +73,10 @@
+ # define __xstat64(version, file, buf) stat (file, buf)
+ #endif
+
++#ifdef _WIN32
++# define mkdir(path,mode) _mkdir(path)
++#endif
++
+ #if ! (HAVE___SECURE_GETENV || _LIBC)
+ # define __secure_getenv getenv
+ #endif
+--- gettext-tools/src/write-java.c
++++ gettext-tools/src/write-java.c
+@@ -30,6 +30,10 @@
+ #include <stdio.h>
+ #include <string.h>
+
++#ifdef _WIN32
++# include <direct.h>
++#endif
++
+ #include <sys/stat.h>
+ #if !defined S_ISDIR && defined S_IFDIR
+ # define S_ISDIR(mode) (((mode) & S_IFMT) == S_IFDIR)
+@@ -53,6 +53,10 @@
+ # define S_IXUSR 00100
+ #endif
+
++#ifdef _WIN32
++# define mkdir(path,mode) _mkdir(path)
++#endif
++
+ #include "c-ctype.h"
+ #include "error.h"
+ #include "xerror.h"
+--- gettext-tools/src/write-csharp.c
++++ gettext-tools/src/write-csharp.c
+@@ -29,6 +29,10 @@
+ #include <stdio.h>
+ #include <string.h>
+
++#ifdef _WIN32
++# include <direct.h>
++#endif
++
+ #include <sys/stat.h>
+ #if !defined S_ISDIR && defined S_IFDIR
+ # define S_ISDIR(mode) (((mode) & S_IFMT) == S_IFDIR)
+@@ -70,6 +70,10 @@
+ # define S_IXOTH (S_IXUSR >> 6)
+ #endif
+
++#ifdef _WIN32
++# define mkdir(path,mode) _mkdir(path)
++#endif
++
+ #include "c-ctype.h"
+ #include "relocatable.h"
+ #include "error.h"
+--- gettext-tools/woe32dll/export.h
++++ gettext-tools/woe32dll/export.h
+@@ -90,7 +90,11 @@
+ --export-all-symbols is used. */
+
+ /* IMP(x) is a symbol that contains the address of x. */
++#ifdef _WIN64
++#define IMP(x) __imp_##x
++#else
+ #define IMP(x) _imp__##x
++#endif
+
+ /* Ensure that the variable x is exported from the library, and that a
+ pseudo-variable IMP(x) is available. */
diff --git a/mingw32-gettext.spec b/mingw32-gettext.spec
index 2d05031..244f9bd 100644
--- a/mingw32-gettext.spec
+++ b/mingw32-gettext.spec
@@ -12,6 +12,9 @@ Group: Development/Libraries
URL: http://www.gnu.org/software/gettext/
Source0: http://ftp.gnu.org/pub/gnu/gettext/gettext-%{version}.tar.gz
+# Fix compatibility with mingw-w64
+Patch0: gettext-0.18.1.1-tml.patch
+
BuildArch: noarch
BuildRequires: mingw32-filesystem >= 68
@@ -48,10 +51,13 @@ Static version of the MinGW Windows Gettext library.
%prep
%setup -q -n gettext-%{version}
+%patch0 -p0
%build
-echo "gl_cv_func_memchr_works='yes'" >> %{_mingw32_cache}
+# Some build workarounds
+export gl_cv_func_memchr_works="yes"
+export ac_cv_func_strnlen_working="yes"
%{_mingw32_configure} \
--disable-java \
--disable-native-java \
@@ -128,6 +134,7 @@ rm -rf $RPM_BUILD_ROOT%{_mingw32_datadir}/info/
%changelog
* Mon Feb 27 2012 Erik van Pienbroek <epienbro(a)fedoraproject.org> - 0.18.1.1-5
- Rebuild against the mingw-w64 toolchain
+- Added a patch to fix compatibility with mingw-w64
* Fri Jan 13 2012 Fedora Release Engineering <rel-eng(a)lists.fedoraproject.org> - 0.18.1.1-4
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
12 years, 2 months