Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 340157 - media-libs/mesa installed with video_cards_{intel ,radeon} even if VIDEO_CARDS doesn't contain them
Summary: media-libs/mesa installed with video_cards_{intel ,radeon} even if VIDEO_CARD...
Status: RESOLVED INVALID
Alias: None
Product: Portage Development
Classification: Unclassified
Component: Core (show other bugs)
Hardware: All Linux
: High normal
Assignee: Portage team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-10-08 14:49 UTC by Todd Walter
Modified: 2010-10-14 12:08 UTC (History)
0 users

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 Todd Walter 2010-10-08 14:49:40 UTC
When an "emerge -Duv system" is issued it calls for libdrm to be installed with +video_cards_radeon +video_cards_intel flags enabled on a system where VIDEO_CARDS = "nvidia" in the sytem conf.  Alternatively, it wants the same cards deactivated for the Mesa emerge. The machine is an HP Mini 311 (Atom N270 + ION) and has never had anything other than "nvidia" in the make.conf so where did mesa initially pick this up?  Profile is default/linux/x86/10.0 .

Reproducible: Always

Steps to Reproduce:
1.emerge -Duv system
2.(or)
3.emerge -uv mesa

Actual Results:  
These are the packages that would be merged, in reverse order:

Calculating dependencies... done!

emerge: there are no ebuilds built with USE flags to satisfy ">=x11-libs/libdrm-2.4.22[video_cards_radeon?,video_cards_intel?,video_cards_nouveau?]".
!!! One of the following packages is required to complete your request:
- x11-libs/libdrm-2.4.22 (Change USE: +video_cards_intel +video_cards_radeon)
- media-libs/mesa-7.8.2 (Change USE: -video_cards_intel -video_cards_radeon)
(dependency required by "media-libs/mesa-7.8.2" [installed])
(dependency required by "virtual/glu-7.0" [installed])
(dependency required by "media-libs/freeglut-2.6.0" [installed])
(dependency required by "media-libs/jasper-1.900.1-r3" [installed])
(dependency required by "x11-libs/gtk+-2.20.1-r1" [installed])
(dependency required by "gnome-base/libglade-2.6.4" [installed])
(dependency required by "dev-python/pygtk-2.17.0" [installed])
(dependency required by "dev-vcs/git-1.7.3.1" [ebuild])
(dependency required by "sys-devel/gettext-0.18.1.1-r1" [installed])
(dependency required by "x11-misc/shared-mime-info-0.80" [ebuild])
(dependency required by "x11-misc/xdg-utils-1.0.2_p20100618" [installed])
(dependency required by "net-print/cups-1.4.4-r2" [installed])
(dependency required by "x11-libs/qt-gui-4.6.3" [installed])
(dependency required by "dev-util/cmake-2.8.1-r2" [installed])
(dependency required by "app-text/poppler-0.14.4" [ebuild])


Expected Results:  
A clean emerge of both packages.   More importantly, understanding where the system got the idea that either of the requested video card flags should be activated.

System was installed from an x86 minimal CD (put on a USB key)

Portage 2.1.9.14 (default/linux/x86/10.0, gcc-4.5.1, glibc-2.12.1-r1, 2.6.35-pf10 i686)
=================================================================
System uname: Linux-2.6.35-pf10-i686-Intel-R-_Atom-TM-_CPU_N270_@_1.60GHz-with-gentoo-2.0.1
Timestamp of tree: Fri, 08 Oct 2010 13:05:01 +0000
ccache version 2.4 [enabled]
app-shells/bash:     4.1_p7
dev-java/java-config: 2.1.11
dev-lang/python:     2.6.5-r3, 3.1.2-r4
dev-util/ccache:     2.4-r8
dev-util/cmake:      2.8.1-r2
sys-apps/baselayout: 2.0.1
sys-apps/openrc:     0.6.3
sys-apps/sandbox:    2.3-r1
sys-devel/autoconf:  2.13, 2.68
sys-devel/automake:  1.4_p6-r1, 1.8.5-r4, 1.9.6-r3, 1.10.3, 1.11.1
sys-devel/binutils:  2.20.1-r1
sys-devel/gcc:       4.5.1
sys-devel/gcc-config: 1.4.1
sys-devel/libtool:   2.2.10
sys-devel/make:      3.81-r2
virtual/os-headers:  2.6.35 (sys-kernel/linux-headers)
ACCEPT_KEYWORDS="x86 ~x86"
ACCEPT_LICENSE="*"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-Os -march=atom -mtune=atom -mssse3 -mfpmath=sse -fomit-frame-pointer -pipe -fstrength-reduce -fexpensive-optimizations -foptimize-register-move"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/X11/xkb"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/sandbox.d /etc/splash /etc/terminfo"
CXXFLAGS="-Os -march=atom -mtune=atom -mssse3 -mfpmath=sse -fomit-frame-pointer -pipe -fstrength-reduce -fexpensive-optimizations -foptimize-register-move"
DISTDIR="/usr/portage/distfiles"
FEATURES="assume-digests binpkg-logs ccache distlocks fixlafiles fixpackages news parallel-fetch protect-owned sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch"
GENTOO_MIRRORS="http://distfiles.gentoo.org"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
LINGUAS="en_CA en"
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"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="12-bit 3ds X X509 a52 aac aacs ace acl acpi aften alac alsa amr amrr analogtv aplaymidi apm archive asf ass assistant atsc audio audiofile bash-completion battery berkdb binary-drivers bittorrent blender blender-game bluetooth bogofilter boost branding bzip2 cairo ccache cdb cdda cddax cddb cdio cdparanoia cdr cdrdao cdrom cdsound cg cifsupcall cli client consolekit cpio cracklib crypt cups cxx db2 dbase dbm dbus dcc dcc_video dcc_voice device-mapper dhclient dolby-record-switch dolbyinrec dri dvd dvdarchive dvdchapjump dvdnav dvdr emerald emf excel exchange exif extensions extras fame fbcon fbcondecor fbsplash ffmpeg fftw flac flash fluidsynth foomaticdb fortran freetds fuse garmin gdal gdbm ggi glut gmplayer gnome-keyring gnuplot gnutls gpg gphoto2 gpm gps gpsd_user gpu graph graphics graphicsmagick gtk gui gvfs h224 h281 h323 hou icc iconv id3 id3tag idb image-cache imagemagick imaging imap imlib intel ipv6 irc java java6 javascript john joystick jpeg jpeg2k kismet largeterminal lastfm lastfmradio lcms ldap ldap-sasl ldapi ldb libnotify libsamplerate libsexy libssh2 libv4l libv4l2 lm_sensors lzma lzo mad madwifi magic magnetgenerator mapnik matroska mbox midi mixer mjpeg mmx mmxext modules mp3 mp3rtp mp3tunes mp4 mpd mpeg mpi mplayer mpu401 ms-bad-proposal msn mudflap multislot multitarget musepack music musicbrainz nat ncurses net netpbm network networking nforce2 nfs nfsv3 nfsv4 nls nntp nocd nptl nptlonly nss ntfs ntlm ntp nvidia odbc ode ods offensive ogg ogg123 ogm ole openal opencl openexr opengl openinventor openmedia openmp openssl opensslcrypt openstreetmap openxml otp otr pam pango parted pcap pcre pdf perl pidgin pixmaps pkcs11 pl2303 player plugins pm-utils pmu png pnm policykit pop portaudio powersave ppds ppm pppd ps pstoedit pstricks psyco pth python qscintilla qt-static qt3support qt4 qtscript quesoglc quicktime radio rar raw rawio rc5 rdesktop rdesktop-vrdp rdp rdpusb readline reflection rle rtc rtf rtmp rtsp samba samba4 scanfolder scanner schematics schroedinger screenshot scripts sdl sdl-image sdl-sound sdlaudio search sensord session sftp sharedmem shm shmvideo shout sip skype slit smbclient smp sou sound speech spell splash sqlite srtp sse sse2 sse3 ssh ssl ssse3 startup-notification stream svg sysfs tcl tcpd tga tgif theora threads thumbnail thumbnails thunar tidy tiff timidity tk tls tor tordns transcode truetype udev unicode unsupported unzip upnp usb uudeview uuencode v4l v4l2 vaapi vcd vcdinfo vcdx vdpau video videos vidix vnc vorbis wad wav waveform wavpack webcam webkit win32 win32codecs wireshark wma wma-fixed wmf wordperfect wpd wpg wps wv2 x11vnc x264 x86 xbase xcb xchatdccserver xcomposite xfce xft xmame xorg xrandr xrender xscreensaver xv xvid xvmc yv12 zlib" ALSA_CARDS="hda-intel loopback virmidi" 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 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" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" 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 synaptics" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="en_CA en" RUBY_TARGETS="ruby18" USERLAND="GNU" VIDEO_CARDS="nvidia" 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, EMERGE_DEFAULT_OPTS, FFLAGS, INSTALL_MASK, LANG, LC_ALL, MAKEOPTS, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, PORTDIR_OVERLAY
Comment 1 Sebastian Luther (few) 2010-10-08 15:03:44 UTC
Please try this with the --autounmask option and post the output.
Comment 2 Todd Walter 2010-10-08 15:26:57 UTC
tinypenguin ~ # emerge --autounmask -Duv system           

These are the packages that would be merged, in order:

Calculating dependencies... done!
[ebuild     U ] sys-libs/timezone-data-2010m [2010l] USE="nls" 375 kB
[ebuild     U ] dev-util/desktop-file-utils-0.17 [0.16] USE="-emacs" 274 kB
[ebuild     U ] gnome-base/orbit-2.14.19 [2.14.18] USE="-debug% -doc -test%" 747 kB
[ebuild     U ] net-libs/libssh2-1.2.7 [1.2.6] USE="zlib -gcrypt" 570 kB
[ebuild     U ] x11-libs/libX11-1.3.6 [1.3.5] USE="ipv6 xcb -doc* -static-libs -test" 2,036 kB
[ebuild     U ] dev-python/pygobject-2.20.0-r1 [2.20.0] USE="-debug -doc -examples -libffi -test" 0 kB
[ebuild     U ] media-libs/freetype-2.4.3 [2.4.2] USE="X -auto-hinter -bindist -debug -doc -fontforge -utils" 1,404 kB
[ebuild     U ] sys-apps/dbus-1.4.0 [1.2.24-r2] USE="X -debug -doc (-selinux) -static-libs% -test" 1,759 kB
[ebuild     U ] x11-apps/xauth-1.0.5 [1.0.4] USE="ipv6 (-debug%)" 127 kB
[ebuild     U ] sys-libs/cracklib-2.8.18 [2.8.16] USE="nls python" 574 kB
[ebuild     U ] dev-lang/perl-5.12.2-r1 [5.12.2] USE="berkdb gdbm -build -debug -doc -ithreads" 5 kB
[ebuild     U ] app-admin/perl-cleaner-2.6 [2.4] 6 kB
[ebuild     U ] dev-libs/libtasn1-2.8 [2.7] USE="-doc" 1,854 kB
[ebuild     U ] net-libs/gnutls-2.10.2 [2.10.1] USE="cxx lzo nls zlib -bindist -doc -examples -guile" 7,284 kB
[ebuild     U ] x11-libs/pango-1.28.3 [1.28.1] USE="X -debug -doc (-introspection) -test" 1,475 kB
[ebuild     U ] perl-core/Digest-MD5-2.51 [2.40] 45 kB
[ebuild     U ] x11-misc/shared-mime-info-0.80 [0.71] 568 kB
[ebuild     U ] virtual/perl-Digest-MD5-2.51 [2.40] 0 kB
[ebuild     U ] x11-libs/gtksourceview-2.10.5-r1 [2.10.4] USE="-doc* -glade -test" 1,224 kB
[ebuild     U ] app-text/poppler-0.14.4 [0.14.3] USE="abiword cairo cxx jpeg jpeg2k lcms png qt4 utils xpdf-headers -cjk -curl -debug -doc -exceptions" 1,753 kB
[ebuild     U ] dev-vcs/git-1.7.3.1 [1.7.2.3] USE="bash-completion blksha1 curl gtk iconv perl threads tk webdav -cgi -cvs -doc -emacs (-ppcsha1) -subversion -xinetd" 2,852 kB
[ebuild     U ] app-text/ghostscript-gpl-9.00 [8.71-r6] USE="X cups gtk jpeg2k -bindist -djvu -idn% (-cairo%*)" LINGUAS="-ja -ko -zh_CN -zh_TW" 16,977 kB
[ebuild     U ] sys-auth/pambase-20100925 [20100819] USE="consolekit cracklib gnome-keyring* sha512 ssh -debug -kerberos -minimal% -mktemp -passwdqc (-selinux)" 4 kB

Total: 23 packages (23 upgrades), Size of downloads: 41,904 kB

The following USE changes are necessary to proceed:
#required by =media-libs/mesa-7.8.2, required by =virtual/opengl-7.0, required by =media-libs/freeglut-2.6.0, required by =media-libs/jasper-1.900.1-r3[opengl], required by =x11-libs/gtk+-2.20.1-r1[jpeg2k], required by =gnome-base/libglade-2.6.4, required by =dev-python/pygtk-2.17.0, required by =dev-vcs/git-1.7.3.1[gtk], required by =sys-devel/gettext-0.18.1.1-r1[git], required by =x11-misc/shared-mime-info-0.80, required by =x11-misc/xdg-utils-1.0.2_p20100618, required by =net-print/cups-1.4.4-r2[X], required by =x11-libs/qt-gui-4.6.3[cups], required by =dev-util/cmake-2.8.1-r2[qt4], required by =app-text/poppler-0.14.4
=x11-libs/libdrm-2.4.22 video_cards_intel video_cards_radeon
Comment 3 Sebastian Luther (few) 2010-10-08 15:30:52 UTC
Please add -N to the last command and post the output.
Also post the package specific part of "emerge --info mesa".
Comment 4 Todd Walter 2010-10-08 15:34:50 UTC
The emerge with the -N appears as though it will function.  Given that this is an Atom, it will be a while.  How do I 'tee' the output to a log?

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

media-libs/mesa-7.8.2 was built with the following:
USE="nptl xcb -debug (-gallium) -motif -pic (-selinux)" VIDEO_CARDS="intel mach64 mga r128 radeon savage sis tdfx via -none -nouveau -radeonhd -svga"
CFLAGS="-Os -march=core2 -mtune=generic -fomit-frame-pointer -pipe -ffast-math"
CXXFLAGS="-Os -march=core2 -mtune=generic -fomit-frame-pointer -pipe -ffast-math"
Comment 5 Sebastian Luther (few) 2010-10-08 15:50:32 UTC
If you would need to post that output, you would add -p to the command, but you don't. As the emerge --info output shows, are both, intel and radeon, enabled for your installed mesa, which is consistent with the output you posted above.

This means you somehow got mesa installed with those flags enabled and emerge is right.
Comment 6 Todd Walter 2010-10-08 16:04:05 UTC
(In reply to comment #5)
> If you would need to post that output, you would add -p to the command, but you
> don't. As the emerge --info output shows, are both, intel and radeon, enabled
> for your installed mesa, which is consistent with the output you posted above.
> 
> This means you somehow got mesa installed with those flags enabled and emerge
> is right.

That, of course, was why I filed the bug in the first place.  I repeat, I set this PC up from scratch using the "minimal" method.  There is _NO_ possibility of mesa having been emerged with radeon set for the same reason given before -- this is an nVidia ION machine and I'm not bloody likely to confuse that with "radeon".  This means during one of the update processes the flags were set by an ebuid.  That, to me, is the bug that needs resolving.  Is it possible to trace through the emerge log files in /var/log?
Comment 7 Sebastian Luther (few) 2010-10-08 16:39:15 UTC
(In reply to comment #6)
> Is it possible to
> trace through the emerge log files in /var/log?
> 

Depends on your logging settings. /var/log/emerge.log probably won't help you. If you keep all logs in /var/log/portage then you can search there for the mesa logs and look right at the beginning for the USE settings.
Comment 8 Todd Walter 2010-10-08 16:55:40 UTC
(In reply to comment #7)
> (In reply to comment #6)
> > Is it possible to
> > trace through the emerge log files in /var/log?
> > 
> 
> Depends on your logging settings. /var/log/emerge.log probably won't help you.
> If you keep all logs in /var/log/portage then you can search there for the mesa
> logs and look right at the beginning for the USE settings.
>  
Thanks.  BTW - I re-read my last comment and I want you to know I didn't quite mean to make it sound as harsh as I did.  Your prompt assistance is greatly appreciated.  I will look through my logs and see if I can deduce the problem.  It is probably best to close this with a "can't reproduce" since it would require rebuilding this PC from scratch and I don't have the heart to wait for the Atom to chug through it all over again.
Comment 9 Sebastian Luther (few) 2010-10-08 20:20:21 UTC
Could it be that you set VIDEO_CARDS after you installed mesa? The default seems to be "enabled all".
Comment 10 Todd Walter 2010-10-14 12:08:50 UTC
(In reply to comment #9)
> Could it be that you set VIDEO_CARDS after you installed mesa? The default
> seems to be "enabled all".
> 

I have gone through the logs and can find no better explanation than this. :<  Closing as PEBKAC.