After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 685603 - Patch to disable static for python modules
Patch to disable static for python modules
Status: RESOLVED OBSOLETE
Product: libxslt
Classification: Platform
Component: python
git master
Other Linux
: Normal normal
: ---
Assigned To: Daniel Veillard
libxml QA maintainers
Depends on:
Blocks:
 
 
Reported: 2012-10-06 09:05 UTC by Pacho Ramos
Modified: 2021-07-05 11:01 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
libxslt-1.1.26-disable_static_modules.patch (318 bytes, patch)
2012-10-06 09:05 UTC, Pacho Ramos
needs-work Details | Review

Description Pacho Ramos 2012-10-06 09:05:51 UTC
Created attachment 225926 [details] [review]
libxslt-1.1.26-disable_static_modules.patch

We are carrying attached patch for a long time downstream on Gentoo due python never trying to use .a files neither .la.

Would be nice if it could be accepted by upstream

Thanks
Comment 1 Daniel Veillard 2012-11-21 06:17:47 UTC
Rejected, I sometimes run configure --disable-shared to help
build a debugging version and with the patch as-is, compilation
fails:

make[2]: Entering directory `/home/veillard/XSLT/python'
  CC     libxsltmod_la-libxslt.lo
libtool: compile: can not build a shared library
libtool: compile: See the libtool documentation for more information.
libtool: compile: Fatal configuration error.
make[2]: *** [libxsltmod_la-libxslt.lo] Error 1

I guess with some extra massaging to make sure it doesn't break
that way and ensure that portability is not affected, then
it would be fine.

What is the actual problem you are trying to solve, avoid the generation
of a .a or force the generation of a shared library even if asked
otherwise ?

Daniel
Comment 2 Daniel Veillard 2012-11-21 06:18:49 UTC
Review of attachment 225926 [details] [review]:

This break compilation if comfigured with --disable-shared
Comment 3 Arfrever Frehtes Taifersar Arahesis 2012-11-28 05:10:03 UTC
Python interpreter never tries to import modules from *.a files, so it does not make sense to build libxsltmod.a file.

Python bindings of libxslt cannot work without libxsltmod.so, so --disable-shared should disable building of Python bindings (overriding potential --with-python).

Please reopen this bug.
Comment 4 GNOME Infrastructure Team 2021-07-05 11:01:16 UTC
GNOME is going to shut down bugzilla.gnome.org in favor of gitlab.gnome.org.
As part of that, we are mass-closing older open tickets in bugzilla.gnome.org
which have not seen updates for a longer time (resources are unfortunately
quite limited so not every ticket can get handled).

If you can still reproduce the situation described in this ticket in a recent
and supported software version, then please follow
  https://wiki.gnome.org/GettingInTouch/BugReportingGuidelines
and create a new ticket at
  https://gitlab.gnome.org/GNOME/libxslt/-/issues/

Thank you for your understanding and your help.