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?
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.
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' #
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
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.
Please don't force my no-gui server to install Xorg... :( Thanks.
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.
media-libs/libv4l-1.6.0: no installed file link to x11, opengl or glu libs.
+ 14 Nov 2014; Alexis Ballier <aballier@gentoo.org> libv4l-1.6.0-r1.ebuild: + drop useless deps, bug #468684 + thx all!