OpenPKG CVS Repository
http://cvs.openpkg.org/
____________________________________________________________________________
Server: cvs.openpkg.org Name: Ralf S. Engelschall
Root: /v/openpkg/cvs Email: [EMAIL PROTECTED]
Module: openpkg-src Date: 14-Jun-2008 22:18:28
Branch: HEAD Handle: 2008061421182400
Added files:
openpkg-src/libxslt libxslt.patch
Modified files:
openpkg-src/libxslt libxslt.spec
Log:
apply a few fixes from FreeBSD ports
Summary:
Revision Changes Path
1.7 +43 -0 openpkg-src/libxslt/libxslt.patch
1.100 +3 -1 openpkg-src/libxslt/libxslt.spec
____________________________________________________________________________
patch -p0 <<'@@ .'
Index: openpkg-src/libxslt/libxslt.patch
============================================================================
$ cvs diff -u -r0 -r1.7 libxslt.patch
--- /dev/null 2008-06-14 22:18:12 +0200
+++ libxslt.patch 2008-06-14 22:18:25 +0200
@@ -0,0 +1,43 @@
+Index: libexslt/date.c
+--- libexslt/date.c.orig 2008-04-08 19:18:06 +0200
++++ libexslt/date.c 2008-06-14 22:05:17 +0200
+@@ -28,7 +28,7 @@
+ #include "config.h"
+ #endif
+
+-#if HAVE_LOCALTIME_R /* _POSIX_SOURCE required by gnu libc */
++#if defined(HAVE_LOCALTIME_R) && defined(__GLIBC__) /* _POSIX_SOURCE
required by gnu libc */
+ #ifndef _AIX51 /* but on AIX we're not using gnu libc */
+ #define _POSIX_SOURCE
+ #endif
+Index: libxslt/extra.c
+--- libxslt/extra.c.orig 2007-01-03 16:11:57 +0100
++++ libxslt/extra.c 2008-06-14 22:05:17 +0200
+@@ -244,7 +244,12 @@
+ * Calling localtime() has the side-effect of setting timezone.
+ * After we know the timezone, we can adjust for it
+ */
+- lmt = gmt - timezone;
++ /*
++ * May be on some stupid Linux localtime() have such side-effect,
++ * but FreeBSD DOESN'T HAVE such side-ffect, so we should use
++ * local_tm.
++ */
++ lmt = gmt - local_tm->tm_gmtoff;
+
+ /*
+ * FIXME: it's been too long since I did manual memory management.
+Index: libxslt/xsltconfig.h.in
+--- libxslt/xsltconfig.h.in.orig 2007-03-27 16:47:36 +0200
++++ libxslt/xsltconfig.h.in 2008-06-14 22:05:17 +0200
+@@ -130,8 +130,10 @@
+ */
+ #ifdef __GNUC__
+ #ifdef HAVE_ANSIDECL_H
++#ifndef __FreeBSD__
+ #include <ansidecl.h>
+ #endif
++#endif
+ #ifndef ATTRIBUTE_UNUSED
+ #define ATTRIBUTE_UNUSED __attribute__((unused))
+ #endif
@@ .
patch -p0 <<'@@ .'
Index: openpkg-src/libxslt/libxslt.spec
============================================================================
$ cvs diff -u -r1.99 -r1.100 libxslt.spec
--- openpkg-src/libxslt/libxslt.spec 23 May 2008 14:23:56 -0000 1.99
+++ openpkg-src/libxslt/libxslt.spec 14 Jun 2008 20:18:24 -0000 1.100
@@ -32,10 +32,11 @@
Group: XML
License: MIT-style
Version: 1.1.24
-Release: 20080523
+Release: 20080614
# list of sources
Source0: ftp://xmlsoft.org/libxslt/libxslt-%{version}.tar.gz
+Patch0: libxslt.patch
# build information
Prefix: %{l_prefix}
@@ -61,6 +62,7 @@
%prep
%setup -q
+ %patch -p0
%{l_shtool} subst \
-e '/LINENO: error: C[+]* preprocessor/{N;N;N;N;s/.*/:/;}' \
configure
@@ .
______________________________________________________________________
OpenPKG http://openpkg.org
CVS Repository Commit List [email protected]