Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 661762 - app-portage/portage-utils-0.72: Test suite fails if portage API is not installed for default python
Summary: app-portage/portage-utils-0.72: Test suite fails if portage API is not instal...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Fabian Groffen
URL:
Whiteboard:
Keywords: TESTFAILURE
Depends on:
Blocks:
 
Reported: 2018-07-21 21:28 UTC by eroen
Modified: 2018-08-01 13:54 UTC (History)
1 user (show)

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


Attachments
build.log.xz (build.log.xz,910.18 KB, application/x-xz)
2018-07-21 21:28 UTC, eroen
Details

Note You need to log in before you can comment on or make changes to this bug.
Description eroen 2018-07-21 21:28:40 UTC
Created attachment 540444 [details]
build.log.xz

tests/atom_explode/atom-explode.py is run with default python, and fails if portage API is not available. The test then falls back to a pre-made output file which is unlikely to match the live package repository.

This will typically occur after PYTHON_TARGETS is changed.




make[2]: Entering directory '/var/tmp/portage/app-portage/portage-utils-0.72/work/portage-utils-0.72/tests/atom_explode'
mkdir -p .
aarch64-unknown-linux-gnu-gcc -Os -g -pipe -mcpu=cortex-a53 -mfix-cortex-a53-843419 -std=gnu99 -Wall -I/var/tmp/portage/app-portage/portage-utils-0.72/work/portage-utils-0.72/tests/atom_explode/../.. test.c -o e
atom_explode():
real    0m0.803s
user    0m0.750s
sys     0m0.040s

portage:Traceback (most recent call last):
  File "./atom-explode.py", line 3, in <module>
    import sys,portage
ImportError: No module named 'portage'

real    0m0.371s
user    0m0.500s
sys     0m0.030s

--- ./me        2018-07-21 20:42:41.000000000 +0000
+++ ./py        2018-07-21 20:42:41.000000000 +0000
@@ -1,656 +1,802 @@
-media-video/makemkv-1.12.2 -> media-video / [makemkv-1.12.2] makemkv - 1.12.2-r0 [1.12.2] [r0]
-makemkv-1.12.2 -> null / [makemkv-1.12.2] makemkv - 1.12.2-r0 [1.12.2] [r0]
...
+games-board/gnushogi-1.4.1-r1 -> games-board / [gnushogi-1.4.1] gnushogi - 1.4.1-r1 [1.4.1] [r1]
+gnushogi-1.4.1-r1 -> null / [gnushogi-1.4.1] gnushogi - 1.4.1-r1 [1.4.1] [r1]
FAIL: portage-utils vs portage atom parsing
atom_explode: 0 passes / 1 fails
make[2]: *** [Makefile:17: dotest] Error 1
make[2]: Leaving directory '/var/tmp/portage/app-portage/portage-utils-0.72/work/portage-utils-0.72/tests/atom_explode'
make[1]: *** [Makefile:11: atom_explode_subdir] Error 2
make[1]: Leaving directory '/var/tmp/portage/app-portage/portage-utils-0.72/work/portage-utils-0.72/tests'
make: *** [Makefile:90: check] Error 2
 ^[[31;01m*^[[0m ERROR: app-portage/portage-utils-0.72::gentoo failed (test phase):
 ^[[31;01m*^[[0m   Make check failed. See above for details.
 ^[[31;01m*^[[0m
 ^[[31;01m*^[[0m Call stack:
 ^[[31;01m*^[[0m            ebuild.sh, line 124:  Called src_test
 ^[[31;01m*^[[0m          environment, line 939:  Called default
 ^[[31;01m*^[[0m   phase-functions.sh, line 867:  Called default_src_test
 ^[[31;01m*^[[0m   phase-functions.sh, line 896:  Called __eapi0_src_test
 ^[[31;01m*^[[0m     phase-helpers.sh, line 816:  Called die
 ^[[31;01m*^[[0m The specific snippet of code:
 ^[[31;01m*^[[0m                $emake_cmd ${internal_opts} check || \
 ^[[31;01m*^[[0m                        die "Make check failed. See above for details."
Comment 1 eroen 2018-07-21 21:29:41 UTC
pine64-a ~ # emerge --info '=app-portage/portage-utils-0.72::gentoo'
Portage 2.3.40 (python 3.5.5-final-0, default/linux/arm64/13.0, gcc-5.4.0, glibc-2.26-r7, 3.10.102-2-pine64-longsleep aarch64)
=================================================================
                         System Settings
=================================================================
System uname: Linux-3.10.102-2-pine64-longsleep-aarch64-with-gentoo-2.4.1
KiB Mem:     2036496 total,   1467736 free
KiB Swap:    2097148 total,   2027212 free
Timestamp of repository gentoo: Fri, 20 Jul 2018 19:30:01 +0000
Head commit of repository gentoo: 62e8ab49a9864090d0cae51747b1cc2f28322356
sh bash 4.4_p12
ld GNU ld (Gentoo 2.26.1 p1.0) 2.26.1
app-shells/bash:          4.4_p12::gentoo
dev-lang/perl:            5.24.1-r1::gentoo
dev-lang/python:          2.7.14-r1::gentoo, 3.4.5::gentoo, 3.5.5::gentoo
dev-util/cmake:           3.7.2::gentoo
dev-util/pkgconfig:       0.28-r2::gentoo
sys-apps/baselayout:      2.4.1-r2::gentoo
sys-apps/openrc:          0.26.3::gentoo
sys-apps/sandbox:         2.10-r3::gentoo
sys-devel/autoconf:       2.69::gentoo
sys-devel/automake:       1.15.1-r2::gentoo
sys-devel/binutils:       2.26.1::gentoo
sys-devel/gcc:            4.9.4::gentoo, 5.4.0-r3::gentoo
sys-devel/gcc-config:     1.8-r1::gentoo
sys-devel/libtool:        2.4.6-r3::gentoo
sys-devel/make:           4.2.1::gentoo
sys-kernel/linux-headers: 4.13::gentoo (virtual/os-headers)
sys-libs/glibc:           2.26-r7::gentoo
Repositories:

gentoo
    location: /usr/portage
    sync-type: rsync
    sync-uri: rsync://rsync.gentoo.org/gentoo-portage
    priority: -1000
    sync-rsync-extra-opts: 
    sync-rsync-verify-max-age: 24
    sync-rsync-verify-jobs: 1
    sync-rsync-verify-metamanifest: yes

ACCEPT_KEYWORDS="arm64"
ACCEPT_LICENSE="* -@EULA"
CBUILD="aarch64-unknown-linux-gnu"
CFLAGS="-Os -g -pipe -mcpu=cortex-a53 -mfix-cortex-a53-843419"
CHOST="aarch64-unknown-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/gnupg/qualified.txt"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo"
CXXFLAGS="-Os -g -pipe -mcpu=cortex-a53 -mfix-cortex-a53-843419"
DISTDIR="/usr/portage/distfiles"
ENV_UNSET="DBUS_SESSION_BUS_ADDRESS DISPLAY PERL5LIB PERL5OPT PERLPREFIX PERL_CORE PERL_MB_OPT PERL_MM_OPT XAUTHORITY XDG_CACHE_HOME XDG_CONFIG_HOME XDG_DATA_HOME XDG_RUNTIME_DIR"
FCFLAGS="-O2"
FEATURES="assume-digests binpkg-logs cgroup config-protect-if-modified distlocks ebuild-locks fixlafiles installsources ipc-sandbox merge-sync multilib-strict network-sandbox news parallel-fetch preserve-libs protect-owned sandbox sfperms splitdebug strict test unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync xattr"
FFLAGS="-O2"
GENTOO_MIRRORS="http://distfiles.gentoo.org"
LANG="en_GB.utf8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed -mfix-cortex-a53-843419"
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="acl arm64 berkdb bzip2 cli crypt cxx dri fortran gdbm iconv ipv6 libtirpc modules multilib ncurses nls nptl openmp pam pcre readline seccomp ssl tcpd unicode xattr zlib" 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="karbon plan sheets stage words" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" CPU_FLAGS_ARM="edsp neon thumb thumb2 v4 v5 v6 v7 v8 vfp vfp-d32 vfpv3 vfpv4" 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" INPUT_DEVICES="libinput keyboard mouse" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php5-6 php7-0" POSTGRES_TARGETS="postgres9_5 postgres10" PYTHON_SINGLE_TARGET="python3_5" PYTHON_TARGETS="python2_7 python3_5" RUBY_TARGETS="ruby21 ruby23" USERLAND="GNU" VIDEO_CARDS="fbdev dummy v4l" 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, LINGUAS, MAKEOPTS, PORTAGE_BINHOST, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS

pine64-a ~ # emerge -pqv '=app-portage/portage-utils-0.72::gentoo'
[ebuild     U ] app-portage/portage-utils-0.72 [0.62] USE="nls -static" 

The following keyword changes are necessary to proceed:
 (see "package.accept_keywords" in the portage(5) man page for more details)
# required by =app-portage/portage-utils-0.72::gentoo (argument)
=app-portage/portage-utils-0.72 ~arm64

!!! The following installed packages are masked:
- sys-devel/binutils-2.26.1::gentoo (masked by: package.mask)
/usr/portage/profiles/package.mask:
# Michał Górny <mgorny@gentoo.org>, Andreas K. Hüttel <dilfridge@gentoo.org>,
# Matthias Maier <tamiko@gentoo.org> (21 May 2017)
# These old versions of toolchain packages (binutils, gcc, glibc) are no
# longer officially supported and are not suitable for general use. Using
# these packages can result in build failures (and possible breakage) for
# many packages, and may leave your system vulnerable to known security
# exploits.
# If you still use one of these old toolchain packages, please upgrade (and
# switch the compiler / the binutils) ASAP. If you need them for a specific
# (isolated) use case, feel free to unmask them on your system.
# (updated 27 Dec 2017 with gcc < 5.4)

For more information, see the MASKED PACKAGES section in the emerge
man page or refer to the Gentoo Handbook.
Comment 2 Fabian Groffen gentoo-dev 2018-07-23 08:26:22 UTC
hmmm, ok, so you have portage for say python version X and you default python being version Y?
Comment 3 Larry the Git Cow gentoo-dev 2018-08-01 12:18:01 UTC
The bug has been referenced in the following commit(s):

https://gitweb.gentoo.org/proj/portage-utils.git/commit/?id=c27b5750eeb793a9c5d7d98a6021e9c9056a3ec6

commit c27b5750eeb793a9c5d7d98a6021e9c9056a3ec6
Author:     Fabian Groffen <grobian@gentoo.org>
AuthorDate: 2018-08-01 12:15:55 +0000
Commit:     Fabian Groffen <grobian@gentoo.org>
CommitDate: 2018-08-01 12:15:55 +0000

    tests/atom_explode: deal with Python not finding portage, bug #661762
    
    Check if the python atom check is going to work, if not, fall back to
    full pre-cooked files.  If we just check for a portage tree in the
    filesystem, it may be that we end up without python support for portage,
    which would then obviously mismatch.
    
    Bug: https://bugs.gentoo.org/661762

 tests/atom_explode/dotest | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)
Comment 4 Larry the Git Cow gentoo-dev 2018-08-01 13:54:01 UTC
The bug has been closed via the following commit(s):

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

commit 86b8e521983302545dea5c39c5a325d08c635837
Author:     Fabian Groffen <grobian@gentoo.org>
AuthorDate: 2018-08-01 13:53:47 +0000
Commit:     Fabian Groffen <grobian@gentoo.org>
CommitDate: 2018-08-01 13:53:47 +0000

    app-portage/portage-utils: version bump to v0.73
    
    Closes: https://bugs.gentoo.org/661762
    Closes: https://bugs.gentoo.org/661474
    Closes: https://bugs.gentoo.org/660508
    Package-Manager: Portage-2.3.40, Repoman-2.3.9

 app-portage/portage-utils/Manifest                                      | 2 +-
 .../{portage-utils-0.71.ebuild => portage-utils-0.73.ebuild}            | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)