On Sat, Jul 18, 2020 at 6:36 AM Alexander Puchmayr <alexander.puchm...@linznet.at> wrote: > > Is there a better way to solve this? Is it possible to tell mythtv's build > system to ignore the unwanted libraries if the xmltv use-flag is NOT set?
Maybe, and if you do please do submit a patch. We refer to these sorts of build systems as "automagic" and they can be pretty problematic in situations like this. There are really only two ways to go about fixing this sort of thing systematically at a Gentoo level: 1. Go and patch all the build systems not to behave this way, or discover all the necessary override options (if available) and pass every one of them. This is the current preferred way and has everybody's full support, but it isn't easy and so it often doesn't happen. 2. Change portage to either use mount namespaces or the sandbox to prevent anything not in a specified dependency (which could include @system) from being seen or read at build time. IMO this is the cleaner solution and some other distros do it this way. As a side-effect it would probably eliminate a lot of bugs where deps were missed in the ebuild. This should defeat most problems with automagic build systems. Right now you're either going to have to fix the ebuild yourself (and please submit a bug with the fix), or keep your hosts more in sync so that the same binary works on both. -- Rich