Summary: | app-portage/layman-2.4.0 fails test - ERROR: test (__main__.MakeOverlayXML) | ||
---|---|---|---|
Product: | Portage Development | Reporter: | tka <tka> |
Component: | Third-Party Tools | Assignee: | Layman Overlay Manager project <layman> |
Status: | RESOLVED FIXED | ||
Severity: | normal | ||
Priority: | Normal | ||
Version: | unspecified | ||
Hardware: | All | ||
OS: | Linux | ||
Whiteboard: | |||
Package list: | Runtime testing required: | --- | |
Attachments: |
build.log
build.log for layman-2.4.1-r1 |
Description
tka
2016-05-02 21:31:07 UTC
Created attachment 432992 [details]
build.log
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. 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) 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"
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. The bug has been closed via the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=805fe7c0495e1bf3a34d518041e466258944b82b commit 805fe7c0495e1bf3a34d518041e466258944b82b Author: Jakov Smolić <jsmolic@gentoo.org> AuthorDate: 2023-06-22 13:15:09 +0000 Commit: Jakov Smolić <jsmolic@gentoo.org> CommitDate: 2023-06-22 13:15:09 +0000 app-portage/layman: treeclean Closes: https://bugs.gentoo.org/761199 Closes: https://bugs.gentoo.org/609720 Closes: https://bugs.gentoo.org/627930 Closes: https://bugs.gentoo.org/700742 Closes: https://bugs.gentoo.org/649766 Closes: https://bugs.gentoo.org/681144 Closes: https://bugs.gentoo.org/648374 Closes: https://bugs.gentoo.org/545568 Closes: https://bugs.gentoo.org/581890 Closes: https://bugs.gentoo.org/539336 Closes: https://bugs.gentoo.org/590132 Closes: https://bugs.gentoo.org/574190 Closes: https://bugs.gentoo.org/578992 Closes: https://bugs.gentoo.org/540012 Closes: https://bugs.gentoo.org/412883 Closes: https://bugs.gentoo.org/443880 Closes: https://bugs.gentoo.org/480884 Closes: https://bugs.gentoo.org/567386 Closes: https://bugs.gentoo.org/454604 Closes: https://bugs.gentoo.org/567384 Signed-off-by: Jakov Smolić <jsmolic@gentoo.org> app-portage/layman/Manifest | 1 - app-portage/layman/layman-2.4.3.ebuild | 100 --------------------------------- app-portage/layman/layman-9999.ebuild | 100 --------------------------------- app-portage/layman/metadata.xml | 24 -------- profiles/package.mask | 5 -- 5 files changed, 230 deletions(-) The bug has been closed via the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=abfaed0b3460e638410c0fd74783f8d292d63afc commit abfaed0b3460e638410c0fd74783f8d292d63afc Author: Andreas K. Hüttel <dilfridge@gentoo.org> AuthorDate: 2023-09-08 00:41:10 +0000 Commit: Andreas K. Hüttel <dilfridge@gentoo.org> CommitDate: 2023-09-08 00:42:07 +0000 app-portage/layman: treeclan Closes: https://bugs.gentoo.org/761199 Closes: https://bugs.gentoo.org/609720 Closes: https://bugs.gentoo.org/627930 Closes: https://bugs.gentoo.org/700742 Closes: https://bugs.gentoo.org/649766 Closes: https://bugs.gentoo.org/681144 Closes: https://bugs.gentoo.org/648374 Closes: https://bugs.gentoo.org/545568 Closes: https://bugs.gentoo.org/581890 Closes: https://bugs.gentoo.org/539336 Closes: https://bugs.gentoo.org/590132 Closes: https://bugs.gentoo.org/574190 Closes: https://bugs.gentoo.org/578992 Closes: https://bugs.gentoo.org/540012 Closes: https://bugs.gentoo.org/412883 Closes: https://bugs.gentoo.org/443880 Closes: https://bugs.gentoo.org/480884 Closes: https://bugs.gentoo.org/567386 Closes: https://bugs.gentoo.org/454604 Closes: https://bugs.gentoo.org/567384 Signed-off-by: Andreas K. Hüttel <dilfridge@gentoo.org> app-portage/layman/Manifest | 1 - app-portage/layman/layman-2.4.3.ebuild | 100 --------------------------------- app-portage/layman/layman-9999.ebuild | 100 --------------------------------- app-portage/layman/metadata.xml | 24 -------- profiles/package.mask | 5 -- 5 files changed, 230 deletions(-) |