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.
Interesting! Thanks for the heads up.
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(-)
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
(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.
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(-)