Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 468684 - media-libs/libv4l-0.9.5 should not depend unconditionally on virtual/glu
Summary: media-libs/libv4l-0.9.5 should not depend unconditionally on virtual/glu
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Library (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Alexandre Rostovtsev (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-05-05 17:47 UTC by Petr Pisar
Modified: 2014-11-14 07:01 UTC (History)
9 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Petr Pisar 2013-05-05 17:47:57 UTC
media-libs/libv4l upgrade from 0.8.9 to 0.9.5 pulls in OpenGL and GLU libraries:

[nomerge       ] media-libs/libv4l-0.9.5 [0.8.9]
[ebuild  N     ]  virtual/glu-9.0  0 kB
[ebuild  N     ]   media-libs/glu-9.0.0  USE="(-multilib) -static-libs" 482 kB
[ebuild  N     ]    virtual/opengl-7.0  0 kB

I was curious for the reason because my machine has no OpenGL support and according to libv4l-0.9.5 sources the only reason is a testing tool contrib/test/v4l2gl.c and even the requirement is optional according to configure.ac and Makefile.am.

Would it be possible to patch configure.ac to guard the gl and glu autodectection by a new configure option and control it by opengl USE flag?
Comment 1 satmd 2014-01-21 19:31:02 UTC
I'm curious too. I wanted to install motion on a headless machine and now it tried to pull in opengl, glu, mesa, llvm, ...

I'm currently experimenting with removing these dependencies from the ebuild manually and will report back later.

If lib4vl does not need glu and opengl, we shall not depend on it uncoditionally.
Comment 2 Maxim Kammerer 2014-07-28 15:30:18 UTC
media-libs/libv4l-1.0.0 should not depend on virtual/glu, virtual/opengl, and x11-libs/libX11.

These are dependencies of contrib/test/pixfmt_test (X11) and contrib/test/v4l2gl (X11, GL, and GLU).

These programs are not built by the ebuild, and these dependencies would only need to be added for "test?", in case test support is added.

Automagic dependencies are not an issue either, since detected X11, GL and GLU are ignored for everything that's built.

The dependencies can be simply removed from the ebuild, no patching is required.

# ldd $(find $(qlist -e libv4l) -type f -name '*.so*') | grep -E 'GL|X'
#
Comment 3 Christophe PEREZ 2014-08-01 16:58:40 UTC
I can confirm.
On a gentoo server, I have a lot of packages not needed installed because of this.

http://forums.gentoo.org/viewtopic-t-996664-start-0-postdays-0-postorder-asc-highlight-.html?sid=cdda42a79d071d078edefd715675780a
Comment 4 Lukas Dzunko 2014-08-08 10:31:48 UTC
I can confirm this bug. I am running media-video/motion on headless server and update for media-libs/libv4l-0.8.9 is pushing lot of unnecessary X11 packages to system.

==============================================================================

[ebuild     U ~] media-libs/libv4l-0.9.5 [0.8.9] 953 kB
[ebuild  N     ]  virtual/glu-9.0-r1  ABI_X86="(64) (-32) (-x32)" 0 kB
[ebuild  N     ]   media-libs/glu-9.0.0-r1  USE="-static-libs" ABI_X86="(64) (-32) (-x32)" 482 kB
[ebuild  N     ]    virtual/opengl-7.0-r1  ABI_X86="(64) (-32) (-x32)" 0 kB
[ebuild  N     ]     media-libs/mesa-10.0.4 ...
...

==============================================================================

[ebuild     U ~] media-libs/libv4l-0.9.5-r1 [0.8.9] ABI_X86="(64%*) -32% (-x32)" 953 kB
[ebuild  N     ]  virtual/glu-9.0-r1  ABI_X86="(64) (-32) (-x32)" 0 kB
[ebuild  N     ]   media-libs/glu-9.0.0-r1  USE="-static-libs" ABI_X86="(64) (-32) (-x32)" 482 kB
[ebuild  N     ]    virtual/opengl-7.0-r1  ABI_X86="(64) (-32) (-x32)" 0 kB
[ebuild  N     ]     media-libs/mesa-10.0.4 ...
...

==============================================================================

[ebuild     U  ] media-libs/libv4l-1.0.0 [0.8.9] ABI_X86="(64%*) (-32) (-x32)" 941 kB
[ebuild  N     ]  virtual/glu-9.0-r1  ABI_X86="(64) (-32) (-x32)" 0 kB
[ebuild  N     ]   media-libs/glu-9.0.0-r1  USE="-static-libs" ABI_X86="(64) (-32) (-x32)" 482 kB
[ebuild  N     ]    virtual/opengl-7.0-r1  ABI_X86="(64) (-32) (-x32)" 0 kB
[ebuild  N     ]     media-libs/mesa-10.0.4  ...
...

==============================================================================

If dependency on virtual/glu is for test programs then I think there should be USE flag selecting test programs + dependency.
Comment 5 Jesse Adelman 2014-08-09 23:44:29 UTC
Please don't force my no-gui server to install Xorg... :( Thanks.
Comment 6 Rafał Mużyło 2014-08-20 17:58:14 UTC
Actually, it seems those programs are more examples than tests, so given their noinst status, they shouldn't be considered by the ebuild at all.
Comment 7 Nikoli 2014-11-02 19:54:24 UTC
media-libs/libv4l-1.6.0: no installed file link to x11, opengl or glu libs.
Comment 8 Alexis Ballier gentoo-dev 2014-11-14 07:01:27 UTC
+  14 Nov 2014; Alexis Ballier <aballier@gentoo.org> libv4l-1.6.0-r1.ebuild:
+  drop useless deps, bug #468684
+


thx all!