Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 260054 - ruby emerge fails, complaining of missing 'threads' use flag, but tk and ruby both have threads disabled
Summary: ruby emerge fails, complaining of missing 'threads' use flag, but tk and ruby...
Status: RESOLVED DUPLICATE of bug 258893
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Development (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Gentoo Linux bug wranglers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-02-23 19:33 UTC by Trevor Bowen
Modified: 2009-02-24 17:41 UTC (History)
1 user (show)

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


Attachments
Updates ebuild to use EAPI 2. (ruby-1.8.6_p287-r5.ebuild.patch,1.12 KB, patch)
2009-02-24 11:58 UTC, Alet Roux
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Trevor Bowen 2009-02-23 19:33:31 UTC
I am trying to update to the latest version of ruby:

# emerge -pvt ruby tk

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

Calculating dependencies... done!
[ebuild     U ] dev-lang/ruby-1.8.6_p287-r5 [1.8.6_p287-r4] USE="berkdb emacs gdbm ipv6 ssl tk -debug -doc -examples -rubytests -socks5 -threads -xemacs" 0 kB
[ebuild   R   ]  dev-lang/tk-8.4.18  USE="-debug -threads" 0 kB

However, emerge of ruby crashes immediately with comlaint of inconsistent USE flags (threads) between ruby and TK.

The problem is that "threads" is off for both packages, and I have re-emerged TK once already, to ensure that it does not inlcude thread support.

If this message should be interpreted to mean that I must have threads support for both, should the message be reworded?

Thanks!

# emerge ruby   
Calculating dependencies... done!

>>> Verifying ebuild manifests

>>> Emerging (1 of 1) dev-lang/ruby-1.8.6_p287-r5
 * ruby-1.8.6-p287.tar.bz2 RMD160 SHA1 SHA256 size ;-) ...                                                               [ ok ]
 * checking ebuild checksums ;-) ...                                                                                     [ ok ]
 * checking auxfile checksums ;-) ...                                                                                    [ ok ]
 * checking miscfile checksums ;-) ...                                                                                   [ ok ]
 * 
 * You have Tk support enabled.
 * 
 * Ruby and Tk need the same 'threads' USE flag settings.
 * Either change the USE flag on dev-lang/ruby or on dev-lang/tk
 * and recompile tk.
 * 
 * ERROR: dev-lang/ruby-1.8.6_p287-r5 failed.
 * Call stack:
 *                   ebuild.sh, line   49:  Called pkg_setup
 *   ruby-1.8.6_p287-r5.ebuild, line   51:  Called die
 * The specific snippet of code:
 *              die "threads USE flag mismatch"
 *  The die message:
 *   threads USE flag mismatch
 * 
 * If you need support, post the topmost build error, and the call stack if relevant.
 * A complete build log is located at '/var/tmp/portage/dev-lang/ruby-1.8.6_p287-r5/temp/build.log'.
 * The ebuild environment file is located at '/var/tmp/portage/dev-lang/ruby-1.8.6_p287-r5/temp/die.env'.
 * 

>>> Failed to emerge dev-lang/ruby-1.8.6_p287-r5, Log file:

>>>  '/var/tmp/portage/dev-lang/ruby-1.8.6_p287-r5/temp/build.log'

Reproducible: Always

Steps to Reproduce:




$ emerge --info
Portage 2.1.6.7 (default/linux/amd64/2008.0, gcc-4.1.2, glibc-2.6.1-r0, 2.6.27-gentoo-r7 x86_64)
=================================================================
System uname: Linux-2.6.27-gentoo-r7-x86_64-Intel-R-_Core-TM-2_Quad_CPU_Q6600_@_2.40GHz-with-redhat-5-CentOS5
Timestamp of tree: Mon, 23 Feb 2009 18:30:01 +0000
app-shells/bash:     3.2_p39
dev-java/java-config: 1.3.7-r1, 2.1.6-r1
dev-lang/python:     2.5.2-r7
dev-util/cmake:      2.4.8
sys-apps/baselayout: 1.12.11.1
sys-apps/sandbox:    1.2.18.1-r2
sys-devel/autoconf:  2.13, 2.63
sys-devel/automake:  1.5, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2, 1.10.2
sys-devel/binutils:  2.18-r3
sys-devel/gcc-config: 1.4.0-r4
sys-devel/libtool:   1.5.26
virtual/os-headers:  2.6.27-r2
ACCEPT_KEYWORDS="amd64"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=nocona -O2 -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/share/config"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /etc/php/apache2-php5/ext-active/ /etc/php/cgi-php5/ext-active/ /etc/php/cli-php5/ext-active/ /etc/revdep-rebuild /etc/splash /etc/terminfo /etc/udev/rules.d"
CXXFLAGS="-march=nocona -O2 -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="distlocks fixpackages parallel-fetch protect-owned sandbox sfperms strict unmerge-orphans userfetch"
GENTOO_MIRRORS="http://distfiles.gentoo.org http://distro.ibiblio.org/pub/linux/distributions/gentoo"
LANG="en_US"
LC_ALL="en_US"
LDFLAGS="-Wl,-O1"
LINGUAS="en en_US"
MAKEOPTS="-j5"
PKGDIR="/usr/portage/packages"
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"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="X a52 aac aalib acl acpi alsa amd64 apache2 apm arts artswrappersuid audiofile avahi avi bash-completion berkdb bidi bitmap-fonts bonobo bzip2 cairo cdda cddb cdio cdr cgi clamav cli cracklib crypt ctype cups dbus directfb dri dts dv dvd dvdr emacs encode esd exif expat faac fam fbcon ffmpeg filter firefox flac font-server fortran freetype gdbm gif gnome gpm gstreamer gtk gtk2 hal hash iconv imap imlib ipv6 isdnlog jack java javascript jpeg kde kerberos ldap libg++ libsamplerate libwww live lm_sensors mad maildir matroska mbox mdnsresponder-compat midi mikmod mmx mng mono motif mp3 mpeg mplayer mssql mudflap multilib mysql ncurses networkmanager nls nntp nonfsv4 nptl nptlonly nsplugin nvidia odbc ofx ogg oggvorbis openal openexr opengl openmp pam pcre pda pdf pdflib perl php plotutils pmu png pop3d portaudio posix pppd python qmail-spp qt qt3 qt3support qt4 quicktime rdesktop readline reflection ruby samba sasl scanner sdl session simplexml slang snmp speex spell spl sse sse2 ssl stream svg sysfs tcl tcltk tcpd theora tidy tiff tk tokenizer truetype truetype-fonts type1 type1-fonts unicode usb vcd vhosts vim-syntax vlm vorbis wxwindows x264 xcomposite xinerama xml xmlrpc xorg xpm xulrunner xv xvid xvmc zlib" ALSA_CARDS="mia hda-intel" 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 ident imagemap include info log_config logio mem_cache mime mime_magic negotiation proxy proxy_ajp proxy_balancer proxy_connect proxy_http rewrite setenvif so speling status unique_id userdir usertrack vhost_alias" ELIBC="glibc" INPUT_DEVICES="keyboard mouse" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="en en_US" USERLAND="GNU" VIDEO_CARDS="nv"
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, FFLAGS, INSTALL_MASK, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS

Mon Feb 23 13:31:27 [root@prime]~
$ emerge --info | grep -i thread
Mon Feb 23 13:31:37 [root@prime]~
$ cat /etc/portage/package.
package.keywords  package.mask      package.unmask    package.use       
Mon Feb 23 13:31:37 [root@prime]~
$ cat /etc/portage/package.* | grep -i thread
Mon Feb 23 13:31:52 [root@prime]~
Comment 1 Alet Roux 2009-02-24 11:35:04 UTC
I have the same problem. My setup is similar, but not exactly the same, so here is my emerge --info:
Portage 2.1.6.7 (default/linux/amd64/2008.0, gcc-4.1.2, glibc-2.8_p20080602-r1, 2.6.27-gentoo-r8 x86_64)
=================================================================                                       
System uname: Linux-2.6.27-gentoo-r8-x86_64-Intel-R-_Core-TM-2_Duo_CPU_T7500_@_2.20GHz-with-glibc2.2.5  
Timestamp of tree: Tue, 24 Feb 2009 10:15:03 +0000                                                      
app-shells/bash:     3.2_p39                                                                            
dev-java/java-config: 2.1.6-r1                                                                          
dev-lang/python:     2.5.2-r7                                                                           
dev-util/cmake:      2.6.2-r1                                                                           
sys-apps/baselayout: 1.12.11.1                                                                          
sys-apps/sandbox:    1.2.18.1-r2                                                                        
sys-devel/autoconf:  2.13, 2.63                                                                         
sys-devel/automake:  1.5, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2, 1.10.2                                          
sys-devel/binutils:  2.18-r3                                                                            
sys-devel/gcc-config: 1.4.0-r4                                                                          
sys-devel/libtool:   1.5.26                                                                             
virtual/os-headers:  2.6.27-r2                                                                          
ACCEPT_KEYWORDS="amd64"                                                                                 
CBUILD="x86_64-pc-linux-gnu"                                                                            
CFLAGS="-march=nocona -O2 -pipe"                                                                        
CHOST="x86_64-pc-linux-gnu"                                                                             
CONFIG_PROTECT="/etc /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/kde/4.2/env /usr/kde/4.2/share/config /usr/kde/4.2/shutdown /usr/share/config /var/lib/hsqldb"                                                                       
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /etc/revdep-rebuild /etc/terminfo /etc/texmf/web2c /etc/udev/rules.d"                                                                               
CXXFLAGS="-march=nocona -O2 -pipe"                                                                                              
DISTDIR="/usr/portage/distfiles"                                                                                                
EMERGE_DEFAULT_OPTS="--keep-going"                                                                                              
FEATURES="distlocks fixpackages parallel-fetch protect-owned sandbox sfperms strict unmerge-orphans userfetch userpriv"         
GENTOO_MIRRORS="http://ftp.heanet.ie/pub/gentoo/ http://www.mirrorservice.org/sites/www.ibiblio.org/gentoo/ http://mirror.qubenet.net/mirror/gentoo/ http://de-mirror.org/distro/gentoo/ http://gentoo.tiscali.nl/ http://mirror.muntinternet.net/pub/gentoo/ http://ftp.snt.utwente.nl/pub/os/linux/gentoo ftp://213.186.33.38/gentoo-distfiles/"                                              
LANG="en_GB.utf8"                                                                                                               
LDFLAGS="-Wl,-O1"                                                                                                               
LINGUAS="en_GB af"                                                                                                              
MAKEOPTS="-j3"
PKGDIR="/usr/portage/packages"
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/portage/local/layman/sunrise /usr/local/portage"
SYNC="rsync://rsync.europe.gentoo.org/gentoo-portage"
USE="7zip X acl acpi addbookmarks alias alsa amarok amazon amd64 arts artswrappersuid autoreplace bash-completion berkdb bittorrent branding bzip2 calendar cardbus cddb chm cli connectionstatus cracklib crypt css cups cxx dbus dga dhcp djvu doc dri dvb dvd dvdr dvdread ebook embedded encode examples excel exif extra fam fame fat ffmpeg fftw firefox flash font-server fortran ftp gcj gd gdbm gif gimp glep glsa glut gmail gmp gnuplot google-gadgets gphoto2 gpm grammar graphics graphviz gs gsl hal hdaps highlight history html htmlhandbook humanities iconv id3 idn ieee1394 imagemagick imap inkjar ipv6 irc isdnlog jabber java jingle jpegjpeg2k kde kdehiddenvisibility kdepim kdeprefix kig-scripting kpathsea lame laptop latex lcms ldap logrotate mad maildir math midi mime mjpeg mmx mng mp3 mpeg mplayer msn mudflap multilib musepack musicbrainz ncurses netmeeting nls nocd nowlistening npp nptl nptlonly nsplugin ntfs nvidia octave ofx ogg opengl openmp oss pam pcmcia pcre pdf perl pgf plasma plotutils png postscript ppds pppd pstricks publishers python qt3 qt3support qt4 quicktime quotes rar readline realmedia reflection regex rss ruby scanner science sdl semantic-desktop session smp spell spl sql sqlite sqlite3 sse sse2 ssl startup-notification statistics subversion svg svgz sysfs tcl tcpd thesaurus tidy tiff timidity tk transcode truetype unicode usb v4l v4l2 vcd videos vorbis vram wifi winpopup wlm wma wmf wmp wordperfect wxwindows xcomposite xforms xine xml xorg xosd xscreensaver xv xvid yahoo zeroconf zlib" ALSA_CARDS="intel-hda usb-audio" 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 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" CAMERAS="ptp2" ELIBC="glibc" INPUT_DEVICES="keyboard evdev mouse synaptics" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="en_GB af" USERLAND="GNU" VIDEO_CARDS="nvidia"
Unset:  CPPFLAGS, CTARGET, FFLAGS, INSTALL_MASK, LC_ALL, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 2 Alet Roux 2009-02-24 11:58:39 UTC
Created attachment 183006 [details, diff]
Updates ebuild to use EAPI 2.

This solves the problem for me. Hope it is helpful.
Comment 3 Łukasz Damentko (RETIRED) gentoo-dev 2009-02-24 17:11:30 UTC

*** This bug has been marked as a duplicate of bug 258893 ***
Comment 4 Alex Legler (RETIRED) archtester gentoo-dev Security 2009-02-24 17:41:28 UTC
For the record, we didn't go with the EAPI-2 thing to be able to show the custom message.