Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 496256

Summary: [enlightenment overlay] dev-libs/efl-1.8.4[sdl,gles] - configure: error: OpenGL SDL dependencies not found
Product: Gentoo Linux Reporter: Dennis Schridde <dschridde+gentoobugs>
Component: [OLD] LibraryAssignee: enlightenment+disabled
Status: RESOLVED CANTFIX    
Severity: normal    
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
URL: https://phab.enlightenment.org/T856
Whiteboard:
Package list:
Runtime testing required: ---
Attachments: build.log
config.log

Description Dennis Schridde 2013-12-28 12:04:46 UTC
SDL1 does not seem to come with OpenGL ES support. On my system just SDL2 contains the required headers. I assume that either EFL actually wants SDL2 or Gentoo misses to install some SDL1 headers.

In either case dev-libs/efl-1.8.3.ebuild misses the needed USE dependencies:
DEPEND="media-libs/libsdl[gles?,opengl?]".

checking for GL/gl.h... yes
checking for SDL/SDL_opengles.h... no
configure: error: OpenGL SDL dependencies not found

# q list -e libsdl | grep opengles
[empty output]

# q list -e libsdl2 | grep opengles
/usr/include/SDL2/SDL_opengles.h
/usr/include/SDL2/SDL_opengles2.h

Reproducible: Always




# emerge --info libsdl
Portage 2.2.7 (default/linux/amd64/13.0/desktop/kde, gcc-4.8.2, glibc-2.17, 3.12.6-gentoo x86_64)
=================================================================
                         System Settings
=================================================================
System uname: Linux-3.12.6-gentoo-x86_64-AMD_Athlon-tm-_64_X2_Dual_Core_Processor_5000+-with-gentoo-2.2
KiB Mem:     6107608 total,   2079608 free
KiB Swap:    7813116 total,   7762736 free
Timestamp of tree: Sat, 28 Dec 2013 10:15:01 +0000
ld GNU ld (GNU Binutils) 2.23.2
distcc 3.2rc1 x86_64-pc-linux-gnu [disabled]
app-shells/bash:          4.2_p45
dev-java/java-config:     2.2.0
dev-lang/python:          2.7.6, 3.3.3
dev-util/cmake:           2.8.12.1-r2
dev-util/pkgconfig:       0.28
sys-apps/baselayout:      2.2
sys-apps/openrc:          0.12.4
sys-apps/sandbox:         2.6-r1
sys-devel/autoconf:       2.13, 2.69
sys-devel/automake:       1.11.6, 1.12.6, 1.14.1
sys-devel/binutils:       2.23.2
sys-devel/gcc:            4.8.2
sys-devel/gcc-config:     1.8
sys-devel/libtool:        2.4.2
sys-devel/make:           4.0-r1
sys-kernel/linux-headers: 3.12 (virtual/os-headers)
sys-libs/glibc:           2.17
Repositories: gentoo systemd sage-on-gentoo mrueg qt enlightenment x11 local kde
ACCEPT_KEYWORDS="amd64 ~amd64"
ACCEPT_LICENSE="* -@EULA"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-pipe -O2 -march=athlon64-sse3"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/config /usr/share/gnupg/qualified.txt /usr/share/themes/oxygen-gtk/gtk-2.0 /usr/share/themes/oxygen-gtk/gtk-3.0"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/dconf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/php/apache2-php5.5/ext-active/ /etc/php/cgi-php5.5/ext-active/ /etc/php/cli-php5.5/ext-active/ /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo /etc/texmf/language.dat.d /etc/texmf/language.def.d /etc/texmf/updmap.d /etc/texmf/web2c"
CXXFLAGS="-pipe -O2 -march=athlon64-sse3"
DISTDIR="/var/cache/portage/distfiles"
EMERGE_DEFAULT_OPTS="--depclean-lib-check=n --keep-going --nospinner"
FCFLAGS="-O2 -pipe"
FEATURES="assume-digests binpkg-logs buildsyspkg compressdebug config-protect-if-modified distlocks ebuild-locks fixlafiles merge-sync news parallel-fetch parallel-install preserve-libs protect-owned sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync xattr"
FFLAGS="-O2 -pipe"
GENTOO_MIRRORS="http://ftp.spline.inf.fu-berlin.de/mirrors/gentoo/ http://ftp-stud.hs-esslingen.de/pub/Mirrors/gentoo/ http://distfiles.gentoo.org"
LANG="en_GB.UTF-8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed -Wl,--hash-style=gnu"
MAKEOPTS="-j3"
PKGDIR="/var/cache/portage/packages"
PORTAGE_COMPRESS="xz"
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"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/var/cache/portage/gentoo"
PORTDIR_OVERLAY="/var/lib/layman/systemd /var/lib/layman/sage-on-gentoo /var/lib/layman/mrueg /var/lib/layman/qt /var/lib/layman/enlightenment /var/lib/layman/x11 /var/cache/portage/local /var/cache/portage/overlays/kde"
[...]
USE="3dnow 3dnowext X a52 aac acl acpi alsa amd64 avahi bash-completion berkdb bluetooth branding bzip2 cairo caps cdda cdr cjk cli cracklib crypt cups cxx dbus declarative dri dts dvb dvd dvdr egl emboss encode exif fam ffmpeg firefox flac fortran gdbm gif gles gles1 gles2 gmp gpm gstreamer gtk ibus iconv ipv6 jpeg jpeg2k kde kipi latex lcms ldap libnotify mad mmx mmxext mng modules mp3 mp4 mpeg mplayer mudflap multilib mysql ncurses networkmanager nls nptl ogg openal openexr opengl openmp opus pam pango pch pcre pdf phonon plasma png policykit ppds pulseaudio qt3support qt4 readline real samba sdl semantic-desktop session speex spell sse sse2 sse3 ssl startup-notification subversion svg systemd tcpd theora threads tiff truetype udev udisks unicode upnp upower usb v4l vaapi vdpau vorbis vpx wayland x264 xattr xcb xcomposite xinerama xml xscreensaver xv xvid zeroconf zlib" ABI_X86="64" ALSA_CARDS="hda-intel" APACHE2_MODULES="authn_core authz_core socache_shmcb unixd actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache cgi cgid dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" CALLIGRA_FEATURES="stage words flow sheets" CAMERAS="ptp2" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" DRACUT_MODULES="btrfs systemd" ELIBC="glibc" ENLIGHTENMENT_MODULES="*" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf superstar2 timing tsip tripmate tnt ublox ubx" GRUB_PLATFORMS="pc" INPUT_DEVICES="evdev joystick" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" LINGUAS="de en" LIRC_DEVICES="devinput" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php5-5" PYTHON_SINGLE_TARGET="python2_7" PYTHON_TARGETS="python2_7 python3_3" RUBY_TARGETS="ruby19 ruby18 ruby20" USERLAND="GNU" VIDEO_CARDS="radeon r600" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipset ipp2p iface geoip fuzzy condition tee tarpit sysrq steal rawnat logmark ipmark dhcpmac delude chaos account"
USE_PYTHON="2.7 3.3"
Unset:  CPPFLAGS, CTARGET, INSTALL_MASK, LC_ALL, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS

=================================================================
                        Package Settings
=================================================================

media-libs/libsdl-1.2.15-r4 was built with the following:
USE="X alsa audio joystick opengl pulseaudio video xinerama xv -aalib -custom-cflags -dga -directfb -fbcon -ggi -libcaca -nas -oss (-ps3) -static-libs (-svga) -tslib"

media-libs/libsdl2-2.0.1 was built with the following:
USE="3dnow X alsa audio dbus gles joystick mmx opengl pulseaudio sse sse2 threads udev video xinerama xscreensaver (-altivec) (-custom-cflags) -directfb -fusionsound -haptic -nas -oss -static-libs -tslib"
Comment 1 Dennis Schridde 2013-12-28 12:05:11 UTC
Created attachment 366364 [details]
build.log
Comment 2 Dennis Schridde 2013-12-28 12:06:08 UTC
Created attachment 366366 [details]
config.log
Comment 3 Kyle Evans 2014-01-12 04:27:53 UTC
confirm +1, trying to update from enlightenment-0.17.3 to 0.18.1. Using package.keywords from /usr/portage/local/layman/enlightenment/scripts/package.keywords.snapshots

[ebuild  N    ~]   dev-libs/efl-1.8.3  USE="X audio bmp eet egl fontconfig gif gles gstreamer ico jpeg nls png ppm psd pulseaudio sdl ssl systemd tiff wayland -debug -doc -drm -fbcon -fribidi -glib -gnutls -harfbuzz -ibus -jp2k -opengl -physics -pixman -scim -tga -tslib -v4l2 -webp -xcb -xim -xine -xpm"
Comment 4 Dennis Schridde 2014-01-26 11:40:33 UTC
@tommy: Could you please add the USE dependencies as described in comment #0?

I created an upstream bugreport at https://phab.enlightenment.org/T856
Comment 5 Dennis Schridde 2014-01-26 11:45:57 UTC
P.S: This issue is still present in EFL 1.8.4
Comment 6 jeremiah 2014-02-10 17:42:54 UTC
Confirm +1

This appears to be a problem with the dependency on media-libs/libsdl.

release 1.2.15 does not include SDL_opengles.h: http://hg.libsdl.org/SDL/file/fba40d9f4a73/include

While it might have been in trunk when 1.2.15 was released, it appears to have first been included in an official release in 2.0.0: http://hg.libsdl.org/SDL/file/d6a8fa507a45/include

This means that dev-libs/efl[wayland] should depend on libsdl2 or libsdl-1.2.9999 and efl should be patched to check for SDL2/SDL_opengles.h rather than SDL/SDL_opengles.h
Comment 7 Dennis Schridde 2014-02-10 17:58:18 UTC
(In reply to jeremiah from comment #6)
> Confirm +1
> 
> [...]

Please write that in the upstream bugreport [1], as this might be valuable for upstream developers to understand where the problem resides.

[1] https://phab.enlightenment.org/T856
Comment 8 Thomas Sachau gentoo-dev 2014-03-08 16:54:14 UTC
the problem is not opengl, but instead sdl+gles since efl with the combination wants gles support from sdl, which is not in v1 and in a different location in v2 so it wont work in either way.

As a workaround, you can for now only either enable USE=gles or USE=sdl, but not both at the same time.

Please add a note, when upstream fixes the location for the gles header of sdl in v2 so i can update the ebuild.
Comment 9 jeremiah 2014-03-20 13:55:10 UTC
I noticed that Tommy changed the ebuild for 1.8.5 and 1.8.6
Could this line in the REQUIRED_USE section of the 1.9.0 ebuild also be changed:

before:
	sdl?		( || ( opengl gles ) )
after:
	sdl?		( opengl !gles )
optional addition:
	gles?		( !sdl )
Comment 10 Dennis Schridde 2014-03-25 17:02:45 UTC
The decision (T856#18) is to officially ignore the gles flag for the SDL backend and build the sdl-opengl backend only when the opengl flag is set.
Comment 11 Thomas Sachau gentoo-dev 2014-03-29 09:41:47 UTC
1.9.2 got the REQUIRED_USE updates too
Comment 12 Thomas Sachau gentoo-dev 2014-04-17 14:53:33 UTC
upstream wont support gles+sdl, so closing this bug.