It appears that there are make rules missing or insufficient to complete building Regress-1.0.typelib. Reproducible: Always Steps to Reproduce: 1. Emerge pygobject-2.26.0 with FEATURES="test" Actual Results: make check-local make[2]: Entering directory `/var/tmp/portage/dev-python/pygobject-2.26.0/work/pygobject-2.26.0-2.6/tests' test -L testhelper.so || ln -s .libs/testhelper.so testhelper.so make[2]: *** No rule to make target `Regress-1.0.typelib', needed by `check-local'. Stop. make[2]: Leaving directory `/var/tmp/portage/dev-python/pygobject-2.26.0/work/pygobject-2.26.0-2.6/tests' make[1]: *** [check-am] Error 2 make[1]: Leaving directory `/var/tmp/portage/dev-python/pygobject-2.26.0/work/pygobject-2.26.0-2.6/tests' make: *** [check-recursive] Error 1 emake failed * ERROR: dev-python/pygobject-2.26.0 failed: * Testing failed with CPython 2.6 in testing() function * * Call stack: * ebuild.sh, line 56: Called src_test * environment, line 5375: Called python_execute_function '-s' 'testing' * environment, line 4077: Called die * The specific snippet of code: * die "${failure_message}"; * * If you need support, post the output of 'emerge --info =dev-python/pygobject-2.26.0', * the complete build log and the output of 'emerge -pqv =dev-python/pygobject-2.26.0'. * The complete build log is located at '/var/tmp/portage/dev-python/pygobject-2.26.0/temp/build.log'. * The ebuild environment file is located at '/var/tmp/portage/dev-python/pygobject-2.26.0/temp/environment'. * S: '/var/tmp/portage/dev-python/pygobject-2.26.0/work/pygobject-2.26.0' Expected Results: The tests build fine, run, and pass. Portage 2.2_rc93 (default/linux/amd64/2008.0, gcc-4.4.3, glibc-2.11.2-r1, 2.6.36-gentoo x86_64) ================================================================= System Settings ================================================================= System uname: Linux-2.6.36-gentoo-x86_64-Intel-R-_Core-TM-2_Quad_CPU_Q9650_@_3.00GHz-with-gentoo-2.1.8 Timestamp of tree: Sat, 06 Nov 2010 05:30:01 +0000 app-shells/bash: 4.1_p9 dev-lang/python: 2.6.5-r3 dev-util/cmake: 2.8.1-r2 sys-apps/baselayout: 2.1.8-r2 sys-apps/openrc: 0.6.4 sys-apps/sandbox: 2.3-r1 sys-devel/autoconf: 2.13, 2.68 sys-devel/automake: 1.9.6-r3, 1.10.3, 1.11.1 sys-devel/binutils: 2.20.1 sys-devel/gcc: 4.4.3 sys-devel/gcc-config: 1.4.1 sys-devel/libtool: 2.2.10 sys-devel/make: 3.81-r2 virtual/os-headers: 2.6.32 (sys-kernel/linux-headers) Repositories: funtoo ACCEPT_KEYWORDS="amd64 ~amd64" ACCEPT_LICENSE="* -@EULA AdobeFlash-10.1" CBUILD="x86_64-pc-linux-gnu" CFLAGS="-march=native -O3 -pipe -g" CHOST="x86_64-pc-linux-gnu" CONFIG_PROTECT="/etc" CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /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 /etc/udev/rules.d" CXXFLAGS="-march=native -O3 -pipe -g" DISTDIR="/usr/portage/distfiles" FEATURES="assume-digests binpkg-logs distlocks fixlafiles fixpackages installsources mini-manifest news parallel-fetch preserve-libs protect-owned sandbox sfperms splitdebug strict test unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox" GENTOO_MIRRORS="http://gentoo.osuosl.org/ http://gentoo.cites.uiuc.edu/pub/gentoo/ http://mirrors.cs.wmich.edu/gentoo" LANG="en_US.UTF-8" LDFLAGS="-Wl,-O1 -Wl,--sort-common -Wl,--as-needed" LINGUAS="en_US en" MAKEOPTS="-j5" 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="" SYNC="rsync://rsync.gentoo.org/gentoo-portage" USE="X a52 aac aalib acl acpi alac alsa amd64 apache2 avahi bash-completion berkdb bzip2 cairo cdda cdr cjk cli cracklib crypt cups curl cvs cxx dbus dga djvu dri dvd dvdr dvdread eds encode esd exif expat fam ffmpeg fftw firefox flac fontconfig gdbm gif gimp gmp gnome gnome-keyring gnutls gpm graphviz gsm gstreamer gtk hal iconv icu idn imagemagick imlib ipv6 jbig jpeg jpeg2k lame lcms libcaca libnotify libsamplerate mad mikmod mmap mmx mng modules mono mp3 mpeg msn mudflap multilib ncurses networkmanager nls nntp nptl nptlonly nsplugin offensive ogg openexr opengl openmp pam pch pcre pdf perl plotutils png policykit pppd pulseaudio python raw readline scanner session smp sndfile soap speex spell sqlite sse sse2 ssl startup-notification subversion svg sysfs syslog taglib tcpd theora threads tiff tk truetype unicode usb vcd vorbis wavpack wifi wmf wxwidgets x264 xattr xft xine xinerama xml xmp xorg xpm xscreensaver xv xvid 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="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" 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="evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="en_US en" LIRC_DEVICES="mceusb" PHP_TARGETS="php5-2" RUBY_TARGETS="ruby18" USERLAND="GNU" VIDEO_CARDS="nvidia" 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, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS [ebuild U ] dev-python/pygobject-2.26.0 [2.20.0-r1] USE="cairo%* test -doc -examples (-introspection) -libffi (-debug%)"
There are some test related patches being applied by Gilles Dartiguelongue
Created attachment 253371 [details] This is the build.log file.
(In reply to comment #0) [...] > make[2]: *** No rule to make target `Regress-1.0.typelib', needed by > `check-local'. Stop. [...] Same here. Looking at the Makefile.in, Regress-1.0.typelib is only build with USE=introspection: @ENABLE_INTROSPECTION_TRUE@Regress-1.0.typelib: Regress-1.0.gir Makefile @ENABLE_INTROSPECTION_TRUE@ $(AM_V_GEN) g-ir-compiler $< -o $@ I guess that that 'Regress-1.0.typelib GIMarshallingTests-1.0.typelib' needs to be disable if USE=-introspection Changing check-local rule to the following worked for me to successfully build tests: check-local: $(check_LTLIBRARIES:.la=.so) @ENABLE_INTROSPECTION_TRUE@Regress-1.0.typelib GIMarshallingTests-1.0.typelib Only failing test is then: testQueryWritableNamespaces (test_gio.TestFile) ... ERROR
(In reply to comment #3) > (In reply to comment #0) > [...] > > make[2]: *** No rule to make target `Regress-1.0.typelib', needed by > > `check-local'. Stop. > [...] > Same here. Looking at the Makefile.in, Regress-1.0.typelib is only build with > USE=introspection: > @ENABLE_INTROSPECTION_TRUE@Regress-1.0.typelib: Regress-1.0.gir Makefile > @ENABLE_INTROSPECTION_TRUE@ $(AM_V_GEN) g-ir-compiler $< -o $@ > > I guess that that 'Regress-1.0.typelib GIMarshallingTests-1.0.typelib' needs to > be disable if USE=-introspection > > Changing check-local rule to the following worked for me to successfully build > tests: > check-local: $(check_LTLIBRARIES:.la=.so) > @ENABLE_INTROSPECTION_TRUE@Regress-1.0.typelib GIMarshallingTests-1.0.typelib > Maybe something to bring upstream, unless it is already fixed there?
(In reply to comment #4) > Maybe something to bring upstream, unless it is already fixed there? I leave this to decide by maintainers as I don't know whether this is the proper fix for it. (In reply to comment #3) > Only failing test is then: > testQueryWritableNamespaces (test_gio.TestFile) ... ERROR Some more details: ERROR: testQueryWritableNamespaces (test_gio.TestFile) ---------------------------------------------------------------------- Traceback (most recent call last): File "/var/tmp/portage/dev-python/pygobject-2.26.0-r1/work/pygobject-2.26.0-2.6/tests/test_gio.py", line 414, in testQueryWritableNamespaces for info in infolist: TypeError: 'NoneType' object is not iterable Please let me know whether you want a new bug for this or whether you want to handle all test failures in this bug.
This is due to missing introspection. I'll have to check if testsuite can actually succeed or not without introspection enabled.
Just noting that it still happens on dev-python/pygobject-2.28.4
*** Bug 371365 has been marked as a duplicate of this bug. ***
*** Bug 374639 has been marked as a duplicate of this bug. ***
Looks like upstream is waiting for a reply in their report, if anyone can take a look to it, would be nice :) Thanks
this is solved in slot 3 and current slot 2 stable version don't enable tests neither introspection support