Re: [Libreoffice] Robert Nagy: Problems with your python library patch

2011-04-20 Thread Robert Nagy
After discussing this with Michael it seems the best solution would be to use python-config, it even makes configure.in smaller ;) Please test it with python3 too. diff --git a/configure.in b/configure.in index 470aa39..4dd7a4e 100755 --- a/configure.in +++ b/configure.in @@ -4107,12 +4107,9 @@ e

Re: [Libreoffice] Robert Nagy: Problems with your python library patch

2011-04-20 Thread Robert Nagy
Better diff (note that this still requires a shared library and will not work static ones): diff --git a/configure.in b/configure.in index 470aa39..0d06542 100755 --- a/configure.in +++ b/configure.in @@ -4108,11 +4108,11 @@ elif test -n "$with_system_python" -o -n "$with_system_libs" && \ A

Re: [Libreoffice] Robert Nagy: Problems with your python library patch

2011-04-20 Thread Robert Nagy
On (2011-04-20 10:14), Michael Meeks wrote: > Hi Andreas, > > On Wed, 2011-04-20 at 09:52 +0200, Andreas Becker wrote: > > Really not. > > The reason is, that the old version does not always work: > > For me, print(distutils.sysconfig.get_config_var('VERSION')); prints > > "3.2", but the library

Re: [Libreoffice] Robert Nagy: Problems with your python library patch

2011-04-20 Thread Michael Meeks
Hi Andreas, On Wed, 2011-04-20 at 09:52 +0200, Andreas Becker wrote: > Really not. > The reason is, that the old version does not always work: > For me, print(distutils.sysconfig.get_config_var('VERSION')); prints > "3.2", but the library is libpython3.2mu.so. .. > The absolute path in my patch i

Re: [Libreoffice] Robert Nagy: Problems with your python library patch

2011-04-20 Thread Robert Nagy
On (2011-04-20 09:52), Andreas Becker wrote: > Robert, > my patch: > http://cgit.freedesktop.org/libreoffice/bootstrap/commit/?h=libreoffice-3-4&id=6c3539d8e1dbad13264b862e1344e3c3a8690dec > your patch: > http://cgit.freedesktop.org/libreoffice/bootstrap/commit/?id=2b03888a918b7020a1f9330686dc53122

[Libreoffice] Robert Nagy: Problems with your python library patch

2011-04-20 Thread Andreas Becker
Robert, my patch: http://cgit.freedesktop.org/libreoffice/bootstrap/commit/?h=libreoffice-3-4&id=6c3539d8e1dbad13264b862e1344e3c3a8690dec your patch: http://cgit.freedesktop.org/libreoffice/bootstrap/commit/?id=2b03888a918b7020a1f9330686dc531222057573 > as far as i saw the reason to use an absolut