kinfocenter-4.8.0 fails to configure with an error that OpenGL (ES) is required for compositing with USE=-opengl. Reproducible: Always Steps to Reproduce: 1. USE=-opengl emerge =kde-base/kinfocenter-4.8.0 Actual Results: emerge fails in the configure stage. Expected Results: emerge kinfocenter Portage 2.1.10.44 (default/linux/amd64/10.0/server, gcc-4.5.3, glibc-2.14.1-r2, 3.1.4-bfs415.0 x86_64) ================================================================= System uname: Linux-3.1.4-bfs415.0-x86_64-AMD_Athlon-tm-_II_X2_255_Processor-with-gentoo-2.1 Timestamp of tree: Thu, 02 Feb 2012 16:00:01 +0000 distcc 3.1 x86_64-pc-linux-gnu [disabled] ccache version 3.1.7 [enabled] app-shells/bash: 4.2_p20 dev-java/java-config: 2.1.11-r3 dev-lang/python: 2.7.2-r3, 3.2.2 dev-util/ccache: 3.1.7 dev-util/cmake: 2.8.7-r2 dev-util/pkgconfig: 0.26 sys-apps/baselayout: 2.1 sys-apps/openrc: 0.9.8.4 sys-apps/sandbox: 2.5 sys-devel/autoconf: 2.13, 2.68 sys-devel/automake: 1.10.3, 1.11.2-r1 sys-devel/binutils: 2.22-r1 sys-devel/gcc: 4.5.3-r2 sys-devel/gcc-config: 1.5-r2 sys-devel/libtool: 2.4.2 sys-devel/make: 3.82-r3 sys-kernel/linux-headers: 3.2 (virtual/os-headers) sys-libs/glibc: 2.14.1-r2 Repositories: gentoo x-portage shellbeach x-vbox x-bfs-overlay x-xiph forked-daapd chrome-overlay mythtv x-hdhomerun ACCEPT_KEYWORDS="amd64 ~amd64" ACCEPT_LICENSE="* -@EULA PUEL dlj-1.1" CBUILD="x86_64-pc-linux-gnu" CFLAGS="-march=amdfam10 -pipe -O2" CHOST="x86_64-pc-linux-gnu" CONFIG_PROTECT="/etc /usr/NX/etc /usr/NX/home /usr/share/config /usr/share/gnupg/qualified.txt /usr/share/openvpn/easy-rsa" CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/php/apache2-php5.3/ext-active/ /etc/php/apache2-php5.4/ext-active/ /etc/php/cgi-php5.3/ext-active/ /etc/php/cgi-php5.4/ext-active/ /etc/php/cli-php5.3/ext-active/ /etc/php/cli-php5.4/ext-active/ /etc/revdep-rebuild /etc/sandbox.d /etc/splash /etc/terminfo" CXXFLAGS="-march=amdfam10 -pipe -O2" DISTDIR="/usr/portage/distfiles" EMERGE_DEFAULT_OPTS="--nospinner" FEATURES="assume-digests binpkg-logs ccache distlocks ebuild-locks fixlafiles news parallel-fetch protect-owned sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox" FFLAGS="" GENTOO_MIRRORS="http://gentoo.mirrors.tds.net/gentoo http://mirror.mcs.anl.gov/pub/gentoo/ http://gentoo.cites.uiuc.edu/pub/gentoo/ http://gentoo.osuosl.org/" LANG="en_US.utf8" LDFLAGS="-Wl,-O1 -Wl,--as-needed" LINGUAS="en en_US" MAKEOPTS="-j3" PKGDIR="/usr/portage/packages" PORTAGE_CONFIGROOT="/" PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" PORTDIR_OVERLAY="/usr/local/portage /usr/local/overlays/shellbeach /usr/local/overlays/vbox /usr/local/overlays/bfs-overlay /usr/local/overlays/xiph /usr/local/overlays/forked-daapd /usr/local/overlays/chrome /usr/local/overlays/mythtv/Gentoo /usr/local/overlays/hdhomerun" SYNC="rsync://rsync.gentoo.org/gentoo-portage" USE="3dnow 3dnowext X a52 aac acl alsa amd64 avahi avi berkdb bzip2 caps cdda cddb cdr cli consolekit cracklib crypt curl cxx dbus device-mapper dri dts dv dvb dvd dvdr dvdread encode exif expat fam fame fbcondecor ffmpeg fftw flac fortran gd gdbm gdu gif gnutls gpm gstreamer gtk gtk2 hal iconv ieee1394 imagemagick ipv6 java jpeg kde kdeenablefinal kdehiddenvisibility kerberos lame lcms lm_sensors logrotate lzma mad mdadm mmap mmx mmxext mng modules mozilla mp3 mpeg mpeg4 mudflap multilib mysql mythtv ncurses nls nptl nptlonly ogg openmp pam pcre php pic png policykit pppd qt qt3support quicktime readline redland samba sasl semantic-desktop server session snmp spell sql sqlite sse sse2 ssl subtitles svg sysfs tcpd threads tidy transcode truetype udev udisks unicode v4l v4l2 vorbis webkit x264 xfs xine xml xml2 xorg xulrunner xvid zeroconf zlib" ALSA_CARDS="intel8x0 bt87x" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mmap_emul mulaw multi null plug rate route share shm softvol" APACHE2_MODULES="actions alias auth_basic auth_digest authn_anon authn_dbd authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache dav dav_fs dav_lock dbd deflate dir disk_cache env expires ext_filter file_cache filter headers imagemap include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif so status unique_id userdir usertrack vhost_alias" APACHE2_MPMS="worker" CALLIGRA_FEATURES="kexi words flow plan stage tables krita karbon braindump" CAMERAS="canon logitech" COLLECTD_PLUGINS="cpu cpufreq df disk hddtemp interface load mbmon memory netlink network ntpd rrdcached rrdtool sensors swap thermal tail" ELIBC="glibc" 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 ubx" INPUT_DEVICES="keyboard mouse evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="en en_US" PHP_TARGETS="php5-3" RUBY_TARGETS="ruby18 ruby19" USERLAND="GNU" VIDEO_CARDS="nouveau radeon savage siliconmotion fbdev vesa vga" 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" Unset: CPPFLAGS, CTARGET, INSTALL_MASK, LC_ALL, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Created attachment 300843 [details] kde-base/kinfocenter-4.8.0.log
This seems to apply not just to kinfocenter, but kde-base/*[-opengl].
Created attachment 301019 [details, diff] kde-workspace-4.8.0.patch On closer inspection, this appears to affect kde-workspace packages only. Attached is a trivial patch to make it optional again (assuming that it really is still optional).
(In reply to comment #3) > Created attachment 301019 [details, diff] [details, diff] > kde-workspace-4.8.0.patch > > On closer inspection, this appears to affect kde-workspace packages only. > > Attached is a trivial patch to make it optional again (assuming that it really > is still optional). Thanks for looking at that Michael. I've updated the summary. I just had emerge decide on a new package order today and kwin did the same thing, so you're probably right.
archtester kinfocenter # USE=-opengl ebuild kinfocenter-4.8.0.ebuild install >>> Completed installing kinfocenter-4.8.0 into /mnt/gen2/tmpdir/portage/kde-base/kinfocenter-4.8.0/image/ -------------------------------------------------------- archtester kinfocenter # nano kinfocenter-4.8.0.ebuild --------------------------------------------------- src_prepare() { epatch "${FILESDIR}"/opengl.patch kde4-meta_src_prepare } ----------------------------------------------------- so the patch is effective, reversing a TRUE to a FALSE I suspect this has a way to go before all packages bundled in kde-workspace pull free if this flaw.
I think we should do it in eclass instead.
that would be a yes(In reply to comment #6) > I think we should do it in eclass instead. That would be a yes
*** Bug 403211 has been marked as a duplicate of this bug. ***
It turns out that OpenGL/OpenGL ES is now mandatory for kwin. We could do something like this in the eclass: if [[ "${KMNAME}" == "kde-workspace" ]]; then if [[ "${PN}" != "kwin" ]]; then sed -i -e "/^ macro_log_feature(OPENGL_OR_ES_FOUND/s/TRUE/FALSE/" \ "${S}"/CMakeLists.txt || die "kde-workspace sed failed" fi fi
(In reply to comment #9) > It turns out that OpenGL/OpenGL ES is now mandatory for kwin. Even if compositing is disabled (or are you saying it can't be disabled)?
(In reply to comment #10) > Even if compositing is disabled (or are you saying it can't be disabled)? I am not particularly familiar with KDE internals, but I cannot see any obvious way to disable compositing.
*** Bug 405889 has been marked as a duplicate of this bug. ***
At least for kwin, it's not possible to build without opengl anymore. I talked to upstream some time ago and basically got a "not supported, makes no sense". So, I'll add a dependency on kdelibs[opengl] in the kwin ebuild. For the other workspace packages, no idea...
(In reply to comment #13) > At least for kwin, it's not possible to build without opengl anymore. I > talked to upstream some time ago and basically got a "not supported, makes > no sense". So, I'll add a dependency on kdelibs[opengl] in the kwin ebuild. > > For the other workspace packages, no idea... If it's required and upstream says it makes no sense, why not just remove the USE flag?
(In reply to comment #14) > (In reply to comment #13) > > At least for kwin, it's not possible to build without opengl anymore. I > > talked to upstream some time ago and basically got a "not supported, makes > > no sense". So, I'll add a dependency on kdelibs[opengl] in the kwin ebuild. > > > > For the other workspace packages, no idea... > > If it's required and upstream says it makes no sense, why not just remove > the USE flag? For kwin, you can also set USE=gles instead now, but that still requires afaik kdelibs[opengl]. That's why there is still a useflag... Alternative would be to interpret USE=-gles as opengl automatically...
(In reply to comment #9) > It turns out that OpenGL/OpenGL ES is now mandatory for kwin. > We could do something like this in the eclass: > if [[ "${KMNAME}" == "kde-workspace" ]]; then > if [[ "${PN}" != "kwin" ]]; then > sed -i -e "/^ > macro_log_feature(OPENGL_OR_ES_FOUND/s/TRUE/FALSE/" \ > "${S}"/CMakeLists.txt || die "kde-workspace > sed failed" > fi > fi Yeah... I put a similar clause in the eclass in both main tree and overlay. It should not hurt in any case since it only prevents failure if opengl is not found. Let's test and see if anything is still broken.