Bug#1151974: med-fichier: FTBFS: E: dh_python3 fs:172: Not everything in 'debian/python3-med/usr/lib/python3.15/site-packages/med' was able to be merged into 'debian/python3-med/usr/lib/python3/dist-packages/med'.

Santiago Vila sanvila at debian.org
Sun Oct 25 16:47:13 GMT 2026


> > You have a dangling symlink.
> 
> Since you have this information at hand would you mind sharing which one it
> is. It would save me some time :)

Here is a way to see the dangling symlinks:

Modify /usr/share/dh-python/dhpython/fs.py so that it reads like this:

        if not options.allow_unmerged_dist_packages:
            remaining_files = "\n".join(
                sorted(str(file) for file in Path(srcdir).rglob("*") if file.is_file() or file.is_symlink())
            )
            log.info("Remaining files: %s", remaining_files)
            raise SystemExit(1)

where we have changed "file.is_file()" to "file.is_file() or file.is_symlink()".

If you build the package after such change, you will see this message:

I: dh_python3 fs:179: Remaining files: debian/python3-med/usr/lib/python3.15/site-packages/med/_medenum.so.0
debian/python3-med/usr/lib/python3.15/site-packages/med/_medfamily.so.0
debian/python3-med/usr/lib/python3.15/site-packages/med/_medfield.so.0
debian/python3-med/usr/lib/python3.15/site-packages/med/_medinterp.so.0
debian/python3-med/usr/lib/python3.15/site-packages/med/_medlocalization.so.0
debian/python3-med/usr/lib/python3.15/site-packages/med/_medparameter.so.0

Thanks.



More information about the debian-science-maintainers mailing list