Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 352696 - media-libs/freeglut-2.6.0 missing dependency on x11-libs/libXxf86vm
Summary: media-libs/freeglut-2.6.0 missing dependency on x11-libs/libXxf86vm
Status: RESOLVED FIXED
Alias: None
Product: Gentoo/Alt
Classification: Unclassified
Component: Prefix Support (show other bugs)
Hardware: All All
: High normal (vote)
Assignee: Gentoo Prefix
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-01-25 15:45 UTC by Johan Hattne
Modified: 2011-01-26 19:10 UTC (History)
0 users

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 Johan Hattne 2011-01-25 15:45:09 UTC
media-libs/freeglut-2.6.0 should rdepend on x11-libs/libXxf86vm.  The configure script checks for the existence of the library and the header, but doesn't abort if they aren't found.  It would seem freeglut isn't particularly picky about the version of libXxf86vm, even though I only tested 1.1.1.

Reproducible: Always

Steps to Reproduce:
Comment 1 Jeremy Olexa (darkside) (RETIRED) archtester gentoo-dev Security 2011-01-25 15:50:51 UTC
Can you provide a snippet of the code (or output) that is doing the checks so we can send it off to x11 gentoo maintainers? thx
Comment 2 Johan Hattne 2011-01-25 16:09:54 UTC
(In reply to comment #1)
> Can you provide a snippet of the code (or output) that is doing the checks so
> we can send it off to x11 gentoo maintainers? thx

$ grep -n xf86vm configure.ac
32:  AC_CHECK_LIB([Xxf86vm], [XF86VidModeSwitchToMode],
33:               [LIBXXF86VM=-lXxf86vm], [LIBXXF86VM=],
51:AC_CHECK_HEADERS([X11/extensions/xf86vmode.h], [], [], [#include <X11/Xlib.h>])

...
checking for IceConnectionNumber in -lICE... yes
checking for XF86VidModeSwitchToMode in -lXxf86vm... yes
checking for ANSI C header files... (cached) yes
...
checking whether time.h and sys/time.h may both be included... yes
checking for X11/extensions/xf86vmode.h... yes
checking X11/extensions/XI.h usability... yes
...

Come to think of it, freeglut should probably rdepend on libXi, too, because:

$ grep -in xi configure.ac
27:  LIBXI=
35:  LIBXI=-lXi
41:AC_SUBST([LIBXI])
52:AC_CHECK_HEADERS([X11/extensions/XI.h X11/extensions/XInput.h])

checking X11/extensions/XI.h usability... yes
checking X11/extensions/XI.h presence... yes
checking for X11/extensions/XI.h... yes
checking X11/extensions/XInput.h usability... yes
checking X11/extensions/XInput.h presence... yes
checking for X11/extensions/XInput.h... yes
Comment 3 Fabian Groffen gentoo-dev 2011-01-26 19:10:00 UTC
thanks, done