Uploaded image for project: 'Qt for Python'
  1. Qt for Python
  2. PYSIDE-522

Investigate possibility of not using libpython shared libraries on debian based distros

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: P3: Somewhat important
    • Resolution: Done
    • Affects Version/s: 5.6
    • Fix Version/s: 5.6, 5.9
    • Component/s: PySide
    • Labels:
      None
    • Environment:
      Ubuntu / Debian
    • Commits:
      11dbdfc351d70f556790d6ff5b5eac488b8eca0c

      Description

      Debian and Ubuntu ship a Python 2 interpreter that is linked to a static libpython2.7.a file, instead of a libpython2.7.so dynamic shared library.
      They also ship a separate package that provides the dynamic shared library, but it is not used by any of the std extensions or other packages (except for packages that embed the python interpreter in their application).

      PySide though, links to the dynamic shared library, which means that two sets of Python symbols are loaded when PySide extensions are loaded: the ones in the interpreter itself, and the ones from the dynamic library.

      This causes duplicate symbols, which so far have been resolved by the dynamic loader in a way that made everything work (the shared library symbols were ignored, and the ones in the interpreter were picked up). This seems like depending on implementation behavior, and will lead to crashes if that were ever changed.

      There is no need for PySide to link the shared libraries if the Python interpreter does not.
      Investigate / implement a way of checking how was the Python interpreter built, and make the proper decision when linking to the shared library is actually necessary.

        Attachments

        For Gerrit Dashboard: PYSIDE-522
        # Subject Branch Project Status CR V

          Activity

            People

            • Assignee:
              alexandru.croitor Alexandru Croitor
              Reporter:
              alexandru.croitor Alexandru Croitor
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Gerrit Reviews

                There are no open Gerrit changes