Summary: eliminate automagic! Its configure stage detects about 20 system features (e.g. X11) which are not explicitly controlled by options passed by ebuild, and are not explicitly present in dependencies. This means e.g. if user builds libv4l while having X11 installed, and then X11 is uninstalled, libv4l will be broken. This is a follow-up to https://bugs.gentoo.org/616608 which was a specific notorious case of this issue.
I'm a little late on my 17.1 change I know, but bright side is I can provide some fresh insight to this task. On the step emerge -1v --deep /lib32 /usr/lib32 /usr/lib/llvm/*/lib32 my media-libs/libv4l-1.18.1 failed with the abi mismatch. I needed to rebuild media-libs/libsdl2 media-libs/glu sys-fs/eudev x11-libs/libXft media-libs/fontconfig sys-apps/util-linux Hope this is useful.
The bug has been referenced in the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=205e228434c0f9ff2e6156942a1ee8f8f56129fa commit 205e228434c0f9ff2e6156942a1ee8f8f56129fa Author: James Le Cuirot <chewi@gentoo.org> AuthorDate: 2020-08-23 16:37:15 +0000 Commit: James Le Cuirot <chewi@gentoo.org> CommitDate: 2020-08-23 16:42:18 +0000 media-tv/v4l-utils: Bump to 1.20.0, fix some automagics The automagic libudev dependency has now been dealt with via a patch and udev USE flag. Among other things, this library is needed for the DVB utilities so a dvb USE flag has also been added with a corresponding dependency on libv4l[dvb]. There may be more automagics but I haven't checked yet. Bug: https://bugs.gentoo.org/691066 Bug: https://bugs.gentoo.org/721374 Package-Manager: Portage-3.0.4, Repoman-3.0.1 Signed-off-by: James Le Cuirot <chewi@gentoo.org> media-tv/v4l-utils/Manifest | 1 + .../files/v4l-utils-1.20.0-automagic.patch | 52 +++++++++++++ media-tv/v4l-utils/v4l-utils-1.20.0.ebuild | 89 ++++++++++++++++++++++ 3 files changed, 142 insertions(+) https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=293838bf393bf79cd833e435f4bc0f75399726ca commit 293838bf393bf79cd833e435f4bc0f75399726ca Author: James Le Cuirot <chewi@gentoo.org> AuthorDate: 2020-08-23 16:31:22 +0000 Commit: James Le Cuirot <chewi@gentoo.org> CommitDate: 2020-08-23 16:42:15 +0000 media-libs/libv4l: Bump to 1.20.0, fix automagics configure reportedly has some automagic dependencies but only libudev makes any difference here and it's only used to build libdvbv5. There is already an option for that. Bug: https://bugs.gentoo.org/691066 Bug: https://bugs.gentoo.org/721374 Package-Manager: Portage-3.0.4, Repoman-3.0.1 Signed-off-by: James Le Cuirot <chewi@gentoo.org> media-libs/libv4l/Manifest | 1 + .../libv4l/files/libv4l-1.20.0-automagic.patch | 52 +++++++++++++++ media-libs/libv4l/libv4l-1.20.0.ebuild | 78 ++++++++++++++++++++++ 3 files changed, 131 insertions(+)
(In reply to Rob Burcham from comment #1) > I'm a little late on my 17.1 change I know, but bright side is I can provide > some fresh insight to this task. > > On the step > > emerge -1v --deep /lib32 /usr/lib32 /usr/lib/llvm/*/lib32 > > my media-libs/libv4l-1.18.1 failed with the abi mismatch. I needed to > rebuild > > media-libs/libsdl2 > media-libs/glu > sys-fs/eudev > x11-libs/libXft > media-libs/fontconfig > sys-apps/util-linux > > Hope this is useful. This is useful.