[mingw-libxml2: 12/29] - Always use the native win32 thread API even when pthreads is available - Dropped a patch which isn

Kalev Lember kalev at fedoraproject.org
Tue Mar 6 19:57:21 UTC 2012


commit 8939de86b058326fccb1825e6a49c1e6b64f7581
Author: epienbro <epienbro at fedoraproject.org>
Date:   Sat Sep 12 18:51:28 2009 +0000

    - Always use the native win32 thread API even when pthreads is available
    - Dropped a patch which isn't necessary anymore

 mingw32-libxml2-win32-pthreads-compatibility.patch |   11 -----------
 mingw32-libxml2.spec                               |   12 +++++++-----
 2 files changed, 7 insertions(+), 16 deletions(-)
---
diff --git a/mingw32-libxml2.spec b/mingw32-libxml2.spec
index e3b900e..0b5eb57 100644
--- a/mingw32-libxml2.spec
+++ b/mingw32-libxml2.spec
@@ -7,7 +7,7 @@
 
 Name:           mingw32-libxml2
 Version:        2.7.4
-Release:        1%{?dist}
+Release:        2%{?dist}
 Summary:        MinGW Windows libxml2 XML processing library
 
 License:        MIT
@@ -22,7 +22,6 @@ BuildRoot:      %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
 # MinGW-specific patches.
 Patch1000:      mingw32-libxml2-2.7.2-with-modules.patch
 Patch1001:      mingw32-libxml2-static-build-compile-fix.patch
-Patch1002:      mingw32-libxml2-win32-pthreads-compatibility.patch
 
 BuildArch:      noarch
 
@@ -61,7 +60,6 @@ Static version of the MinGW Windows XML processing library.
 
 %patch1000 -p1
 %patch1001 -p0
-%patch1002 -p0
 
 # Patched configure.in, so rebuild configure.
 libtoolize --force --copy
@@ -74,14 +72,14 @@ autoreconf
 mkdir build_static
 pushd build_static
     LDFLAGS="-no-undefined" \
-    %{_mingw32_configure} --without-python --with-modules --enable-static --disable-shared CFLAGS="$CFLAGS -DLIBXML_STATIC_FOR_DLL"
+    %{_mingw32_configure} --without-python --with-modules --enable-static --disable-shared --with-threads=yes CFLAGS="$CFLAGS -DLIBXML_STATIC_FOR_DLL"
     make %{?_smp_mflags}
 popd
 
 mkdir build_shared
 pushd build_shared
     LDFLAGS="-no-undefined" \
-    %{_mingw32_configure} --without-python --with-modules --disable-static --enable-shared
+    %{_mingw32_configure} --without-python --with-modules --disable-static --enable-shared --with-threads=yes
     make %{?_smp_mflags}
 popd
 
@@ -133,6 +131,10 @@ rm -rf $RPM_BUILD_ROOT
 
 
 %changelog
+* Sat Sep 12 2009 Erik van Pienbroek <epienbro at fedoraproject.org> - 2.7.4-2
+- Always use the native win32 thread API even when pthreads is available
+- Dropped a patch which isn't necessary anymore
+
 * Fri Sep 11 2009 Erik van Pienbroek <epienbro at fedoraproject.org> - 2.7.4-1
 - Update to 2.7.4
 - Drop upstreamed libxml2-2.7.3-ficora-parse.patch patch


More information about the scm-commits mailing list