public inbox for gentoo-dev@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-dev] Upstream tags in metadata.xml (GLEP 46)
@ 2010-02-04 21:37 Tiziano Müller
  2010-02-04 21:53 ` Tiziano Müller
                   ` (2 more replies)
  0 siblings, 3 replies; 8+ messages in thread
From: Tiziano Müller @ 2010-02-04 21:37 UTC (permalink / raw
  To: gentoo-dev, gentoo-dev-announce

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

While some people already discovered the upstream metadata tags, there
are only 8 ebuilds using them so far. Mostly I am to blame for that,
since I forgot to send out a proper announcement. While all the required
information can be found in the Developer Handbook [1], here is a short
summary:

The upstream tags are meant as a way to track information about
upstream, like:
- the upstream status (can make treecleaners lives easier)
- online documentation links (a shortcut for the user)
- not-so-obvious contact/bug-reporting information
- id of a hosting or indexing site (automated version bump checks)
- their alignment (mostly chaotic-neutral ;-)

An example (copied from GLEP 46 [2] itself):
<upstream>
    <maintainer status="inactive">
        <name>Foo Bar</name>
        <email>foo@bar.bar</email>
    </maintainer>
    <maintainer status="active">
        <name>Foo Gentoo</name>
        <email>foo@gentoo.org</email>
    </maintainer>
    <changelog>http://foo.bar/changelog.txt</changelog>
    <doc lang="en">http://foo.bar/doc/index.html</doc>
    <doc lang="de">http://foo.bar/doc/index.de.html</doc>
    <bugs-to>https://bugs.foo.bar</bugs-to>
    <remote-id type="freshmeat">foobar</remote-id>
    <remote-id type="sourceforge">foobar</remote-id>
</upstream>

Please note:
- the <maintainer> tag in <upstream> is only for specifying an upstream
maintainer name and e-mail address and does not specify the ebuild
maintainer (although it may be the same if you decide to become
upstream).
- the type attribute for <remote-id> is currently one of (freshmeat|
sourceforge|cpan|vim), send a mail to gentoo-dev before adding
additional sites
- the data in the <remote-id> tags is an id which uniquely identifies
the project on that site:
    - for type="vim": the script_id (example: 2586)
    - for type="freshmeat": the project name (example: aria2)
    - for type="sourceforge": the project name (example: liferea)
    - for type="cpan": the module name (example: Pod-Index)

Regards,
Tiziano



[1]:
http://www.gentoo.org/proj/en/devrel/handbook/handbook.xml?part=2&chap=4
[2]: http://www.gentoo.org/proj/en/glep/glep-0046.html


-- 
Tiziano Müller
Gentoo Linux Developer
Areas of responsibility:
  Samba, PostgreSQL, CPP, Python, sysadmin, GLEP Editor
E-Mail   : dev-zero@gentoo.org
GnuPG FP : F327 283A E769 2E36 18D5  4DE2 1B05 6A63 AE9C 1E30


[-- Attachment #2: smime.p7s --]
[-- Type: application/x-pkcs7-signature, Size: 3551 bytes --]

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

* Re: [gentoo-dev] Upstream tags in metadata.xml (GLEP 46)
  2010-02-04 21:37 [gentoo-dev] Upstream tags in metadata.xml (GLEP 46) Tiziano Müller
@ 2010-02-04 21:53 ` Tiziano Müller
  2010-02-05 10:34   ` Alexis Ballier
  2010-02-05  1:05 ` Mike Frysinger
  2010-02-05 17:16 ` Peter Volkov
  2 siblings, 1 reply; 8+ messages in thread
From: Tiziano Müller @ 2010-02-04 21:53 UTC (permalink / raw
  To: gentoo-dev

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

Am Donnerstag, den 04.02.2010, 22:37 +0100 schrieb Tiziano Müller:
> While some people already discovered the upstream metadata tags, there
> are only 8 ebuilds using them so far. Mostly I am to blame for that,
> since I forgot to send out a proper announcement. While all the required
> information can be found in the Developer Handbook [1], here is a short
> summary:
> 
> The upstream tags are meant as a way to track information about
> upstream, like:
> - the upstream status (can make treecleaners lives easier)
> - online documentation links (a shortcut for the user)
> - not-so-obvious contact/bug-reporting information
> - id of a hosting or indexing site (automated version bump checks)
> - their alignment (mostly chaotic-neutral ;-)
> 
> An example (copied from GLEP 46 [2] itself):
> <upstream>
>     <maintainer status="inactive">
>         <name>Foo Bar</name>
>         <email>foo@bar.bar</email>
>     </maintainer>
>     <maintainer status="active">
>         <name>Foo Gentoo</name>
>         <email>foo@gentoo.org</email>
>     </maintainer>
>     <changelog>http://foo.bar/changelog.txt</changelog>
>     <doc lang="en">http://foo.bar/doc/index.html</doc>
>     <doc lang="de">http://foo.bar/doc/index.de.html</doc>
>     <bugs-to>https://bugs.foo.bar</bugs-to>
>     <remote-id type="freshmeat">foobar</remote-id>
>     <remote-id type="sourceforge">foobar</remote-id>
> </upstream>
> 
> Please note:
> - the <maintainer> tag in <upstream> is only for specifying an upstream
> maintainer name and e-mail address and does not specify the ebuild
> maintainer (although it may be the same if you decide to become
> upstream).
> - the type attribute for <remote-id> is currently one of (freshmeat|
> sourceforge|cpan|vim), send a mail to gentoo-dev before adding
> additional sites
> - the data in the <remote-id> tags is an id which uniquely identifies
> the project on that site:
>     - for type="vim": the script_id (example: 2586)
>     - for type="freshmeat": the project name (example: aria2)
>     - for type="sourceforge": the project name (example: liferea)
>     - for type="cpan": the module name (example: Pod-Index)

Other sites I'd like to add:
- pypi
- google-code
- ctan ... if someone can identify a key for packages

Opinions?

Cheers,
Tiziano

-- 
Tiziano Müller
Gentoo Linux Developer
Areas of responsibility:
  Samba, PostgreSQL, CPP, Python, sysadmin, GLEP Editor
E-Mail   : dev-zero@gentoo.org
GnuPG FP : F327 283A E769 2E36 18D5  4DE2 1B05 6A63 AE9C 1E30

[-- Attachment #2: smime.p7s --]
[-- Type: application/x-pkcs7-signature, Size: 3551 bytes --]

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

* Re: [gentoo-dev] Upstream tags in metadata.xml (GLEP 46)
  2010-02-04 21:37 [gentoo-dev] Upstream tags in metadata.xml (GLEP 46) Tiziano Müller
  2010-02-04 21:53 ` Tiziano Müller
@ 2010-02-05  1:05 ` Mike Frysinger
  2010-02-06  0:35   ` Doug Goldstein
  2010-02-05 17:16 ` Peter Volkov
  2 siblings, 1 reply; 8+ messages in thread
From: Mike Frysinger @ 2010-02-05  1:05 UTC (permalink / raw
  To: gentoo-dev

[-- Attachment #1: Type: Text/Plain, Size: 550 bytes --]

On Thursday 04 February 2010 16:37:01 Tiziano Müller wrote:
> While some people already discovered the upstream metadata tags, there
> are only 8 ebuilds using them so far. Mostly I am to blame for that,
> since I forgot to send out a proper announcement. While all the required
> information can be found in the Developer Handbook [1], here is a short
> summary:

anyone who feels like doing this kind of work should feel free to add any 
<upstream> tags to base-system/toolchain/games packages ... no need for 
bugzilla and such.
-mike

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

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

* Re: [gentoo-dev] Upstream tags in metadata.xml (GLEP 46)
  2010-02-04 21:53 ` Tiziano Müller
@ 2010-02-05 10:34   ` Alexis Ballier
  2010-02-05 21:53     ` Tiziano Müller
  0 siblings, 1 reply; 8+ messages in thread
From: Alexis Ballier @ 2010-02-05 10:34 UTC (permalink / raw
  To: gentoo-dev

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

> Other sites I'd like to add:
> - pypi
> - google-code
> - ctan ... if someone can identify a key for packages

I don't know what you exactly mean by a key, but for ctan the
catalogue [1,2] may be what you're looking for.
If I understood correctly, a key would be $PN and the relevant
information found in, e.g.,
http://texcatalogue.sarovar.org/entries/${PN}.html

Note that not all packages have version information; if they don't, one
can probably use the date instead.

If I remember correctly, texlive has perl scripts/libs to deal with it,
so it may be possible to reuse them for a bumpchecker.

Also, definitely +1 for adding more sites, but I think one important
feature is missing: simple http/ftp listing. Not all projects are
hosted on major sites, and having a (more complicated) way of tracking
versions based on a directory listing could be useful. I do not know
how to exactly implement that (maybe a regexp to match only the files
we want and a sed/awk script to do the $tarball -> $PV pass).
If I remember correctly debian has something like that for version
tracking, so it may be worth having a look.

Alexis.

[1] http://dante.ctan.org/tex-archive/help/Catalogue/catalogue.html
[2] http://texcatalogue.sarovar.org/

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

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

* Re: [gentoo-dev] Upstream tags in metadata.xml (GLEP 46)
  2010-02-04 21:37 [gentoo-dev] Upstream tags in metadata.xml (GLEP 46) Tiziano Müller
  2010-02-04 21:53 ` Tiziano Müller
  2010-02-05  1:05 ` Mike Frysinger
@ 2010-02-05 17:16 ` Peter Volkov
  2010-02-05 19:08   ` Tiziano Müller
  2 siblings, 1 reply; 8+ messages in thread
From: Peter Volkov @ 2010-02-05 17:16 UTC (permalink / raw
  To: gentoo-dev

В Чтв, 04/02/2010 в 22:37 +0100, Tiziano Müller пишет:
> The upstream tags are meant as a way to track information about
> - id of a hosting or indexing site (automated version bump checks)

Does there exist any scripts for this?

-- 
Peter.




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

* Re: [gentoo-dev] Upstream tags in metadata.xml (GLEP 46)
  2010-02-05 17:16 ` Peter Volkov
@ 2010-02-05 19:08   ` Tiziano Müller
  0 siblings, 0 replies; 8+ messages in thread
From: Tiziano Müller @ 2010-02-05 19:08 UTC (permalink / raw
  To: gentoo-dev

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

Am Freitag, den 05.02.2010, 20:16 +0300 schrieb Peter Volkov:
> В Чтв, 04/02/2010 в 22:37 +0100, Tiziano Müller пишет:
> > The upstream tags are meant as a way to track information about
> > - id of a hosting or indexing site (automated version bump checks)
> 
> Does there exist any scripts for this?
> 
Not that I know of. I once started working on one.

-- 
Tiziano Müller
Gentoo Linux Developer
Areas of responsibility:
  Samba, PostgreSQL, CPP, Python, sysadmin, GLEP Editor
E-Mail   : dev-zero@gentoo.org
GnuPG FP : F327 283A E769 2E36 18D5  4DE2 1B05 6A63 AE9C 1E30

[-- Attachment #2: smime.p7s --]
[-- Type: application/x-pkcs7-signature, Size: 3551 bytes --]

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

* Re: [gentoo-dev] Upstream tags in metadata.xml (GLEP 46)
  2010-02-05 10:34   ` Alexis Ballier
@ 2010-02-05 21:53     ` Tiziano Müller
  0 siblings, 0 replies; 8+ messages in thread
From: Tiziano Müller @ 2010-02-05 21:53 UTC (permalink / raw
  To: gentoo-dev

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

Am Freitag, den 05.02.2010, 11:34 +0100 schrieb Alexis Ballier:
> > Other sites I'd like to add:
> > - pypi
> > - google-code
> > - ctan ... if someone can identify a key for packages
> 
> I don't know what you exactly mean by a key, but for ctan the
> catalogue [1,2] may be what you're looking for.
> If I understood correctly, a key would be $PN and the relevant
> information found in, e.g.,
> http://texcatalogue.sarovar.org/entries/${PN}.html
> 
> Note that not all packages have version information; if they don't, one
> can probably use the date instead.
Last time I checked I didn't have the impression that ${PN} is not
enough to get a unique entry for a package on ctan.

> 
> If I remember correctly, texlive has perl scripts/libs to deal with it,
> so it may be possible to reuse them for a bumpchecker.
> 
> Also, definitely +1 for adding more sites, but I think one important
> feature is missing: simple http/ftp listing. Not all projects are
> hosted on major sites, and having a (more complicated) way of tracking
> versions based on a directory listing could be useful.
Definitely, but for http/ftp listing checks SRC_URI is probably enough.
The only thing which could make it easier is when upstream uses
sub-directories for major/minor versions (like gnome for example). In
that case something like <remote-id
type="ftp">http://ftp.gnome.org/pub/GNOME/sources/GConf</remote-id>
might help to find a new version easier, but I really doubt it.

But for now I'd stick to the two cases:
a) hosting sites with project numbers/ids/names where we can extract
version information in a general way
b) arbitrary download sites, in which case a bump checker could try to
find new versions by checking for a http/ftp listing or by checking the
Changelog (<changelog>...</changelog>) which may also be a good way to
know whether something changed at upstream (and then let the developer
decide what it was)

>  I do not know
> how to exactly implement that (maybe a regexp to match only the files
> we want and a sed/awk script to do the $tarball -> $PV pass).
> If I remember correctly debian has something like that for version
> tracking, so it may be worth having a look.
> 
> Alexis.
> 
> [1] http://dante.ctan.org/tex-archive/help/Catalogue/catalogue.html
> [2] http://texcatalogue.sarovar.org/



-- 
Tiziano Müller
Gentoo Linux Developer
Areas of responsibility:
  Samba, PostgreSQL, CPP, Python, sysadmin, GLEP Editor
E-Mail   : dev-zero@gentoo.org
GnuPG FP : F327 283A E769 2E36 18D5  4DE2 1B05 6A63 AE9C 1E30

[-- Attachment #2: smime.p7s --]
[-- Type: application/x-pkcs7-signature, Size: 3551 bytes --]

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

* Re: [gentoo-dev] Upstream tags in metadata.xml (GLEP 46)
  2010-02-05  1:05 ` Mike Frysinger
@ 2010-02-06  0:35   ` Doug Goldstein
  0 siblings, 0 replies; 8+ messages in thread
From: Doug Goldstein @ 2010-02-06  0:35 UTC (permalink / raw
  To: gentoo-dev

On Thu, Feb 4, 2010 at 7:05 PM, Mike Frysinger <vapier@gentoo.org> wrote:
> On Thursday 04 February 2010 16:37:01 Tiziano Müller wrote:
>> While some people already discovered the upstream metadata tags, there
>> are only 8 ebuilds using them so far. Mostly I am to blame for that,
>> since I forgot to send out a proper announcement. While all the required
>> information can be found in the Developer Handbook [1], here is a short
>> summary:
>
> anyone who feels like doing this kind of work should feel free to add any
> <upstream> tags to base-system/toolchain/games packages ... no need for
> bugzilla and such.
> -mike
>

Ditto on base-system/mythtv/app-emulation

-- 
Doug Goldstein



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

end of thread, other threads:[~2010-02-06  0:35 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-02-04 21:37 [gentoo-dev] Upstream tags in metadata.xml (GLEP 46) Tiziano Müller
2010-02-04 21:53 ` Tiziano Müller
2010-02-05 10:34   ` Alexis Ballier
2010-02-05 21:53     ` Tiziano Müller
2010-02-05  1:05 ` Mike Frysinger
2010-02-06  0:35   ` Doug Goldstein
2010-02-05 17:16 ` Peter Volkov
2010-02-05 19:08   ` Tiziano Müller

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