Compiling qgis 2.18.3-r1 or 2.18.4 gives plenty of sandbox violations like this at the end of the build: F: open_wr S: deny P: /dev/dri/renderD128 A: /dev/dri/renderD128 R: /dev/dri/renderD128 C: /usr/bin/python2.7 /var/tmp/portage/sci-geosciences/qgis-2.18.3-r1/work/qgis-2.18.3/scripts/pyuic-wrapper.py /var/tmp/portage/sci-geosciences/qgis-2.18.3-r1/work/qgis-2.18.3/python/console/console_compile_apis.ui -o /var/tmp/portage/sci-geosciences/qgis-2.18.3-r1/work/qgis-2.18.3_build/python/console/ui_console_compile_apis.py Reproducible: Always Portage 2.3.3 (python 3.4.5-final-0, default/linux/amd64/13.0/desktop, gcc-4.9.4, glibc-2.23-r3, 4.10.3 x86_64) ================================================================= System uname: Linux-4.10.3-x86_64-Intel-R-_Core-TM-_i5-3230M_CPU_@_2.60GHz-with-gentoo-2.3 KiB Mem: 3924768 total, 790008 free KiB Swap: 3145724 total, 1947220 free Timestamp of repository gentoo: Fri, 17 Mar 2017 19:30:01 +0000 sh bash 4.3_p48-r1 ld GNU ld (Gentoo 2.26.1 p1.0) 2.26.1 ccache version 3.2.4 [enabled] app-shells/bash: 4.3_p48-r1::gentoo dev-java/java-config: 2.2.0-r3::gentoo dev-lang/perl: 5.22.3_rc4::gentoo dev-lang/python: 2.7.12::gentoo, 3.4.5::gentoo dev-util/ccache: 3.2.4::gentoo dev-util/cmake: 3.7.2::gentoo dev-util/pkgconfig: 0.28-r2::gentoo sys-apps/baselayout: 2.3::gentoo sys-apps/openrc: 0.23.2::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.14.1::gentoo, 1.15::gentoo sys-devel/binutils: 2.26.1::gentoo sys-devel/gcc: 4.9.4::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.4::gentoo (virtual/os-headers) sys-libs/glibc: 2.23-r3::gentoo Repositories: gentoo location: /usr/portage sync-type: rsync sync-uri: rsync://rsync.gentoo.org/gentoo-portage priority: -1000 sync-rsync-extra-opts: --exclude='/lost+found' x-portage location: /usr/local/portage masters: gentoo priority: 0 java location: /var/lib/layman/java masters: gentoo priority: 50 zugaina location: /var/lib/layman/zugaina masters: gentoo priority: 50 ACCEPT_KEYWORDS="amd64" ACCEPT_LICENSE="* -@EULA" CBUILD="x86_64-pc-linux-gnu" CFLAGS="-march=native -O2 -pipe" CHOST="x86_64-pc-linux-gnu" CONFIG_PROTECT="/etc /usr/lib64/libreoffice/program/sofficerc /usr/share/config /usr/share/easy-rsa /usr/share/gnupg/qualified.txt /usr/share/maven-bin-3.3/conf" CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/dconf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/php/apache2-php7.0/ext-active/ /etc/php/cgi-php7.0/ext-active/ /etc/php/cli-php7.0/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" CXXFLAGS="-march=native -O2 -pipe" DISTDIR="/usr/portage/distfiles" FCFLAGS="-O2 -pipe" FEATURES="assume-digests binpkg-logs buildsyspkg ccache 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 webrsync-gpg xattr" FFLAGS="-O2 -pipe" GENTOO_MIRRORS="ftp://ftp.free.fr/mirrors/ftp.gentoo.org/" LANG="fr_BE.UTF-8" LDFLAGS="-Wl,-O1 -Wl,--as-needed" MAKEOPTS="-j9 -l7" PKGDIR="/usr/portage/packages" PORTAGE_CONFIGROOT="/" PORTAGE_RSYNC_EXTRA_OPTS="--exclude='/lost+found'" 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="X a52 aac acl acpi alsa amd64 berkdb bluetooth branding bzip2 cairo cdda cddb cdr cli consolekit cracklib crypt cups cxx dbus dri dts dvd dvdr emboss encode exif fam firefox flac fortran gdbm gif glamor gpm gtk iconv ipv6 java jpeg kerberos kpathsea lcms libnotify lzma mad mmx mng modules mp3 mp4 mpeg multilib musicbrainz ncurses nls nptl nsplugin ogg opengl openmp pam pango pcre pdf pkcs11 png policykit ppds qt3support qt4 readline samba scanner sdl seccomp semantic-desktop session spell sse sse2 sse3 sse4 ssl ssse3 startup-notification svg tcpd tiff truetype udev udisks unicode upnp upower usb v4l2 vim-syntax vorbis wxwidgets xattr xcb xml xosd xv xvid zlib" ABI_X86="64" 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" APACHE2_MODULES="authn_core authz_core socache_shmcb unixd 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 cgi cgid 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" CALLIGRA_FEATURES="kexi words flow plan sheets stage tables krita karbon braindump author" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" CPU_FLAGS_X86="aes avx mmx mmxext popcnt sse sse2 sse3 sse4_1 sse4_2 ssse3" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock isync itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf skytraq superstar2 timing tsip tripmate tnt ublox ubx" GRUB_PLATFORMS="efi-64" INPUT_DEVICES="mouse evdev synaptics" KERNEL="linux" L10N="fr" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" LINGUAS="fr" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php5-6" PYTHON_SINGLE_TARGET="python2_7" PYTHON_TARGETS="python2_7 python3_4" RUBY_TARGETS="ruby21" USERLAND="GNU" VIDEO_CARDS="intel i915 i965" 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: CC, CPPFLAGS, CTARGET, CXX, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LC_ALL, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, USE_PYTHON
Created attachment 467402 [details] build log file
Please test 2.18.6 - it is the first qt5-based release and solved my build issues.
Sorry but after having played 20 minutes with use flags and keywording packages without success, I simply gave up since qgis-2.18.3-r1 works perfectly well for me. Can you give the list of required changes to use flags and keywords so that I can test it ?
USE="-qt4 qt5" should do the trick, unless you have conflicting packages that require qscintilla(-python) qt4 as well. Both is currently unfortunately not possible.
QGIS 2.18.6 doesn't work for me. I immediately get a segmentation fault when starting it; qgis[8947]: segfault at 7f496c358db0 ip 00007f48d4de1997 sp 00007ffd594a7810 error 7 in QtCore.so[7f48d4d56000+224000] And the sandbox problems remains.
We'll have to find out why it segfaults for you in a different bug. I guess the sandbox violation will require addpredict, likely gpu driver dependent.
similar(?) segfault for 2.18.6 here, for reference: https://bugs.gentoo.org/show_bug.cgi?id=612070#c4
It looks indeed similar in my case, see my comment in bug #612070.
please try to update to sys-apps/sandbox-2.10-r4 and retry. See also https://bugs.gentoo.org/show_bug.cgi?id=612202 Please report.
As requested, I tried the new version of sandbox and it didn't change anything.
Could you ever reproduce the sandbox violation with 2.18.10, or now with 2.18.12?
The problem still occurs with QGIS 2.18.12.
I have dropped a patch that was messing with pyuic-wrapper.py, please sync and give it another try; there's a slim hope it will fix it without us having to use addpredict.
I guess, I had to try qgis-2.18.12. It still doesn't work and gives exactly the same errors: F: open_wr S: deny P: /dev/dri/renderD128 A: /dev/dri/renderD128 R: /dev/dri/renderD128 C: /usr/bin/python2.7 /var/tmp/notmpfs/portage/sci-geosciences/qgis-2.18.12/work/qgis-2.18.12/scripts/pyuic-wrapper.py /var/tmp/notmpfs/portage/sci-geosciences/qgis-2.18.12/work/qgis-2.18.12/python/plugins/db_manager/ui/DlgSqlLayerWindow.ui -o /var/tmp/notmpfs/portage/sci-geosciences/qgis-2.18.12/work/qgis-2.18.12_build/python/plugins/db_manager/ui_DlgSqlLayerWindow.py Why does this device file (/dev/dri/renderD128) need to be used during the compilation. It's indeed not readable by users outside the video group: crw-rw----+ 1 root video 226, 128 10 sep 08:47 renderD128
Created attachment 493700 [details] build log for qgis-2.18.12
I've pushed another change to add `addpredict /dev/dri/renderD128` - make sure you've got that line in your 2.18.12 ebuild before you try again next time. Sorry for doing the testing here, but it seems so far you are the only one being able to reproduce that issue. Out of curiosity, what USE settings is your PyQt4 built with?
It works with addpredict. Here are my use flags for PyQt4: [ebuild R ] dev-python/PyQt4-4.12::gentoo USE="X dbus opengl sql svg webkit -compat -debug -declarative -designer -doc -examples -help -multimedia -phonon -script -scripttools -testlib -xmlpatterns" PYTHON_TARGETS="python2_7 python3_4 (-python3_5) (-python3_6)"
Thanks for testing! Glad this is done.
@Andreas: Thanks for your proposed solution. Unfortunately it doesn't fit configurations with multiple gfx cards yet. My second card (/dev/dri/renderD129) is still being accessed, but denied, thus you may consider whatever devices (/dev/dri/render*) present. The solution proposed here fits them all. See https://sources.gentoo.org/cgi-bin/viewvc.cgi/gentoo-x86/media-gfx/imagemagick/imagemagick-6.8.8.10.ebuild?r1=1.3&r2=1.4 Thanks for reconsidering