Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 234087 - media-libs/libcaca-0.99_beta14 requires freeglut (needs sh love)
Summary: media-libs/libcaca-0.99_beta14 requires freeglut (needs sh love)
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: High enhancement
Assignee: Gentoo SuperH Porters
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-08-06 13:48 UTC by Chad A. Simmons
Modified: 2009-04-06 18:21 UTC (History)
5 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 Chad A. Simmons 2008-08-06 13:48:26 UTC
Package fails to get though configure looking for freeglut which is not listed in the deps.
Comment 1 Chad A. Simmons 2008-08-06 13:52:27 UTC
Tried both gluts that provide virtual/glut

checking for GL/glut.h... no
configure: error: cannot find OpenGL+FreeGLUT development files

Comment 2 Alexis Ballier gentoo-dev 2008-08-06 15:21:44 UTC
Thanks, fixed now.

sh and bsd don't have freeglut keyworded, they're indev profiles so I've not dropped the keywords (not sure about sh policy there).
Comment 3 Chad A. Simmons 2008-08-06 17:20:48 UTC
installing freeglut here still causes the failure. I suspect the configure script may need some patching as I see it is checking for some functions in GL/glut.h which is incorrect as the header file is called freeglut.h in freeglut. 

configure:18959: result: no
configure:18987: checking for GL/glut.h
configure:18996: result: no
configure:19239: error: cannot find OpenGL+FreeGLUT development files

if test "${enable_gl}" != "no"; then
  ac_cv_my_have_gl="no"
  AC_CHECK_HEADERS(GL/gl.h OpenGL/gl.h,
   [AC_CHECK_HEADERS(GL/glut.h,
     [AC_CHECK_LIB(glut, glutCloseFunc,
       [AC_DEFINE(HAVE_GLUTCLOSEFUNC, 1, Define to 1 if you have the `glutCloseFunc' function.)])
      AC_CHECK_LIB(glut, glutMainLoopEvent,
       [ac_cv_my_have_gl="yes"])
      AC_CHECK_LIB(glut, glutCheckLoop,
       [ac_cv_my_have_gl="yes"
        AC_DEFINE(HAVE_GLUTCHECKLOOP, 1, Define to 1 if you have the `glutCheckLoop' function.)])])
      break])
  if test "${ac_cv_my_have_gl}" = "yes"; then
    AC_DEFINE(USE_GL, 1, Define to 1 to activate the OpenGL backend driver)
    GL_LIBS="${GL_LIBS} -lGL -lglut"
    CACA_DRIVERS="${CACA_DRIVERS} gl"
  elif test "${enable_gl}" = "yes"; then
    AC_MSG_ERROR([cannot find OpenGL+FreeGLUT development files])
  fi
  PKG_CHECK_MODULES(FTGL, ftgl >= 2.1.3, [FTGL="yes"], [FTGL="no"])
  AM_CONDITIONAL(USE_FTGL, test "${FTGL}" = "yes")
fi


Comment 4 Alexis Ballier gentoo-dev 2008-08-06 23:10:50 UTC
(In reply to comment #3)
> installing freeglut here still causes the failure. I suspect the configure
> script may need some patching as I see it is checking for some functions in
> GL/glut.h which is incorrect as the header file is called freeglut.h in
> freeglut. 
> 
> configure:18959: result: no
> configure:18987: checking for GL/glut.h
> configure:18996: result: no
> configure:19239: error: cannot find OpenGL+FreeGLUT development files


please attach the config.log then

>   AC_CHECK_HEADERS(GL/gl.h OpenGL/gl.h,
>    [AC_CHECK_HEADERS(GL/glut.h,
>      [AC_CHECK_LIB(glut, glutCloseFunc,
>        [AC_DEFINE(HAVE_GLUTCLOSEFUNC, 1, Define to 1 if you have the
> `glutCloseFunc' function.)])
>       AC_CHECK_LIB(glut, glutMainLoopEvent,
>        [ac_cv_my_have_gl="yes"])
>       AC_CHECK_LIB(glut, glutCheckLoop,

I read here that it checks for the headers and then for functions present in the library libglut.
Comment 5 Alexis Ballier gentoo-dev 2008-08-08 16:22:51 UTC
bsd done
Comment 6 Jonathan Briggs 2008-08-12 01:52:48 UTC
This require for freeglut is screwing my dependency graph.  I don't *want* to use freeglut, but libcaca requires it now and it conflicts with glut which other packages require.

Really, what could libcaca possibly need from freeglut that glut can't give it?  Please change the dependency to virtual/glut.
Comment 7 Jonathan Briggs 2008-08-12 02:39:28 UTC
Well, never mind.  I finally did manage to get everything converted to freeglut.  Still, an annoying problem.
Comment 8 svrmarty 2008-11-15 14:24:24 UTC
emerge libcaca
shows the following

[ebuild  N    ] media-libs/freeglut-2.4.0-r1
[ebuild     U ] media-libs/libcaca-0.99_beta14 [0.99_beta11] USE="-mono% -ruby%"
[blocks B     ] media-libs/glut (is blocking media-libs/freeglut-2.4.0-r1)
[blocks B     ] media-libs/freeglut (is blocking media-libs/glut-3.7.1)
Comment 9 svrmarty 2008-11-15 14:24:51 UTC
should't it be virtual/glut ?
Comment 10 Raúl Porcel (RETIRED) gentoo-dev 2009-04-06 18:21:31 UTC
This was fixed already