Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 581890 - app-portage/layman-2.4.0 fails test - ERROR: test (__main__.MakeOverlayXML)
Summary: app-portage/layman-2.4.0 fails test - ERROR: test (__main__.MakeOverlayXML)
Status: UNCONFIRMED
Alias: None
Product: Portage Development
Classification: Unclassified
Component: Third-Party Tools (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Layman Overlay Manager project
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2016-05-02 21:31 UTC by tka
Modified: 2017-02-15 10:26 UTC (History)
0 users

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


Attachments
build.log (build.log,27.37 KB, text/plain)
2016-05-02 21:32 UTC, tka
Details
build.log for layman-2.4.1-r1 (build.log,28.00 KB, text/plain)
2016-07-11 22:02 UTC, tka
Details

Note You need to log in before you can comment on or make changes to this bug.
Description tka 2016-05-02 21:31:07 UTC
>>> Test phase: app-portage/layman-2.4.0
 * python2_7: running distutils-r1_run_phase python_test
layman-test/
layman-test/app-admin/
layman-test/app-admin/layman/
layman-test/app-admin/layman/layman-0.8.ebuild
layman-test/app-portage/
..layman-test/
layman-test/app-admin/
layman-test/app-admin/layman/
layman-test/app-admin/layman/layman-0.8.ebuild
layman-test/app-portage/
layman-test/
layman-test/app-admin/
layman-test/app-admin/layman/
layman-test/app-admin/layman/layman-0.8.ebuild
layman-test/app-portage/
/bin/tar: /var/tmp/portage/app-portage/layman-2.4.0/temp/tmpwBpb9g: Cannot open: No such file or directory
/bin/tar: Error is not recoverable: exiting now
ERROR: ld.so: object 'libsandbox.so' from LD_PRELOAD cannot be preloaded (cannot open shared object file): ignored.
mount: only root can use "--options" option
ERROR: ld.so: object 'libsandbox.so' from LD_PRELOAD cannot be preloaded (cannot open shared object file): ignored.
mount: only root can use "--options" option
ERROR: ld.so: object 'libsandbox.so' from LD_PRELOAD cannot be preloaded (cannot open shared object file): ignored.
mount: only root can use "--options" option
..... * Running Tar... # /bin/tar -v -x -f /var/tmp/portage/app-portage/layman-2.4.0/temp/tmpyveDpq -C /var/tmp/portage/app-portage/layman-2.4.0/temp/laymantmp_kMHqYN/tmpn1CTzs
 * Deleting directory "/var/tmp/portage/app-portage/layman-2.4.0/temp/laymantmp_kMHqYN/tar_test_overlay"
<?xml version="1.0" encoding="UTF-8"?>
<repositories xmlns="" version="1.0">
  <repo quality="experimental" status="unofficial">
    <name>tar-test-overlay</name>
    <description>XXXXXXXXXXX</description>
    <owner>
      <email>foo@example.org</email>
    </owner>
    <source type="tar">file:///var/tmp/portage/app-portage/layman-2.4.0/temp/tmpwBpb9g</source>
  </repo>
</repositories>
        
 * Running Tar... # /bin/tar -v -x -f /var/tmp/portage/app-portage/layman-2.4.0/temp/tmpwBpb9g -C /var/tmp/portage/app-portage/layman-2.4.0/temp/tmpHVuksu/tmphs2mqR
 * Running Tar... # /bin/tar -v -x -f /var/tmp/portage/app-portage/layman-2.4.0/temp/tmpwBpb9g -C /var/tmp/portage/app-portage/layman-2.4.0/temp/tmpHVuksu/tmplVuLpH
 * Deleting directory "/var/tmp/portage/app-portage/layman-2.4.0/temp/tmpHVuksu/tar-test-overlay"
 * Running Tar... # /bin/tar -v -x -f /var/tmp/portage/app-portage/layman-2.4.0/temp/tmpwBpb9g -C /var/tmp/portage/app-portage/layman-2.4.0/temp/tmpHVuksu/tmpk3Wsex
 * Failure result returned from Tar
 * Deleting directory /var/tmp/portage/app-portage/layman-2.4.0/temp/tmpHVuksu/tmpk3Wsex
 * Deleting directory "/var/tmp/portage/app-portage/layman-2.4.0/temp/tmpHVuksu/tar-test-overlay"
<?xml version="1.0" encoding="UTF-8"?>
<repositories xmlns="" version="1.0">
  <repo quality="experimental" status="unofficial">
    <name>squashfs-test-overlay</name>
    <description>XXXXXXXXXXX</description>
    <owner>
      <email>foo@example.org</email>
    </owner>
    <source type="squashfs">file:///var/tmp/portage/app-portage/layman-2.4.0/temp/tmpYWxvsB</source>
  </repo>
</repositories>
        
 * Running mount... # /bin/mount -o loop -t squashfs /var/tmp/portage/app-portage/layman-2.4.0/temp/tmpYWxvsB /var/tmp/portage/app-portage/layman-2.4.0/temp/tmpV98yw0/squashfs-test-overlay
 * Failure result returned from mount
 * Running mount... # /bin/mount -o loop -t squashfs /var/tmp/portage/app-portage/layman-2.4.0/temp/tmpYWxvsB /var/tmp/portage/app-portage/layman-2.4.0/temp/tmpV98yw0/squashfs-test-overlay
 * Failure result returned from mount
 * Running mount... # /bin/mount -o loop -t squashfs /var/tmp/portage/app-portage/layman-2.4.0/temp/tmpYWxvsB /var/tmp/portage/app-portage/layman-2.4.0/temp/tmpV98yw0/squashfs-test-overlay
 * Failure result returned from mount
 * XML DBHandler - Failed to read the overlay list at "/var/lib/layman/cache_930c3ed4a5f89f74fd810585751a06e3.xml"
 * DbBase; error, Failed to read database at "/var/lib/layman/cache_930c3ed4a5f89f74fd810585751a06e3.xml"
 * Hint: If you manually set db_type. Please reset it and let layman-updater
 * migrate it. Otherwise layman's database is not initialized, nor populated
 * with any existing data.
 * Run the following: "layman-updater -m <db_type>"
E......
======================================================================
ERROR: test (__main__.MakeOverlayXML)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "layman/tests/external.py", line 526, in test
    create_overlay_xml = Interactive(config=config)
  File "/var/tmp/portage/app-portage/layman-2.4.0/work/layman-2.4.0/layman/maker.py", line 118, in __init__
    self.overlays_available = self.layman_inst.get_available()
  File "/var/tmp/portage/app-portage/layman-2.4.0/work/layman-2.4.0/layman/api.py", line 506, in get_available
    self._available_ids = self._get_remote_db(dbreload).list_ids()
  File "/var/tmp/portage/app-portage/layman-2.4.0/work/layman-2.4.0/layman/api.py", line 529, in _get_remote_db
    self._available_db = RemoteDB(self.config)
  File "/var/tmp/portage/app-portage/layman-2.4.0/work/layman-2.4.0/layman/remotedb.py", line 93, in __init__
    ignore_init_read_errors=ignore_init_read_errors)
  File "/var/tmp/portage/app-portage/layman-2.4.0/work/layman-2.4.0/layman/dbbase.py", line 123, in __init__
    sys.exit(-1)
SystemExit: -1

----------------------------------------------------------------------
Ran 14 tests in 0.157s

FAILED (errors=1)
wrobel
~~~~~~
Source  : https://overlays.gentoo.org/svn/dev/wrobel
Contact : nobody@gentoo.org
Type    : Subversion; Priority: 10
Quality : experimental

Description:
  Test

wrobel                    [Subversion] (https://o.g.o/svn/dev/wrobel         )
wrobel
~~~~~~
Source  : https://overlays.gentoo.org/svn/dev/wrobel
Contact : nobody@gentoo.org
Type    : Subversion; Priority: 10
Quality : experimental

Description:
  Test

wrobel-stable
~~~~~~~~~~~~~
Source  : rsync://gunnarwrobel.de/wrobel-stable
Contact : nobody@gentoo.org
Type    : Rsync; Priority: 50
Quality : experimental

Description:
  A collection of ebuilds from Gunnar Wrobel [wrobel@gentoo.org].

wrobel                    [Subversion] (https://o.g.o/svn/dev/wrobel         )
wrobel-stable             [Rsync     ] (rsync://gunnarwrobel.de/wrobel-stable)
 * Warning: an installed db file was not found at: [u'/var/tmp/portage/app-portage/layman-2.4.0/temp/laymantmp_pRyq2Y/test.xml']
 * Warning: an installed db file was not found at: [u'/var/tmp/portage/app-portage/layman-2.4.0/temp/laymantmp_pRyq2Y/test.json']
 * Warning: an installed db file was not found at: [u'/var/tmp/portage/app-portage/layman-2.4.0/temp/laymantmp_ZdGzP7/cache_81aeb04054ae02322fc4fe8fef370141.xml']
wrÖbel
~~~~~~
Source  : https://overlays.gentoo.org/svn/dev/wrobel
Contact : nobody@gentoo.org
Type    : Subversion; Priority: 10
Quality : experimental

Description:
  Test ä


wrÖbel                    [Subversion] (https://overlays.gentoo.org/svn/dev/wrobel                                                                                                                                              )

multimedia
~~~~~~~~~~
Source  : git://gitorious.org/gentoo-multimedia/gentoo-multimedia.git
Contact : media-video@gentoo.org
Type    : Git; Priority: 50
Quality : experimental

Description:
  Repository for development of (mostly bleeding-edge) multimedia packages for Gentoo Linux. This is the official overlay for Gentoo’s media herds.

Link:
  http://gitorious.org/gentoo-multimedia


multimedia                [Git       ] (git://gitorious.org/gentoo-multimedia/gentoo-multimedia.git                                                                                                                             )

 * ERROR: app-portage/layman-2.4.0::gentoo failed (test phase):
 *   test suite 'layman/tests/external.py' failed
 * 
 * Call stack:
 *     ebuild.sh, line  133:  Called src_test
 *   environment, line 4365:  Called distutils-r1_src_test
 *   environment, line 1179:  Called _distutils-r1_run_foreach_impl 'python_test'
 *   environment, line  322:  Called python_foreach_impl 'distutils-r1_run_phase' 'python_test'
 *   environment, line 3784:  Called multibuild_foreach_variant '_python_multibuild_wrapper' 'distutils-r1_run_phase' 'python_test'
 *   environment, line 2879:  Called _multibuild_run '_python_multibuild_wrapper' 'distutils-r1_run_phase' 'python_test'
 *   environment, line 2877:  Called _python_multibuild_wrapper 'distutils-r1_run_phase' 'python_test'
 *   environment, line  593:  Called distutils-r1_run_phase 'python_test'
 *   environment, line 1112:  Called python_test
 *   environment, line 4157:  Called die
 * The specific snippet of code:
 *       PYTHONPATH="." "${PYTHON}" ${suite} || die "test suite '${suite}' failed";
 * 
 * If you need support, post the output of `emerge --info '=app-portage/layman-2.4.0::gentoo'`,
 * the complete build log and the output of `emerge -pqv '=app-portage/layman-2.4.0::gentoo'`.
 * The complete build log is located at '/var/tmp/portage/app-portage/layman-2.4.0/temp/build.log'.
 * The ebuild environment file is located at '/var/tmp/portage/app-portage/layman-2.4.0/temp/environment'.
 * Working directory: '/var/tmp/portage/app-portage/layman-2.4.0/work/layman-2.4.0'
 * S: '/var/tmp/portage/app-portage/layman-2.4.0/work/layman-2.4.0'

>>> Failed to emerge app-portage/layman-2.4.0, Log file:


Reproducible: Always




# emerge --info '=app-portage/layman-2.4.0::gentoo'
Portage 2.2.28 (python 3.4.3-final-0, hardened/linux/amd64/no-multilib, gcc-5.3.0, glibc-2.23-r2, 4.5.2 x86_64)
=================================================================
                         System Settings
=================================================================
System uname: Linux-4.5.2-x86_64-Intel-R-_Core-TM-_i7-3720QM_CPU_@_2.60GHz-with-gentoo-2.2
KiB Mem:    16399296 total,  11563372 free
KiB Swap:   17825788 total,  17825788 free
Timestamp of repository gentoo: Mon, 02 May 2016 20:30:01 +0000
sh bash 4.3_p42-r2
ld GNU ld (Gentoo 2.25.1 p1.1) 2.25.1
app-shells/bash:          4.3_p42-r2::gentoo
dev-java/java-config:     2.2.0-r3::gentoo
dev-lang/perl:            5.22.2::gentoo
dev-lang/python:          2.7.11-r2::gentoo, 3.4.3-r7::gentoo
dev-util/cmake:           3.5.2::gentoo
dev-util/pkgconfig:       0.29.1::gentoo
sys-apps/baselayout:      2.2::gentoo
sys-apps/openrc:          0.20.5::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:            4.7.4::gentoo, 4.9.3::gentoo, 5.3.0::gentoo
sys-devel/gcc-config:     1.8-r1::gentoo
sys-devel/libtool:        2.4.6-r2::gentoo
sys-devel/make:           4.1-r1::gentoo
sys-kernel/linux-headers: 4.5::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


# emerge -pqv '=app-portage/layman-2.4.0::gentoo'
[ebuild     U ] app-portage/layman-2.4.0 [2.3.0-r1] USE="git gpg {test*} -bazaar -cvs -darcs -g-sorcery -mercurial -sqlite% -squashfs -subversion -sync-plugin-portage" PYTHON_TARGETS="python2_7 python3_4 -pypy -python3_3 -python3_5"
Comment 1 tka 2016-05-02 21:32:05 UTC
Created attachment 432992 [details]
build.log
Comment 2 Devan Franchini (RETIRED) gentoo-dev 2016-07-10 23:12:51 UTC
This is resolved in the 2.4.0-r1 ebuild. Thank you for reporting this and feel free to report it to me if I'm otherwise wrong, but I test it on my system and it seemed to work fine.
Comment 3 tka 2016-07-11 22:01:22 UTC
Unfortunately, the test still fails for me.

 

 * Running mount... # /bin/mount -o loop -t squashfs /var/tmp/portage/app-portage/layman-2.4.1-r1/temp/tmp1usGJa /var/tmp/portage/app-portage/layman-2.4.1-r1/temp/tmpPW8W6r/squashfs-test-overlay
 * Failure result returned from mount
 * Running mount... # /bin/mount -o loop -t squashfs /var/tmp/portage/app-portage/layman-2.4.1-r1/temp/tmp1usGJa /var/tmp/portage/app-portage/layman-2.4.1-r1/temp/tmpPW8W6r/squashfs-test-overlay
 * Failure result returned from mount
 * Running mount... # /bin/mount -o loop -t squashfs /var/tmp/portage/app-portage/layman-2.4.1-r1/temp/tmp1usGJa /var/tmp/portage/app-portage/layman-2.4.1-r1/temp/tmpPW8W6r/squashfs-test-overlay
 * Failure result returned from mount
 * XML DBHandler - Failed to read the overlay list at "/var/lib/layman/cache_930c3ed4a5f89f74fd810585751a06e3.xml"
 * DbBase; error, Failed to read database at "/var/lib/layman/cache_930c3ed4a5f89f74fd810585751a06e3.xml"
 * Hint: If you manually set db_type. Please reset it and let layman-updater
 * migrate it. Otherwise layman's database is not initialized, nor populated
 * with any existing data.
 * Run the following: "layman-updater -m <db_type>"
E......
======================================================================
ERROR: test (__main__.MakeOverlayXML)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "layman/tests/external.py", line 526, in test
    create_overlay_xml = Interactive(config=config)
  File "/var/tmp/portage/app-portage/layman-2.4.1-r1/work/layman-2.4.1/layman/maker.py", line 118, in __init__
    self.overlays_available = self.layman_inst.get_available()
  File "/var/tmp/portage/app-portage/layman-2.4.1-r1/work/layman-2.4.1/layman/api.py", line 506, in get_available
    self._available_ids = self._get_remote_db(dbreload).list_ids()
  File "/var/tmp/portage/app-portage/layman-2.4.1-r1/work/layman-2.4.1/layman/api.py", line 529, in _get_remote_db
    self._available_db = RemoteDB(self.config)
  File "/var/tmp/portage/app-portage/layman-2.4.1-r1/work/layman-2.4.1/layman/remotedb.py", line 93, in __init__
    ignore_init_read_errors=ignore_init_read_errors)
  File "/var/tmp/portage/app-portage/layman-2.4.1-r1/work/layman-2.4.1/layman/dbbase.py", line 123, in __init__
    sys.exit(-1)
SystemExit: -1

----------------------------------------------------------------------
Ran 14 tests in 0.215s

FAILED (errors=1)
Comment 4 tka 2016-07-11 22:02:32 UTC
Created attachment 440388 [details]
build.log for layman-2.4.1-r1

# emerge -pqv '=app-portage/layman-2.4.1-r1::gentoo'
[ebuild   R   ] app-portage/layman-2.4.1-r1  USE="git gpg {test*} -bazaar -cvs -darcs -g-sorcery -mercurial -sqlite -squashfs -subversion -sync-plugin-portage" PYTHON_TARGETS="python2_7 python3_4 -pypy -python3_3 -python3_5"
Comment 5 Paolo Pedroni 2017-02-15 10:26:24 UTC
I had this same problem with layman-2.4.2 (current stable), but I found the problem: the files in /var/lib/layman/cache* where set as rw------- root.root

Just chmod-ing them to rw-r--r-- fixes the issue.