public inbox for gentoo-dev@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-dev] XML Schema files for metadata.xml, projects.xml and repositories.xml, for review and testing
@ 2016-03-06 11:01 Michał Górny
  2016-03-06 11:04 ` Michał Górny
  0 siblings, 1 reply; 16+ messages in thread
From: Michał Górny @ 2016-03-06 11:01 UTC (permalink / raw)
  To: gentoo-dev; +Cc: qa, Gentoo Council

[-- Attachment #1: Type: text/plain, Size: 1862 bytes --]

Hello, everyone.

As you may be aware, we were considering replacing the DTD files for
our XML documents with a more modern and more complete format. As part
of considering options for this, I've written XML Schema files [1] that
provide a more correct replacement for the current DTD files and I'd
like you to review it.

XML Schema not only allows us to express our data formats more
correctly than DTD but also gives some degree of value checks.
In particular, it finds a number of existing issues that DTD can't
find.

For example:

  $ xmllint --noout --schema projects.xsd projects.xml
  projects.xml:864: element project: Schemas validity error : Element
  'project': Duplicate key-sequence ['desktop-misc@gentoo.org'] in key
  identity-constraint 'projectKey'. projects.xml fails to validate

which means there are two projects using the same e-mail address
(and therefore being ambiguous for metadata references).

Aside to the usual structure errors, my schemas find:

- duplicate keys (project e-mails, repository names),

- duplicate supposedly-unique values (like duplicate
  <longdescription/>s in the same language),

- some data well-formedness errors (e.g. <pkg/> tags referencing
  things that are not correct qualified package names),

- some random weirdnesses (like using multiple <use/> blocks for
  flags, for no good reason).

I should note that I've based those schemas on existing DTDs, PMS
and some understanding guesswork, so they may be over- or understrict.
If someone can provide better PMS-y package name regexps, I'd
appreciate.

Please test and review. I'm going to reply to this mail with the list
of current metadata.xml validation failures (it's quite long).

[1]:https://github.com/mgorny/gentoo-xml-schema

-- 
Best regards,
Michał Górny
<http://dev.gentoo.org/~mgorny/>

[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 949 bytes --]

^ permalink raw reply	[flat|nested] 16+ messages in thread

* Re: [gentoo-dev] XML Schema files for metadata.xml, projects.xml and repositories.xml, for review and testing
  2016-03-06 11:01 [gentoo-dev] XML Schema files for metadata.xml, projects.xml and repositories.xml, for review and testing Michał Górny
@ 2016-03-06 11:04 ` Michał Górny
  2016-03-06 11:27   ` Sergei Trofimovich
  2016-03-06 12:24   ` Davide Pesavento
  0 siblings, 2 replies; 16+ messages in thread
From: Michał Górny @ 2016-03-06 11:04 UTC (permalink / raw)
  To: gentoo-dev; +Cc: qa, Gentoo Council

[-- Attachment #1: Type: text/plain, Size: 38511 bytes --]

On Sun, 6 Mar 2016 12:01:19 +0100
Michał Górny <mgorny@gentoo.org> wrote:

> Please test and review. I'm going to reply to this mail with the list
> of current metadata.xml validation failures (it's quite long).

And here's the list:

/var/db/repos/gentoo/app-crypt/eid-mw/metadata.xml:26: element pkg: Schemas validity error : Element 'pkg': [facet 'pattern'] The value 'x11-libs/gtk+:*' is not accepted by the pattern '[A-Za-z0-9_][A-Za-z0-9+_.-]*/[A-Za-z0-9_][A-Za-z0-9+_-]*'.
/var/db/repos/gentoo/app-crypt/eid-mw/metadata.xml:26: element pkg: Schemas validity error : Element 'pkg': 'x11-libs/gtk+:*' is not a valid value of the atomic type 'pkgType'.
/var/db/repos/gentoo/app-crypt/eid-mw/metadata.xml:29: element pkg: Schemas validity error : Element 'pkg': [facet 'pattern'] The value 'x11-libs/gtk+:*' is not accepted by the pattern '[A-Za-z0-9_][A-Za-z0-9+_.-]*/[A-Za-z0-9_][A-Za-z0-9+_-]*'.
/var/db/repos/gentoo/app-crypt/eid-mw/metadata.xml:29: element pkg: Schemas validity error : Element 'pkg': 'x11-libs/gtk+:*' is not a valid value of the atomic type 'pkgType'.
/var/db/repos/gentoo/app-crypt/eid-mw/metadata.xml fails to validate

/var/db/repos/gentoo/app-dicts/gwaei/metadata.xml:20: element use: Schemas validity error : Element 'use': Duplicate key-sequence ['C'] in unique identity-constraint 'useUniquityConstraint'.
/var/db/repos/gentoo/app-dicts/gwaei/metadata.xml:25: element use: Schemas validity error : Element 'use': Duplicate key-sequence ['C'] in unique identity-constraint 'useUniquityConstraint'.
/var/db/repos/gentoo/app-dicts/gwaei/metadata.xml fails to validate

/var/db/repos/gentoo/app-emulation/docker/metadata.xml:11: element maintainer: Schemas validity error : Element 'maintainer', attribute 'status': The attribute 'status' is not allowed.
/var/db/repos/gentoo/app-emulation/docker/metadata.xml fails to validate

/var/db/repos/gentoo/app-emulation/lxd/metadata.xml:4: element maintainer: Schemas validity error : Element 'maintainer', attribute 'status': The attribute 'status' is not allowed.
/var/db/repos/gentoo/app-emulation/lxd/metadata.xml fails to validate

/var/db/repos/gentoo/app-misc/emelfm2/metadata.xml:9: element pkg: Schemas validity error : Element 'pkg': [facet 'pattern'] The value 'x11-libs/gtk:3' is not accepted by the pattern '[A-Za-z0-9_][A-Za-z0-9+_.-]*/[A-Za-z0-9_][A-Za-z0-9+_-]*'.
/var/db/repos/gentoo/app-misc/emelfm2/metadata.xml:9: element pkg: Schemas validity error : Element 'pkg': 'x11-libs/gtk:3' is not a valid value of the atomic type 'pkgType'.
/var/db/repos/gentoo/app-misc/emelfm2/metadata.xml:9: element pkg: Schemas validity error : Element 'pkg': [facet 'pattern'] The value 'x11-libs/gtk:2' is not accepted by the pattern '[A-Za-z0-9_][A-Za-z0-9+_.-]*/[A-Za-z0-9_][A-Za-z0-9+_-]*'.
/var/db/repos/gentoo/app-misc/emelfm2/metadata.xml:9: element pkg: Schemas validity error : Element 'pkg': 'x11-libs/gtk:2' is not a valid value of the atomic type 'pkgType'.
/var/db/repos/gentoo/app-misc/emelfm2/metadata.xml:9: element use: Schemas validity error : Element 'use': Duplicate key-sequence ['C'] in unique identity-constraint 'useUniquityConstraint'.
/var/db/repos/gentoo/app-misc/emelfm2/metadata.xml fails to validate

/var/db/repos/gentoo/app-misc/gourmet/metadata.xml:31: element pkg: Schemas validity error : Element 'pkg': [facet 'pattern'] The value '>app-misc/gourmet-0.16' is not accepted by the pattern '[A-Za-z0-9_][A-Za-z0-9+_.-]*/[A-Za-z0-9_][A-Za-z0-9+_-]*'.
/var/db/repos/gentoo/app-misc/gourmet/metadata.xml:31: element pkg: Schemas validity error : Element 'pkg': '>app-misc/gourmet-0.16' is not a valid value of the atomic type 'pkgType'.
/var/db/repos/gentoo/app-misc/gourmet/metadata.xml:34: element pkg: Schemas validity error : Element 'pkg': [facet 'pattern'] The value '>app-misc/gourmet-0.16' is not accepted by the pattern '[A-Za-z0-9_][A-Za-z0-9+_.-]*/[A-Za-z0-9_][A-Za-z0-9+_-]*'.
/var/db/repos/gentoo/app-misc/gourmet/metadata.xml:34: element pkg: Schemas validity error : Element 'pkg': '>app-misc/gourmet-0.16' is not a valid value of the atomic type 'pkgType'.
/var/db/repos/gentoo/app-misc/gourmet/metadata.xml:38: element pkg: Schemas validity error : Element 'pkg': [facet 'pattern'] The value '>app-misc/gourmet-0.16' is not accepted by the pattern '[A-Za-z0-9_][A-Za-z0-9+_.-]*/[A-Za-z0-9_][A-Za-z0-9+_-]*'.
/var/db/repos/gentoo/app-misc/gourmet/metadata.xml:38: element pkg: Schemas validity error : Element 'pkg': '>app-misc/gourmet-0.16' is not a valid value of the atomic type 'pkgType'.
/var/db/repos/gentoo/app-misc/gourmet/metadata.xml:41: element pkg: Schemas validity error : Element 'pkg': [facet 'pattern'] The value '>app-misc/gourmet-0.16' is not accepted by the pattern '[A-Za-z0-9_][A-Za-z0-9+_.-]*/[A-Za-z0-9_][A-Za-z0-9+_-]*'.
/var/db/repos/gentoo/app-misc/gourmet/metadata.xml:41: element pkg: Schemas validity error : Element 'pkg': '>app-misc/gourmet-0.16' is not a valid value of the atomic type 'pkgType'.
/var/db/repos/gentoo/app-misc/gourmet/metadata.xml:44: element pkg: Schemas validity error : Element 'pkg': [facet 'pattern'] The value '>app-misc/gourmet-0.16' is not accepted by the pattern '[A-Za-z0-9_][A-Za-z0-9+_.-]*/[A-Za-z0-9_][A-Za-z0-9+_-]*'.
/var/db/repos/gentoo/app-misc/gourmet/metadata.xml:44: element pkg: Schemas validity error : Element 'pkg': '>app-misc/gourmet-0.16' is not a valid value of the atomic type 'pkgType'.
/var/db/repos/gentoo/app-misc/gourmet/metadata.xml fails to validate

/var/db/repos/gentoo/app-text/cb2bib/metadata.xml:9: element bugs-to: Schemas validity error : Element 'bugs-to': [facet 'pattern'] The value 'webmaster@molspaces.com' is not accepted by the pattern '(mailto:[^@]+@[^.]+\..+|https?://.+)'.
/var/db/repos/gentoo/app-text/cb2bib/metadata.xml:9: element bugs-to: Schemas validity error : Element 'bugs-to': 'webmaster@molspaces.com' is not a valid value of the atomic type 'urlType'.
/var/db/repos/gentoo/app-text/cb2bib/metadata.xml fails to validate

/var/db/repos/gentoo/dev-db/mariadb/metadata.xml:4: element maintainer: Schemas validity error : Element 'maintainer', attribute 'restrict': [facet 'pattern'] The value 'dev-db/mariadb[libressl]' is not accepted by the pattern '([<>]=?|[=~])[A-Za-z0-9_][A-Za-z0-9+_.-]*/[A-Za-z0-9_][A-Za-z0-9+_-]*-[0-9]+(\.[0-9]+)*[a-z]?((_alpha|_beta|_pre|_rc|_p)[0-9]*)*(-r[0-9]+)?\*?'.
/var/db/repos/gentoo/dev-db/mariadb/metadata.xml:4: element maintainer: Schemas validity error : Element 'maintainer', attribute 'restrict': 'dev-db/mariadb[libressl]' is not a valid value of the atomic type 'restrictAttrType'.
/var/db/repos/gentoo/dev-db/mariadb/metadata.xml fails to validate

/var/db/repos/gentoo/dev-db/mariadb-galera/metadata.xml:4: element maintainer: Schemas validity error : Element 'maintainer', attribute 'restrict': [facet 'pattern'] The value 'dev-db/mariadb-galera[libressl]' is not accepted by the pattern '([<>]=?|[=~])[A-Za-z0-9_][A-Za-z0-9+_.-]*/[A-Za-z0-9_][A-Za-z0-9+_-]*-[0-9]+(\.[0-9]+)*[a-z]?((_alpha|_beta|_pre|_rc|_p)[0-9]*)*(-r[0-9]+)?\*?'.
/var/db/repos/gentoo/dev-db/mariadb-galera/metadata.xml:4: element maintainer: Schemas validity error : Element 'maintainer', attribute 'restrict': 'dev-db/mariadb-galera[libressl]' is not a valid value of the atomic type 'restrictAttrType'.
/var/db/repos/gentoo/dev-db/mariadb-galera/metadata.xml fails to validate

/var/db/repos/gentoo/dev-db/mysql/metadata.xml:4: element maintainer: Schemas validity error : Element 'maintainer', attribute 'restrict': [facet 'pattern'] The value 'dev-db/mysql[libressl]' is not accepted by the pattern '([<>]=?|[=~])[A-Za-z0-9_][A-Za-z0-9+_.-]*/[A-Za-z0-9_][A-Za-z0-9+_-]*-[0-9]+(\.[0-9]+)*[a-z]?((_alpha|_beta|_pre|_rc|_p)[0-9]*)*(-r[0-9]+)?\*?'.
/var/db/repos/gentoo/dev-db/mysql/metadata.xml:4: element maintainer: Schemas validity error : Element 'maintainer', attribute 'restrict': 'dev-db/mysql[libressl]' is not a valid value of the atomic type 'restrictAttrType'.
/var/db/repos/gentoo/dev-db/mysql/metadata.xml fails to validate

/var/db/repos/gentoo/dev-db/mysql-cluster/metadata.xml:4: element maintainer: Schemas validity error : Element 'maintainer', attribute 'restrict': [facet 'pattern'] The value 'dev-db/mysql[libressl]' is not accepted by the pattern '([<>]=?|[=~])[A-Za-z0-9_][A-Za-z0-9+_.-]*/[A-Za-z0-9_][A-Za-z0-9+_-]*-[0-9]+(\.[0-9]+)*[a-z]?((_alpha|_beta|_pre|_rc|_p)[0-9]*)*(-r[0-9]+)?\*?'.
/var/db/repos/gentoo/dev-db/mysql-cluster/metadata.xml:4: element maintainer: Schemas validity error : Element 'maintainer', attribute 'restrict': 'dev-db/mysql[libressl]' is not a valid value of the atomic type 'restrictAttrType'.
/var/db/repos/gentoo/dev-db/mysql-cluster/metadata.xml fails to validate

/var/db/repos/gentoo/dev-db/percona-server/metadata.xml:4: element maintainer: Schemas validity error : Element 'maintainer', attribute 'restrict': [facet 'pattern'] The value 'dev-db/percona-server[libressl]' is not accepted by the pattern '([<>]=?|[=~])[A-Za-z0-9_][A-Za-z0-9+_.-]*/[A-Za-z0-9_][A-Za-z0-9+_-]*-[0-9]+(\.[0-9]+)*[a-z]?((_alpha|_beta|_pre|_rc|_p)[0-9]*)*(-r[0-9]+)?\*?'.
/var/db/repos/gentoo/dev-db/percona-server/metadata.xml:4: element maintainer: Schemas validity error : Element 'maintainer', attribute 'restrict': 'dev-db/percona-server[libressl]' is not a valid value of the atomic type 'restrictAttrType'.
/var/db/repos/gentoo/dev-db/percona-server/metadata.xml fails to validate

/var/db/repos/gentoo/dev-haskell/cgi/metadata.xml:15: element use: Schemas validity error : Element 'use': Duplicate key-sequence ['C'] in unique identity-constraint 'useUniquityConstraint'.
/var/db/repos/gentoo/dev-haskell/cgi/metadata.xml fails to validate

/var/db/repos/gentoo/dev-haskell/hslua/metadata.xml:18: element use: Schemas validity error : Element 'use': Duplicate key-sequence ['C'] in unique identity-constraint 'useUniquityConstraint'.
/var/db/repos/gentoo/dev-haskell/hslua/metadata.xml fails to validate

/var/db/repos/gentoo/dev-haskell/uuagc/metadata.xml:14: element use: Schemas validity error : Element 'use': Duplicate key-sequence ['C'] in unique identity-constraint 'useUniquityConstraint'.
/var/db/repos/gentoo/dev-haskell/uuagc/metadata.xml fails to validate

/var/db/repos/gentoo/dev-libs/libgcrypt/metadata.xml:4: element maintainer: Schemas validity error : Element 'maintainer', attribute 'restrict': [facet 'pattern'] The value 'dev-libs/libgcrypt:11' is not accepted by the pattern '([<>]=?|[=~])[A-Za-z0-9_][A-Za-z0-9+_.-]*/[A-Za-z0-9_][A-Za-z0-9+_-]*-[0-9]+(\.[0-9]+)*[a-z]?((_alpha|_beta|_pre|_rc|_p)[0-9]*)*(-r[0-9]+)?\*?'.
/var/db/repos/gentoo/dev-libs/libgcrypt/metadata.xml:4: element maintainer: Schemas validity error : Element 'maintainer', attribute 'restrict': 'dev-libs/libgcrypt:11' is not a valid value of the atomic type 'restrictAttrType'.
/var/db/repos/gentoo/dev-libs/libgcrypt/metadata.xml fails to validate

/var/db/repos/gentoo/dev-libs/libmaa/metadata.xml:6: element pkg: Schemas validity error : Element 'pkg': [facet 'pattern'] The value 'libmaa' is not accepted by the pattern '[A-Za-z0-9_][A-Za-z0-9+_.-]*/[A-Za-z0-9_][A-Za-z0-9+_-]*'.
/var/db/repos/gentoo/dev-libs/libmaa/metadata.xml:6: element pkg: Schemas validity error : Element 'pkg': 'libmaa' is not a valid value of the atomic type 'pkgType'.
/var/db/repos/gentoo/dev-libs/libmaa/metadata.xml:8: element pkg: Schemas validity error : Element 'pkg': [facet 'pattern'] The value 'libmaa' is not accepted by the pattern '[A-Za-z0-9_][A-Za-z0-9+_.-]*/[A-Za-z0-9_][A-Za-z0-9+_-]*'.
/var/db/repos/gentoo/dev-libs/libmaa/metadata.xml:8: element pkg: Schemas validity error : Element 'pkg': 'libmaa' is not a valid value of the atomic type 'pkgType'.
/var/db/repos/gentoo/dev-libs/libmaa/metadata.xml fails to validate

/var/db/repos/gentoo/dev-lua/metadata.xml:36: element longdescription: Schemas validity error : Element 'longdescription': Duplicate key-sequence ['pl'] in unique identity-constraint 'catLongDescUniquityConstraint'.
/var/db/repos/gentoo/dev-lua/metadata.xml fails to validate

/var/db/repos/gentoo/dev-python/markdown2/metadata.xml:14: element email: Schemas validity error : Element 'email': [facet 'pattern'] The value '' is not accepted by the pattern '[^@]+@[^.]+\..+'.
/var/db/repos/gentoo/dev-python/markdown2/metadata.xml:14: element email: Schemas validity error : Element 'email': '' is not a valid value of the atomic type 'emailType'.
/var/db/repos/gentoo/dev-python/markdown2/metadata.xml fails to validate

/var/db/repos/gentoo/dev-python/matplotlib/metadata.xml:16: element pkg: Schemas validity error : Element 'pkg': [facet 'pattern'] The value 'x11-libs/gtk+:2' is not accepted by the pattern '[A-Za-z0-9_][A-Za-z0-9+_.-]*/[A-Za-z0-9_][A-Za-z0-9+_-]*'.
/var/db/repos/gentoo/dev-python/matplotlib/metadata.xml:16: element pkg: Schemas validity error : Element 'pkg': 'x11-libs/gtk+:2' is not a valid value of the atomic type 'pkgType'.
/var/db/repos/gentoo/dev-python/matplotlib/metadata.xml:17: element pkg: Schemas validity error : Element 'pkg': [facet 'pattern'] The value 'x11-libs/gtk+:3' is not accepted by the pattern '[A-Za-z0-9_][A-Za-z0-9+_.-]*/[A-Za-z0-9_][A-Za-z0-9+_-]*'.
/var/db/repos/gentoo/dev-python/matplotlib/metadata.xml:17: element pkg: Schemas validity error : Element 'pkg': 'x11-libs/gtk+:3' is not a valid value of the atomic type 'pkgType'.
/var/db/repos/gentoo/dev-python/matplotlib/metadata.xml fails to validate

/var/db/repos/gentoo/dev-python/metadata.xml:39: element longdescription: Schemas validity error : Element 'longdescription': Duplicate key-sequence ['pl'] in unique identity-constraint 'catLongDescUniquityConstraint'.
/var/db/repos/gentoo/dev-python/metadata.xml fails to validate

/var/db/repos/gentoo/dev-qt/qtmultimedia/metadata.xml:12: element pkg: Schemas validity error : Element 'pkg': [facet 'pattern'] The value 'media-libs/gstreamer:1.0' is not accepted by the pattern '[A-Za-z0-9_][A-Za-z0-9+_.-]*/[A-Za-z0-9_][A-Za-z0-9+_-]*'.
/var/db/repos/gentoo/dev-qt/qtmultimedia/metadata.xml:12: element pkg: Schemas validity error : Element 'pkg': 'media-libs/gstreamer:1.0' is not a valid value of the atomic type 'pkgType'.
/var/db/repos/gentoo/dev-qt/qtmultimedia/metadata.xml:13: element pkg: Schemas validity error : Element 'pkg': [facet 'pattern'] The value 'media-libs/gstreamer:0.10' is not accepted by the pattern '[A-Za-z0-9_][A-Za-z0-9+_.-]*/[A-Za-z0-9_][A-Za-z0-9+_-]*'.
/var/db/repos/gentoo/dev-qt/qtmultimedia/metadata.xml:13: element pkg: Schemas validity error : Element 'pkg': 'media-libs/gstreamer:0.10' is not a valid value of the atomic type 'pkgType'.
/var/db/repos/gentoo/dev-qt/qtmultimedia/metadata.xml fails to validate

/var/db/repos/gentoo/dev-qt/qtwebkit/metadata.xml:12: element pkg: Schemas validity error : Element 'pkg': [facet 'pattern'] The value 'media-libs/gstreamer:1.0' is not accepted by the pattern '[A-Za-z0-9_][A-Za-z0-9+_.-]*/[A-Za-z0-9_][A-Za-z0-9+_-]*'.
/var/db/repos/gentoo/dev-qt/qtwebkit/metadata.xml:12: element pkg: Schemas validity error : Element 'pkg': 'media-libs/gstreamer:1.0' is not a valid value of the atomic type 'pkgType'.
/var/db/repos/gentoo/dev-qt/qtwebkit/metadata.xml:13: element pkg: Schemas validity error : Element 'pkg': [facet 'pattern'] The value 'media-libs/gstreamer:0.10' is not accepted by the pattern '[A-Za-z0-9_][A-Za-z0-9+_.-]*/[A-Za-z0-9_][A-Za-z0-9+_-]*'.
/var/db/repos/gentoo/dev-qt/qtwebkit/metadata.xml:13: element pkg: Schemas validity error : Element 'pkg': 'media-libs/gstreamer:0.10' is not a valid value of the atomic type 'pkgType'.
/var/db/repos/gentoo/dev-qt/qtwebkit/metadata.xml fails to validate

/var/db/repos/gentoo/kde-base/kdeplasma-addons/metadata.xml:17: element pkg: Schemas validity error : Element 'pkg': [facet 'pattern'] The value 'x11-libs/qwt:5' is not accepted by the pattern '[A-Za-z0-9_][A-Za-z0-9+_.-]*/[A-Za-z0-9_][A-Za-z0-9+_-]*'.
/var/db/repos/gentoo/kde-base/kdeplasma-addons/metadata.xml:17: element pkg: Schemas validity error : Element 'pkg': 'x11-libs/qwt:5' is not a valid value of the atomic type 'pkgType'.
/var/db/repos/gentoo/kde-base/kdeplasma-addons/metadata.xml fails to validate

/var/db/repos/gentoo/mail-filter/MailScanner/metadata.xml:9: element pkg: Schemas validity error : Element 'pkg': [facet 'pattern'] The value 'mail-mta' is not accepted by the pattern '[A-Za-z0-9_][A-Za-z0-9+_.-]*/[A-Za-z0-9_][A-Za-z0-9+_-]*'.
/var/db/repos/gentoo/mail-filter/MailScanner/metadata.xml:9: element pkg: Schemas validity error : Element 'pkg': 'mail-mta' is not a valid value of the atomic type 'pkgType'.
/var/db/repos/gentoo/mail-filter/MailScanner/metadata.xml fails to validate

/var/db/repos/gentoo/mail-filter/zdkimfilter/metadata.xml:16: element use: Schemas validity error : Element 'use': Duplicate key-sequence ['C'] in unique identity-constraint 'useUniquityConstraint'.
/var/db/repos/gentoo/mail-filter/zdkimfilter/metadata.xml fails to validate

/var/db/repos/gentoo/media-gfx/freewrl/metadata.xml:15: element pkg: Schemas validity error : Element 'pkg': [facet 'pattern'] The value '=media-gfx/freewrl-1.22*' is not accepted by the pattern '[A-Za-z0-9_][A-Za-z0-9+_.-]*/[A-Za-z0-9_][A-Za-z0-9+_-]*'.
/var/db/repos/gentoo/media-gfx/freewrl/metadata.xml:15: element pkg: Schemas validity error : Element 'pkg': '=media-gfx/freewrl-1.22*' is not a valid value of the atomic type 'pkgType'.
/var/db/repos/gentoo/media-gfx/freewrl/metadata.xml:15: element pkg: Schemas validity error : Element 'pkg': [facet 'pattern'] The value '>=media-gfx/freewrl-2' is not accepted by the pattern '[A-Za-z0-9_][A-Za-z0-9+_.-]*/[A-Za-z0-9_][A-Za-z0-9+_-]*'.
/var/db/repos/gentoo/media-gfx/freewrl/metadata.xml:15: element pkg: Schemas validity error : Element 'pkg': '>=media-gfx/freewrl-2' is not a valid value of the atomic type 'pkgType'.
/var/db/repos/gentoo/media-gfx/freewrl/metadata.xml fails to validate

/var/db/repos/gentoo/media-gfx/geeqie/metadata.xml:10: element pkg: Schemas validity error : Element 'pkg': [facet 'pattern'] The value 'x11-libs/gtk+:3' is not accepted by the pattern '[A-Za-z0-9_][A-Za-z0-9+_.-]*/[A-Za-z0-9_][A-Za-z0-9+_-]*'.
/var/db/repos/gentoo/media-gfx/geeqie/metadata.xml:10: element pkg: Schemas validity error : Element 'pkg': 'x11-libs/gtk+:3' is not a valid value of the atomic type 'pkgType'.
/var/db/repos/gentoo/media-gfx/geeqie/metadata.xml:10: element pkg: Schemas validity error : Element 'pkg': [facet 'pattern'] The value 'x11-libs/gtk+:2' is not accepted by the pattern '[A-Za-z0-9_][A-Za-z0-9+_.-]*/[A-Za-z0-9_][A-Za-z0-9+_-]*'.
/var/db/repos/gentoo/media-gfx/geeqie/metadata.xml:10: element pkg: Schemas validity error : Element 'pkg': 'x11-libs/gtk+:2' is not a valid value of the atomic type 'pkgType'.
/var/db/repos/gentoo/media-gfx/geeqie/metadata.xml fails to validate

/var/db/repos/gentoo/media-libs/lvtk/metadata.xml:9: element pkg: Schemas validity error : Element 'pkg': [facet 'pattern'] The value 'x11-libs/gtk+:2' is not accepted by the pattern '[A-Za-z0-9_][A-Za-z0-9+_.-]*/[A-Za-z0-9_][A-Za-z0-9+_-]*'.
/var/db/repos/gentoo/media-libs/lvtk/metadata.xml:9: element pkg: Schemas validity error : Element 'pkg': 'x11-libs/gtk+:2' is not a valid value of the atomic type 'pkgType'.
/var/db/repos/gentoo/media-libs/lvtk/metadata.xml fails to validate

/var/db/repos/gentoo/media-plugins/hexter/metadata.xml:9: element pkg: Schemas validity error : Element 'pkg': [facet 'pattern'] The value 'x11-libs/gtk+:2' is not accepted by the pattern '[A-Za-z0-9_][A-Za-z0-9+_.-]*/[A-Za-z0-9_][A-Za-z0-9+_-]*'.
/var/db/repos/gentoo/media-plugins/hexter/metadata.xml:9: element pkg: Schemas validity error : Element 'pkg': 'x11-libs/gtk+:2' is not a valid value of the atomic type 'pkgType'.
/var/db/repos/gentoo/media-plugins/hexter/metadata.xml fails to validate

/var/db/repos/gentoo/media-video/libav/metadata.xml:33: element pkg: Schemas validity error : Element 'pkg': [facet 'pattern'] The value 'libvpx.' is not accepted by the pattern '[A-Za-z0-9_][A-Za-z0-9+_.-]*/[A-Za-z0-9_][A-Za-z0-9+_-]*'.
/var/db/repos/gentoo/media-video/libav/metadata.xml:33: element pkg: Schemas validity error : Element 'pkg': 'libvpx.' is not a valid value of the atomic type 'pkgType'.
/var/db/repos/gentoo/media-video/libav/metadata.xml fails to validate

/var/db/repos/gentoo/net-analyzer/pinger/metadata.xml:9: element pkg: Schemas validity error : Element 'pkg': [facet 'pattern'] The value 'x11-libs/gtk:2' is not accepted by the pattern '[A-Za-z0-9_][A-Za-z0-9+_.-]*/[A-Za-z0-9_][A-Za-z0-9+_-]*'.
/var/db/repos/gentoo/net-analyzer/pinger/metadata.xml:9: element pkg: Schemas validity error : Element 'pkg': 'x11-libs/gtk:2' is not a valid value of the atomic type 'pkgType'.
/var/db/repos/gentoo/net-analyzer/pinger/metadata.xml:10: element pkg: Schemas validity error : Element 'pkg': [facet 'pattern'] The value 'x11-libs/gtk:3' is not accepted by the pattern '[A-Za-z0-9_][A-Za-z0-9+_.-]*/[A-Za-z0-9_][A-Za-z0-9+_-]*'.
/var/db/repos/gentoo/net-analyzer/pinger/metadata.xml:10: element pkg: Schemas validity error : Element 'pkg': 'x11-libs/gtk:3' is not a valid value of the atomic type 'pkgType'.
/var/db/repos/gentoo/net-analyzer/pinger/metadata.xml fails to validate

/var/db/repos/gentoo/net-firewall/shorewall/metadata.xml:36: element pkg: Schemas validity error : Element 'pkg': [facet 'pattern'] The value 'net-firewall/shorewall[ipv4]' is not accepted by the pattern '[A-Za-z0-9_][A-Za-z0-9+_.-]*/[A-Za-z0-9_][A-Za-z0-9+_-]*'.
/var/db/repos/gentoo/net-firewall/shorewall/metadata.xml:36: element pkg: Schemas validity error : Element 'pkg': 'net-firewall/shorewall[ipv4]' is not a valid value of the atomic type 'pkgType'.
/var/db/repos/gentoo/net-firewall/shorewall/metadata.xml:37: element pkg: Schemas validity error : Element 'pkg': [facet 'pattern'] The value 'net-firewall/shorewall[ipv4]' is not accepted by the pattern '[A-Za-z0-9_][A-Za-z0-9+_.-]*/[A-Za-z0-9_][A-Za-z0-9+_-]*'.
/var/db/repos/gentoo/net-firewall/shorewall/metadata.xml:37: element pkg: Schemas validity error : Element 'pkg': 'net-firewall/shorewall[ipv4]' is not a valid value of the atomic type 'pkgType'.
/var/db/repos/gentoo/net-firewall/shorewall/metadata.xml:38: element pkg: Schemas validity error : Element 'pkg': [facet 'pattern'] The value 'net-firewall/shorewall[ipv6]' is not accepted by the pattern '[A-Za-z0-9_][A-Za-z0-9+_.-]*/[A-Za-z0-9_][A-Za-z0-9+_-]*'.
/var/db/repos/gentoo/net-firewall/shorewall/metadata.xml:38: element pkg: Schemas validity error : Element 'pkg': 'net-firewall/shorewall[ipv6]' is not a valid value of the atomic type 'pkgType'.
/var/db/repos/gentoo/net-firewall/shorewall/metadata.xml fails to validate

/var/db/repos/gentoo/net-firewall/ufw-frontends/metadata.xml:22: element use: Schemas validity error : Element 'use': Duplicate key-sequence ['C'] in unique identity-constraint 'useUniquityConstraint'.
/var/db/repos/gentoo/net-firewall/ufw-frontends/metadata.xml fails to validate

/var/db/repos/gentoo/net-im/qutim/metadata.xml:37: element pkg: Schemas validity error : Element 'pkg': [facet 'pattern'] The value 'net-im/telepathy-*' is not accepted by the pattern '[A-Za-z0-9_][A-Za-z0-9+_.-]*/[A-Za-z0-9_][A-Za-z0-9+_-]*'.
/var/db/repos/gentoo/net-im/qutim/metadata.xml:37: element pkg: Schemas validity error : Element 'pkg': 'net-im/telepathy-*' is not a valid value of the atomic type 'pkgType'.
/var/db/repos/gentoo/net-im/qutim/metadata.xml fails to validate

/var/db/repos/gentoo/net-irc/quassel/metadata.xml:41: element pkg: Schemas validity error : Element 'pkg': [facet 'pattern'] The value 'app-crypt/qca:2' is not accepted by the pattern '[A-Za-z0-9_][A-Za-z0-9+_.-]*/[A-Za-z0-9_][A-Za-z0-9+_-]*'.
/var/db/repos/gentoo/net-irc/quassel/metadata.xml:41: element pkg: Schemas validity error : Element 'pkg': 'app-crypt/qca:2' is not a valid value of the atomic type 'pkgType'.
/var/db/repos/gentoo/net-irc/quassel/metadata.xml fails to validate

/var/db/repos/gentoo/net-misc/openssh/metadata.xml:8: element maintainer: Schemas validity error : Element 'maintainer', attribute 'restrict': [facet 'pattern'] The value 'net-misc/openssh[ldap]' is not accepted by the pattern '([<>]=?|[=~])[A-Za-z0-9_][A-Za-z0-9+_.-]*/[A-Za-z0-9_][A-Za-z0-9+_-]*-[0-9]+(\.[0-9]+)*[a-z]?((_alpha|_beta|_pre|_rc|_p)[0-9]*)*(-r[0-9]+)?\*?'.
/var/db/repos/gentoo/net-misc/openssh/metadata.xml:8: element maintainer: Schemas validity error : Element 'maintainer', attribute 'restrict': 'net-misc/openssh[ldap]' is not a valid value of the atomic type 'restrictAttrType'.
/var/db/repos/gentoo/net-misc/openssh/metadata.xml fails to validate

/var/db/repos/gentoo/net-misc/putty/metadata.xml:16: element pkg: Schemas validity error : Element 'pkg': [facet 'pattern'] The value 'x11-libs/gtk+:2' is not accepted by the pattern '[A-Za-z0-9_][A-Za-z0-9+_.-]*/[A-Za-z0-9_][A-Za-z0-9+_-]*'.
/var/db/repos/gentoo/net-misc/putty/metadata.xml:16: element pkg: Schemas validity error : Element 'pkg': 'x11-libs/gtk+:2' is not a valid value of the atomic type 'pkgType'.
/var/db/repos/gentoo/net-misc/putty/metadata.xml fails to validate

/var/db/repos/gentoo/net-misc/spice-gtk/metadata.xml:15: element pkg: Schemas validity error : Element 'pkg': [facet 'pattern'] The value 'x11-libs/gtk+:3' is not accepted by the pattern '[A-Za-z0-9_][A-Za-z0-9+_.-]*/[A-Za-z0-9_][A-Za-z0-9+_-]*'.
/var/db/repos/gentoo/net-misc/spice-gtk/metadata.xml:15: element pkg: Schemas validity error : Element 'pkg': 'x11-libs/gtk+:3' is not a valid value of the atomic type 'pkgType'.
/var/db/repos/gentoo/net-misc/spice-gtk/metadata.xml:16: element pkg: Schemas validity error : Element 'pkg': [facet 'pattern'] The value 'x11-libs/gtk+:2' is not accepted by the pattern '[A-Za-z0-9_][A-Za-z0-9+_.-]*/[A-Za-z0-9_][A-Za-z0-9+_-]*'.
/var/db/repos/gentoo/net-misc/spice-gtk/metadata.xml:16: element pkg: Schemas validity error : Element 'pkg': 'x11-libs/gtk+:2' is not a valid value of the atomic type 'pkgType'.
/var/db/repos/gentoo/net-misc/spice-gtk/metadata.xml fails to validate

/var/db/repos/gentoo/net-print/hplip/metadata.xml:19: element pkg: Schemas validity error : Element 'pkg': [facet 'pattern'] The value 'virtual/libusb:0' is not accepted by the pattern '[A-Za-z0-9_][A-Za-z0-9+_.-]*/[A-Za-z0-9_][A-Za-z0-9+_-]*'.
/var/db/repos/gentoo/net-print/hplip/metadata.xml:19: element pkg: Schemas validity error : Element 'pkg': 'virtual/libusb:0' is not a valid value of the atomic type 'pkgType'.
/var/db/repos/gentoo/net-print/hplip/metadata.xml:19: element pkg: Schemas validity error : Element 'pkg': [facet 'pattern'] The value 'virtual/libusb:1' is not accepted by the pattern '[A-Za-z0-9_][A-Za-z0-9+_.-]*/[A-Za-z0-9_][A-Za-z0-9+_-]*'.
/var/db/repos/gentoo/net-print/hplip/metadata.xml:19: element pkg: Schemas validity error : Element 'pkg': 'virtual/libusb:1' is not a valid value of the atomic type 'pkgType'.
/var/db/repos/gentoo/net-print/hplip/metadata.xml fails to validate

/var/db/repos/gentoo/sci-electronics/magic/metadata.xml:26: element bugs-to: Schemas validity error : Element 'bugs-to': [facet 'pattern'] The value 'tim@opencircuitdesign.com' is not accepted by the pattern '(mailto:[^@]+@[^.]+\..+|https?://.+)'.
/var/db/repos/gentoo/sci-electronics/magic/metadata.xml:26: element bugs-to: Schemas validity error : Element 'bugs-to': 'tim@opencircuitdesign.com' is not a valid value of the atomic type 'urlType'.
/var/db/repos/gentoo/sci-electronics/magic/metadata.xml fails to validate

/var/db/repos/gentoo/sci-electronics/netgen/metadata.xml:19: element bugs-to: Schemas validity error : Element 'bugs-to': [facet 'pattern'] The value 'tim@opencircuitdesign.com' is not accepted by the pattern '(mailto:[^@]+@[^.]+\..+|https?://.+)'.
/var/db/repos/gentoo/sci-electronics/netgen/metadata.xml:19: element bugs-to: Schemas validity error : Element 'bugs-to': 'tim@opencircuitdesign.com' is not a valid value of the atomic type 'urlType'.
/var/db/repos/gentoo/sci-electronics/netgen/metadata.xml fails to validate

/var/db/repos/gentoo/sci-electronics/xcircuit/metadata.xml:25: element bugs-to: Schemas validity error : Element 'bugs-to': [facet 'pattern'] The value 'tim@opencircuitdesign.com' is not accepted by the pattern '(mailto:[^@]+@[^.]+\..+|https?://.+)'.
/var/db/repos/gentoo/sci-electronics/xcircuit/metadata.xml:25: element bugs-to: Schemas validity error : Element 'bugs-to': 'tim@opencircuitdesign.com' is not a valid value of the atomic type 'urlType'.
/var/db/repos/gentoo/sci-electronics/xcircuit/metadata.xml fails to validate

/var/db/repos/gentoo/sci-libs/lemon/metadata.xml:20: element pkg: Schemas validity error : Element 'pkg': [facet 'pattern'] The value 'coinor-clp' is not accepted by the pattern '[A-Za-z0-9_][A-Za-z0-9+_.-]*/[A-Za-z0-9_][A-Za-z0-9+_-]*'.
/var/db/repos/gentoo/sci-libs/lemon/metadata.xml:20: element pkg: Schemas validity error : Element 'pkg': 'coinor-clp' is not a valid value of the atomic type 'pkgType'.
/var/db/repos/gentoo/sci-libs/lemon/metadata.xml:21: element pkg: Schemas validity error : Element 'pkg': [facet 'pattern'] The value 'coinor-cbc' is not accepted by the pattern '[A-Za-z0-9_][A-Za-z0-9+_.-]*/[A-Za-z0-9_][A-Za-z0-9+_-]*'.
/var/db/repos/gentoo/sci-libs/lemon/metadata.xml:21: element pkg: Schemas validity error : Element 'pkg': 'coinor-cbc' is not a valid value of the atomic type 'pkgType'.
/var/db/repos/gentoo/sci-libs/lemon/metadata.xml:25: element pkg: Schemas validity error : Element 'pkg': [facet 'pattern'] The value 'coinor-clp' is not accepted by the pattern '[A-Za-z0-9_][A-Za-z0-9+_.-]*/[A-Za-z0-9_][A-Za-z0-9+_-]*'.
/var/db/repos/gentoo/sci-libs/lemon/metadata.xml:25: element pkg: Schemas validity error : Element 'pkg': 'coinor-clp' is not a valid value of the atomic type 'pkgType'.
/var/db/repos/gentoo/sci-libs/lemon/metadata.xml:26: element pkg: Schemas validity error : Element 'pkg': [facet 'pattern'] The value 'coinor-cbc' is not accepted by the pattern '[A-Za-z0-9_][A-Za-z0-9+_.-]*/[A-Za-z0-9_][A-Za-z0-9+_-]*'.
/var/db/repos/gentoo/sci-libs/lemon/metadata.xml:26: element pkg: Schemas validity error : Element 'pkg': 'coinor-cbc' is not a valid value of the atomic type 'pkgType'.
/var/db/repos/gentoo/sci-libs/lemon/metadata.xml fails to validate

/var/db/repos/gentoo/sci-visualization/gwyddion/metadata.xml:20: element use: Schemas validity error : Element 'use': Duplicate key-sequence ['C'] in unique identity-constraint 'useUniquityConstraint'.
/var/db/repos/gentoo/sci-visualization/gwyddion/metadata.xml fails to validate

/var/db/repos/gentoo/sys-auth/pambase/metadata.xml:56: element pkg: Schemas validity error : Element 'pkg': [facet 'pattern'] The value '>=sys-libs/pam-1.0.1' is not accepted by the pattern '[A-Za-z0-9_][A-Za-z0-9+_.-]*/[A-Za-z0-9_][A-Za-z0-9+_-]*'.
/var/db/repos/gentoo/sys-auth/pambase/metadata.xml:56: element pkg: Schemas validity error : Element 'pkg': '>=sys-libs/pam-1.0.1' is not a valid value of the atomic type 'pkgType'.
/var/db/repos/gentoo/sys-auth/pambase/metadata.xml:57: element pkg: Schemas validity error : Element 'pkg': [facet 'pattern'] The value '>=sys-libs/glibc-2.7' is not accepted by the pattern '[A-Za-z0-9_][A-Za-z0-9+_.-]*/[A-Za-z0-9_][A-Za-z0-9+_-]*'.
/var/db/repos/gentoo/sys-auth/pambase/metadata.xml:57: element pkg: Schemas validity error : Element 'pkg': '>=sys-libs/glibc-2.7' is not a valid value of the atomic type 'pkgType'.
/var/db/repos/gentoo/sys-auth/pambase/metadata.xml fails to validate

/var/db/repos/gentoo/sys-block/gparted/metadata.xml:30: element pkg: Schemas validity error : Element 'pkg': [facet 'pattern'] The value 'sys-fs/ntfs3g[ntfsprogs]' is not accepted by the pattern '[A-Za-z0-9_][A-Za-z0-9+_.-]*/[A-Za-z0-9_][A-Za-z0-9+_-]*'.
/var/db/repos/gentoo/sys-block/gparted/metadata.xml:30: element pkg: Schemas validity error : Element 'pkg': 'sys-fs/ntfs3g[ntfsprogs]' is not a valid value of the atomic type 'pkgType'.
/var/db/repos/gentoo/sys-block/gparted/metadata.xml fails to validate

/var/db/repos/gentoo/sys-boot/grub/metadata.xml:26: element pkg: Schemas validity error : Element 'pkg': [facet 'pattern'] The value 'sys-boot/grub:0' is not accepted by the pattern '[A-Za-z0-9_][A-Za-z0-9+_.-]*/[A-Za-z0-9_][A-Za-z0-9+_-]*'.
/var/db/repos/gentoo/sys-boot/grub/metadata.xml:26: element pkg: Schemas validity error : Element 'pkg': 'sys-boot/grub:0' is not a valid value of the atomic type 'pkgType'.
/var/db/repos/gentoo/sys-boot/grub/metadata.xml:27: element pkg: Schemas validity error : Element 'pkg': [facet 'pattern'] The value 'sys-boot/grub:2' is not accepted by the pattern '[A-Za-z0-9_][A-Za-z0-9+_.-]*/[A-Za-z0-9_][A-Za-z0-9+_-]*'.
/var/db/repos/gentoo/sys-boot/grub/metadata.xml:27: element pkg: Schemas validity error : Element 'pkg': 'sys-boot/grub:2' is not a valid value of the atomic type 'pkgType'.
/var/db/repos/gentoo/sys-boot/grub/metadata.xml fails to validate

/var/db/repos/gentoo/sys-cluster/glusterfs/metadata.xml:23: element pkg: Schemas validity error : Element 'pkg': [facet 'pattern'] The value 'dev-db/sqlite:3' is not accepted by the pattern '[A-Za-z0-9_][A-Za-z0-9+_.-]*/[A-Za-z0-9_][A-Za-z0-9+_-]*'.
/var/db/repos/gentoo/sys-cluster/glusterfs/metadata.xml:23: element pkg: Schemas validity error : Element 'pkg': 'dev-db/sqlite:3' is not a valid value of the atomic type 'pkgType'.
/var/db/repos/gentoo/sys-cluster/glusterfs/metadata.xml fails to validate

/var/db/repos/gentoo/sys-fs/cloudfuse/metadata.xml:4: element maintainer: Schemas validity error : Element 'maintainer', attribute 'status': The attribute 'status' is not allowed.
/var/db/repos/gentoo/sys-fs/cloudfuse/metadata.xml fails to validate

/var/db/repos/gentoo/sys-fs/lxcfs/metadata.xml:4: element maintainer: Schemas validity error : Element 'maintainer', attribute 'status': The attribute 'status' is not allowed.
/var/db/repos/gentoo/sys-fs/lxcfs/metadata.xml fails to validate

/var/db/repos/gentoo/www-apache/metadata.xml:25: element longdescription: Schemas validity error : Element 'longdescription': Duplicate key-sequence ['sk'] in unique identity-constraint 'catLongDescUniquityConstraint'.
/var/db/repos/gentoo/www-apache/metadata.xml fails to validate

/var/db/repos/gentoo/www-client/dwb/metadata.xml:6: element pkg: Schemas validity error : Element 'pkg': [facet 'pattern'] The value 'x11-libs/gtk+:3' is not accepted by the pattern '[A-Za-z0-9_][A-Za-z0-9+_.-]*/[A-Za-z0-9_][A-Za-z0-9+_-]*'.
/var/db/repos/gentoo/www-client/dwb/metadata.xml:6: element pkg: Schemas validity error : Element 'pkg': 'x11-libs/gtk+:3' is not a valid value of the atomic type 'pkgType'.
/var/db/repos/gentoo/www-client/dwb/metadata.xml:7: element pkg: Schemas validity error : Element 'pkg': [facet 'pattern'] The value 'x11-libs/gtk+:2' is not accepted by the pattern '[A-Za-z0-9_][A-Za-z0-9+_.-]*/[A-Za-z0-9_][A-Za-z0-9+_-]*'.
/var/db/repos/gentoo/www-client/dwb/metadata.xml:7: element pkg: Schemas validity error : Element 'pkg': 'x11-libs/gtk+:2' is not a valid value of the atomic type 'pkgType'.
/var/db/repos/gentoo/www-client/dwb/metadata.xml fails to validate

/var/db/repos/gentoo/www-client/vimb/metadata.xml:9: element pkg: Schemas validity error : Element 'pkg': [facet 'pattern'] The value 'x11-libs/gtk+:3' is not accepted by the pattern '[A-Za-z0-9_][A-Za-z0-9+_.-]*/[A-Za-z0-9_][A-Za-z0-9+_-]*'.
/var/db/repos/gentoo/www-client/vimb/metadata.xml:9: element pkg: Schemas validity error : Element 'pkg': 'x11-libs/gtk+:3' is not a valid value of the atomic type 'pkgType'.
/var/db/repos/gentoo/www-client/vimb/metadata.xml:10: element pkg: Schemas validity error : Element 'pkg': [facet 'pattern'] The value 'x11-libs/gtk+:2' is not accepted by the pattern '[A-Za-z0-9_][A-Za-z0-9+_.-]*/[A-Za-z0-9_][A-Za-z0-9+_-]*'.
/var/db/repos/gentoo/www-client/vimb/metadata.xml:10: element pkg: Schemas validity error : Element 'pkg': 'x11-libs/gtk+:2' is not a valid value of the atomic type 'pkgType'.
/var/db/repos/gentoo/www-client/vimb/metadata.xml fails to validate

/var/db/repos/gentoo/x11-apps/python-whiteboard/metadata.xml:23: element email: Schemas validity error : Element 'email': [facet 'pattern'] The value '' is not accepted by the pattern '[^@]+@[^.]+\..+'.
/var/db/repos/gentoo/x11-apps/python-whiteboard/metadata.xml:23: element email: Schemas validity error : Element 'email': '' is not a valid value of the atomic type 'emailType'.
/var/db/repos/gentoo/x11-apps/python-whiteboard/metadata.xml fails to validate

/var/db/repos/gentoo/x11-apps/whyteboard/metadata.xml:21: element email: Schemas validity error : Element 'email': [facet 'pattern'] The value '' is not accepted by the pattern '[^@]+@[^.]+\..+'.
/var/db/repos/gentoo/x11-apps/whyteboard/metadata.xml:21: element email: Schemas validity error : Element 'email': '' is not a valid value of the atomic type 'emailType'.
/var/db/repos/gentoo/x11-apps/whyteboard/metadata.xml fails to validate

/var/db/repos/gentoo/x11-libs/qwt/metadata.xml:16: element pkg: Schemas validity error : Element 'pkg': [facet 'pattern'] The value 'dev-qt/designer plugin' is not accepted by the pattern '[A-Za-z0-9_][A-Za-z0-9+_.-]*/[A-Za-z0-9_][A-Za-z0-9+_-]*'.
/var/db/repos/gentoo/x11-libs/qwt/metadata.xml:16: element pkg: Schemas validity error : Element 'pkg': 'dev-qt/designer plugin' is not a valid value of the atomic type 'pkgType'.
/var/db/repos/gentoo/x11-libs/qwt/metadata.xml fails to validate

/var/db/repos/gentoo/x11-libs/wxGTK/metadata.xml:25: element slot: Schemas validity error : Element 'slot', attribute 'name': [facet 'pattern'] The value '*' is not accepted by the pattern '[A-Za-z0-9_][A-Za-z0-9+_.-]*'.
/var/db/repos/gentoo/x11-libs/wxGTK/metadata.xml:25: element slot: Schemas validity error : Element 'slot', attribute 'name': '*' is not a valid value of the atomic type 'slotNameAttrType'.
/var/db/repos/gentoo/x11-libs/wxGTK/metadata.xml fails to validate

/var/db/repos/gentoo/x11-misc/tint2/metadata.xml:13: element pkg: Schemas validity error : Element 'pkg': [facet 'pattern'] The value 'openbox' is not accepted by the pattern '[A-Za-z0-9_][A-Za-z0-9+_.-]*/[A-Za-z0-9_][A-Za-z0-9+_-]*'.
/var/db/repos/gentoo/x11-misc/tint2/metadata.xml:13: element pkg: Schemas validity error : Element 'pkg': 'openbox' is not a valid value of the atomic type 'pkgType'.
/var/db/repos/gentoo/x11-misc/tint2/metadata.xml fails to validate


-- 
Best regards,
Michał Górny
<http://dev.gentoo.org/~mgorny/>

[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 949 bytes --]

^ permalink raw reply	[flat|nested] 16+ messages in thread

* Re: [gentoo-dev] XML Schema files for metadata.xml, projects.xml and repositories.xml, for review and testing
  2016-03-06 11:04 ` Michał Górny
@ 2016-03-06 11:27   ` Sergei Trofimovich
  2016-03-06 12:24   ` Davide Pesavento
  1 sibling, 0 replies; 16+ messages in thread
From: Sergei Trofimovich @ 2016-03-06 11:27 UTC (permalink / raw)
  To: gentoo-dev; +Cc: mgorny, qa, Gentoo Council

[-- Attachment #1: Type: text/plain, Size: 841 bytes --]

On Sun, 6 Mar 2016 12:04:22 +0100
Michał Górny <mgorny@gentoo.org> wrote:

> On Sun, 6 Mar 2016 12:01:19 +0100
> Michał Górny <mgorny@gentoo.org> wrote:
> 
> > Please test and review. I'm going to reply to this mail with the list
> > of current metadata.xml validation failures (it's quite long).
> 
> And here's the list:

This dump is hard to scroll to find "my" packages :)

I've fixed these 3:

  dev-haskell/cgi/metadata.xml
  dev-haskell/hslua/metadata.xml
  dev-haskell/uuagc/metadata.xml

  https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=e68c39e7bb8e5d8afbd83779e482df30662f4a24
  https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=5aca234ed38837ab17e1fbb2f6a45a97d5402df5
  https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=74f4061480052c4b99335edff0958ac0b9d501c7

Thanks!

-- 

  Sergei

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 181 bytes --]

^ permalink raw reply	[flat|nested] 16+ messages in thread

* Re: [gentoo-dev] XML Schema files for metadata.xml, projects.xml and repositories.xml, for review and testing
  2016-03-06 11:04 ` Michał Górny
  2016-03-06 11:27   ` Sergei Trofimovich
@ 2016-03-06 12:24   ` Davide Pesavento
  2016-03-06 18:12     ` Justin <jlec>
  1 sibling, 1 reply; 16+ messages in thread
From: Davide Pesavento @ 2016-03-06 12:24 UTC (permalink / raw)
  To: gentoo-dev; +Cc: qa

On Sun, Mar 6, 2016 at 12:04 PM, Michał Górny <mgorny@gentoo.org> wrote:
> On Sun, 6 Mar 2016 12:01:19 +0100
> Michał Górny <mgorny@gentoo.org> wrote:
>
>> Please test and review. I'm going to reply to this mail with the list
>> of current metadata.xml validation failures (it's quite long).
>
> And here's the list:
>
...
> /var/db/repos/gentoo/dev-qt/qtmultimedia/metadata.xml:12: element pkg: Schemas validity error : Element 'pkg': [facet 'pattern'] The value 'media-libs/gstreamer:1.0' is not accepted by the pattern '[A-Za-z0-9_][A-Za-z0-9+_.-]*/[A-Za-z0-9_][A-Za-z0-9+_-]*'.
> /var/db/repos/gentoo/dev-qt/qtmultimedia/metadata.xml:12: element pkg: Schemas validity error : Element 'pkg': 'media-libs/gstreamer:1.0' is not a valid value of the atomic type 'pkgType'.
> /var/db/repos/gentoo/dev-qt/qtmultimedia/metadata.xml:13: element pkg: Schemas validity error : Element 'pkg': [facet 'pattern'] The value 'media-libs/gstreamer:0.10' is not accepted by the pattern '[A-Za-z0-9_][A-Za-z0-9+_.-]*/[A-Za-z0-9_][A-Za-z0-9+_-]*'.
> /var/db/repos/gentoo/dev-qt/qtmultimedia/metadata.xml:13: element pkg: Schemas validity error : Element 'pkg': 'media-libs/gstreamer:0.10' is not a valid value of the atomic type 'pkgType'.
> /var/db/repos/gentoo/dev-qt/qtmultimedia/metadata.xml fails to validate
>
> /var/db/repos/gentoo/dev-qt/qtwebkit/metadata.xml:12: element pkg: Schemas validity error : Element 'pkg': [facet 'pattern'] The value 'media-libs/gstreamer:1.0' is not accepted by the pattern '[A-Za-z0-9_][A-Za-z0-9+_.-]*/[A-Za-z0-9_][A-Za-z0-9+_-]*'.
> /var/db/repos/gentoo/dev-qt/qtwebkit/metadata.xml:12: element pkg: Schemas validity error : Element 'pkg': 'media-libs/gstreamer:1.0' is not a valid value of the atomic type 'pkgType'.
> /var/db/repos/gentoo/dev-qt/qtwebkit/metadata.xml:13: element pkg: Schemas validity error : Element 'pkg': [facet 'pattern'] The value 'media-libs/gstreamer:0.10' is not accepted by the pattern '[A-Za-z0-9_][A-Za-z0-9+_.-]*/[A-Za-z0-9_][A-Za-z0-9+_-]*'.
> /var/db/repos/gentoo/dev-qt/qtwebkit/metadata.xml:13: element pkg: Schemas validity error : Element 'pkg': 'media-libs/gstreamer:0.10' is not a valid value of the atomic type 'pkgType'.
> /var/db/repos/gentoo/dev-qt/qtwebkit/metadata.xml fails to validate
>

Slots are not accepted in <pkg> elements? Is that intentional? If so,
is there something else we can use?

Thanks,
Davide


^ permalink raw reply	[flat|nested] 16+ messages in thread

* Re: [gentoo-dev] XML Schema files for metadata.xml, projects.xml and repositories.xml, for review and testing
  2016-03-06 12:24   ` Davide Pesavento
@ 2016-03-06 18:12     ` Justin <jlec>
  2016-03-06 18:18       ` Michał Górny
  2016-03-06 18:25       ` Kent Fredric
  0 siblings, 2 replies; 16+ messages in thread
From: Justin <jlec> @ 2016-03-06 18:12 UTC (permalink / raw)
  To: gentoo-dev; +Cc: qa

On 06/03/16 12:24, Davide Pesavento wrote:
> On Sun, Mar 6, 2016 at 12:04 PM, Michał Górny <mgorny@gentoo.org> wrote:
>> On Sun, 6 Mar 2016 12:01:19 +0100
>> Michał Górny <mgorny@gentoo.org> wrote:
>>
>>> Please test and review. I'm going to reply to this mail with the list
>>> of current metadata.xml validation failures (it's quite long).
>>
>> And here's the list:
>>
> ...
>> /var/db/repos/gentoo/dev-qt/qtmultimedia/metadata.xml:12: element pkg: Schemas validity error : Element 'pkg': [facet 'pattern'] The value 'media-libs/gstreamer:1.0' is not accepted by the pattern '[A-Za-z0-9_][A-Za-z0-9+_.-]*/[A-Za-z0-9_][A-Za-z0-9+_-]*'.
>> /var/db/repos/gentoo/dev-qt/qtmultimedia/metadata.xml:12: element pkg: Schemas validity error : Element 'pkg': 'media-libs/gstreamer:1.0' is not a valid value of the atomic type 'pkgType'.
>> /var/db/repos/gentoo/dev-qt/qtmultimedia/metadata.xml:13: element pkg: Schemas validity error : Element 'pkg': [facet 'pattern'] The value 'media-libs/gstreamer:0.10' is not accepted by the pattern '[A-Za-z0-9_][A-Za-z0-9+_.-]*/[A-Za-z0-9_][A-Za-z0-9+_-]*'.
>> /var/db/repos/gentoo/dev-qt/qtmultimedia/metadata.xml:13: element pkg: Schemas validity error : Element 'pkg': 'media-libs/gstreamer:0.10' is not a valid value of the atomic type 'pkgType'.
>> /var/db/repos/gentoo/dev-qt/qtmultimedia/metadata.xml fails to validate
>>
>> /var/db/repos/gentoo/dev-qt/qtwebkit/metadata.xml:12: element pkg: Schemas validity error : Element 'pkg': [facet 'pattern'] The value 'media-libs/gstreamer:1.0' is not accepted by the pattern '[A-Za-z0-9_][A-Za-z0-9+_.-]*/[A-Za-z0-9_][A-Za-z0-9+_-]*'.
>> /var/db/repos/gentoo/dev-qt/qtwebkit/metadata.xml:12: element pkg: Schemas validity error : Element 'pkg': 'media-libs/gstreamer:1.0' is not a valid value of the atomic type 'pkgType'.
>> /var/db/repos/gentoo/dev-qt/qtwebkit/metadata.xml:13: element pkg: Schemas validity error : Element 'pkg': [facet 'pattern'] The value 'media-libs/gstreamer:0.10' is not accepted by the pattern '[A-Za-z0-9_][A-Za-z0-9+_.-]*/[A-Za-z0-9_][A-Za-z0-9+_-]*'.
>> /var/db/repos/gentoo/dev-qt/qtwebkit/metadata.xml:13: element pkg: Schemas validity error : Element 'pkg': 'media-libs/gstreamer:0.10' is not a valid value of the atomic type 'pkgType'.
>> /var/db/repos/gentoo/dev-qt/qtwebkit/metadata.xml fails to validate
>>
> 
> Slots are not accepted in <pkg> elements? Is that intentional? If so,
> is there something else we can use?
> 

We should definitely include SLOTs in the allowed syntax.



^ permalink raw reply	[flat|nested] 16+ messages in thread

* Re: [gentoo-dev] XML Schema files for metadata.xml, projects.xml and repositories.xml, for review and testing
  2016-03-06 18:12     ` Justin <jlec>
@ 2016-03-06 18:18       ` Michał Górny
  2016-03-06 18:26         ` Davide Pesavento
  2016-03-06 18:31         ` Justin <jlec>
  2016-03-06 18:25       ` Kent Fredric
  1 sibling, 2 replies; 16+ messages in thread
From: Michał Górny @ 2016-03-06 18:18 UTC (permalink / raw)
  To: Justin <jlec>; +Cc: gentoo-dev, qa

[-- Attachment #1: Type: text/plain, Size: 2952 bytes --]

On Sun, 6 Mar 2016 18:12:03 +0000
"Justin <jlec>" <jlec@gentoo.org> wrote:

> On 06/03/16 12:24, Davide Pesavento wrote:
> > On Sun, Mar 6, 2016 at 12:04 PM, Michał Górny <mgorny@gentoo.org> wrote:  
> >> On Sun, 6 Mar 2016 12:01:19 +0100
> >> Michał Górny <mgorny@gentoo.org> wrote:
> >>  
> >>> Please test and review. I'm going to reply to this mail with the list
> >>> of current metadata.xml validation failures (it's quite long).  
> >>
> >> And here's the list:
> >>  
> > ...  
> >> /var/db/repos/gentoo/dev-qt/qtmultimedia/metadata.xml:12: element pkg: Schemas validity error : Element 'pkg': [facet 'pattern'] The value 'media-libs/gstreamer:1.0' is not accepted by the pattern '[A-Za-z0-9_][A-Za-z0-9+_.-]*/[A-Za-z0-9_][A-Za-z0-9+_-]*'.
> >> /var/db/repos/gentoo/dev-qt/qtmultimedia/metadata.xml:12: element pkg: Schemas validity error : Element 'pkg': 'media-libs/gstreamer:1.0' is not a valid value of the atomic type 'pkgType'.
> >> /var/db/repos/gentoo/dev-qt/qtmultimedia/metadata.xml:13: element pkg: Schemas validity error : Element 'pkg': [facet 'pattern'] The value 'media-libs/gstreamer:0.10' is not accepted by the pattern '[A-Za-z0-9_][A-Za-z0-9+_.-]*/[A-Za-z0-9_][A-Za-z0-9+_-]*'.
> >> /var/db/repos/gentoo/dev-qt/qtmultimedia/metadata.xml:13: element pkg: Schemas validity error : Element 'pkg': 'media-libs/gstreamer:0.10' is not a valid value of the atomic type 'pkgType'.
> >> /var/db/repos/gentoo/dev-qt/qtmultimedia/metadata.xml fails to validate
> >>
> >> /var/db/repos/gentoo/dev-qt/qtwebkit/metadata.xml:12: element pkg: Schemas validity error : Element 'pkg': [facet 'pattern'] The value 'media-libs/gstreamer:1.0' is not accepted by the pattern '[A-Za-z0-9_][A-Za-z0-9+_.-]*/[A-Za-z0-9_][A-Za-z0-9+_-]*'.
> >> /var/db/repos/gentoo/dev-qt/qtwebkit/metadata.xml:12: element pkg: Schemas validity error : Element 'pkg': 'media-libs/gstreamer:1.0' is not a valid value of the atomic type 'pkgType'.
> >> /var/db/repos/gentoo/dev-qt/qtwebkit/metadata.xml:13: element pkg: Schemas validity error : Element 'pkg': [facet 'pattern'] The value 'media-libs/gstreamer:0.10' is not accepted by the pattern '[A-Za-z0-9_][A-Za-z0-9+_.-]*/[A-Za-z0-9_][A-Za-z0-9+_-]*'.
> >> /var/db/repos/gentoo/dev-qt/qtwebkit/metadata.xml:13: element pkg: Schemas validity error : Element 'pkg': 'media-libs/gstreamer:0.10' is not a valid value of the atomic type 'pkgType'.
> >> /var/db/repos/gentoo/dev-qt/qtwebkit/metadata.xml fails to validate
> >>  
> > 
> > Slots are not accepted in <pkg> elements? Is that intentional? If so,
> > is there something else we can use?
> >   
> 
> We should definitely include SLOTs in the allowed syntax.

Why? What's their use? In fact, does <pkg/> have any use? Because as I
see it, it's just some fancy feature that could turn package name into
link to packages.gentoo.org and nothing more...

-- 
Best regards,
Michał Górny
<http://dev.gentoo.org/~mgorny/>

[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 949 bytes --]

^ permalink raw reply	[flat|nested] 16+ messages in thread

* Re: [gentoo-dev] XML Schema files for metadata.xml, projects.xml and repositories.xml, for review and testing
  2016-03-06 18:12     ` Justin <jlec>
  2016-03-06 18:18       ` Michał Górny
@ 2016-03-06 18:25       ` Kent Fredric
  1 sibling, 0 replies; 16+ messages in thread
From: Kent Fredric @ 2016-03-06 18:25 UTC (permalink / raw)
  To: gentoo-dev; +Cc: qa

On 7 March 2016 at 07:12, Justin <jlec> <jlec@gentoo.org> wrote:
>> Slots are not accepted in <pkg> elements? Is that intentional? If so,
>> is there something else we can use?
>>
>
> We should definitely include SLOTs in the allowed syntax.


  <flag name="gstreamer">Enable HTML5 audio/video support via
<pkg>media-libs/gstreamer:1.0</pkg></flag>
  <flag name="gstreamer010">Enable HTML5 audio/video support via
<pkg>media-libs/gstreamer:0.10</pkg></flag>


Surely you can trivially transpose:

  <pkg>cat/pn:slot</pkg>

To

   <pkg>cat/pn</pkg>:slot

Its not like you need slot/version metadata to be machine trackable
here, you're probably wanting to communicate the cat/pn for hyper-ref
purposes, and the slot/version to be separate for humans.

Its "<pkg>" not "<depspec>" after all.

-- 
Kent

KENTNL - https://metacpan.org/author/KENTNL


^ permalink raw reply	[flat|nested] 16+ messages in thread

* Re: [gentoo-dev] XML Schema files for metadata.xml, projects.xml and repositories.xml, for review and testing
  2016-03-06 18:18       ` Michał Górny
@ 2016-03-06 18:26         ` Davide Pesavento
  2016-03-06 18:31           ` Michał Górny
  2016-03-06 18:31         ` Justin <jlec>
  1 sibling, 1 reply; 16+ messages in thread
From: Davide Pesavento @ 2016-03-06 18:26 UTC (permalink / raw)
  To: gentoo-dev; +Cc: Justin <jlec>, qa

On Sun, Mar 6, 2016 at 7:18 PM, Michał Górny <mgorny@gentoo.org> wrote:
> On Sun, 6 Mar 2016 18:12:03 +0000
> "Justin <jlec>" <jlec@gentoo.org> wrote:
>
>> On 06/03/16 12:24, Davide Pesavento wrote:
>> > On Sun, Mar 6, 2016 at 12:04 PM, Michał Górny <mgorny@gentoo.org> wrote:
>> >> On Sun, 6 Mar 2016 12:01:19 +0100
>> >> Michał Górny <mgorny@gentoo.org> wrote:
>> >>
>> >>> Please test and review. I'm going to reply to this mail with the list
>> >>> of current metadata.xml validation failures (it's quite long).
>> >>
>> >> And here's the list:
>> >>
>> > ...
>> >> /var/db/repos/gentoo/dev-qt/qtmultimedia/metadata.xml:12: element pkg: Schemas validity error : Element 'pkg': [facet 'pattern'] The value 'media-libs/gstreamer:1.0' is not accepted by the pattern '[A-Za-z0-9_][A-Za-z0-9+_.-]*/[A-Za-z0-9_][A-Za-z0-9+_-]*'.
>> >> /var/db/repos/gentoo/dev-qt/qtmultimedia/metadata.xml:12: element pkg: Schemas validity error : Element 'pkg': 'media-libs/gstreamer:1.0' is not a valid value of the atomic type 'pkgType'.
>> >> /var/db/repos/gentoo/dev-qt/qtmultimedia/metadata.xml:13: element pkg: Schemas validity error : Element 'pkg': [facet 'pattern'] The value 'media-libs/gstreamer:0.10' is not accepted by the pattern '[A-Za-z0-9_][A-Za-z0-9+_.-]*/[A-Za-z0-9_][A-Za-z0-9+_-]*'.
>> >> /var/db/repos/gentoo/dev-qt/qtmultimedia/metadata.xml:13: element pkg: Schemas validity error : Element 'pkg': 'media-libs/gstreamer:0.10' is not a valid value of the atomic type 'pkgType'.
>> >> /var/db/repos/gentoo/dev-qt/qtmultimedia/metadata.xml fails to validate
>> >>
>> >> /var/db/repos/gentoo/dev-qt/qtwebkit/metadata.xml:12: element pkg: Schemas validity error : Element 'pkg': [facet 'pattern'] The value 'media-libs/gstreamer:1.0' is not accepted by the pattern '[A-Za-z0-9_][A-Za-z0-9+_.-]*/[A-Za-z0-9_][A-Za-z0-9+_-]*'.
>> >> /var/db/repos/gentoo/dev-qt/qtwebkit/metadata.xml:12: element pkg: Schemas validity error : Element 'pkg': 'media-libs/gstreamer:1.0' is not a valid value of the atomic type 'pkgType'.
>> >> /var/db/repos/gentoo/dev-qt/qtwebkit/metadata.xml:13: element pkg: Schemas validity error : Element 'pkg': [facet 'pattern'] The value 'media-libs/gstreamer:0.10' is not accepted by the pattern '[A-Za-z0-9_][A-Za-z0-9+_.-]*/[A-Za-z0-9_][A-Za-z0-9+_-]*'.
>> >> /var/db/repos/gentoo/dev-qt/qtwebkit/metadata.xml:13: element pkg: Schemas validity error : Element 'pkg': 'media-libs/gstreamer:0.10' is not a valid value of the atomic type 'pkgType'.
>> >> /var/db/repos/gentoo/dev-qt/qtwebkit/metadata.xml fails to validate
>> >>
>> >
>> > Slots are not accepted in <pkg> elements? Is that intentional? If so,
>> > is there something else we can use?
>> >
>>
>> We should definitely include SLOTs in the allowed syntax.
>
> Why? What's their use? In fact, does <pkg/> have any use? Because as I
> see it, it's just some fancy feature that could turn package name into
> link to packages.gentoo.org and nothing more...
>

Yeah that's what I thought too. If you really want you could also
check that the referenced package really exists in the tree...

So I guess we could use the following form when SLOTs are needed:
  <pkg>media-libs/gstreamer</pkg>:1.0
?


^ permalink raw reply	[flat|nested] 16+ messages in thread

* Re: [gentoo-dev] XML Schema files for metadata.xml, projects.xml and repositories.xml, for review and testing
  2016-03-06 18:18       ` Michał Górny
  2016-03-06 18:26         ` Davide Pesavento
@ 2016-03-06 18:31         ` Justin <jlec>
  1 sibling, 0 replies; 16+ messages in thread
From: Justin <jlec> @ 2016-03-06 18:31 UTC (permalink / raw)
  To: Michał Górny; +Cc: gentoo-dev, qa

On 06/03/16 18:18, Michał Górny wrote:
>> We should definitely include SLOTs in the allowed syntax.
> 
> Why? What's their use? In fact, does <pkg/> have any use? Because as I
> see it, it's just some fancy feature that could turn package name into
> link to packages.gentoo.org and nothing more...
> 

Using SLOTs you have more precision in what you are writing. There are
quite a number of packages where SLOTs differ a lot, e.g. grub. So
clearly specifying a SLOT make sense to me.

Take this example

<use>
 <flag name="grub2">Install theme for <pkg>sys-boot/grub:2</pkg></flag>
</use>

Dropping the SLOT here doesn't make sense, as the content of the package
with USE=grub2 won't work for grub-1.

I can assume there are a number of packages where file formats or such
changed between SLOTs, so it makes sense to specify it.


^ permalink raw reply	[flat|nested] 16+ messages in thread

* Re: [gentoo-dev] XML Schema files for metadata.xml, projects.xml and repositories.xml, for review and testing
  2016-03-06 18:26         ` Davide Pesavento
@ 2016-03-06 18:31           ` Michał Górny
  2016-03-06 19:28             ` Ulrich Mueller
  0 siblings, 1 reply; 16+ messages in thread
From: Michał Górny @ 2016-03-06 18:31 UTC (permalink / raw)
  To: Davide Pesavento; +Cc: gentoo-dev, Justin <jlec>, qa

[-- Attachment #1: Type: text/plain, Size: 3742 bytes --]

On Sun, 6 Mar 2016 19:26:15 +0100
Davide Pesavento <pesa@gentoo.org> wrote:

> On Sun, Mar 6, 2016 at 7:18 PM, Michał Górny <mgorny@gentoo.org> wrote:
> > On Sun, 6 Mar 2016 18:12:03 +0000
> > "Justin <jlec>" <jlec@gentoo.org> wrote:
> >  
> >> On 06/03/16 12:24, Davide Pesavento wrote:  
> >> > On Sun, Mar 6, 2016 at 12:04 PM, Michał Górny <mgorny@gentoo.org> wrote:  
> >> >> On Sun, 6 Mar 2016 12:01:19 +0100
> >> >> Michał Górny <mgorny@gentoo.org> wrote:
> >> >>  
> >> >>> Please test and review. I'm going to reply to this mail with the list
> >> >>> of current metadata.xml validation failures (it's quite long).  
> >> >>
> >> >> And here's the list:
> >> >>  
> >> > ...  
> >> >> /var/db/repos/gentoo/dev-qt/qtmultimedia/metadata.xml:12: element pkg: Schemas validity error : Element 'pkg': [facet 'pattern'] The value 'media-libs/gstreamer:1.0' is not accepted by the pattern '[A-Za-z0-9_][A-Za-z0-9+_.-]*/[A-Za-z0-9_][A-Za-z0-9+_-]*'.
> >> >> /var/db/repos/gentoo/dev-qt/qtmultimedia/metadata.xml:12: element pkg: Schemas validity error : Element 'pkg': 'media-libs/gstreamer:1.0' is not a valid value of the atomic type 'pkgType'.
> >> >> /var/db/repos/gentoo/dev-qt/qtmultimedia/metadata.xml:13: element pkg: Schemas validity error : Element 'pkg': [facet 'pattern'] The value 'media-libs/gstreamer:0.10' is not accepted by the pattern '[A-Za-z0-9_][A-Za-z0-9+_.-]*/[A-Za-z0-9_][A-Za-z0-9+_-]*'.
> >> >> /var/db/repos/gentoo/dev-qt/qtmultimedia/metadata.xml:13: element pkg: Schemas validity error : Element 'pkg': 'media-libs/gstreamer:0.10' is not a valid value of the atomic type 'pkgType'.
> >> >> /var/db/repos/gentoo/dev-qt/qtmultimedia/metadata.xml fails to validate
> >> >>
> >> >> /var/db/repos/gentoo/dev-qt/qtwebkit/metadata.xml:12: element pkg: Schemas validity error : Element 'pkg': [facet 'pattern'] The value 'media-libs/gstreamer:1.0' is not accepted by the pattern '[A-Za-z0-9_][A-Za-z0-9+_.-]*/[A-Za-z0-9_][A-Za-z0-9+_-]*'.
> >> >> /var/db/repos/gentoo/dev-qt/qtwebkit/metadata.xml:12: element pkg: Schemas validity error : Element 'pkg': 'media-libs/gstreamer:1.0' is not a valid value of the atomic type 'pkgType'.
> >> >> /var/db/repos/gentoo/dev-qt/qtwebkit/metadata.xml:13: element pkg: Schemas validity error : Element 'pkg': [facet 'pattern'] The value 'media-libs/gstreamer:0.10' is not accepted by the pattern '[A-Za-z0-9_][A-Za-z0-9+_.-]*/[A-Za-z0-9_][A-Za-z0-9+_-]*'.
> >> >> /var/db/repos/gentoo/dev-qt/qtwebkit/metadata.xml:13: element pkg: Schemas validity error : Element 'pkg': 'media-libs/gstreamer:0.10' is not a valid value of the atomic type 'pkgType'.
> >> >> /var/db/repos/gentoo/dev-qt/qtwebkit/metadata.xml fails to validate
> >> >>  
> >> >
> >> > Slots are not accepted in <pkg> elements? Is that intentional? If so,
> >> > is there something else we can use?
> >> >  
> >>
> >> We should definitely include SLOTs in the allowed syntax.  
> >
> > Why? What's their use? In fact, does <pkg/> have any use? Because as I
> > see it, it's just some fancy feature that could turn package name into
> > link to packages.gentoo.org and nothing more...
> >  
> 
> Yeah that's what I thought too. If you really want you could also
> check that the referenced package really exists in the tree...
> 
> So I guess we could use the following form when SLOTs are needed:
>   <pkg>media-libs/gstreamer</pkg>:1.0
> ?

Prolly.

Just to be clear, I have no clue what the original use of <pkg/> was
and what the final outcome of this will be. This thread was established
mostly in order to determine that. I'd wait for ulm to turn up and have
some suggestions ;-).

-- 
Best regards,
Michał Górny
<http://dev.gentoo.org/~mgorny/>

[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 949 bytes --]

^ permalink raw reply	[flat|nested] 16+ messages in thread

* Re: [gentoo-dev] XML Schema files for metadata.xml, projects.xml and repositories.xml, for review and testing
  2016-03-06 18:31           ` Michał Górny
@ 2016-03-06 19:28             ` Ulrich Mueller
  2016-03-06 19:35               ` Michał Górny
  2016-03-06 20:22               ` Justin <jlec>
  0 siblings, 2 replies; 16+ messages in thread
From: Ulrich Mueller @ 2016-03-06 19:28 UTC (permalink / raw)
  To: gentoo-dev; +Cc: Davide Pesavento, Justin <jlec>, qa, cardoe

[-- Attachment #1: Type: text/plain, Size: 1172 bytes --]

>>>>> On Sun, 6 Mar 2016, Michał Górny wrote:

> On Sun, 6 Mar 2016 19:26:15 +0100
> Davide Pesavento <pesa@gentoo.org> wrote:

>> So I guess we could use the following form when SLOTs are needed:
>> <pkg>media-libs/gstreamer</pkg>:1.0
>> ?

> Prolly.

> Just to be clear, I have no clue what the original use of <pkg/>
> was and what the final outcome of this will be. This thread was
> established mostly in order to determine that. I'd wait for ulm to
> turn up and have some suggestions ;-).

:)

No idea what the original purpose was, but <pkg> and <cat> are
specified in GLEP 56 [1]:

   - Each <flag> XML tag allows 0 or more nested <pkg> XML tags whose
     character data is a valid CP or CPV as defined by the Gentoo
     Development Manual - Ebuild File Format [2].

   - Each <flag> XML tag allows 0 or more nested <cat> XML tags whose
     character data is a valid category.

So looks like a version is allowed, but not a slot.

CCing Cardoe. What was the original intention behind <pkg> and <cat>?

Ulrich


[1] https://wiki.gentoo.org/wiki/GLEP:56
[2] https://devmanual.gentoo.org/ebuild-writing/file-format/index.html

[-- Attachment #2: Type: application/pgp-signature, Size: 490 bytes --]

^ permalink raw reply	[flat|nested] 16+ messages in thread

* Re: [gentoo-dev] XML Schema files for metadata.xml, projects.xml and repositories.xml, for review and testing
  2016-03-06 19:28             ` Ulrich Mueller
@ 2016-03-06 19:35               ` Michał Górny
  2016-03-06 20:22               ` Justin <jlec>
  1 sibling, 0 replies; 16+ messages in thread
From: Michał Górny @ 2016-03-06 19:35 UTC (permalink / raw)
  To: Ulrich Mueller
  Cc: gentoo-dev, Davide Pesavento, Justin <jlec>, qa, cardoe

[-- Attachment #1: Type: text/plain, Size: 1408 bytes --]

On Sun, 6 Mar 2016 20:28:33 +0100
Ulrich Mueller <ulm@gentoo.org> wrote:

> >>>>> On Sun, 6 Mar 2016, Michał Górny wrote:  
> 
> > On Sun, 6 Mar 2016 19:26:15 +0100
> > Davide Pesavento <pesa@gentoo.org> wrote:  
> 
> >> So I guess we could use the following form when SLOTs are needed:
> >> <pkg>media-libs/gstreamer</pkg>:1.0
> >> ?  
> 
> > Prolly.  
> 
> > Just to be clear, I have no clue what the original use of <pkg/>
> > was and what the final outcome of this will be. This thread was
> > established mostly in order to determine that. I'd wait for ulm to
> > turn up and have some suggestions ;-).  
> 
> :)
> 
> No idea what the original purpose was, but <pkg> and <cat> are
> specified in GLEP 56 [1]:
> 
>    - Each <flag> XML tag allows 0 or more nested <pkg> XML tags whose
>      character data is a valid CP or CPV as defined by the Gentoo
>      Development Manual - Ebuild File Format [2].
> 
>    - Each <flag> XML tag allows 0 or more nested <cat> XML tags whose
>      character data is a valid category.
> 
> So looks like a version is allowed, but not a slot.
> 
> CCing Cardoe. What was the original intention behind <pkg> and <cat>?

I would suggest we avoid using the 'CPV' syntax, and either allow only
qualified package names or any package dependency specifications.

-- 
Best regards,
Michał Górny
<http://dev.gentoo.org/~mgorny/>

[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 949 bytes --]

^ permalink raw reply	[flat|nested] 16+ messages in thread

* Re: [gentoo-dev] XML Schema files for metadata.xml, projects.xml and repositories.xml, for review and testing
  2016-03-06 19:28             ` Ulrich Mueller
  2016-03-06 19:35               ` Michał Górny
@ 2016-03-06 20:22               ` Justin <jlec>
  2016-03-06 20:49                 ` Michał Górny
  1 sibling, 1 reply; 16+ messages in thread
From: Justin <jlec> @ 2016-03-06 20:22 UTC (permalink / raw)
  To: Ulrich Mueller, gentoo-dev; +Cc: Davide Pesavento, qa, cardoe

On 06/03/16 19:28, Ulrich Mueller wrote:
>>>>>> On Sun, 6 Mar 2016, Michał Górny wrote:
> 
>> On Sun, 6 Mar 2016 19:26:15 +0100
>> Davide Pesavento <pesa@gentoo.org> wrote:
> 
>>> So I guess we could use the following form when SLOTs are needed:
>>> <pkg>media-libs/gstreamer</pkg>:1.0
>>> ?
> 
>> Prolly.
> 
>> Just to be clear, I have no clue what the original use of <pkg/>
>> was and what the final outcome of this will be. This thread was
>> established mostly in order to determine that. I'd wait for ulm to
>> turn up and have some suggestions ;-).
> 
> :)
> 
> No idea what the original purpose was, but <pkg> and <cat> are
> specified in GLEP 56 [1]:
> 
>    - Each <flag> XML tag allows 0 or more nested <pkg> XML tags whose
>      character data is a valid CP or CPV as defined by the Gentoo
>      Development Manual - Ebuild File Format [2].

Michał, your current syntax breaks with multiple pkg

(<pkg>sci-libs/metis</pkg> or <pkg>sci-libs/parmetis</pkg>)

results in

metadata.xml:21: element pkg: Schemas validity error : Element 'pkg':
[facet 'pattern'] The value '' is not accepted by the pattern
'[A-Za-z0-9_][A-Za-z0-9+_.-]*/[A-Za-z0-9_][A-Za-z0-9+_-]*'.
metadata.xml:21: element pkg: Schemas validity error : Element 'pkg': ''
is not a valid value of the atomic type 'pkgType'.
metadata.xml:24: element pkg: Schemas validity error : Element 'pkg':
[facet 'pattern'] The value '' is not accepted by the pattern
'[A-Za-z0-9_][A-Za-z0-9+_.-]*/[A-Za-z0-9_][A-Za-z0-9+_-]*'.
metadata.xml:24: element pkg: Schemas validity error : Element 'pkg': ''
is not a valid value of the atomic type 'pkgType'.


Justin


^ permalink raw reply	[flat|nested] 16+ messages in thread

* Re: [gentoo-dev] XML Schema files for metadata.xml, projects.xml and repositories.xml, for review and testing
  2016-03-06 20:22               ` Justin <jlec>
@ 2016-03-06 20:49                 ` Michał Górny
  2016-03-06 21:34                   ` Justin <jlec>
  0 siblings, 1 reply; 16+ messages in thread
From: Michał Górny @ 2016-03-06 20:49 UTC (permalink / raw)
  To: Justin <jlec>
  Cc: Ulrich Mueller, gentoo-dev, Davide Pesavento, qa, cardoe

[-- Attachment #1: Type: text/plain, Size: 2132 bytes --]

On Sun, 6 Mar 2016 20:22:18 +0000
"Justin <jlec>" <jlec@gentoo.org> wrote:

> On 06/03/16 19:28, Ulrich Mueller wrote:
> >>>>>> On Sun, 6 Mar 2016, Michał Górny wrote:  
> >   
> >> On Sun, 6 Mar 2016 19:26:15 +0100
> >> Davide Pesavento <pesa@gentoo.org> wrote:  
> >   
> >>> So I guess we could use the following form when SLOTs are needed:
> >>> <pkg>media-libs/gstreamer</pkg>:1.0
> >>> ?  
> >   
> >> Prolly.  
> >   
> >> Just to be clear, I have no clue what the original use of <pkg/>
> >> was and what the final outcome of this will be. This thread was
> >> established mostly in order to determine that. I'd wait for ulm to
> >> turn up and have some suggestions ;-).  
> > 
> > :)
> > 
> > No idea what the original purpose was, but <pkg> and <cat> are
> > specified in GLEP 56 [1]:
> > 
> >    - Each <flag> XML tag allows 0 or more nested <pkg> XML tags whose
> >      character data is a valid CP or CPV as defined by the Gentoo
> >      Development Manual - Ebuild File Format [2].  
> 
> Michał, your current syntax breaks with multiple pkg
> 
> (<pkg>sci-libs/metis</pkg> or <pkg>sci-libs/parmetis</pkg>)
> 
> results in
> 
> metadata.xml:21: element pkg: Schemas validity error : Element 'pkg':
> [facet 'pattern'] The value '' is not accepted by the pattern
> '[A-Za-z0-9_][A-Za-z0-9+_.-]*/[A-Za-z0-9_][A-Za-z0-9+_-]*'.
> metadata.xml:21: element pkg: Schemas validity error : Element 'pkg': ''
> is not a valid value of the atomic type 'pkgType'.
> metadata.xml:24: element pkg: Schemas validity error : Element 'pkg':
> [facet 'pattern'] The value '' is not accepted by the pattern
> '[A-Za-z0-9_][A-Za-z0-9+_.-]*/[A-Za-z0-9_][A-Za-z0-9+_-]*'.
> metadata.xml:24: element pkg: Schemas validity error : Element 'pkg': ''
> is not a valid value of the atomic type 'pkgType'.

Are you sure about this?

$ xmllint --noout --schema metadata.xsd /var/db/repos/gentoo/sci-libs/spqr/metadata.xml
/var/db/repos/gentoo/sci-libs/spqr/metadata.xml validates

What validator do you use for this?

-- 
Best regards,
Michał Górny
<http://dev.gentoo.org/~mgorny/>

[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 949 bytes --]

^ permalink raw reply	[flat|nested] 16+ messages in thread

* Re: [gentoo-dev] XML Schema files for metadata.xml, projects.xml and repositories.xml, for review and testing
  2016-03-06 20:49                 ` Michał Górny
@ 2016-03-06 21:34                   ` Justin <jlec>
  0 siblings, 0 replies; 16+ messages in thread
From: Justin <jlec> @ 2016-03-06 21:34 UTC (permalink / raw)
  To: gentoo-dev; +Cc: Ulrich Mueller, Davide Pesavento, qa, cardoe

On 06/03/16 20:49, Michał Górny wrote:
> On Sun, 6 Mar 2016 20:22:18 +0000
> "Justin <jlec>" <jlec@gentoo.org> wrote:
> 
>> On 06/03/16 19:28, Ulrich Mueller wrote:
>>>>>>>> On Sun, 6 Mar 2016, Michał Górny wrote:  
>>>   
>>>> On Sun, 6 Mar 2016 19:26:15 +0100
>>>> Davide Pesavento <pesa@gentoo.org> wrote:  
>>>   
>>>>> So I guess we could use the following form when SLOTs are needed:
>>>>> <pkg>media-libs/gstreamer</pkg>:1.0
>>>>> ?  
>>>   
>>>> Prolly.  
>>>   
>>>> Just to be clear, I have no clue what the original use of <pkg/>
>>>> was and what the final outcome of this will be. This thread was
>>>> established mostly in order to determine that. I'd wait for ulm to
>>>> turn up and have some suggestions ;-).  
>>>
>>> :)
>>>
>>> No idea what the original purpose was, but <pkg> and <cat> are
>>> specified in GLEP 56 [1]:
>>>
>>>    - Each <flag> XML tag allows 0 or more nested <pkg> XML tags whose
>>>      character data is a valid CP or CPV as defined by the Gentoo
>>>      Development Manual - Ebuild File Format [2].  
>>
>> Michał, your current syntax breaks with multiple pkg
>>
>> (<pkg>sci-libs/metis</pkg> or <pkg>sci-libs/parmetis</pkg>)
>>
>> results in
>>
>> metadata.xml:21: element pkg: Schemas validity error : Element 'pkg':
>> [facet 'pattern'] The value '' is not accepted by the pattern
>> '[A-Za-z0-9_][A-Za-z0-9+_.-]*/[A-Za-z0-9_][A-Za-z0-9+_-]*'.
>> metadata.xml:21: element pkg: Schemas validity error : Element 'pkg': ''
>> is not a valid value of the atomic type 'pkgType'.
>> metadata.xml:24: element pkg: Schemas validity error : Element 'pkg':
>> [facet 'pattern'] The value '' is not accepted by the pattern
>> '[A-Za-z0-9_][A-Za-z0-9+_.-]*/[A-Za-z0-9_][A-Za-z0-9+_-]*'.
>> metadata.xml:24: element pkg: Schemas validity error : Element 'pkg': ''
>> is not a valid value of the atomic type 'pkgType'.
> 
> Are you sure about this?
> 
> $ xmllint --noout --schema metadata.xsd /var/db/repos/gentoo/sci-libs/spqr/metadata.xml
> /var/db/repos/gentoo/sci-libs/spqr/metadata.xml validates
> 
> What validator do you use for this?
> 

I was wrong, the output actually meant another line which contains a
<pkg/>. Sorry for the noise.


^ permalink raw reply	[flat|nested] 16+ messages in thread

* [gentoo-dev] XML Schema files for metadata.xml, projects.xml and repositories.xml, for review and testing
@ 2016-03-06  9:43 Michał Górny
  0 siblings, 0 replies; 16+ messages in thread
From: Michał Górny @ 2016-03-06  9:43 UTC (permalink / raw)
  To: gentoo-dev; +Cc: qa, Gentoo Council

[-- Attachment #1: Type: text/plain, Size: 1859 bytes --]

Hello, everyone.

As you may be aware, we were considering replacing the DTD files for
our XML documents with a more modern and more complete format. As part
of considering options for this, I've written XML Schema files [1] that
provide a more correct replacement for the current DTD files and I'd
like you to review it.

XML Schema not only allows us to express our data formats more
correctly than DTD but also gives some degree of value checks.
In particular, it finds a number of existing issues that DTD can't
find.

For example:

  $ xmllint --noout --schema projects.xsd projects.xml
  projects.xml:864: element project: Schemas validity error : Element 'project': Duplicate key-sequence ['desktop-misc@gentoo.org'] in key identity-constraint 'projectKey'.
  projects.xml fails to validate

which means there are two projects using the same e-mail address
(and therefore being ambiguous for metadata references).

Aside to the usual structure errors, my schemas find:

- duplicate keys (project e-mails, repository names),

- duplicate supposedly-unique values (like duplicate
  <longdescription/>s in the same language),

- some data well-formedness errors (e.g. <pkg/> tags referencing
  things that are not correct qualified package names),

- some random weirdnesses (like using multiple <use/> blocks for
  flags, for no good reason).

I should note that I've based those schemas on existing DTDs, PMS
and some understanding guesswork, so they may be over- or understrict.
If someone can provide better PMS-y package name regexps, I'd
appreciate.

Please test and review. I'm going to reply to this mail with the list
of current metadata.xml validation failures (it's quite long).

[1]:https://github.com/mgorny/gentoo-xml-schema

-- 
Best regards,
Michał Górny
<http://dev.gentoo.org/~mgorny/>

[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 949 bytes --]

^ permalink raw reply	[flat|nested] 16+ messages in thread

end of thread, other threads:[~2016-03-06 21:34 UTC | newest]

Thread overview: 16+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-03-06 11:01 [gentoo-dev] XML Schema files for metadata.xml, projects.xml and repositories.xml, for review and testing Michał Górny
2016-03-06 11:04 ` Michał Górny
2016-03-06 11:27   ` Sergei Trofimovich
2016-03-06 12:24   ` Davide Pesavento
2016-03-06 18:12     ` Justin <jlec>
2016-03-06 18:18       ` Michał Górny
2016-03-06 18:26         ` Davide Pesavento
2016-03-06 18:31           ` Michał Górny
2016-03-06 19:28             ` Ulrich Mueller
2016-03-06 19:35               ` Michał Górny
2016-03-06 20:22               ` Justin <jlec>
2016-03-06 20:49                 ` Michał Górny
2016-03-06 21:34                   ` Justin <jlec>
2016-03-06 18:31         ` Justin <jlec>
2016-03-06 18:25       ` Kent Fredric
  -- strict thread matches above, loose matches on Subject: below --
2016-03-06  9:43 Michał Górny

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox