Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 274017 - PyQt-3.18 fails to build with python < 2.6
Summary: PyQt-3.18 fails to build with python < 2.6
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: x86 Linux
: High enhancement
Assignee: Qt Bug Alias
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-06-13 13:53 UTC by Clemens Rabe
Modified: 2009-06-13 16:23 UTC (History)
0 users

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


Attachments
New ebuild for PyQt-3.18.1 snapshot 20090610 (PyQt-3.18.1_pre20090610.ebuild,1.47 KB, text/plain)
2009-06-13 13:55 UTC, Clemens Rabe
Details
fix compatibility with python 2.5 (python_2.5_build_fix.patch,623 bytes, patch)
2009-06-13 15:10 UTC, Markos Chandras (RETIRED)
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Clemens Rabe 2009-06-13 13:53:49 UTC
After upgrading to sip-4.8, PyQt3 (3.17.6 and 3.18) failed to build. PyQt-3.18 should be compatible with sip-4.8, but isn't. The compile step fails complaining about an "ob_type" member missing in the "sipWrapper" structure.

Apparently, the authors have already detected the problem and the new snapshot does not have this issue any more. I was able to build PyQt-x11-gpl-3.18.1-snapshot-20090610 and my qt3 python scripts work again!

The attached ebuild is a copy of PyQt-3.18, with the "MY_P" variable substitution slightly changed.

Reproducible: Didn't try

Steps to Reproduce:
1. Update to sip-4.8
2. Try to emerge PyQt-3.18


Actual Results:  
Build failed.

Expected Results:  
Build should succeed. :-)

Portage 2.1.6.13 (default/linux/x86/2008.0/desktop, gcc-4.3.2, glibc-2.8_p20080602-r1, 2.6.29-gentoo-r5 i686)
=================================================================
System uname: Linux-2.6.29-gentoo-r5-i686-Intel-R-_Core-TM-2_Quad_CPU_Q6600_@_2.40GHz-with-glibc2.0
Timestamp of tree: Sat, 13 Jun 2009 11:45:01 +0000
ccache version 2.4 [enabled]
app-shells/bash:     3.2_p39
dev-java/java-config: 2.1.7
dev-lang/python:     2.5.4-r2
dev-util/ccache:     2.4-r8
dev-util/cmake:      2.6.4
sys-apps/baselayout: 1.12.11.1
sys-apps/sandbox:    1.6-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.1
sys-devel/libtool:   1.5.26
virtual/os-headers:  2.6.27-r2
ACCEPT_KEYWORDS="x86"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-O2 -march=native -pipe -fomit-frame-pointer"
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/kde/4.2/env /usr/kde/4.2/share/config /usr/kde/4.2/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/sandbox.d /etc/splash /etc/terminfo /etc/texmf/language.dat.d /etc/texmf/language.def.d /etc/texmf/updmap.d /etc/texmf/web2c /etc/udev/rules.d"
CXXFLAGS="-O2 -march=native -pipe -fomit-frame-pointer"
DISTDIR="/usr/portage/distfiles"
FEATURES="ccache distlocks fixpackages parallel-fetch protect-owned sandbox sfperms strict unmerge-orphans userfetch userpriv usersandbox"
GENTOO_MIRRORS="http://ftp-stud.fht-esslingen.de/pub/Mirrors/gentoo/ http://mirrors.sec.informatik.tu-darmstadt.de/gentoo/ http://ftp.belnet.be/mirror/rsync.gentoo.org/gentoo/"
LANG="de_DE.utf8"
LC_ALL="de_DE.utf8"
LDFLAGS="-Wl,-O1"
LINGUAS="en de"
MAKEOPTS="-j5"
PKGDIR="/mnt/500gb/gentoo/binary_packages/x86_gcc4.3.2_Core2"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_EXTRA_OPTS="--timeout=10"
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.europe.gentoo.org/gentoo-portage"
USE="X a52 aac acl acpi alsa apache2 arts berkdb bluetooth branding bzip2 cairo cdr cli cracklib crypt cups dbus divx4linux dri dvd dvdr dvdread eds emboss encode esd evo fam ffmpeg firefox fortran gdbm gif glibc-omitfp gpm gstreamer gtk hal iconv ieee1394 imlib ipv6 isdnlog jpeg jpeg2k kde kdeprefix libnotify mad midi mikmod mmx mmx2 mng mozilla mp3 mpeg mudflap mysql ncurses nls nptl nptlonly nsplugin nvidia ogg opengl openmp oss pam pcre pdf perl png povray ppds pppd pthreads python qt3 qt3support qt4 quicktime readline reflection samba sdl session spell spl sse sse2 ssl startup-notification svg sysfs tcpd tetex theora tiff truetype type1 unicode usb v4l v4l2 vorbis webkit win32codecs x86 xcb xinerama xml xml2 xorg xulrunner xv xvid zlib" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1 emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" 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" ELIBC="glibc" INPUT_DEVICES="keyboard mouse evdev synaptics" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="en de" USERLAND="GNU" VIDEO_CARDS="nvidia vesa"
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, FFLAGS, INSTALL_MASK, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS
Comment 1 Clemens Rabe 2009-06-13 13:55:00 UTC
Created attachment 194550 [details]
New ebuild for PyQt-3.18.1 snapshot 20090610
Comment 2 Markos Chandras (RETIRED) gentoo-dev 2009-06-13 14:35:42 UTC
PyQt-3.18 works for me

According to snapshot changelog


2009/06/09 15:39:16  phil
Fixed a build problem that affected Python v2.5 and earlier.

the PyQt-3.18 fails with < python-2.6

Which python are you using?

Comment 3 Clemens Rabe 2009-06-13 14:41:21 UTC
I'm using python 2.5.4-r2 ( emerge --info ) :-)

Clemens
Comment 4 Clemens Rabe 2009-06-13 14:43:44 UTC
I've changed the subject to include python-2.5. Thanks Markos!

Clemens
Comment 5 Markos Chandras (RETIRED) gentoo-dev 2009-06-13 15:05:08 UTC
You shouldnt use a mixed system. By that I mean that having both stable and unstable packages is not always safe.

Anyway , I ll try to come up with a patch soon
Comment 6 Markos Chandras (RETIRED) gentoo-dev 2009-06-13 15:10:33 UTC
Created attachment 194564 [details, diff]
fix compatibility with python 2.5

Can you please test this patch with PyQt-3.18 package?

Thank you
Comment 7 Clemens Rabe 2009-06-13 15:31:31 UTC
Markos,

thanks! The patch works fine for me (python-2.5). Seems the missing cast was indeed the only problem.

Usually I install only unstable packages when needed, that's why I haven't used python-2.6. The sip-update was as far as I remember due to updates in the kde-4.2 packages...

Clemens
Comment 8 Markos Chandras (RETIRED) gentoo-dev 2009-06-13 16:23:10 UTC
Fixed on PyQt-3.18-r1

Thanks for reporting it