Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 691066

Summary: media-libs/libv4l lax deps & configure options control
Product: Gentoo Linux Reporter: Andriy Utkin (RETIRED) <andrey_utkin>
Component: Current packagesAssignee: James Le Cuirot <chewi>
Status: RESOLVED FIXED    
Severity: normal CC: theli.ua
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---

Description Andriy Utkin (RETIRED) gentoo-dev 2019-07-30 16:54:24 UTC
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.
Comment 1 Rob Burcham 2020-05-17 16:46:49 UTC
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.
Comment 2 Larry the Git Cow gentoo-dev 2020-08-23 16:42:42 UTC
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(+)
Comment 3 Tamas Jantvik 2020-11-19 08:22:32 UTC
(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.