Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 623780

Summary: sci-geosciences/qgis-2.18.12-r100[python]: 'pysqlite_Connection {aka struct <anonymous>}' has no member named 'ob_type'
Product: Gentoo Linux Reporter: Thomas Beutin <tb>
Component: Current packagesAssignee: Sci-geo Project <sci-geosciences>
Status: RESOLVED FIXED    
Severity: normal CC: ag+services, Martin.vGagern, thomas.bettler
Priority: Normal Keywords: PMASKED
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Bug Depends on: 635798    
Bug Blocks:    
Attachments: build.log (gzipped)
layman xml
fixed qgis 2.18.10 qt4 ebuild
build.log (gzipped) of sci-geosciences/qgis-2.18.12-r100

Description Thomas Beutin 2017-07-04 08:25:50 UTC
[100%] Building C object python/ext-libs/pyspatialite/CMakeFiles/pyspatialite.dir/src/connection.c.o
cd /var/tmp/portage/sci-geosciences/qgis-2.18.10/work/qgis-2.18.10_build/python/ext-libs/pyspatialite && /usr/bin/x86_64-pc-linux-gnu-gcc  -DQGIS_DISABLE_DEPRECATED -DQT_CONCURRENT_LIB -DQT_CORE_LIB -DQT_DISABLE_DEPRECATED_BEFORE=0 -DQT_GUI_LIB -DQT_NETWORK_LIB -DQT_NO_CAST_TO_ASCII -DQT_NO_DEBUG -DQT_POSITIONING_LIB -DQT_PRINTSUPPORT_LIB -DQT_SQL_LIB -DQT_SVG_LIB -DQT_WEBKITWIDGETS_LIB -DQT_WEBKIT_LIB -DQT_WIDGETS_LIB -DQT_XML_LIB -DWITH_QTWEBKIT -Dpyspatialite_EXPORTS -I/var/tmp/portage/sci-geosciences/qgis-2.18.10/work/qgis-2.18.10_build -I/usr/include/python3.4m -isystem /usr/include/qt5 -isystem /usr/include/qt5/QtXml -isystem /usr/include/qt5/QtCore -isystem /usr/lib64/qt5/mkspecs/linux-g++ -isystem /usr/include/qt5/QtConcurrent -isystem /usr/include/qt5/QtGui -isystem /usr/include/qt5/QtWidgets -isystem /usr/include/qt5/QtPrintSupport -isystem /usr/include/qt5/QtSvg -isystem /usr/include/qt5/QtNetwork -isystem /usr/include/qt5/QtWebKit -isystem /usr/include/qt5/QtWebKitWidgets -isystem /usr/include/qt5/QtSql -isystem /usr/include/qt5/QtPositioning   -DNDEBUG -march=corei7-avx -fomit-frame-pointer -O2 -pipe -fPIC   -DCORE_EXPORT= -DGUI_EXPORT= -DPYTHON_EXPORT= -DANALYSIS_EXPORT= -DAPP_EXPORT= -DCUSTOMWIDGETS_EXPORT= -DSERVER_EXPORT= -DMODULE_NAME=\"spatialite.dbapi2\" -fPIC -w -o CMakeFiles/pyspatialite.dir/src/connection.c.o -c /var/tmp/portage/sci-geosciences/qgis-2.18.10/work/qgis-2.18.10/python/ext-libs/pyspatialite/src/connection.c
/var/tmp/portage/sci-geosciences/qgis-2.18.10/work/qgis-2.18.10/python/ext-libs/pyspatialite/src/connection.c: In function 'pysqlite_connection_dealloc':
/var/tmp/portage/sci-geosciences/qgis-2.18.10/work/qgis-2.18.10/python/ext-libs/pyspatialite/src/connection.c:304:9: error: 'pysqlite_Connection {aka struct <anonymous>}' has no member named 'ob_type'
     self->ob_type->tp_free((PyObject*)self);
         ^
/var/tmp/portage/sci-geosciences/qgis-2.18.10/work/qgis-2.18.10/python/ext-libs/pyspatialite/src/connection.c: In function 'pysqlite_connection_create_collation':
/var/tmp/portage/sci-geosciences/qgis-2.18.10/work/qgis-2.18.10/python/ext-libs/pyspatialite/src/connection.c:1464:74: error: 'PyString_Type' undeclared (first use in this function)
 f (!PyArg_ParseTuple(args, "O!O:create_collation(name, callback)", &PyString_Ty
                                                                     ^
/var/tmp/portage/sci-geosciences/qgis-2.18.10/work/qgis-2.18.10/python/ext-libs/pyspatialite/src/connection.c:1464:74: note: each undeclared identifier is reported only once for each function it appears in
/var/tmp/portage/sci-geosciences/qgis-2.18.10/work/qgis-2.18.10/python/ext-libs/pyspatialite/src/connection.c: At top level:
/var/tmp/portage/sci-geosciences/qgis-2.18.10/work/qgis-2.18.10/python/ext-libs/pyspatialite/src/connection.c:1614:67: error: 'RO' undeclared here (not in a function)
     {"Warning", T_OBJECT, offsetof(pysqlite_Connection, Warning), RO},
                                                                   ^
make[2]: *** [python/ext-libs/pyspatialite/CMakeFiles/pyspatialite.dir/build.make:87: python/ext-libs/pyspatialite/CMakeFiles/pyspatialite.dir/src/connection.c.o] Error 1
make[2]: Leaving directory '/var/tmp/portage/sci-geosciences/qgis-2.18.10/work/qgis-2.18.10_build'
make[1]: *** [CMakeFiles/Makefile2:8945: python/ext-libs/pyspatialite/CMakeFiles/pyspatialite.dir/all] Error 2
make[1]: Leaving directory '/var/tmp/portage/sci-geosciences/qgis-2.18.10/work/qgis-2.18.10_build'
make: *** [Makefile:150: all] Error 2


# nice -n 19 emerge --info sci-geosciences/qgis    
Portage 2.3.6 (python 2.7.12-final-0, default/linux/amd64/13.0/desktop, gcc-5.4.0, glibc-2.23-r4, 4.9.16-gentoo x86_64)
=================================================================
                         System Settings
=================================================================
System uname: Linux-4.9.16-gentoo-x86_64-Intel-R-_Core-TM-_i5-2520M_CPU_@_2.50GHz-with-gentoo-2.3
KiB Mem:    16357952 total,   1516476 free
KiB Swap:   33554428 total,  33122152 free
Timestamp of repository gentoo: Tue, 04 Jul 2017 01:30:01 +0000
sh bash 4.3_p48-r1
ld GNU ld (Gentoo 2.26.1 p1.0) 2.26.1
app-shells/bash:          4.3_p48-r1::gentoo
dev-java/java-config:     2.2.0-r3::gentoo
dev-lang/perl:            5.24.1-r2::gentoo
dev-lang/python:          2.7.12::gentoo, 3.4.5::gentoo
dev-util/cmake:           3.7.2::gentoo
dev-util/pkgconfig:       0.28-r3::gentoo
sys-apps/baselayout:      2.3::gentoo
sys-apps/openrc:          0.26.3::gentoo
sys-apps/sandbox:         2.10-r3::gentoo
sys-devel/autoconf:       2.13::gentoo, 2.69::gentoo
sys-devel/automake:       1.11.6-r1::gentoo, 1.12.6::gentoo, 1.13.4::gentoo, 1.14.1::gentoo, 1.15-r2::gentoo
sys-devel/binutils:       2.26.1::gentoo, 2.28-r2::gentoo
sys-devel/gcc:            5.4.0-r3::gentoo
sys-devel/gcc-config:     1.7.3::gentoo
sys-devel/libtool:        2.4.6-r3::gentoo
sys-devel/make:           4.2.1::gentoo
sys-kernel/linux-headers: 4.10::gentoo (virtual/os-headers)
sys-libs/glibc:           2.23-r4::gentoo
Repositories:

gentoo
    location: /usr/portage
    sync-type: rsync
    sync-uri: rsync://rsync.gentoo.org/gentoo-portage
    priority: -1000

x-portage
    location: /usr/local/portage
    masters: gentoo
    priority: 0

barzog-overlay
    location: /mnt/gentoo/layman/barzog-overlay
    masters: gentoo
    priority: 50

desktop-effects
    location: /mnt/gentoo/layman/desktop-effects
    masters: gentoo
    priority: 50

gentoo-mate
    location: /mnt/gentoo/layman/gentoo-mate
    masters: gentoo
    priority: 50

java
    location: /mnt/gentoo/layman/java
    masters: gentoo
    priority: 50

prism-overlay
    location: /mnt/gentoo/layman/prism-overlay
    masters: gentoo
    priority: 50

python
    location: /mnt/gentoo/layman/python
    masters: gentoo
    priority: 50

rion
    location: /mnt/gentoo/layman/rion
    masters: gentoo
    priority: 50

science
    location: /mnt/gentoo/layman/science
    masters: gentoo
    priority: 50

seden
    location: /mnt/gentoo/layman/seden
    masters: gentoo
    priority: 50

sunrise
    location: /mnt/gentoo/layman/sunrise
    masters: gentoo
    priority: 50

ACCEPT_KEYWORDS="amd64"
ACCEPT_LICENSE="*"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=corei7-avx -fomit-frame-pointer -O2 -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/lib64/fax /usr/share/gnupg/qualified.txt /var/spool/fax/etc /var/spool/munin-async/.ssh"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/dconf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/php/apache2-php5.6/ext-active/ /etc/php/apache2-php7.0/ext-active/ /etc/php/cgi-php5.6/ext-active/ /etc/php/cgi-php7.0/ext-active/ /etc/php/cli-php5.6/ext-active/ /etc/php/cli-php7.0/ext-active/ /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=corei7-avx -fomit-frame-pointer -O2 -pipe"
DISTDIR="/mnt/gentoo/distfiles/"
FCFLAGS="-O2 -pipe"
FEATURES="assume-digests binpkg-logs config-protect-if-modified distlocks ebuild-locks fixlafiles merge-sync news parallel-fetch preserve-libs protect-owned sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync xattr"
FFLAGS="-O2 -pipe"
GENTOO_MIRRORS="http://distfiles.gentoo.org"
INSTALL_MASK="/usr/lib/systemd/"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
MAKEOPTS="-j1"
PKGDIR="/usr/portage/packages"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --omit-dir-times --compress --force --whole-file --delete --stats --human-readable --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages --exclude=/.git"
PORTAGE_TMPDIR="/var/tmp"
USE="R X X509 a52 aac aalib accounting acl acpi adns aim aio alsa amd64 amr ansi ao aot apache2 apng applet archive ass audio audiofile automount avahi avx awt bacula-console bash-completion bazaar bcmath berkdb bidi bind-mysql bittorrent blas bluetooth bluray bonobo boost bzip2 cacert cairo caja calendar caps ccache cdb cdda cddb cdio cdparanoia cdr cgi chipcard chroot colord command-args consolekit corefonts cpudetection cpulimit cracklib cramfs crypt cscope css csv ctype cups curl curlwrappers customlog cvs cvsgraph cxx cyrus dba dbi dbm dbus dbx devhelp device-mapper devmap dga dhcp dirac directfb djvu dlna dlopen dnsdb dri dri3 drm dts dv dvb dvd dvdr dvi ecc egl enchant encode excel exif expat faad fam fastcgi fat fdk ffmpeg fftw fits flac flash flatfile fltk fontconfig fonts fpx ftp fuse fusefs gallium gd gdal gdbm gdu geoip geos gif gimp ginac git glib glpk glut gmp gnome-keyring gnuplot gpg gphoto2 graphviz gs gsf gsl gssapi gstreamer gtk gtk2 gtk3 gudev gzip h323 hardened hardenedphp hddtemp hdf5 hdri highlight hpn html http hunspell hwdb iconv icq icu idea idled idn imap imlib imlib2 inifile innodb int64 introspection ios ipalias ipc ipod ipv6 iso jabber jack java javascript jbig jingle jit jpeg jpeg2k json kdrive kerberos keymap kmod kpathsea lame lapack latex lcms ldap less libass libnotify libsamplerate libv4l libv4l2 libwww live llvm lm_sensors lmtp logrotate logwatch lua lz4 lzma lzo mad magic matroska mbox mcal md5sum memlimit mercurial metis mgetty mhash midi milter mime mimencode ming mmap mms mmx mmxext mng mp3 mp4 mpeg mplayer msn mtp multilib mumps musepack musicbrainz mysql mysqli nagios-dns nagios-game nagios-ntp nagios-ping nagios-ssh ncurses net netboot netcdf netlink network network-uri networkmanager nfs nis nls nntp nptl nsplugin nss ntfs ntp oav ocaml ocamlopt ocatve octave odbc offensive ogg openal opencl openexr opengl openmp openrc openssh openssl orc osc oscar pam pam_chroot pam_console pam_timestamp pango parse-clocks pcf pci pcntl pcre pda pdf pdfkit pdflib perl pgo php pic plotutils png policykit portaudio posix postfix postgis postgres postproc postscript ppds procmail ps pulseaudio pwdb python qdbm qt5 quotas quvi radius raw rdesktop rdp readline recode reiserfs rpc rrdtool rss rtmp samba sample sasl scanner schroedinger scotch screen sendfile sensord session sftp sftplogging shaper shared sharedext shorten sieve simplexml slang slp smartcard smime smp sms smtp sna sndfile snmp snortsam soap sockets socks5 sound sox spamassassin sparse spatialite speex spell spice spl sql sqlite sqlite3 sse sse2 sse3 sse4 sse4_1 ssh ssl ssse3 stream subversion svg sysfs syslog sysvipc szip t1lib taglib tcpd telepathy test-programs theora threads tidy tiff timidity tokenizer tools transparent-proxy truetype truetype-fonts tslib type1-fonts udev udisks unicode upnp upnp-av upower usb userlocales utf8 uuid v4l vaapi vala vcd vdpau vhosts video vim-syntax virtual-users virus-scan vnc vorbis vpx vte wayland wddx weather webdav webkit webm webp wifi win32codecs withsamplescripts wmf x264 x265 xattr xcb xcomposite xetex xface xfs xft xinerama xinetd xml xml2 xmlrpc xmp xmpp xorg xosd xpdf-headers xpm xps xrandr xscreensaver xsl xslt xv xvfb xvid xvmc xz yahoo yaml yaz zlib zvbi" ABI_X86="32 64" APACHE2_MODULES="access auth auth_basic auth_digest authn_default authn_core authn_file authn_dbm authn_dbd authn_alias authn_anon authz_core authz_groupfile authz_host authz_user authz_dbd authz_dbm authz_owner authz_default dbd ident imagemap alias echo charset_lite cache file_cache disk_cache mem_cache ext_filter case_filter case-filter-in deflate filter mime_magic cern_meta proxy proxy_connect proxy_ftp http2 proxy_html proxy_http proxy_ajp proxy_balancer proxy_fcgi proxy_wstunnel expires headers usertrack info include cgi cgid dav dav_lock dav_fs vhost_alias speling rewrite log_config logio env setenvif mime status substitute autoindex asis negotiation dir imap actions userdir so unique_id version dumpio log_forensic reqtimeout socache_shmcb unixd slotmem_shm ratelimit remoteip lbmethod_bybusyness lbmethod_byrequests lbmethod_bytraffic lbmethod_heartbeat" APACHE2_MPMS="worker" CPU_FLAGS_X86="aes avx mmx mmxext popcnt sse sse2 sse3 sse4 sse4_1 sse4_2 ssse3" CURL_SSL="nss" ELIBC="glibc" FFTOOLS="cws2fws qt-faststart aviocat ismindex" GPSD_PROTOCOLS="aivdm sirf mtk3301 gpsclock superstar2 timing nmea" GRUB_PLATFORMS="pc multiboot efi coreboot efi-64" INPUT_DEVICES="keyboard mouse evdev wacom synaptics" KERNEL="linux" L10N="en_GB en en_US de_DE de" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer nlpsolver pdfimport wiki-publisher" LINGUAS="en_GB en en_US de_DE de" LLVM_TARGETS="X86 NVPTX" PHP_TARGETS="php5-6 php7-0" PYTHON_SINGLE_TARGET="python3_4" PYTHON_TARGETS="python2_7 python3_4" QEMU_SOFTMMU_TARGETS="i386 x86_64" QEMU_USER_TARGETS="i386 x86_64" RUBY_TARGETS="ruby21 ruby22" SANE_BACKENDS="net hp" USERLAND="GNU" VIDEO_CARDS="vga intel i915 i965 fbdev vesa" XFCE_PLUGINS="clock multiload-nandhp power trash"
USE_PYTHON="2.7 3.4"
Unset:  CC, CPPFLAGS, CTARGET, CXX, EMERGE_DEFAULT_OPTS, LANG, LC_ALL, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 1 Thomas Beutin 2017-07-04 08:28:38 UTC
Created attachment 480620 [details]
build.log (gzipped)
Comment 2 Thomas Beutin 2017-07-05 06:24:07 UTC
i can compile this by disabling the "python" USE flag (and also "mapserver" because this depends on "python"), but that's not what i want
Comment 3 Karol Grudziński 2017-07-05 14:02:13 UTC
If you want newer QGIS, just emerge from a17rgentoo overlay. That version still uses PyQt4 and Python2.7.

# eix qgis
[U] sci-geosciences/qgis                                                        
     Available versions:  2.18.3-r1^t (~)2.18.10^t (~)2.18.10^t[1] (~)2.18.10-r100^t[1] **9999^t[1] **9999[2] {designer examples georeferencer gps grass gsl mapserver oracle postgres python sqlite touch webkit PYTHON_SINGLE_TARGET="python3_4 python3_5" PYTHON_TARGETS="python2_7 python3_4 python3_5"}
     Installed versions:  2.18.10^t[1](15:54:32 05.07.2017)(examples georeferencer mapserver postgres python -grass -oracle -webkit PYTHON_TARGETS="python2_7")
     Homepage:            http://www.qgis.org/
     Description:         User friendly Geographic Information System

[1] "a17rgentoo" /var/lib/layman/a17rgentoo
[2] "science" /var/lib/layman/science
Comment 4 Andreas Sturmlechner gentoo-dev 2017-07-08 08:06:41 UTC
It seems we may not actually need to build pyspatialite at all which is like a bundled fork of pysqlite - Fedora doesn't as well it seems.
Comment 5 Andreas Plesch 2017-07-13 21:53:51 UTC
(In reply to Karol Grudziński from comment #3)
> If you want newer QGIS, just emerge from a17rgentoo overlay. That version
> still uses PyQt4 and Python2.7.

Thanks. Unfortunately, the overlay is not registered with the layman remote list. So one has to make a local list xml in /etc/layman/overlays/a17forqgis.xml, attached.

$ emerge  =sci-geosciences/qgis-2.18.10::a17rgentoo halted with:

make[2]: *** No rule to make target '/usr/lib64/libqscintilla2.so', needed by 'output/lib64/libqgis_gui.so.2.18.10'.  Stop.

Will investigate since it looks solvable. 

Hm, not sure why it wants to make /usr/lib64/libqscintilla2.so, it is already installed.

> 
> # eix qgis
> [U] sci-geosciences/qgis                                                    
> 
>      Available versions:  2.18.3-r1^t (~)2.18.10^t (~)2.18.10^t[1]
> (~)2.18.10-r100^t[1] **9999^t[1] **9999[2] {designer examples georeferencer
> gps grass gsl mapserver oracle postgres python sqlite touch webkit
> PYTHON_SINGLE_TARGET="python3_4 python3_5" PYTHON_TARGETS="python2_7
> python3_4 python3_5"}
>      Installed versions:  2.18.10^t[1](15:54:32 05.07.2017)(examples
> georeferencer mapserver postgres python -grass -oracle -webkit
> PYTHON_TARGETS="python2_7")
>      Homepage:            http://www.qgis.org/
>      Description:         User friendly Geographic Information System
> 
> [1] "a17rgentoo" /var/lib/layman/a17rgentoo
> [2] "science" /var/lib/layman/science
Comment 6 Andreas Plesch 2017-07-13 21:54:53 UTC
Created attachment 484156 [details]
layman xml

a17rgentoo overlay layman xml
Comment 7 Andreas Plesch 2017-07-14 14:34:29 UTC
Created attachment 484344 [details]
fixed qgis 2.18.10 qt4 ebuild
Comment 8 Andreas Plesch 2017-07-14 14:35:53 UTC
(In reply to Andreas Plesch from comment #5)
> (In reply to Karol Grudziński from comment #3)
> > If you want newer QGIS, just emerge from a17rgentoo overlay. That version
> > still uses PyQt4 and Python2.7.
> 
> Thanks. Unfortunately, the overlay is not registered with the layman remote
> list. So one has to make a local list xml in
> /etc/layman/overlays/a17forqgis.xml, attached.
> 
> $ emerge  =sci-geosciences/qgis-2.18.10::a17rgentoo halted with:
> 
> make[2]: *** No rule to make target '/usr/lib64/libqscintilla2.so', needed
> by 'output/lib64/libqgis_gui.so.2.18.10'.  Stop.
> 
> Will investigate since it looks solvable. 
> 
> Hm, not sure why it wants to make /usr/lib64/libqscintilla2.so, it is
> already installed.
> 

But with qt4 it is installed in /usr/lib64/qt4/, so cmake does not find it.

I could correct the relevant line in the overlay ebuild (PR submitted to a17rgentoo, and fixed ebuild attached below) and qgis 2.18.10 then can emerge without a problem.

Launching qgis then appears to work fine, with python support ! I now have a working 2.18.10 qgis.
Comment 9 Thomas Beutin 2017-07-20 12:41:29 UTC
(In reply to Karol Grudziński from comment #3)
> If you want newer QGIS, just emerge from a17rgentoo overlay. That version
> still uses PyQt4 and Python2.7.

unfortunately, qt4 is not an option for me any longer.
Comment 10 Andreas Plesch 2017-07-24 13:27:07 UTC
(In reply to Thomas Beutin from comment #9)
> (In reply to Karol Grudziński from comment #3)
> > If you want newer QGIS, just emerge from a17rgentoo overlay. That version
> > still uses PyQt4 and Python2.7.
> 
> unfortunately, qt4 is not an option for me any longer.

I would like to switch to qt5 if python would work, as well. However, I am not sure that 2.18 is actually confirmed to work with qt5 and python since the official, upstream ubuntu builds still use qt4, for 2.18. Only 2.99, and then 3.0, use qt5, at least upstream.
Comment 11 Karol Grudziński 2017-07-29 13:21:26 UTC
(In reply to Andreas Plesch from comment #5)
> $ emerge  =sci-geosciences/qgis-2.18.10::a17rgentoo halted with:
> 
> make[2]: *** No rule to make target '/usr/lib64/libqscintilla2.so', needed
> by 'output/lib64/libqgis_gui.so.2.18.10'.  Stop.
> 
> Will investigate since it looks solvable. 
> 
> Hm, not sure why it wants to make /usr/lib64/libqscintilla2.so, it is
> already installed.
> 

I forgot to mention this. There is error in one of QGIS's make files. I just made symlink /usr/lib64/qt4/libqscintilla2.so -> /usr/lib64/libqscintilla2.so which I removed after emerge and QGIS works fine :-).
Comment 12 Andreas Sturmlechner gentoo-dev 2017-08-26 19:30:50 UTC
2.18.12 is in tree, please test.
Comment 13 Andreas Sturmlechner gentoo-dev 2017-08-26 19:31:04 UTC
2.18.12 is in tree, please test.
Comment 14 Thomas Beutin 2017-09-15 15:14:01 UTC
(In reply to Andreas Sturmlechner from comment #13)
> 2.18.12 is in tree, please test.

The issue is still alive, i'll attach my gzipped build.log
Comment 15 Thomas Beutin 2017-09-15 15:15:39 UTC
Created attachment 494712 [details]
build.log (gzipped) of sci-geosciences/qgis-2.18.12-r100
Comment 16 Andreas Sturmlechner gentoo-dev 2017-09-16 11:48:40 UTC
I assume you didn't test with 2.18.12, but only -r100.
Comment 17 Thomas Beutin 2017-09-17 00:10:40 UTC
(In reply to Andreas Sturmlechner from comment #16)
> I assume you didn't test with 2.18.12, but only -r100.

yes, that's right. But since 2.18.12 uses qt4 instead of qt5 it's not an option for me.
Comment 18 Andreas Sturmlechner gentoo-dev 2017-09-17 09:31:10 UTC
But then let's use the correct version information.
Comment 19 Thomas Beutin 2017-09-17 17:08:00 UTC
(In reply to Andreas Sturmlechner from comment #18)
> But then let's use the correct version information.

Oops, i'm sorry, you're right.

In the meantime i checked your suggestion (sci-geosciences/qgis-2.18.12::gentoo[qt4,-qt5]), and i'm able to compile and run it:
"Help" -> "About" shows:
QGIS version
2.18.12
QGIS code branch
Release 2.18
Compiled against Qt
4.8.7
Running against Qt
4.8.7
Compiled against GDAL/OGR
2.0.3
Running against GDAL/OGR
2.0.3
Compiled against GEOS
3.6.1-CAPI-1.10.1
Running against GEOS
3.6.1-CAPI-1.10.1 r0
PostgreSQL Client Version
9.6.5
SpatiaLite Version
4.3.0
QWT Version
6.1.3
PROJ.4 Version
492
QScintilla2 Version
2.9.4

Let's see if this might work for a while. Thank You so far! :)
Comment 20 Ervin Peters 2017-09-26 06:23:26 UTC
Seems to be an Python3 changes issue:

----------8<--------------
Another change in the object header is that the PyObject_HEAD macro has changed so that ob_type is now in a nested structure. This means you no longer can pick the ob_type directly from the struct, so code like ob->ob_type stops working. You should replace this with Py_TYPE(ob). The Py_TYPE macro doesn’t appear until Python 2.6, so to support earlier versions we make another #ifndef:

#ifndef Py_TYPE
    #define Py_TYPE(ob) (((PyObject*)(ob))->ob_type)
#endif

---------8<---------------

from http://python3porting.com/cextensions.html

BTW: same in current upstream 2.18.13

ervin
Comment 21 Ervin Peters 2017-09-26 07:30:20 UTC
Opened a upstream issue:

https://issues.qgis.org/issues/17198

ervin
Comment 22 Larry the Git Cow gentoo-dev 2017-12-21 02:38:07 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=e1c869e494ee8bd1d937942b5571a25a08769bf9

commit e1c869e494ee8bd1d937942b5571a25a08769bf9
Author:     Andreas Sturmlechner <asturm@gentoo.org>
AuthorDate: 2017-12-21 02:24:43 +0000
Commit:     Andreas Sturmlechner <asturm@gentoo.org>
CommitDate: 2017-12-21 02:34:19 +0000

    sci-geosciences/qgis: Drop old
    
    Closes: https://bugs.gentoo.org/623780
    Package-Manager: Portage-2.3.19, Repoman-2.3.6

 .../qgis/files/qgis-2.18.6-python.patch            |  25 ---
 sci-geosciences/qgis/metadata.xml                  |   1 -
 sci-geosciences/qgis/qgis-2.18.12-r100.ebuild      | 234 ---------------------
 3 files changed, 260 deletions(-)