Subject: freecad-python3: Freecad 1.0.0 on Trixie can't load libpyside.so (Python version mismatch/bogus dep?)

From: Lucas Thode <[email-masked]>
Date: Fri, 17 Jan 2025 23:18:40 -0600

Package: freecad-python3
Version: 1.0.0+dfsg-5+b1
Severity: important
X-Debbugs-Cc: [email-masked]

I tried to install FreeCAD 1.0.0 on trixie (upgrading from a 0.21.2 build), but
freecad-python3 dragged python3.13 into the system based on its Depends and
thus tries to load libpyside2.cpython-313-x86_64-linux-gnu.so.5.15.  This
fails, though, with a "No such file or directory" error because PySide on
Trixie is packaged against the system Python version, which on Trixie is 3.12.
(I even tried to rebuild PySide myself, hence the -3s on the versions of my
PySide packages, but _that_ didn't work because PySide's buildsystem gets its
Python version from the Python interpreter pybuild is invoked with, and it
seems that the debhelper infrastructure provides no mechanism to control that.)

-- System Information:
Debian Release: trixie/sid
  APT prefers testing
  APT policy: (500, 'testing')
Architecture: amd64 (x86_64)
Foreign Architectures: i386

Kernel: Linux 6.11.4-amd64 (SMP w/12 CPU threads; PREEMPT)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8), LANGUAGE not set
Shell: /bin/sh linked to /usr/bin/dash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled

Versions of packages freecad-python3 depends on:
ii  freecad-common             1.0.0+dfsg-5
ii  libc6                      2.40-5
ii  libfmt10                   10.1.1+ds1-4
ii  libfreecad-python3         1.0.0+dfsg-5+b1
ii  libgcc-s1                  14.2.0-6
ii  libpython3.13              3.13.1-3
ii  libqt5core5t64             5.15.15+dfsg-2
ii  libqt5gui5t64              5.15.15+dfsg-2
ii  libqt5widgets5t64          5.15.15+dfsg-2
ii  libstdc++6                 14.2.0-6
ii  python3                    3.12.8-1
ii  python3-matplotlib         3.6.3-2
ii  python3-pivy               0.6.9~a0-1+b1
ii  python3-ply                3.11-7
ii  python3-pyside2.qtcore     5.15.16-3
ii  python3-pyside2.qtgui      5.15.16-3
ii  python3-pyside2.qtnetwork  5.15.16-3
ii  python3-pyside2.qtsvg      5.15.16-3
ii  python3-pyside2.qtuitools  5.15.16-3
ii  python3-pyside2.qtwidgets  5.15.16-3
ii  python3-pyside2.qtxml      5.15.16-3
ii  python3-yaml               6.0.1-2

Versions of packages freecad-python3 recommends:
ii  python3-pyside2.qtwebchannel        5.15.16-3
ii  python3-pyside2.qtwebengine         5.15.16-3
ii  python3-pyside2.qtwebenginecore     5.15.16-3
ii  python3-pyside2.qtwebenginewidgets  5.15.16-3

freecad-python3 suggests no packages.

-- no debconf information