public inbox for gentoo-dev@lists.gentoo.org
 help / color / mirror / Atom feed
From: Michael Palimaka <kensington@gentoo.org>
To: gentoo-dev@lists.gentoo.org
Subject: [gentoo-dev] Re: [PATCH] metadata: add slots element
Date: Tue, 13 Oct 2015 23:53:24 +1100	[thread overview]
Message-ID: <mvius4$cp4$1@ger.gmane.org> (raw)
In-Reply-To: <1444670373-12706-2-git-send-email-hasufell@gentoo.org>

On 13/10/15 04:19, Julian Ospald wrote:
> There seems to be some general confusion about specific package SLOTs
> and their meaning, since there can be several naming schemes applied
> and documentation is either non-existent or is inside the ebuild via
> comments.
> Because of that it should be part of metadata.xml.
> 
> An example use case for media-libs/libpng would be:
> <slots>
>     <slot name="0">For building against. This is the only slot
>         that provides headers and command line tools.</slot>
>     <slot name="1.2">For binary compatibility, provides libpng12.so.0.</slot>
>     <slot name="1.5">For binary compatibility, provides libpng15.so.15.</slot>
>     <subslots>Represent ABI compatibility for libpng.so.</subslots>
> </slots>
> 
> For packages like x11-libs/wxGTK one could write:
> <slots>
>     <slot name="*">Major versions.</slot>
> </slots>
> ---
>  metadata.dtd | 12 +++++++++++-
>  1 file changed, 11 insertions(+), 1 deletion(-)
> 
> diff --git a/metadata.dtd b/metadata.dtd
> index ff2649c..4b29f3b 100644
> --- a/metadata.dtd
> +++ b/metadata.dtd
> @@ -5,7 +5,7 @@
>  <!ATTLIST catmetadata pkgname CDATA "">
>  
>  <!-- Metadata for a package -->
> -<!ELEMENT pkgmetadata ( (herd|maintainer|natural-name|longdescription|use|upstream)* )>
> +<!ELEMENT pkgmetadata ( (herd|maintainer|natural-name|longdescription|slots|use|upstream)* )>
>  <!ATTLIST pkgmetadata pkgname CDATA "">
>  
>    <!-- One tag for each herd this package is assigned to. -->
> @@ -20,6 +20,15 @@
>    <!-- A long description of the package in freetext-->
>    <!ELEMENT longdescription (#PCDATA|pkg|cat)* >
>  
> +  <!-- A description of the packages SLOTs -->
> +  <!ELEMENT slots ((slot)*,subslots?) >
> +    <!-- A particular SLOT -->
> +    <!ELEMENT slot (#PCDATA)* >
> +      <!-- name attribute holds the name of the SLOT, for sub-SLOTS use the subslots element -->
> +      <!ATTLIST slot name CDATA #REQUIRED >
> +    <!-- The meaning of sub-SLOTs for the whole package -->
> +    <!ELEMENT subslots (#PCDATA)* >
> +
>    <!-- The changelog of the package-->
>    <!-- Please note that #PCDATA is mentioned only for the upstream changelog
>      element, where the content is a URL. This is due to limitations of the DTD -->
> @@ -79,6 +88,7 @@
>    language "C" or "en", which is equivalent -->
>    <!ATTLIST description lang CDATA "C" >
>    <!ATTLIST longdescription lang CDATA "C" >
> +  <!ATTLIST slots lang CDATA "C" >
>    <!ATTLIST use lang CDATA "C" >
>  
>  <!-- The restrict attribute, this attribute specifies restrictions on 
> 

+1



  parent reply	other threads:[~2015-10-13 12:54 UTC|newest]

Thread overview: 16+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-10-12 17:19 [gentoo-dev] [RFC] Allow SLOT documentation in metadata.xml Julian Ospald
2015-10-12 17:19 ` [gentoo-dev] [PATCH] metadata: add slots element Julian Ospald
2015-10-12 17:49   ` Alexis Ballier
2015-10-12 18:01     ` hasufell
2015-10-12 18:07       ` Alexis Ballier
2015-10-13  0:11       ` Ian Delaney
2015-10-13  7:51         ` Alexis Ballier
2015-10-13  9:39           ` hasufell
2015-10-13 10:09             ` Alexis Ballier
2015-10-13 18:38             ` Manuel Rüger
2015-10-14 17:59             ` Ian Stakenvicius
2015-10-12 21:49   ` Andreas K. Huettel
2015-10-13  2:13     ` NP-Hardass
2015-10-13 12:53   ` Michael Palimaka [this message]
2015-10-18 18:21 ` [gentoo-dev] [RFC] Allow SLOT documentation in metadata.xml Alexis Ballier
2015-10-18 18:35   ` hasufell

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to='mvius4$cp4$1@ger.gmane.org' \
    --to=kensington@gentoo.org \
    --cc=gentoo-dev@lists.gentoo.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox