Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 773478 - media-libs/libcaca w/ media-libs/freeglut built with OpenGL_GL_PREFERENCE=GLVND: configure: error: cannot find OpenGL+FreeGLUT development files
Summary: media-libs/libcaca w/ media-libs/freeglut built with OpenGL_GL_PREFERENCE=GLV...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo Media-video project
URL:
Whiteboard:
Keywords: PATCH
: 773928 783489 (view as bug list)
Depends on:
Blocks: 721006
  Show dependency tree
 
Reported: 2021-02-28 23:55 UTC by cyrillic
Modified: 2021-05-03 22:35 UTC (History)
7 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
config.log (config.log,96.35 KB, text/plain)
2021-02-28 23:59 UTC, cyrillic
Details
build.log (build.log,14.27 KB, text/plain)
2021-02-28 23:59 UTC, cyrillic
Details
Patch to allow compilation with new glut (libcaca-0.99.beta19-openGL.patch,1.07 KB, patch)
2021-03-03 00:54 UTC, Alexandre Ferreira
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description cyrillic 2021-02-28 23:55:18 UTC
media-libs/libcaca no longer compiles due to recent changes in media-libs/freeglut in particular, the change from OpenGL_GL_PREFERENCE= "LEGACY" to "GLVND"

Reproducible: Always




emerge --info :
Portage 3.0.16 (python 3.9.2-final-0, default/linux/amd64/17.1/desktop/gnome/systemd, gcc-10.2.0, glibc-2.33, 5.11.0-051100-lowlatency x86_64)
=================================================================
System uname: Linux-5.11.0-051100-lowlatency-x86_64-AMD_Ryzen_Threadripper_2970WX_24-Core_Processor-with-glibc2.33
KiB Mem:    65881140 total,  45171396 free
KiB Swap:          0 total,         0 free
Head commit of repository qt: 907a0ff98c5de2f0c717c40f66e2d9d1f1f39b46

Head commit of repository gentoo: d6fd5dafd38358af6a01d365394e3329f16e67fa

sh bash 5.1_p4
ld GNU ld (Gentoo 2.36.1 p1) 2.36.1
app-shells/bash:          5.1_p4::gentoo
dev-java/java-config:     2.3.1::gentoo
dev-lang/perl:            5.32.1::gentoo
dev-lang/python:          3.9.2::gentoo
dev-util/cmake:           3.19.6::gentoo
dev-util/pkgconfig:       0.29.2::gentoo
sys-apps/baselayout:      2.7-r1::gentoo
sys-apps/openrc:          0.42.1-r1::gentoo
sys-apps/sandbox:         2.20::gentoo
sys-devel/autoconf:       2.13-r1::gentoo, 2.69-r5::gentoo
sys-devel/automake:       1.13.4-r2::gentoo, 1.16.3-r1::gentoo
sys-devel/binutils:       2.36.1::gentoo
sys-devel/gcc:            10.2.0-r5::gentoo
sys-devel/gcc-config:     2.4::gentoo
sys-devel/libtool:        2.4.6-r6::gentoo
sys-devel/make:           4.3::gentoo
sys-kernel/linux-headers: 5.11::gentoo (virtual/os-headers)
sys-libs/glibc:           2.33::gentoo
Repositories:

newstuff
    location: /mnt/repos/newstuff
    masters: gentoo
    priority: -1030
    eclass-overrides: fixes

qt
    location: /mnt/repos/qt
    sync-type: git
    sync-uri: https://anongit.gentoo.org/git/proj/qt.git
    masters: gentoo
    priority: -1020
    eclass-overrides: fixes

gnomelive
    location: /mnt/repos/gnomelive
    masters: gentoo
    priority: -1010
    eclass-overrides: fixes

gentoo
    location: /mnt/repos/gentoo
    sync-type: git
    sync-uri: https://anongit.gentoo.org/git/repo/gentoo.git
    priority: -1000
    eclass-overrides: fixes

crossdev
    location: /mnt/repos/crossdev
    masters: gentoo
    eclass-overrides: fixes

fixes
    location: /mnt/repos/fixes
    masters: gentoo
    priority: 10
    eclass-overrides: fixes

Installed sets: @clang, @system
ACCEPT_KEYWORDS="* amd64 ~*"
ACCEPT_LICENSE="@FREE"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=core2 -mtune=native -O2 -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/gnupg/qualified.txt"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/dconf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo"
CXXFLAGS="-march=core2 -mtune=native -O2 -pipe"
DISTDIR="/mnt/distfiles"
ENV_UNSET="CARGO_HOME DBUS_SESSION_BUS_ADDRESS DISPLAY GOBIN GOPATH PERL5LIB PERL5OPT PERLPREFIX PERL_CORE PERL_MB_OPT PERL_MM_OPT XAUTHORITY XDG_CACHE_HOME XDG_CONFIG_HOME XDG_DATA_HOME XDG_RUNTIME_DIR"
FCFLAGS="-O2 -pipe"
FEATURES="assume-digests binpkg-docompress binpkg-dostrip binpkg-logs binpkg-multi-instance config-protect-if-modified distlocks ebuild-locks fixlafiles ipc-sandbox merge-sync multilib-strict network-sandbox news parallel-fetch pid-sandbox preserve-libs protect-owned qa-unresolved-soname-deps sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans"
FFLAGS="-O2 -pipe"
GENTOO_MIRRORS="http://distfiles.gentoo.org"
LANG="en_US.utf8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
MAKEOPTS="-j48"
PKGDIR="/var/tmp/packages"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --omit-dir-times --compress --force --whole-file --delete --stats --human-readable --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages --exclude=/.git"
PORTAGE_TMPDIR="/tmp"
USE="X a52 aac acl alsa amd64 berkdb bluetooth bluray boost brotli bzip2 cairo caps cdr colord cpudetection css cups curl custom-cflags cxx dbus drm dts dvd eds egl encode exif expat fbcon ffmpeg flac flickr fontconfig gdbm gif glamor glib gnome gnome-keyring gnutls gpm graphite gssapi gstreamer gtk gtk3 harfbuzz heif ibus icu idn imagemagick introspection ipv6 jpeg jpeg2k kmod kms lcms libass libglvnd libinput libnotify lzma mp3 nautilus ncurses networkmanager nls nptl nss numa ocamlopt ogg opencl opencv openexr opengl openmp openssl opus orc pam pango pcre pdf png policykit postproc postscript pulseaudio python qml readline samba speex spell split-usr ssl ssp svg systemd tcl theora threads tiff tk tools tracker truetype udev unicode upnp-av usb user-session utils v4l vala vorbis vpx vulkan wayland webp x264 x265 xcb xkb xml xmp xv xvmc zlib zstd" ABI_X86="64" CPU_FLAGS_X86="mmx mmxext sse sse2 sse3 ssse3" CURL_SSL="openssl" ELIBC="glibc" INPUT_DEVICES="libinput wacom" KERNEL="linux" L10N="en" LLVM_TARGETS="AMDGPU BPF X86" LUA_SINGLE_TARGET="lua5-4" PYTHON_SINGLE_TARGET="python3_9" PYTHON_TARGETS="python3_9" RUBY_TARGETS="ruby27" USERLAND="GNU" VIDEO_CARDS="amdgpu intel nouveau radeon radeonsi"
Unset:  CC, CPPFLAGS, CTARGET, CXX, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LC_ALL, LINGUAS, PORTAGE_BINHOST, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 1 cyrillic 2021-02-28 23:59:12 UTC
Created attachment 688785 [details]
config.log
Comment 2 cyrillic 2021-02-28 23:59:41 UTC
Created attachment 688788 [details]
build.log
Comment 3 Ionen Wolkens gentoo-dev 2021-03-01 00:13:57 UTC
Works fine if glut.pc just requests -lGL as well, it just can't be used on its own but doesn't advertise it, so I can't blame libcaca here.
Comment 4 Andreas Sturmlechner gentoo-dev 2021-03-01 00:15:17 UTC
Crudely removing the AC_CHECK_LIB checks for glutCloseFunc/glutMainLoopEvent/glutCheckLoop worked for me with libcaca, but I don't know the implications on runtime.
Comment 5 Ionen Wolkens gentoo-dev 2021-03-01 01:04:34 UTC
Looking at other packages testing -lglut, seems most of them just manually toss their own -lGL in either way. Not that I tested them all, I'm sure there's another one failing somewhere.

ftgl's glut.m4 for instance fails a first test (seen in config.log with just -lglut) then tries again with -lGL and detects it fine

If not widespread, maybe(?) a workaround here makes sense. I'm all for better -lOpenGL support either way.
Comment 6 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2021-03-02 07:59:54 UTC
*** Bug 773928 has been marked as a duplicate of this bug. ***
Comment 7 Alexandre Ferreira 2021-03-03 00:54:54 UTC
Created attachment 689172 [details, diff]
Patch to allow compilation with new glut
Comment 8 Ionen Wolkens gentoo-dev 2021-04-18 09:30:28 UTC
*** Bug 783489 has been marked as a duplicate of this bug. ***
Comment 9 Davyd McColl 2021-04-25 18:01:39 UTC
I've tried adding this patch to /etc/portage/patches/media-libs/libcaca-0.99_beta19-r1 in a file called `configure.ac.patch` but I don't see it being applied (and, of course, pre-compilation tests still fail). Any guidance or assistance would be greatly appreciated.
Comment 10 Ionen Wolkens gentoo-dev 2021-04-25 18:22:01 UTC
Anyone having issues with this should just need to rebuild freeglut, then libcaca should build without patches.

    emerge -1 freeglut

The cause was reverted but freeglut wasn't revbumped so it lingers on people's systems.
Comment 11 Davyd McColl 2021-04-26 04:17:24 UTC
thanks, rebuilding freeglut has solved the problem
Comment 12 Larry the Git Cow gentoo-dev 2021-05-03 22:35:53 UTC
The bug has been closed via the following commit(s):

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

commit 107f6d3889a9e5e50fd039355491b9e58b5c95b2
Author:     Matt Turner <mattst88@gentoo.org>
AuthorDate: 2021-05-03 22:33:36 +0000
Commit:     Matt Turner <mattst88@gentoo.org>
CommitDate: 2021-05-03 22:35:45 +0000

    media-libs/freeglut: Revbump
    
    Closes: https://bugs.gentoo.org/773478
    Signed-off-by: Matt Turner <mattst88@gentoo.org>

 media-libs/freeglut/{freeglut-3.2.1.ebuild => freeglut-3.2.1-r1.ebuild} | 0
 1 file changed, 0 insertions(+), 0 deletions(-)