#1137029 python3-bumps: Includes broken symlink _compiled.so

#1137029#5
Date:
2026-05-18 19:26:54 UTC
From:
To:
python3-bumps includes /usr/lib/python3/dist-packages/bumps/dream/_compiled.so

$ ls -l /usr/lib/python3/dist-packages/bumps/dream/_compiled.so
lrwxrwxrwx 1 root root 39 Oct  1  2025 /usr/lib/python3/dist-packages/bumps/dream/_compiled.so -> ../../../../bumps/random123_compiled.so

$ stat -L /usr/lib/python3/dist-packages/bumps/dream/_compiled.so
stat: cannot statx '/usr/lib/python3/dist-packages/bumps/dream/_compiled.so': No such file or directory

That seems broken.

Stefano

#1137029#10
Date:
2026-05-19 00:50:00 UTC
From:
To:
This .so is for an optional alternate optimiser (bumps is an interface
to various different optimisers for numerical fitting problems).

The optional optimiser is compiled and included in an arch:any package
(bumps-private-libs) while bumps itself is pure Python and arch:all.

bumps-private-libs is in the Recommends of python3-bumps; unfortunately,
bumps-private-libs is not available on all architectures. It could be an
arch-dependent Depends but it's an optional component (and an
arch-specific Depends means keeping an arch list in sync in two
different places).

The symlink could move into the bumps-private-libs package, but that is
only a cosmetic fix - the failure for `CDLL` in
`bumps/dream/compiled.py` would be basically the same, and we'd replace
this bug with a "missing depends on $arch" bug instead.

I'm not sure what the nicest solution is -- the current arrangement is
what we thought was the best option at the time.

#1137029#15
Date:
2026-05-19 01:12:35 UTC
From:
To:
Hi Stuart (2026.05.19_00:50:00_+0000)

OK, that's much better than I thought :)

I was investigating .so Python extensions, and this just looked broken.

Stefano