[xml] Patch: link python module with python library

2009-09-11 Thread Frederic Crozat
Hi all,

starting with Mandriva 2009.0, we are building all our librairies with
LDFLAGS="-Wl,--as-needed -Wl,--no-undefined -Wl,-z,relro" to detect and
fix underlinked and overlinked libraries and modules.

libxml2 python module isn't linked with python library.

Attached patch fixes this issue.
-- 
Frederic Crozat 
Mandriva
>From a2fadfd100f106bad5331c69dd9604fd11072919 Mon Sep 17 00:00:00 2001
From: Frederic Crozat 
Date: Fri, 11 Sep 2009 16:28:44 +0200
Subject: [PATCH] fix python module linking

---
 configure.in   |2 ++
 python/Makefile.am |2 +-
 2 files changed, 3 insertions(+), 1 deletions(-)

diff --git a/configure.in b/configure.in
index 7b8fd44..90d8b73 100644
--- a/configure.in
+++ b/configure.in
@@ -742,6 +742,7 @@ if test "$with_python" != "no" ; then
 		PYTHON_SITE_PACKAGES=`$PYTHON -c "from distutils import sysconfig; print sysconfig.get_python_lib()"`
 	fi
 	fi
+	PYTHON_LIBS=`python$PYTHON_VERSION-config --libs`
 fi
 if test "$with_python" != ""
 then
@@ -761,6 +762,7 @@ else
 fi
 AC_SUBST(pythondir)
 AC_SUBST(PYTHON_SUBDIR)
+AC_SUBST(PYTHON_LIBS)
 
 dnl check for dso support
 WITH_MODULES=0
diff --git a/python/Makefile.am b/python/Makefile.am
index 23898fa..8f148b1 100644
--- a/python/Makefile.am
+++ b/python/Makefile.am
@@ -31,7 +31,7 @@ python_LTLIBRARIES = libxml2mod.la
 
 libxml2mod_la_SOURCES = libxml.c types.c
 nodist_libxml2mod_la_SOURCES = libxml2-py.c
-libxml2mod_la_LIBADD = $(mylibs) @CYGWIN_EXTRA_PYTHON_LIBADD@
+libxml2mod_la_LIBADD = $(mylibs) @CYGWIN_EXTRA_PYTHON_LIBADD@ @PYTHON_LIBS@
 
 libxml.c: libxml2-py.h # to generate before to compile
 
-- 
1.6.4.2

___
xml mailing list, project page  http://xmlsoft.org/
xml@gnome.org
http://mail.gnome.org/mailman/listinfo/xml


[xml] RegEx Regression Tests

2009-09-11 Thread Pete Cordell

I'm looking at the regular expression regression tests.  In the likes of
test\regexp\ranges, how do you know which inputs should match the patterns,
and which shouldn't?

Many thanks,

Pete.
--
=
Pete Cordell
Codalogic Ltd
Interface XML to C++ the easy way using XML C++
data binding to convert XSD schemas to C++ classes.
Visit http://codalogic.com/lmx/ or http://www.xml2cpp.com
for more info
=



___
xml mailing list, project page  http://xmlsoft.org/
xml@gnome.org
http://mail.gnome.org/mailman/listinfo/xml


Re: [xml] Release of libxml2-2.7.4

2009-09-11 Thread Daniel Veillard
On Fri, Sep 11, 2009 at 01:00:16PM +0200, Stefan Behnel wrote:
> 
> Daniel Veillard wrote:
> >   Better late than never, but an awful lot of pending bug got fixed.
> > Still no major improvement except adding symbol versioning to libxml2
> > shared libs, which is fairy important for long term maintainance, but
> > not worth jumping to 2.8.0
> > 
> >Tarball and signed rpms available at
> >  ftp://xmlsoft.org/libxml2/
> > 
> > There are still a few things which I would have loved to put in the
> > release like per context error handling and the like but I prefer a
> > (nearly) bug fix only release that people can upgrade to without
> > troubles and then work on changing more stuff
> 
> Daniel, thanks a lot for this release. That's clearly the longest list of
> bug fixes in a libxml2 release, ever.

  Yeah, I accumulated an awful lot of backlog in the last 3 years
as I'm concentrating on libvirt now, I took the summer slowdown
as an opportunity to fix most of what was looking fixeable without
too much crazyness.

Daniel

-- 
Daniel Veillard  | libxml Gnome XML XSLT toolkit  http://xmlsoft.org/
dan...@veillard.com  | Rpmfind RPM search engine http://rpmfind.net/
http://veillard.com/ | virtualization library  http://libvirt.org/
___
xml mailing list, project page  http://xmlsoft.org/
xml@gnome.org
http://mail.gnome.org/mailman/listinfo/xml


Re: [xml] Release of libxml2-2.7.4

2009-09-11 Thread Stefan Behnel

Daniel Veillard wrote:
>   Better late than never, but an awful lot of pending bug got fixed.
> Still no major improvement except adding symbol versioning to libxml2
> shared libs, which is fairy important for long term maintainance, but
> not worth jumping to 2.8.0
> 
>Tarball and signed rpms available at
>  ftp://xmlsoft.org/libxml2/
> 
> There are still a few things which I would have loved to put in the
> release like per context error handling and the like but I prefer a
> (nearly) bug fix only release that people can upgrade to without
> troubles and then work on changing more stuff

Daniel, thanks a lot for this release. That's clearly the longest list of
bug fixes in a libxml2 release, ever.

Stefan

___
xml mailing list, project page  http://xmlsoft.org/
xml@gnome.org
http://mail.gnome.org/mailman/listinfo/xml