13.01.2025 03:49, Johannes Schauer Marin Rodrigues wrote:
3. Backporting source packages in situations where a build dependency is not yet marked Multi-Arch: foreign in stable but was marked as Multi-Arch: foreign in unstable. In those cases, it would be nice if one could just add :native to the build dependency such that the same source package can be built on both stable and unstable without modifications. This idea came up when Michael Tokarev asked how to backport src:samba in #debian-devel.
After trying to use python3-dnspython:native in Build-Depends[-Arch], which finally seems to be working, because I actually need the native python, and because python3-dnspython has finally got M-A:foreign marker, I tried to build this on bookworm, where python3-dnspython is not marked with M-A:foreign yet. This failed, with dpkg-checkbuilddeps complaining about unsatisfied build-deps, despite apt happily provided python3-dnspython. In order to remedy this, I added an alternative: Build-Depends: python3-dnspython:native | python3-dnspython This, while a bit ugly, actually works on both bookworm and current sid. First alternative is for apt build-deps, second is for dpkg-checkbuilddeps. Thanks, /mjt