Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 210062 - sci-visualization/paraview-3.2.1 fails on built_with_use check w/ USE="-qt4"
Summary: sci-visualization/paraview-3.2.1 fails on built_with_use check w/ USE="-qt4"
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Markus Dittrich (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-02-14 01:51 UTC by Colin Macdonald
Modified: 2008-02-14 15:50 UTC (History)
2 users (show)

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 Colin Macdonald 2008-02-14 01:51:55 UTC
I don't have qt4 installed and I have have -qt4 set.  I get the following error when trying to upgrade paraview

Calculating dependencies... done!
[ebuild     U ] sci-visualization/paraview-3.2.1 [2.6.2] USE="python threads -doc -examples -hdf5 -mpi -qt4%" 0 kB 

Total: 1 package (1 upgrade), Size of downloads: 0 kB

Would you like to merge these packages? [Yes/No] y
>>> Verifying ebuild Manifests...

>>> Emerging (1 of 1) sci-visualization/paraview-3.2.1 to /
 * paraview-3.2.1-OpenFOAM.patch.bz2 RMD160 SHA1 SHA256 size ;-) ...                                              [ ok ]
 * paraview-3.2.1.tar.gz RMD160 SHA1 SHA256 size ;-) ...                                                          [ ok ]
 * checking ebuild checksums ;-) ...                                                                              [ ok ]
 * checking auxfile checksums ;-) ...                                                                             [ ok ]
 * checking miscfile checksums ;-) ...                                                                            [ ok ]
 * checking paraview-3.2.1.tar.gz ;-) ...                                                                         [ ok ]
 * checking paraview-3.2.1-OpenFOAM.patch.bz2 ;-) ...                                                             [ ok ]
 * 
 * ERROR: sci-visualization/paraview-3.2.1 failed.
 * Call stack:
 *               ebuild.sh, line   49:  Called pkg_setup
 *               ebuild.sh, line 1244:  Called qt4_pkg_setup
 *              qt4.eclass, line  115:  Called built_with_use 'pkg_setup' 'pkg_setup'
 *           eutils.eclass, line 1668:  Called die
 * The specific snippet of code:
 *   	[[ -z ${PKG} ]] && die "Unable to resolve $1 to an installed package"
 *  The die message:
 *   Unable to resolve =x11-libs/qt-4* to an installed package
 * 
 * If you need support, post the topmost build error, and the call stack if relevant.
 * A complete build log is located at '/var/log/portage/sci-visualization:paraview-3.2.1:20080214-014250.log'.
 * The ebuild environment file is located at '/var/tmp/portage/sci-visualization/paraview-3.2.1/temp/die.env'.
 * 


emerge --info
Portage 2.1.4.4 (default-linux/x86/2006.1/desktop, gcc-4.2.2, glibc-2.7-r1, 2.6.23.9 i686)
=================================================================
System uname: 2.6.23.9 i686 AMD Athlon(tm) Processor
Timestamp of tree: Thu, 14 Feb 2008 00:00:01 +0000
distcc 2.18.3 i686-pc-linux-gnu (protocols 1 and 2) (default port 3632) [disabled]
app-shells/bash:     3.2_p17-r1
dev-java/java-config: 1.3.7, 2.1.4
dev-lang/python:     2.5.1-r5
dev-python/pycrypto: 2.0.1-r6
sys-apps/baselayout: 1.12.11.1
sys-apps/sandbox:    1.2.18.1-r2
sys-devel/autoconf:  2.13, 2.61-r1
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2, 1.10.1
sys-devel/binutils:  2.18-r1
sys-devel/gcc-config: 1.4.0-r4
sys-devel/libtool:   1.5.26
virtual/os-headers:  2.6.24
ACCEPT_KEYWORDS="x86 ~x86"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-march=i686 -O2 -pipe"
CHOST="i686-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/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/terminfo /etc/texmf/web2c /etc/udev/rules.d"
CXXFLAGS="-march=i686 -O2 -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="collision-protect distlocks metadata-transfer sandbox sfperms strict unmerge-orphans userfetch userpriv usersandbox"
GENTOO_MIRRORS="http://gentoo.inf.elte.hu/ ftp://trumpetti.atm.tut.fi/gentoo/ ftp://ftp.rnl.ist.utl.pt/pub/gentoo/"
MAKEOPTS="-j1"
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 /usr/local/ag-portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="3dnow X Xaw3d a52 aac aalib acpi alsa apache2 arts audiofile avahi berkdb bitmap-fonts blas bzip2 cairo cdr cjk cli cracklib crypt cups curl dbus dga dri dts dv dvb dvd dvdr eds emboss encode esd exif expat f77 faad fam fbcon ffmpeg fftw firefox flac fortran gcj gd gdbm gif ginac glut gmp gnome gnustep gnutls gphoto2 gpm gstreamer gtk gtk2 gtkhtml hal iconv idn imagemagick imlib isdnlog jack java jpeg lapack latex lcms leim libcaca libnotify libsamplerate lirc live mad matroska midi mikmod mmap mmx mng mono mozilla mp3 mpeg mudflap mysql nas ncurses nls nptl nptlonly offensive ogg openal opengl openmp oss pam pcre pdf perl plotutils png ppds pppd pulseaudio python qhull qt3 quicktime radeon readline reflection rtc samba scanner sdk sdl session slang sndfile speex spell spl sqlite sse ssl startup-notification svg tcl tcltk tcpd theora threads tiff tk truetype truetype-fonts type1-fonts unicode usb v4l v4l2 vcd vorbis win32codecs wmf wxwindows x264 x86 xinerama xml xorg xosd xv xvid zeroconf zlib" ALSA_CARDS="emu10k1 via82xx usb-audio" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter 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" ELIBC="glibc" INPUT_DEVICES="keyboard mouse" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIRC_DEVICES="realmagic" USERLAND="GNU" VIDEO_CARDS="i810 radeon mach64 vesa vga fbdev v4l"
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LANG, LC_ALL, LDFLAGS, LINGUAS, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 1 Jakub Moc (RETIRED) gentoo-dev 2008-02-14 06:56:44 UTC
Needs this...

<snip>
+pkg_setup() {
+        use qt4 && qt4_pkg_setup
+}
</snip>

Also please replace the nasty qt4_min_version thing with EAPI="1" and 
>=x11-libs/qt-4.3:4
Comment 2 Markus Dittrich (RETIRED) gentoo-dev 2008-02-14 11:43:42 UTC
Thanks much for the fix Jakub!
Could you please elaborate on why you dislike the
qt4_min_version? Internally, this function 
already uses the EAPI stuff and I find it slightly
more portable to use the eclass provided function
rather than using the dependency directly. 

Thanks,
Markus 
Comment 3 Jakub Moc (RETIRED) gentoo-dev 2008-02-14 14:04:53 UTC
(In reply to comment #2)

Didn't even notice someone rewrote it to not produce a totally insane list with every single qt4 revision that ever was in the tree. :D

Anyway, still requires EAPI="1" defined in the ebuild before inherit. :)
Comment 4 Markus Dittrich (RETIRED) gentoo-dev 2008-02-14 15:50:50 UTC
Yeah, thanks! I added the EAPI=1 bit and the
pkg_config() fix. 

I'll have a look at VTK as well, which probably
also needs fixing.

Thanks,
Markus