On Tue, 2021-11-02 at 06:14 +0100, Helmut Grohne wrote: > Control: tags -1 - patch > > On Mon, Nov 01, 2021 at 10:53:13PM +0000, Vasyl Gello wrote: > > I encountered the same issue trying to cross-build Kodi. Johannes > > advised me to try > > splitting Python libraries from samba-libs in [1] and I quickly > > crafted the first > > draft of the change (see attached debdiff). It solved my issue and > > the issue > > reported in this bug: > > Thank you for working on this. Unfortunately, it's not quite ready > yet. > Please keep in mind that the reason for this bug being open for so > long > most likely is that it is a difficult problem. At least I have stayed > away from it for that reason. > > Your patch moves files between packages. At the very least that > requires > Breaks and Replaces relations. Without them, it will fail piuparts > and > receive an rc bug from Andreas Beckmann at best or get angry users at > worst. > > Then Andrew Bartlett pointed out that other packages may depend on > that > functionality via samba-libs. Of course those need to have their > Depends > updated and we need another pile of Breaks here. Figuring out what is > broken is a difficult aspect. An incomplete approach would be running > every single autopkgtest of every single transitive reverse > dependency. > Unfortunately, there is lots of them and it only gives you a lower > bound > of what is broken, but you'd really want an upper bound.
My recommendation is that someone works with us upstream to kill samba- libs, which would reduce the set. It should be a SUBSYSTEM used by the python module in the same directory only. Then work to disable the C->python bindings except in a selftest build (we don't go C->python in production, only Python -> C). That will remove the problem once and for all. But do this upstream. Andrew Bartlett -- Andrew Bartlett (he/him) https://samba.org/~abartlet/ Samba Team Member (since 2001) https://samba.org Samba Team Lead, Catalyst IT https://catalyst.net.nz/services/samba Samba Development and Support, Catalyst IT - Expert Open Source Solutions