Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 586894 - app-portage/repoman-2.3.0: FAIL: testSimple (repoman.tests.simple.test_simple.SimpleRepomanTestCase)
Summary: app-portage/repoman-2.3.0: FAIL: testSimple (repoman.tests.simple.test_simple...
Status: RESOLVED FIXED
Alias: None
Product: Portage Development
Classification: Unclassified
Component: Repoman (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Portage team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2016-06-24 11:38 UTC by tka
Modified: 2017-03-16 01:22 UTC (History)
1 user (show)

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


Attachments
build.log (build.log,38.98 KB, text/plain)
2016-06-24 11:40 UTC, tka
Details

Note You need to log in before you can comment on or make changes to this bug.
Description tka 2016-06-24 11:38:42 UTC
>>> Test phase: app-portage/repoman-2.3.0
 * python2_7: running distutils-r1_run_phase python_test
/usr/bin/python2.7 setup.py test
running test
running build_tests
running build_py
warning: build_py: byte-compiling is disabled, skipping.

creating /var/tmp/portage/app-portage/repoman-2.3.0/work/repoman-2.3.0-python2_7/bin
copying and adjusting bin/repoman -> /var/tmp/portage/app-portage/repoman-2.3.0/work/repoman-2.3.0-python2_7/bin/
changing mode of /var/tmp/portage/app-portage/repoman-2.3.0/work/repoman-2.3.0-python2_7/bin/repoman from 644 to 755
testCopyrightUpdate (repoman.tests.simple.test_simple.SimpleRepomanTestCase) ... ok
testSimple (repoman.tests.simple.test_simple.SimpleRepomanTestCase) ... Traceback (most recent call last):
  File "/var/tmp/portage/app-portage/repoman-2.3.0/work/repoman-2.3.0-python2_7/bin/repoman", line 44, in <module>
    repoman_main(sys.argv[1:])
  File "/usr/lib64/python2.7/site-packages/repoman/main.py", line 117, in repoman_main
    scanner.scan_pkgs(can_force)
  File "/usr/lib64/python2.7/site-packages/repoman/scanner.py", line 351, in scan_pkgs
    self._scan_ebuilds(ebuildlist, dynamic_data)
  File "/usr/lib64/python2.7/site-packages/repoman/scanner.py", line 378, in _scan_ebuilds
    self.modules[mod[1]] = mod_class(**self.set_kwargs(mod[0]))
  File "/usr/lib64/python2.7/site-packages/repoman/modules/scan/ebuild/multicheck.py", line 25, in __init__
    checks_init(self.options.experimental_inherit == 'y')
  File "/usr/lib64/python2.7/site-packages/repoman/modules/scan/ebuild/checks.py", line 921, in checks_init
    for k, kwargs in _eclass_info.items())))
  File "/usr/lib64/python2.7/site-packages/repoman/modules/scan/ebuild/checks.py", line 921, in <genexpr>
    for k, kwargs in _eclass_info.items())))
AttributeError: 'module' object has no attribute '_native_kwargs'

RepoMan scours the neighborhood...
FAIL

======================================================================
FAIL: testSimple (repoman.tests.simple.test_simple.SimpleRepomanTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/var/tmp/portage/app-portage/repoman-2.3.0/work/repoman-2.3.0-python2_7/lib/repoman/tests/__init__.py", line 223, in run
    testMethod()
  File "/var/tmp/portage/app-portage/repoman-2.3.0/work/repoman-2.3.0-python2_7/lib/repoman/tests/simple/test_simple.py", line 303, in testSimple
    "repoman failed in %s" % (cwd,))
AssertionError: repoman failed in 

----------------------------------------------------------------------
Ran 2 tests in 0.428s

FAILED (failures=1)
Symlinking /var/tmp/portage/app-portage/repoman-2.3.0/work/repoman-2.3.0-python2_7/cnf -> ../repoman-2.3.0/cnf
Traceback (most recent call last):
  File "setup.py", line 447, in <module>
    'Topic :: System :: Installation/Setup'
  File "/usr/lib64/python2.7/distutils/core.py", line 151, in setup
    dist.run_commands()
  File "/usr/lib64/python2.7/distutils/dist.py", line 953, in run_commands
    self.run_command(cmd)
  File "/usr/lib64/python2.7/distutils/dist.py", line 972, in run_command
    cmd_obj.run()
  File "setup.py", line 375, in run
    os.path.join(self.build_lib, 'repoman/tests/runTests.py')
  File "/usr/lib64/python2.7/subprocess.py", line 540, in check_call
    raise CalledProcessError(retcode, cmd)
subprocess.CalledProcessError: Command '['/usr/bin/python2.7', '-bWd', '/var/tmp/portage/app-portage/repoman-2.3.0/work/repoman-2.3.0-python2_7/lib/repoman/tests/runTests.py']' returned non-zero exit status 1
 * ERROR: app-portage/repoman-2.3.0::gentoo failed (test phase):
 *   (no error message)
 * 
 * Call stack:
 *     ebuild.sh, line  115:  Called src_test
 *   environment, line 3654:  Called distutils-r1_src_test
 *   environment, line  946:  Called _distutils-r1_run_foreach_impl 'python_test'
 *   environment, line  304:  Called python_foreach_impl 'distutils-r1_run_phase' 'python_test'
 *   environment, line 3150:  Called multibuild_foreach_variant '_python_multibuild_wrapper' 'distutils-r1_run_phase' 'python_test'
 *   environment, line 2236:  Called _multibuild_run '_python_multibuild_wrapper' 'distutils-r1_run_phase' 'python_test'
 *   environment, line 2234:  Called _python_multibuild_wrapper 'distutils-r1_run_phase' 'python_test'
 *   environment, line  575:  Called distutils-r1_run_phase 'python_test'
 *   environment, line  879:  Called python_test
 *   environment, line 3533:  Called esetup.py 'test'
 *   environment, line 1380:  Called die
 * The specific snippet of code:
 *       "${@}" || die "${die_args[@]}";


Reproducible: Always
Comment 1 tka 2016-06-24 11:40:31 UTC
Created attachment 438638 [details]
build.log

# emerge -pqv '=app-portage/repoman-2.3.0::gentoo'
[ebuild     U ] app-portage/repoman-2.3.0 [2.3.0_rc1-r1] PYTHON_TARGETS="python2_7 python3_4 -pypy -python3_3 -python3_5" 


# emerge --info '=app-portage/repoman-2.3.0::gentoo'
Portage 2.3.0 (python 3.4.4-final-0, hardened/linux/amd64/no-multilib, gcc-5.4.0, glibc-2.23-r2, 4.6.2 x86_64)
=================================================================
                         System Settings
=================================================================
System uname: Linux-4.6.2-x86_64-Intel-R-_Core-TM-_i7-3720QM_CPU_@_2.60GHz-with-gentoo-2.2
KiB Mem:    16399208 total,  10949664 free
KiB Swap:   17825788 total,  17825788 free
Timestamp of repository gentoo: Fri, 24 Jun 2016 09:30:01 +0000
sh bash 4.3_p46
ld GNU ld (Gentoo 2.25.1 p1.1) 2.25.1
app-shells/bash:          4.3_p46::gentoo
dev-java/java-config:     2.2.0-r3::gentoo
dev-lang/perl:            5.24.0-r1::gentoo
dev-lang/python:          2.7.11-r2::gentoo, 3.4.4::gentoo
dev-util/cmake:           3.5.2-r1::gentoo
dev-util/pkgconfig:       0.29.1::gentoo
sys-apps/baselayout:      2.2::gentoo
sys-apps/openrc:          0.21::gentoo
sys-apps/sandbox:         2.10-r2::gentoo
sys-devel/autoconf:       2.13::gentoo, 2.69-r2::gentoo
sys-devel/automake:       1.14.1-r1::gentoo, 1.15-r2::gentoo
sys-devel/binutils:       2.25.1-r1::gentoo
sys-devel/gcc:            5.4.0::gentoo
sys-devel/gcc-config:     1.8-r1::gentoo
sys-devel/libtool:        2.4.6-r2::gentoo
sys-devel/make:           4.2.1::gentoo
sys-kernel/linux-headers: 4.6::gentoo (virtual/os-headers)
sys-libs/glibc:           2.23-r2::gentoo
Repositories:

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

local
    location: /var/lib/portage-local/local
    masters: gentoo
    priority: 0

testing
    location: /var/lib/portage-local/testing
    masters: gentoo
    priority: 1

science
    location: /var/lib/layman/science
    masters: gentoo
    priority: 50

ACCEPT_KEYWORDS="amd64 ~amd64"
ACCEPT_LICENSE="* -@EULA"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=native -mtune=native -O2 -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/gnupg/qualified.txt"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/dconf /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"
CXXFLAGS="-march=native -mtune=native -O2 -pipe"
DISTDIR="/usr/portage/distfiles"
EMERGE_DEFAULT_OPTS="--with-bdeps=y"
FCFLAGS="-O2 -pipe"
FEATURES="assume-digests binpkg-logs cgroup collision-protect config-protect-if-modified distlocks ebuild-locks fixlafiles ipc-sandbox merge-sync network-sandbox news parallel-fetch preserve-libs protect-owned sandbox sfperms strict test unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync xattr"
FFLAGS="-O2 -pipe"
GENTOO_MIRRORS="http://distfiles.gentoo.org"
LDFLAGS="-Wl,-O1 -Wl,--as-needed -Wl,--hash-style=gnu"
MAKEOPTS="-j8"
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="X a52 acl acpi alsa amd64 avx berkdb bzip2 cairo caps cdda cddb cdparanoia cli cracklib crypt cups cxx dbus dri dts dvd fam ffmpeg fftw flac fontconfig foomaticdb gdbm gif gimp gmp gnutls gtk hardened iconv icu idn ipv6 jpeg justify lame lcms libnotify lzma mad matroska mmap mmx mmxext modules mp3 mpeg ncurses networkmanager nptl ogg opengl openmp pam pcre pie png policykit ppds readline sasl sdl seccomp session sse sse2 sse3 sse4 sse4_1 sse4_2 ssl ssp ssse3 startup-notification svg tcpd theora threads tiff truetype udev udisks unicode upower vaapi vorbis wayland x264 xattr xcb xinerama xml xtpax 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" CAMERAS="ptp2" 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 itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf superstar2 timing tsip tripmate tnt ublox ubx" GRUB_PLATFORMS="pc" INPUT_DEVICES="evdev synaptics" 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-5" PYTHON_SINGLE_TARGET="python2_7" PYTHON_TARGETS="python2_7 python3_4" RUBY_TARGETS="ruby20 ruby21" USERLAND="GNU" VIDEO_CARDS="i965 intel nouveau" XFCE_PLUGINS="power" 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, INSTALL_MASK, LANG, LC_ALL, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, USE_PYTHON
Comment 2 Zac Medico gentoo-dev 2016-06-24 14:37:26 UTC
(In reply to tka from comment #0)
> "/usr/lib64/python2.7/site-packages/repoman/modules/scan/ebuild/checks.py",
> line 921, in <genexpr>
>     for k, kwargs in _eclass_info.items())))
> AttributeError: 'module' object has no attribute '_native_kwargs'

Apparently it's importing the previously installed repoman module, so the ebuild needs to prevent that by setting PYTHONPATH or something like that.
Comment 3 Brian Dolbec (RETIRED) gentoo-dev 2017-03-16 01:22:12 UTC
I am not able to reproduce this in repoman-2.3.0-r1. repoman-2.3.0 is no longer in the tree.

closing