Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 342315 - sci-geosciences/qgis-1.5.0 fails to build: "Mapped type has already been defined in another module"
Summary: sci-geosciences/qgis-1.5.0 fails to build: "Mapped type has already been defi...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: AMD64 Linux
: High normal (vote)
Assignee: Sci-geo Project
URL:
Whiteboard:
Keywords: InVCS
Depends on:
Blocks:
 
Reported: 2010-10-23 14:05 UTC by Attila Oláh
Modified: 2010-12-21 14:36 UTC (History)
1 user (show)

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


Attachments
build log (build.log,50.95 KB, text/plain)
2010-10-23 14:06 UTC, Attila Oláh
Details
fix for the new PyQt4 (qgis-1.5.0-fix-pyqt4.patch,2.69 KB, patch)
2010-11-17 16:34 UTC, Attila Oláh
Details | Diff
new ebuild that applies the patch (qgis-1.5.0-r1.ebuild,2.44 KB, text/plain)
2010-11-17 16:35 UTC, Attila Oláh
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Attila Oláh 2010-10-23 14:05:11 UTC
I'm unable to build sci-geosciences/qgis-1.5.0. I've just updated my default Python to 2.7, rebuilt all my dev-python/* libs, plus pykde4 and PyQt4.

sip: /var/tmp/portage/sci-geosciences/qgis-1.5.0/work/qgis-1.5.0/python/core/conversions.sip:269: Mapped type has already been defined in another module

Reproducible: Always

Steps to Reproduce:




aatiis@aiur ~ $ emerge --info qgis
Portage 2.1.9.21 (default/linux/amd64/10.0, gcc-4.4.4, glibc-2.12.1-r1, 2.6.35-gentoo-r1-aiur-r2 x86_64)
=================================================================
                        System Settings
=================================================================
System uname: Linux-2.6.35-gentoo-r1-aiur-r2-x86_64-AMD_Turion-tm-X2_Dual_Core_Mobile_RM-70-with-gentoo-2.0.1
Timestamp of tree: Fri, 22 Oct 2010 12:30:01 +0000
app-shells/bash:     4.1_p7
dev-java/java-config: 2.1.11
dev-lang/python:     2.4.6, 2.5.4-r4, 2.6.6-r1, 2.7.1_pre20101010::python, 3.1.3_pre20101010::python, 3.2_pre20101010::python
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.65-r1
sys-devel/automake:  1.8.5-r3, 1.9.6-r3, 1.10.3, 1.11.1
sys-devel/binutils:  2.20.1-r1
sys-devel/gcc:       4.3.5, 4.4.4-r2
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="amd64"
ACCEPT_LICENSE="*"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=athlon64 -pipe -O2"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/X11/xkb /usr/share/config /var/lib/hsqldb"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/env.d/java/ /etc/eselect/postgresql /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo /etc/texmf/language.dat.d /etc/texmf/language.def.d /etc/texmf/updmap.d /etc/texmf/web2c"
CXXFLAGS="-march=athlon64 -pipe -O2"
DISTDIR="/usr/portage/distfiles"
FEATURES="assume-digests binpkg-logs 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"
LANG="C"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
MAKEOPTS="-j3"  
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"
PORTDIR_OVERLAY="/var/lib/layman/kde /var/lib/layman/python /var/lib/layman/sunrise /var/lib/layman/ruby /var/lib/layman/nodejs /var/lib/layman/mozilla /var/lib/layman/cj-overlay /usr/local/portage /mnt/data/work/geoverlay"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="64bit X aac aalib acl acpi addbookmarks additions alsa amd64 animation-rtl ao autoreplace bash-completion berkdb bluetooth bonjour bzip2 cairo calendar capi caps cdda cddb cdr chm ciao cluceneconsolekit consolekit contactnotes cracklib crypt cups curl curses cxx daap dbus dga dhcp digitalradio dimidity djvu dri dv dvb dvd dvdr ebook emovix encode exif extensions extrafilters extras faac faad fame ffmpeg fits flac fontconfig fortran ftp fts3 gadu gdbm gecko geos gif gml gnome gnutls gpg gpm gps graphviz grass groupwise gsl gsm gtk hal hdf highlight history iconv icq icu id3tag idn imagemagick ioctl ipv6 irc jabber java jbig jingle jpeg jpeg2k kde krb4 krb5 lame laptop lastfm latex lcms ldap libnotify libwww lightning lua lzo mad md5sum meanwhile midi mikmod mjpeg mmx mng modules mono mp3 mp3tunes mpeg mpi mpi-threads mplayer msn mtp mudflap multicall multilib musicbrainz mysql nas ncurses netcdf network nls nowlistening nptl nptlonly nsplugin nspluginwrapper nss nuv ogdi ogg openal opengl openmp oscar otr pam pccts pdf perl pg-intdatetime pic pipes png postgres pppd prediction privacy python qq qt3support qt4 quicktime radio raptor rar raster readline redeyes redland replytolist romio rss ruby samba sasl scanner schroedinger sdl secure-delete silc sip skype slang smp sms sndfile socks5 sox spell sql sqlite sse sse2 ssl startup-notification statistics subversion svg symlink synaptics sysfs taglib tao tcl tcpd templates testbed texteffect tga theora threads threadsafe thumbnail tiff tk translator truetype unicode urlpicpreview usb utils v4l v4l2 vcd video vim-syntax virtuoso vorbis wav wavpack webinterface webkit webpresence wifi winpopup wmf x264 xanim xcb xinerama xml xorg xpm xvid yahoo yv12 zephyr zeroconf zlib" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci 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="alias asis rewrite auth_basic auth_digest authn_anon authn_file authz_host authz_owner authz_user log_config autoindex cache deflate dir disk_cache file_cache filter headers mem_cache mime mime_magic unique_id userdir vhost_alias version" APACHE2_MPMS="worker" 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" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" PHP_TARGETS="php5-2" RUBY_TARGETS="ruby18" USERLAND="GNU" VIDEO_CARDS="radeon" 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, LC_ALL, LINGUAS, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 1 Attila Oláh 2010-10-23 14:06:17 UTC
Created attachment 251695 [details]
build log
Comment 2 Adrian Frith 2010-11-04 16:03:42 UTC
This seems to be the same as QGIS bug 2985 [https://trac.osgeo.org/qgis/ticket/2985]. There's a patch for it there.
Comment 3 Attila Oláh 2010-11-12 01:38:18 UTC
(In reply to comment #2)
> This seems to be the same as QGIS bug 2985
> [https://trac.osgeo.org/qgis/ticket/2985]. There's a patch for it there.

Hmm, that patch seems fairly trivial. However they have a more elegant solution in their source repository. Let my try what I can do... I'll upload a new ebuild/patch if that is fixed.
Comment 4 Attila Oláh 2010-11-17 16:33:38 UTC
(In reply to comment #2)
> This seems to be the same as QGIS bug 2985
> [https://trac.osgeo.org/qgis/ticket/2985]. There's a patch for it there.
> 

That patch is not correct. That bug was fixed in the following changesets:
 * https://trac.osgeo.org/qgis/changeset/14323
 * https://trac.osgeo.org/qgis/changeset/14324
 * https://trac.osgeo.org/qgis/changeset/14325

I've created a patch from the diff of those three changesets, and a new ebuild that applies this patch. It works for me, so I'll attach them here. What do I need to do to request this to be added to the repo?
Comment 5 Attila Oláh 2010-11-17 16:34:52 UTC
Created attachment 254671 [details, diff]
fix for the new PyQt4
Comment 6 Attila Oláh 2010-11-17 16:35:43 UTC
Created attachment 254673 [details]
new ebuild that applies the patch
Comment 7 Tomáš Chvátal (RETIRED) gentoo-dev 2010-12-21 14:36:43 UTC
Fixed in main tree, thanks for patch.