Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 761199 - app-portage/layman: XML DBHandler - ET.ParseError: mismatched tag
Summary: app-portage/layman: XML DBHandler - ET.ParseError: mismatched tag
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: AMD64 Linux
: Normal normal (vote)
Assignee: Layman Overlay Manager project
URL:
Whiteboard:
Keywords: PullRequest
Depends on:
Blocks:
 
Reported: 2020-12-21 20:22 UTC by Andrew Petelin
Modified: 2023-09-08 00:42 UTC (History)
2 users (show)

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Andrew Petelin 2020-12-21 20:22:33 UTC
/var/lib/layman/cache_930c3ed4a5f89f74fd810585751a06e3.xml contains a bug ('/' absent in closing tag) in a toniz4-overlay section:

  <feed>https://github.com/toniz4/toniz4-overlay/commits/master.atom<feed>

Therefore I get an error:

  # layman -S

   * Fetching remote list...
   * XML DBHandler - ET.ParseError: mismatched tag: line 4912, column 4
   * DbBase; error, Failed to read database at 
  "/var/lib/layman/cache_930c3ed4a5f89f74fd810585751a06e3.xml"
  ...

Reproducible: Always

Steps to Reproduce:
Run layman -S, or layman -a, or etc.
Actual Results:  
layman works.

Expected Results:  
layman fails.
Comment 1 Larry the Git Cow gentoo-dev 2023-05-18 23:25:45 UTC
The bug has been referenced in the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=67264351d06bee89861c50a823b8db0f0af476ac

commit 67264351d06bee89861c50a823b8db0f0af476ac
Author:     David Seifert <soap@gentoo.org>
AuthorDate: 2023-05-18 23:25:37 +0000
Commit:     David Seifert <soap@gentoo.org>
CommitDate: 2023-05-18 23:25:37 +0000

    package.mask: Last rite app-portage/layman
    
    Bug: https://bugs.gentoo.org/761199
    Signed-off-by: David Seifert <soap@gentoo.org>

 profiles/package.mask | 5 +++++
 1 file changed, 5 insertions(+)
Comment 2 Sergey 'L29Ah' Alirzaev 2023-05-22 13:29:24 UTC
layman is getting last-rited, yet there's still no straightforward migration path from it better than manually removing and re-adding all the overlays, and even this way isn't documented anywhere it seems.
Comment 3 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2023-05-22 18:29:50 UTC
(In reply to Sergey 'L29Ah' Alirzaev from comment #2)
> layman is getting last-rited, yet there's still no straightforward migration
> path from it better than manually removing and re-adding all the overlays,
> and even this way isn't documented anywhere it seems.

Unrelated to this bug.
Comment 4 Sven Eden 2023-05-23 08:35:27 UTC
(In reply to Sam James from comment #3)
> (In reply to Sergey 'L29Ah' Alirzaev from comment #2)
> > layman is getting last-rited, yet there's still no straightforward migration
> > path from it better than manually removing and re-adding all the overlays,
> > and even this way isn't documented anywhere it seems.
> 
> Unrelated to this bug.

No, accidentally related to this bug, as it was named in the last-rite message:

--------
- app-portage/layman-2.4.3::gentoo (masked by: package.mask)
/var/db/repos/gentoo/profiles/package.mask:
# David Seifert <soap@gentoo.org> (2023-05-19)
# Abandoned, replaced by 'eselect repository', tons of open bugs.
# Removal on 2023-08-17. Bug #761199.
--------
Comment 5 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2023-05-23 08:38:59 UTC
That's one of the reasons it's being last-rited. Documentation gripes aren't really going to fix the original bug here.
Comment 6 Sven Eden 2023-05-23 08:55:05 UTC
For those who got here via the "last-rite message" portage showed about layman:

1) emerge app-eselect/eselect-repository

 # eselect repository list -i
Should now list "gentoo", your local repository (/usr/local/portage) if you ever set it up, and your repositories set up by layman.


2) emerge --unmerge layman


3) In /etc/portage/repos.conf/* you have to change the value of "sync-type" to the value of "layman-type". The latter can then be removed.


4) # eselect repository help

Shows a help text with all operations.


5) Instead of "layman -s <repo>" you sync individual repositories with "emerge --sync <repo>" now.
(eix users don't need to change anything at all.)


6) "eselect repository list" lists _ALL_ known repositories, you have to add "-i" to only list those you have installed.


7) Instead of only adding/removing repositories as a whole, you can enable/disable them now. (nifty!)
Comment 7 Larry the Git Cow gentoo-dev 2023-06-22 13:26:51 UTC
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(-)
Comment 8 Larry the Git Cow gentoo-dev 2023-06-27 11:28:00 UTC
The bug has been referenced in the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=717ec777b9b53fcddaf00a5f10b094488b70daca

commit 717ec777b9b53fcddaf00a5f10b094488b70daca
Author:     Sam James <sam@gentoo.org>
AuthorDate: 2023-06-27 11:27:43 +0000
Commit:     Sam James <sam@gentoo.org>
CommitDate: 2023-06-27 11:27:51 +0000

    profiles: mention eselect-repository pkg in layman mask
    
    Bug: https://bugs.gentoo.org/761199
    Signed-off-by: Sam James <sam@gentoo.org>

 profiles/package.mask | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
Comment 9 Larry the Git Cow gentoo-dev 2023-09-08 00:42:29 UTC
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(-)