On my hardened ~amd64 machine pygobject fails to execute its tests. There is the following error. TEST_FILES="test_everything.py test_gi.py test_gdbus.py test_overrides.py" PYTHONPATH=..:../tests:${PYTHONPATH:+:$PYTHONPATH} LD_LIBRARY_PATH=./.libs:$LD_LIBRARY_PATH GI_TYPELIB_PATH=.:$GI_TYPELIB_PATH XDG_DATA_DIRS=$XDG_DATA_DIRS:/usr/share TESTS_BUILDDIR=. /usr/bin/dbus-launch /usr/bin/python2.7 ./runtests.py make[2]: *** [check-local] Segmentation fault make[2]: Leaving directory `/var/tmp/portage/dev-python/pygobject-2.28.6/work/pygobject-2.28.6-2.7/tests' In my grsec.log I find the following entries corresponding to this: Sep 21 19:56:57 localhost kernel: [210503.519256] grsec: denied RWX mmap of <anonymous mapping> by /usr/bin/python2.7[python2.7:1009] uid/euid:250/250 gid/egid:250/250, parent /usr/bin/gmake[make:668] uid/euid:250/250 gid/egid:250/250 Sep 21 19:56:57 localhost kernel: [210503.559536] grsec: denied RWX mprotect of /lib64/ld-2.13.so by /usr/bin/python2.7[python2.7:1009] uid/euid:250/250 gid/egid:250/250, parent /usr/bin/gmake[make:668] uid/euid:250/250 gid/egid:250/250 Sep 21 19:56:57 localhost kernel: [210503.559554] grsec: Segmentation fault occurred at 00006ff9018c9d90 in /usr/bin/python2.7[python2.7:1009] uid/euid:250/250 gid/egid:250/250, parent /usr/bin/gmake[make:668] uid/euid:250/250 gid/egid:250/250 Sep 21 19:56:57 localhost kernel: [210503.559567] grsec: denied resource overstep by requesting 4096 for RLIMIT_CORE against limit 0 for /usr/bin/python2.7[python2.7:1009] uid/euid:250/250 gid/egid:250/250, parent /usr/bin/gmake[make:668] uid/euid:250/250 gid/egid:250/250
Created attachment 287333 [details] build log
Created attachment 287335 [details] emerge --info
The problem persists in pygobject-3.0.2.
Have you tried with 3.2.0?
looks like bug #329499
With pygobject-3.2.2 everything merges fine.