Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 209447 - sci-visualization/qtiplot-0.9.2: fail to compile with python USE flag disabled if python-2.5 is not installed
Summary: sci-visualization/qtiplot-0.9.2: fail to compile with python USE flag disable...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: AMD64 Linux
: High normal (vote)
Assignee: Marcus D. Hanwell (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-02-09 18:55 UTC by Tilen
Modified: 2008-02-12 15:49 UTC (History)
1 user (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 Tilen 2008-02-09 18:55:23 UTC
Without python-2.5 installed and with python USE flag for qtiplot-0.9.2 disabled qtiplot fail to compile. After enabling python and unmasking all required dependencies it install without a problem. After python 2.5 (2.5.1-r5 in my case) is installed qtiplot compile with or without python use flag.

Reproducible: Always

Steps to Reproduce:
1.unmask qtiplot-0.9.2 and all dependencies
2.disable python USE flag for qtiplot
3.make sure python-2.5 is not installed
4.emerge qtiplot

Actual Results:  
Emerge fail.


Expected Results:  
Qtiplot should compile even if python-2.5 is not installed on system or qtiplot-0.9.2 should depend on python-2.5 even with python use flag disabled.

emerge --info:
Portage 2.1.3.19 (default-linux/amd64/2007.0/desktop, gcc-4.1.2, glibc-2.6.1-r0, 2.6.22-gentoo-r9 x86_64)
=================================================================
System uname: 2.6.22-gentoo-r9 x86_64 Intel(R) Core(TM)2 Duo CPU E6550 @ 2.33GHz
Timestamp of tree: Sat, 09 Feb 2008 08:16:01 +0000
ccache version 2.4 [enabled]
app-shells/bash:     3.2_p17-r1
dev-lang/python:     2.4.4-r6
dev-python/pycrypto: 2.0.1-r6
dev-util/ccache:     2.4-r7
sys-apps/baselayout: 1.12.10-r5
sys-apps/sandbox:    1.2.18.1-r2
sys-devel/autoconf:  2.13, 2.61-r1
sys-devel/automake:  1.7.9-r1, 1.8.5-r3, 1.9.6-r2, 1.10
sys-devel/binutils:  2.18-r1
sys-devel/gcc-config: 1.4.0-r4
sys-devel/libtool:   1.5.24
virtual/os-headers:  2.6.23-r3
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.0/env /usr/kde/4.0/share/config /usr/kde/4.0/shutdown /usr/share/X11/xkb /usr/share/config"
CONFIG_PROTECT_MASK="/etc/env.d /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"
FEATURES="ccache distlocks metadata-transfer parallel-fetch sandbox sfperms strict unmerge-orphans userfetch"
GENTOO_MIRRORS="http://gd.tuwien.ac.at/opsys/linux/gentoo/ http://ftp.belnet.be/mirror/rsync.gentoo.org/gentoo/ "
LANG="en_US"
LC_ALL="en_US"
LINGUAS="sl en"
MAKEOPTS="-j3"
PKGDIR="/usr/portage/packages"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --delete-after --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages --filter=H_**/files/digest-*"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="   "
SYNC="rsync://rsync.europe.gentoo.org/gentoo-portage"
USE="X a52 aac acl acpi alsa amd64 berkdb bitmap-fonts cairo cdr cli cracklib crypt cups dbus dri dvd dvdr dvdread encode fam firefox fortran ftp gdbm gif gphoto2 gpm gtk hal iconv ipod ipv6 isdnlog jpeg kde kerberos ldap lm_sensors mad midi mikmod mmx mp3 mpeg mplayer msn mudflap ncurses nls nptl nptlonly nsplugin ogg opengl openmp pam pcre pdf perl png pppd python qt3 qt3support qt4 quicktime readline reflection sdl session spell spl sse sse2 ssl svg tcpd threads tiff truetype truetype-fonts type1-fonts unicode usb vorbis xcomposite xinerama xml xorg xv xvmc zlib" ALSA_CARDS="hda-intel 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" LINGUAS="sl en" USERLAND="GNU" VIDEO_CARDS="nvidia"
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LDFLAGS, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS

End of compile log:
make[1]: *** No rule to make target `../tmp/qtiplot/sipqticmodule.cpp', needed by `../tmp/qtiplot/sipqticmodule.o'.  Stop.
make[1]: *** Waiting for unfinished jobs....
src/muParserScript.cpp: In member function 'virtual QVariant muParserScript::eval()':
src/muParserScript.cpp:376: warning: 'val' may be used uninitialized in this function
src/PythonScript.cpp: In member function 'virtual QVariant PythonScript::eval()':
src/PythonScript.cpp:200: warning: dereferencing type-punned pointer will break strict-aliasing rules
src/PythonScript.cpp:211: warning: suggest parentheses around assignment used as truth value
src/PythonScripting.cpp:60:23: error: sipAPIqti.h: No such file or directory
src/PythonScripting.cpp: In member function 'bool PythonScripting::setQObject(QObject*, const char*, PyObject*)':
src/PythonScripting.cpp:335: error: 'sipTypeDef' was not declared in this scope
src/PythonScripting.cpp:335: error: 't' was not declared in this scope
src/PythonScripting.cpp:336: error: 'sipModuleAPI_qti' was not declared in this scope
src/PythonScripting.cpp:343: error: 'sipConvertFromInstance' was not declared in this scope
src/PythonScripting.cpp:348: error: 'sipModuleAPI_qti_QtCore' was not declared in this scope
src/PythonScripting.cpp:352: error: 'sipConvertFromInstance' was not declared in this scope
make[1]: *** [../tmp/qtiplot/PythonScripting.o] Error 1
make[1]: Leaving directory `/var/tmp/portage/sci-visualization/qtiplot-0.9.2/work/qtiplot-0.9.2/qtiplot'
make: *** [sub-qtiplot-make_default] Error 2
 *
 * ERROR: sci-visualization/qtiplot-0.9.2 failed.
 * Call stack:
 *              ebuild.sh, line 1701:  Called dyn_compile
 *              ebuild.sh, line 1039:  Called qa_call 'src_compile'
 *              ebuild.sh, line   44:  Called src_compile
 *   qtiplot-0.9.2.ebuild, line   60:  Called die
 * The specific snippet of code:
 *      emake || die "emake failed"
 *  The die message:
 *   emake failed

package.keywords I had enabled for qtiplot (with python USE flag dependencies):
=sci-visualization/qtiplot-0.9.2
=sci-libs/gsl-1.10
=x11-libs/qwtplot3d-0.2.7
=sci-libs/liborigin-20071119
=dev-cpp/muParser-1.28
=sci-libs/scipy-0.6.0-r4
=dev-python/numpy-1.0.4-r1
=dev-lang/python-2.5.1-r5
=dev-python/PyQt4-4.3.3
=dev-python/sip-4.7.3
=dev-python/pygsl-0.9.0
Comment 1 Sébastien Fabbro (RETIRED) gentoo-dev 2008-02-11 11:03:06 UTC
> Steps to Reproduce:
> 1.unmask qtiplot-0.9.2 and all dependencies
> 2.disable python USE flag for qtiplot
> 3.make sure python-2.5 is not installed
> 4.emerge qtiplot


Worked fine here. Make sure you did a python-updater and it is not a duplicate of bug #201484. Thanks.

Comment 2 Tilen 2008-02-11 12:20:46 UTC
I did run python-updater before installing python-2.5 and it said something like "no other python version found" (don't know exactly and can't reproduce now without uninstalling python-2.5) and didn't do anything, qtiplot didn't compile anyway.
After I installed python-2.5 qtiplot compiled even tho I didn't run pyhton-updater so I guess my problem ain't here. Problem is I couldn't compile qtiplot without having python-2.5 on system even tho it ain't required as dependency if python use flag is disabled.
Comment 3 Sébastien Fabbro (RETIRED) gentoo-dev 2008-02-11 13:58:14 UTC
The problem is that qtiplot needs sip built with the same python versions as the other deps. Your choices are:
1) if you want python bindings for qtiplot, update to python-2.5, then python-updater and build qtiplot
2) if you don't the python bindings or if you don't want python-2.5, downgrade to python-2.4, run python-updater to re-update all your modules back to 2.4 and re-emerge qtiplot without the python use flag.

I agree it is not a simple situation, my recommendation: stay away from problems by choosing option 1).
Comment 4 Tilen 2008-02-11 16:16:35 UTC
I have working qtiplot now, but with none of the above options.
My aim was something as option 2), that's working qtiplot with as little ~arch as possible. I can't emerge qtiplot-0.7.7 that's marked as stable on amd64 because bug #184652 (<x11-libs/qwtplot3d-0.2.7 for qtiplot-0.7.7) so I unmasked qtiplot-0.9.2. I don't need python bindings in qtiplot and if I let python use flag enabled in qtiplot it grab python-2.5 as dependency, so that would mean more ~arch and I rather just disabled python use flag just for qtiplot.
If I understand, that should be exactly option 2), that's just python 2-4 (with python-updater executed) and qtiplot without python. And I get error described above.
So what I did when trying to get qtiplot working was enabling python use flag and unmasking all dependencies, including python 2-5 and I did not(!) run python-updater, I just emerged qtiplot (that grabed python-2.5 as dep) that installed without problems. 
After I had python-2.5 on system I could emerge qtiplot with or without python use flag enabled.

So if I try to summarize, it seem python-2.5 has to be installed on system for qtiplot to compile, even tho it ain't marked as dependency if python use flag is disabled. And it dosen't seem it have any connection with bug #201484.

Now if someone need qtiplot and dosen't want python from ~arch he will run in same situation as me. If I got everything right, solution to these would be to have >=dev-lang/python-2.5 as qtiplot-0.9.2 dependency even if python use flag is disabled, but I don't see much point in having such use flag then, so would make some sense to just remove it and it would work too?

p.s. and I apologise if my sentences don't make much sense, english ain't my primary language. 
Comment 5 Sébastien Fabbro (RETIRED) gentoo-dev 2008-02-12 13:54:25 UTC
I suspect your version of PyQt4 was compiled with python-2.5, so I suggest to check your python-modules.
Meanwhile I committed qtiplot-0.9.2-r1 which has a few fixes and should not check sip if the python use flag is disabled.
Let me know if you succeed in building this new versions with your setup.
Thanks.
 
Comment 6 Tilen 2008-02-12 15:49:48 UTC
0.9.2-r1 works for me and can't reproduce bug, thanks.
However I don't know if this is related to changes in r1, but this version dose not appear in my kmenu, neither can find it with menu updating tool.