Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 721006 - media-libs/freeglut - Add libglvnd USE flag
Summary: media-libs/freeglut - Add libglvnd USE flag
Status: CONFIRMED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo X packagers
URL:
Whiteboard:
Keywords:
Depends on: 775020 773478
Blocks:
  Show dependency tree
 
Reported: 2020-05-05 00:12 UTC by Brian Evans (RETIRED)
Modified: 2021-03-09 15:46 UTC (History)
2 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 Brian Evans (RETIRED) gentoo-dev 2020-05-05 00:12:12 UTC
With the latest libglvnd switch, I suggest adding a USE flag similar to the other projects and the result of that should set the OpenGL_GL_PREFERENCE to suppress the following warning.  Don't know if it would solve nor create any new issues, but I have initial success.

CMake Warning (dev) at /usr/share/cmake/Modules/FindOpenGL.cmake:275 (message):
  Policy CMP0072 is not set: FindOpenGL prefers GLVND by default when
  available.  Run "cmake --help-policy CMP0072" for policy details.  Use the
  cmake_policy command to set the policy and suppress this warning.

  FindOpenGL found both a legacy GL library:

    OPENGL_gl_LIBRARY: /usr/lib64/libGL.so

  and GLVND libraries for OpenGL and GLX:

    OPENGL_opengl_LIBRARY: /usr/lib64/libOpenGL.so
    OPENGL_glx_LIBRARY: /usr/lib64/libGLX.so

  OpenGL_GL_PREFERENCE has not been set to "GLVND" or "LEGACY", so for
  compatibility with CMake 3.10 and below the legacy GL library will be used.
Call Stack (most recent call first):
  CMakeLists.txt:262 (FIND_PACKAGE)
This warning is for project developers.  Use -Wno-dev to suppress it.
Comment 1 Matt Turner gentoo-dev 2020-05-05 00:16:49 UTC
Interesting! Thanks for the heads up.
Comment 2 Larry the Git Cow gentoo-dev 2021-02-25 15:38:21 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=0a518ca277805005ec066b8de589147cc0482b97

commit 0a518ca277805005ec066b8de589147cc0482b97
Author:     Andreas Sturmlechner <asturm@gentoo.org>
AuthorDate: 2021-02-25 10:05:49 +0000
Commit:     Andreas Sturmlechner <asturm@gentoo.org>
CommitDate: 2021-02-25 15:38:05 +0000

    media-libs/freeglut: Switch to cmake.eclass, silence cmake warning
    
    Add missing || die.
    
    Closes: https://bugs.gentoo.org/721006
    Closes: https://bugs.gentoo.org/770547
    Package-Manager: Portage-3.0.15, Repoman-3.0.2
    Signed-off-by: Andreas Sturmlechner <asturm@gentoo.org>

 media-libs/freeglut/freeglut-3.2.1.ebuild | 6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)
Comment 3 cyrillic 2021-02-28 22:42:18 UTC
Changing the preference from "LEGACY" to "GLVND" breaks media-libs/libcaca like this :

checking for X... libraries /usr/lib64, headers 
checking for XOpenDisplay in -lX11... yes
checking X11/XKBlib.h usability... yes
checking X11/XKBlib.h presence... yes
checking for X11/XKBlib.h... yes
checking GL/gl.h usability... yes
checking GL/gl.h presence... yes
checking for GL/gl.h... yes
checking GL/glut.h usability... yes
checking GL/glut.h presence... yes
checking for GL/glut.h... yes
checking for glutCloseFunc in -lglut... no
checking for glutMainLoopEvent in -lglut... no
checking for glutCheckLoop in -lglut... no
configure: error: cannot find OpenGL+FreeGLUT development files

!!! Please attach the following file when seeking support:
!!! /tmp/portage/media-libs/libcaca-0.99_beta19-r1/work/libcaca-0.99.beta19-abi_x86_64.amd64/config.log
Comment 4 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2021-02-28 22:53:58 UTC
(In reply to cyrillic from comment #3)
> Changing the preference from "LEGACY" to "GLVND" breaks media-libs/libcaca
> like this :
> 
> checking for X... libraries /usr/lib64, headers 
> checking for XOpenDisplay in -lX11... yes
> checking X11/XKBlib.h usability... yes
> checking X11/XKBlib.h presence... yes
> checking for X11/XKBlib.h... yes
> checking GL/gl.h usability... yes
> checking GL/gl.h presence... yes
> checking for GL/gl.h... yes
> checking GL/glut.h usability... yes
> checking GL/glut.h presence... yes
> checking for GL/glut.h... yes
> checking for glutCloseFunc in -lglut... no
> checking for glutMainLoopEvent in -lglut... no
> checking for glutCheckLoop in -lglut... no
> configure: error: cannot find OpenGL+FreeGLUT development files
> 
> !!! Please attach the following file when seeking support:
> !!!
> /tmp/portage/media-libs/libcaca-0.99_beta19-r1/work/libcaca-0.99.beta19-
> abi_x86_64.amd64/config.log

Please file a new bug with config.log, build.log, and emerge --info.
Comment 5 Larry the Git Cow gentoo-dev 2021-03-01 00:07:03 UTC
The bug has been referenced in the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=a3c93a01dff17e70b56757eddec81d07204ac274

commit a3c93a01dff17e70b56757eddec81d07204ac274
Author:     Andreas Sturmlechner <asturm@gentoo.org>
AuthorDate: 2021-03-01 00:04:41 +0000
Commit:     Andreas Sturmlechner <asturm@gentoo.org>
CommitDate: 2021-03-01 00:06:47 +0000

    media-libs/freeglut: Unset OpenGL_GL_PREFERENCE (LEGACY is default)
    
    Breaks at least media-libs/libcaca (only configure checks?).
    
    Bug: https://bugs.gentoo.org/721006#c3
    Package-Manager: Portage-3.0.16, Repoman-3.0.2
    Signed-off-by: Andreas Sturmlechner <asturm@gentoo.org>

 media-libs/freeglut/freeglut-3.2.1.ebuild | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)