[mingw-libxslt: 16/20] Fix compatibility with mingw-w64

Kalev Lember kalev at fedoraproject.org
Wed Mar 7 15:48:28 UTC 2012


commit d820f986836ad53850c4f5d5cb67c8ff7673b3a7
Author: Erik van Pienbroek <epienbro at fedoraproject.org>
Date:   Tue Feb 28 01:22:51 2012 +0100

    Fix compatibility with mingw-w64

 mingw32-libxslt-use-correct-mkdir.patch |   14 ++++++++++++++
 mingw32-libxslt.spec                    |    3 +++
 2 files changed, 17 insertions(+), 0 deletions(-)
---
diff --git a/mingw32-libxslt-use-correct-mkdir.patch b/mingw32-libxslt-use-correct-mkdir.patch
new file mode 100644
index 0000000..6f58d37
--- /dev/null
+++ b/mingw32-libxslt-use-correct-mkdir.patch
@@ -0,0 +1,14 @@
+--- libxslt/security.c.orig	2010-10-13 15:42:00.790273503 +0200
++++ libxslt/security.c	2010-10-13 15:42:34.425556664 +0200
+@@ -343,7 +343,11 @@
+ 	    }
+ 	    ret = xsltCheckWritePath(sec, ctxt, directory);
+ 	    if (ret == 1)
++#ifdef WIN32
++		ret = mkdir(directory);
++#else
+ 		ret = mkdir(directory, 0755);
++#endif
+ 	}
+ 	xmlFree(directory);
+ 	if (ret < 0)
diff --git a/mingw32-libxslt.spec b/mingw32-libxslt.spec
index b0487cc..98790bd 100644
--- a/mingw32-libxslt.spec
+++ b/mingw32-libxslt.spec
@@ -20,6 +20,7 @@ BuildArch:      noarch
 
 # Fix compilation on MinGW environments
 Patch1000:      mingw32-libxslt-dont-use-pthread.patch
+Patch1001:      mingw32-libxslt-use-correct-mkdir.patch
 
 BuildRequires:  mingw32-filesystem >= 30
 BuildRequires:  mingw32-gcc
@@ -62,6 +63,7 @@ Static version of the MinGW Windows LibXSLT library.
 #%patch0 -p1
 
 %patch1000 -p1
+%patch1001 -p0
 
 libtoolize --force --copy
 autoreconf
@@ -114,6 +116,7 @@ rm -rf $RPM_BUILD_ROOT
 %changelog
 * Tue Feb 28 2012 Erik van Pienbroek <epienbro at fedoraproject.org> - 1.1.26-6
 - Rebuild against the mingw-w64 toolchain
+- Fix compatibility with mingw-w64
 
 * Fri Jan 13 2012 Fedora Release Engineering <rel-eng at lists.fedoraproject.org> - 1.1.26-5
 - Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild


More information about the scm-commits mailing list