Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 552720 - repoman: Allow DOCTYPE SYSTEM
Summary: repoman: Allow DOCTYPE SYSTEM
Alias: None
Product: Portage Development
Classification: Unclassified
Component: Repoman (show other bugs)
Hardware: All Linux
: Normal major with 1 vote (vote)
Assignee: Portage team
Keywords: InVCS, PullRequest
Depends on:
Reported: 2015-06-21 10:28 UTC by Justin Lecher (RETIRED)
Modified: 2021-09-11 21:59 UTC (History)
9 users (show)

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


Note You need to log in before you can comment on or make changes to this bug.
Description Justin Lecher (RETIRED) gentoo-dev 2015-06-21 10:28:20 UTC
As gentoo is now doing ssl by defaut, we should be able to specify

instead of

in metadata.xml and thus repoman should at least except both if not correct to https silently.
Comment 1 Justin Lecher (RETIRED) gentoo-dev 2015-08-24 14:11:18 UTC
Could we please get this fixed?
Comment 2 Justin Lecher (RETIRED) gentoo-dev 2015-08-24 14:13:57 UTC
Pyhton 2.7:

repoman full --xmlparse -d

RepoMan scours the neighborhood...
>>> Creating Manifest for /local/home/justin/tree/media-libs/simage
  metadata.bad [fatal]          1
   media-libs/simage/metadata.xml: DOCTYPE: SYSTEM should refer to '', not ''
  repo.eapi.deprecated          1
   media-libs/simage/simage-1.7.0.ebuild: 2
Please fix these important QA issues first.
RepoMan sez: "Make your QA payment on time and you'll never see the likes of me."

Python 3.4:

justin@paul ~/tree/media-libs/simage $ (1) repoman full --xmlparse -d

RepoMan scours the neighborhood...
>>> Creating Manifest for /local/home/justin/tree/media-libs/simage
  repo.eapi.deprecated          1
   media-libs/simage/simage-1.7.0.ebuild: 2
RepoMan sez: "You're only giving me a partial QA payment?
              I'll take it this time, but I'm not happy."
Comment 3 Mike Gilbert gentoo-dev 2015-08-24 19:47:48 UTC
(In reply to Justin Lecher from comment #2)

It seems you found a bug in the XML parsing code under python3.

I would suggest reverting your mass-update until repoman has actually been updated to accommodate it.
Comment 4 Mike Gilbert gentoo-dev 2015-08-24 20:45:41 UTC
With QA's blessing, I reverted the http -> https conversion in metadata.xml for now.
Comment 5 Michał Górny archtester Gentoo Infrastructure gentoo-dev Security 2018-02-04 13:48:53 UTC
repoman patch sent for review.
Comment 6 Larry the Git Cow gentoo-dev 2018-02-05 18:46:29 UTC
The bug has been referenced in the following commit(s):

commit 3950d76df63cf0f3f6502014dd61b8aa9c260e36
Author:     Michał Górny <>
AuthorDate: 2018-02-04 13:34:33 +0000
Commit:     Michał Górny <>
CommitDate: 2018-02-05 18:45:38 +0000

    repoman: Update metadata.dtd URI to allow https://
    Update the default metadata.dtd URI used in repoman and Portage tests
    to use https://. However, allow also http:// form for the migration
    The http:// compat can be removed once the Gentoo repository is updated
    to use https:// everywhere.
    Reviewed-by: Zac Medico <>

 pym/portage/tests/resolver/         | 2 +-
 repoman/pym/repoman/                          | 2 +-
 repoman/pym/repoman/modules/scan/metadata/ | 2 +-
 3 files changed, 3 insertions(+), 3 deletions(-)}
Comment 7 Ulrich Müller gentoo-dev 2021-09-11 13:59:11 UTC
Can this bug be closed? AFAICS, the fix was released with repoman-2.3.7 (and 2.3.9 went stable in June 2018).
Comment 8 Larry the Git Cow gentoo-dev 2021-09-11 14:02:57 UTC
The bug has been referenced in the following commit(s):

commit 50344cc0ce9c3f430de883b3d8d3966933d249d0
Author:     Mike Gilbert <>
AuthorDate: 2021-09-11 13:54:37 +0000
Commit:     Mike Gilbert <>
CommitDate: 2021-09-11 13:55:17 +0000

    newmetadata: use https in DOCTYPE URI
    Signed-off-by: Mike Gilbert <>

 plugin/newmetadata.vim | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
Comment 9 Larry the Git Cow gentoo-dev 2021-09-11 21:59:59 UTC
The bug has been referenced in the following commit(s):

commit ee6c5a78e4eb2a2051f0ce6ef9856dd10c3f4b14
Author:     Ulrich Müller <>
AuthorDate: 2021-09-11 10:44:55 +0000
Commit:     Ulrich Müller <>
CommitDate: 2021-09-11 14:09:23 +0000

    ebuild-writing/misc-files/metadata: Replace http by https
    Signed-off-by: Ulrich Müller <>

 ebuild-writing/misc-files/metadata/text.xml | 12 ++++++------
 1 file changed, 6 insertions(+), 6 deletions(-)