public inbox for gentoo-dev@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-dev] RFC: VCS element in metadata.xml
@ 2016-10-12 16:44 Robin H. Johnson
  2016-10-12 16:44 ` [gentoo-dev] [PATCH] metadata: add vcs tag Robin H. Johnson
                   ` (2 more replies)
  0 siblings, 3 replies; 6+ messages in thread
From: Robin H. Johnson @ 2016-10-12 16:44 UTC (permalink / raw
  To: gentoo-dev

For projects where no consistent remote-id is available yet, make it possible
to track where the source is available. The element may appear multiple times,
but values must be unique.

<vcs>git://git.gentoo.org/proj/genkernel.git</vcs>
<vcs>https://gitweb.gentoo.org/proj/genkernel.git/</vcs>



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

* [gentoo-dev] [PATCH] metadata: add vcs tag
  2016-10-12 16:44 [gentoo-dev] RFC: VCS element in metadata.xml Robin H. Johnson
@ 2016-10-12 16:44 ` Robin H. Johnson
  2016-10-18  7:25   ` Gilles Dartiguelongue
  2016-10-12 16:44 ` Robin H. Johnson
  2016-10-12 16:50 ` [gentoo-dev] RFC: VCS element in metadata.xml Michał Górny
  2 siblings, 1 reply; 6+ messages in thread
From: Robin H. Johnson @ 2016-10-12 16:44 UTC (permalink / raw
  To: gentoo-dev

Signed-off-by: Robin H. Johnson <robbat2@gentoo.org>
---
 metadata.dtd | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/metadata.dtd b/metadata.dtd
index d7ef81c..380fdbd 100644
--- a/metadata.dtd
+++ b/metadata.dtd
@@ -35,7 +35,7 @@
       <!ATTLIST flag name CDATA #REQUIRED >
 
   <!-- upstream metadata information (maintainers, upstream docs,..) -->
-  <!ELEMENT upstream (maintainer|changelog|doc|bugs-to|remote-id)* >
+  <!ELEMENT upstream (maintainer|changelog|doc|bugs-to|remote-id|vcs)* >
     <!-- Due to the limitation of DTD this will also allow a status
       attribute for the package maintainer element. Please note that
       the usage of the status attribute is nevertheless _only_ allowed
@@ -52,6 +52,8 @@
     <!-- specify a type of package identification tracker -->
     <!ELEMENT remote-id (#PCDATA)>
       <!ATTLIST remote-id type (bitbucket|cpan|cpan-module|cpe|cran|ctan|freecode|freshmeat|gentoo|github|gitlab|gitorious|google-code|launchpad|pear|pecl|pypi|rubyforge|rubygems|sourceforge|sourceforge-jp|vim) #REQUIRED>
+    <!-- URL where upstream code may be found -->
+    <!ELEMENT vcs (#PCDATA)>
 
   <!-- category/package information for cross-linking in descriptions
     and useflag descriptions -->
-- 
2.9.0



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

* [gentoo-dev] [PATCH] metadata: add vcs tag
  2016-10-12 16:44 [gentoo-dev] RFC: VCS element in metadata.xml Robin H. Johnson
  2016-10-12 16:44 ` [gentoo-dev] [PATCH] metadata: add vcs tag Robin H. Johnson
@ 2016-10-12 16:44 ` Robin H. Johnson
  2016-10-12 16:52   ` Michał Górny
  2016-10-12 16:50 ` [gentoo-dev] RFC: VCS element in metadata.xml Michał Górny
  2 siblings, 1 reply; 6+ messages in thread
From: Robin H. Johnson @ 2016-10-12 16:44 UTC (permalink / raw
  To: gentoo-dev

Signed-off-by: Robin H. Johnson <robbat2@gentoo.org>
---
 metadata.xsd | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/metadata.xsd b/metadata.xsd
index cad8304..20423f8 100644
--- a/metadata.xsd
+++ b/metadata.xsd
@@ -83,6 +83,10 @@
 					<xs:selector xpath='doc'/>
 					<xs:field xpath='@lang'/>
 				</xs:unique>
+				<xs:unique name='upstreamVCSUniquityConstraint'>
+					<xs:selector xpath='vcs'/>
+					<xs:field xpath='@fake-only-once'/>
+				</xs:unique>
 			</xs:element>
 			<xs:element name='use' type='useType'>
 				<xs:unique name='flagUniquityConstraint'>
-- 
2.9.0



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

* Re: [gentoo-dev] RFC: VCS element in metadata.xml
  2016-10-12 16:44 [gentoo-dev] RFC: VCS element in metadata.xml Robin H. Johnson
  2016-10-12 16:44 ` [gentoo-dev] [PATCH] metadata: add vcs tag Robin H. Johnson
  2016-10-12 16:44 ` Robin H. Johnson
@ 2016-10-12 16:50 ` Michał Górny
  2 siblings, 0 replies; 6+ messages in thread
From: Michał Górny @ 2016-10-12 16:50 UTC (permalink / raw
  To: Robin H. Johnson; +Cc: gentoo-dev

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

On Wed, 12 Oct 2016 09:44:39 -0700
"Robin H. Johnson" <robbat2@gentoo.org> wrote:

> For projects where no consistent remote-id is available yet, make it possible
> to track where the source is available. The element may appear multiple times,
> but values must be unique.
> 
> <vcs>git://git.gentoo.org/proj/genkernel.git</vcs>
> <vcs>https://gitweb.gentoo.org/proj/genkernel.git/</vcs>

The second form is ambiguous, as it doesn't declare the VCS
in question. To follow a precedence, I suggest using the format from
repositories.xml.

Furthermore, you are missing the most important part -- patch for
GLEP 68.

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

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

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

* Re: [gentoo-dev] [PATCH] metadata: add vcs tag
  2016-10-12 16:44 ` Robin H. Johnson
@ 2016-10-12 16:52   ` Michał Górny
  0 siblings, 0 replies; 6+ messages in thread
From: Michał Górny @ 2016-10-12 16:52 UTC (permalink / raw
  To: Robin H. Johnson; +Cc: gentoo-dev

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

On Wed, 12 Oct 2016 09:44:41 -0700
"Robin H. Johnson" <robbat2@gentoo.org> wrote:

> Signed-off-by: Robin H. Johnson <robbat2@gentoo.org>
> ---
>  metadata.xsd | 4 ++++
>  1 file changed, 4 insertions(+)
> 
> diff --git a/metadata.xsd b/metadata.xsd
> index cad8304..20423f8 100644
> --- a/metadata.xsd
> +++ b/metadata.xsd
> @@ -83,6 +83,10 @@
>  					<xs:selector xpath='doc'/>
>  					<xs:field xpath='@lang'/>
>  				</xs:unique>
> +				<xs:unique name='upstreamVCSUniquityConstraint'>
> +					<xs:selector xpath='vcs'/>
> +					<xs:field xpath='@fake-only-once'/>
> +				</xs:unique>

Is there a reason to disallow more than one occurrence of <vcs/>?

>  			</xs:element>
>  			<xs:element name='use' type='useType'>
>  				<xs:unique name='flagUniquityConstraint'>

You are missing actually adding the element... You just added
a constraint on a non-existing element.

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

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

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

* Re: [gentoo-dev] [PATCH] metadata: add vcs tag
  2016-10-12 16:44 ` [gentoo-dev] [PATCH] metadata: add vcs tag Robin H. Johnson
@ 2016-10-18  7:25   ` Gilles Dartiguelongue
  0 siblings, 0 replies; 6+ messages in thread
From: Gilles Dartiguelongue @ 2016-10-18  7:25 UTC (permalink / raw
  To: gentoo-dev

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

Le mercredi 12 octobre 2016 à 09:44 -0700, Robin H. Johnson a écrit :
> 
> [...]
> @@ -52,6 +52,8 @@
>      <!-- specify a type of package identification tracker -->
>      <!ELEMENT remote-id (#PCDATA)>
>        <!ATTLIST remote-id type (bitbucket|cpan|cpan-
> module|cpe|cran|ctan|freecode|freshmeat|gentoo|github|gitlab|gitoriou
> s|google-
> code|launchpad|pear|pecl|pypi|rubyforge|rubygems|sourceforge|sourcefo
> rge-jp|vim) #REQUIRED>
> +    <!-- URL where upstream code may be found -->
> +    <!ELEMENT vcs (#PCDATA)>

I am probably nitpicking here but if you expect this element to contain
a valid URL, then maybe using #CDATA makes more sense ?

-- 
Gilles Dartiguelongue <eva@gentoo.org>
Gentoo

[-- Attachment #2: This is a digitally signed message part --]
[-- Type: application/pgp-signature, Size: 335 bytes --]

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

end of thread, other threads:[~2016-10-18  7:25 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-10-12 16:44 [gentoo-dev] RFC: VCS element in metadata.xml Robin H. Johnson
2016-10-12 16:44 ` [gentoo-dev] [PATCH] metadata: add vcs tag Robin H. Johnson
2016-10-18  7:25   ` Gilles Dartiguelongue
2016-10-12 16:44 ` Robin H. Johnson
2016-10-12 16:52   ` Michał Górny
2016-10-12 16:50 ` [gentoo-dev] RFC: VCS element in metadata.xml 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