public inbox for gentoo-dev@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-dev] RFC: Forbid using versions in DESCRIPTION
@ 2007-07-24 11:11 Petteri Räty
  2007-07-24 11:36 ` [gentoo-dev] " Christian Faulhammer
  2007-07-24 12:02 ` Tiziano Müller
  0 siblings, 2 replies; 26+ messages in thread
From: Petteri Räty @ 2007-07-24 11:11 UTC (permalink / raw
  To: gentoo-dev

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

Currently there are some ebuilds in the tree that use ${PV} in
description which leads to results like:
     Description:         Documentation (including API Javadocs) for
Java SDK version 1.6.0

I did see anything in devmanual taking a stance on this issue:
http://devmanual.gentoo.org/ebuild-writing/variables/index.html
What do you think about adding a sentence or two saying that you should
not use version numbers in DESCRIPTION? This could even be added to repoman.

Regards,
Petteri


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

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

* [gentoo-dev] Re: RFC: Forbid using versions in DESCRIPTION
  2007-07-24 11:11 [gentoo-dev] RFC: Forbid using versions in DESCRIPTION Petteri Räty
@ 2007-07-24 11:36 ` Christian Faulhammer
  2007-07-24 11:44   ` Marijn Schouten (hkBst)
  2007-07-24 12:02 ` Tiziano Müller
  1 sibling, 1 reply; 26+ messages in thread
From: Christian Faulhammer @ 2007-07-24 11:36 UTC (permalink / raw
  To: gentoo-dev@lists.gentoo.org

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

Petteri Räty <betelgeuse@gentoo.org>:

> I did see anything in devmanual taking a stance on this issue:
> http://devmanual.gentoo.org/ebuild-writing/variables/index.html
> What do you think about adding a sentence or two saying that you
> should not use version numbers in DESCRIPTION? This could even be
> added to repoman.

 Is this iussue that grave, that we repoman needs to whine about it?
What is the issue with it (apart from p.g.o, eix and friends not
displaying correct information) exactly?

V-Li

-- 
http://www.gentoo.org/
http://www.faulhammer.org/
http://www.gnupg.org/

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

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

* Re: [gentoo-dev] Re: RFC: Forbid using versions in DESCRIPTION
  2007-07-24 11:36 ` [gentoo-dev] " Christian Faulhammer
@ 2007-07-24 11:44   ` Marijn Schouten (hkBst)
  2007-07-24 11:54     ` David Shakaryan
                       ` (3 more replies)
  0 siblings, 4 replies; 26+ messages in thread
From: Marijn Schouten (hkBst) @ 2007-07-24 11:44 UTC (permalink / raw
  To: gentoo-dev

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Christian Faulhammer wrote:
> Petteri R�ty <betelgeuse@gentoo.org>:
> 
>> I did see anything in devmanual taking a stance on this issue:
>> http://devmanual.gentoo.org/ebuild-writing/variables/index.html
>> What do you think about adding a sentence or two saying that you
>> should not use version numbers in DESCRIPTION? This could even be
>> added to repoman.
> 
>  Is this iussue that grave, that we repoman needs to whine about it?
> What is the issue with it (apart from p.g.o, eix and friends not
> displaying correct information) exactly?
> 
> V-Li

Perhaps we should just move DESCRIPTIONs to metadata. That would make it
impossible to use ${PV} and more importantly also remove some duplication.

Marijn


-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.5 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFGpeY0p/VmCx0OL2wRAttEAJ4pNQ9Ez7zz3wyOsZtBKclfEIll0gCfTW6z
w1X0FcpUJ1OnijVdd8wOJ0A=
=JsjC
-----END PGP SIGNATURE-----
-- 
gentoo-dev@gentoo.org mailing list



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

* Re: [gentoo-dev] Re: RFC: Forbid using versions in DESCRIPTION
  2007-07-24 11:44   ` Marijn Schouten (hkBst)
@ 2007-07-24 11:54     ` David Shakaryan
  2007-07-24 12:04     ` Petteri Räty
                       ` (2 subsequent siblings)
  3 siblings, 0 replies; 26+ messages in thread
From: David Shakaryan @ 2007-07-24 11:54 UTC (permalink / raw
  To: gentoo-dev

Marijn Schouten (hkBst) wrote:
> Perhaps we should just move DESCRIPTIONs to metadata. That would make it
> impossible to use ${PV} and more importantly also remove some duplication.

I think that this is a great idea, for the reasons which you stated. I 
certainly hope this will not be yet another situation where everyone 
agrees and no one takes any action to actually implement anything.

-- 
David Shakaryan
-- 
gentoo-dev@gentoo.org mailing list



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

* [gentoo-dev]  Re: RFC: Forbid using versions in DESCRIPTION
  2007-07-24 11:11 [gentoo-dev] RFC: Forbid using versions in DESCRIPTION Petteri Räty
  2007-07-24 11:36 ` [gentoo-dev] " Christian Faulhammer
@ 2007-07-24 12:02 ` Tiziano Müller
  2007-07-24 12:06   ` Petteri Räty
  2007-07-24 12:12   ` David Shakaryan
  1 sibling, 2 replies; 26+ messages in thread
From: Tiziano Müller @ 2007-07-24 12:02 UTC (permalink / raw
  To: gentoo-dev

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

Petteri Räty schrieb:
> Currently there are some ebuilds in the tree that use ${PV} in
> description which leads to results like:
>      Description:         Documentation (including API Javadocs) for
> Java SDK version 1.6.0
> 
> I did see anything in devmanual taking a stance on this issue:
> http://devmanual.gentoo.org/ebuild-writing/variables/index.html
> What do you think about adding a sentence or two saying that you should
> not use version numbers in DESCRIPTION? This could even be added to repoman.

As far as I understood it, having DESCRIPTION in the ebuild itself
(rather than in metadata) means that DESCRIPTION is allowed to change
between versions, whether "automatically" by using a version-dependent
variable or "manually".

I'd therefore only add a note in the devmanual which recommends not to
use ${PV} (and ${P}, ...) in the DESCRIPTION.

Cheers,
Tiziano


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

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

* Re: [gentoo-dev] Re: RFC: Forbid using versions in DESCRIPTION
  2007-07-24 11:44   ` Marijn Schouten (hkBst)
  2007-07-24 11:54     ` David Shakaryan
@ 2007-07-24 12:04     ` Petteri Räty
  2007-07-24 13:22       ` Tiziano Müller
  2007-07-24 12:16     ` Ciaran McCreesh
  2007-07-24 13:36     ` Luca Barbato
  3 siblings, 1 reply; 26+ messages in thread
From: Petteri Räty @ 2007-07-24 12:04 UTC (permalink / raw
  To: gentoo-dev

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

Marijn Schouten (hkBst) kirjoitti:
> Christian Faulhammer wrote:
>> Petteri Rýty <betelgeuse@gentoo.org>:
> 
>>> I did see anything in devmanual taking a stance on this issue:
>>> http://devmanual.gentoo.org/ebuild-writing/variables/index.html
>>> What do you think about adding a sentence or two saying that you
>>> should not use version numbers in DESCRIPTION? This could even be
>>> added to repoman.
>>  Is this iussue that grave, that we repoman needs to whine about it?
>> What is the issue with it (apart from p.g.o, eix and friends not
>> displaying correct information) exactly?
> 
>> V-Li
> 
> Perhaps we should just move DESCRIPTIONs to metadata. That would make it
> impossible to use ${PV} and more importantly also remove some duplication.
> 
> Marijn
> 
> 

<shortdescription>
</shortdescription>

sounds like something for EAPI-1

https://bugs.gentoo.org/show_bug.cgi?id=186454

Regards,
Petteri


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

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

* Re: [gentoo-dev]  Re: RFC: Forbid using versions in DESCRIPTION
  2007-07-24 12:02 ` Tiziano Müller
@ 2007-07-24 12:06   ` Petteri Räty
  2007-07-24 12:14     ` Ciaran McCreesh
  2007-07-24 12:12   ` David Shakaryan
  1 sibling, 1 reply; 26+ messages in thread
From: Petteri Räty @ 2007-07-24 12:06 UTC (permalink / raw
  To: gentoo-dev

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

Tiziano Müller kirjoitti:
> Petteri Räty schrieb:
>> Currently there are some ebuilds in the tree that use ${PV} in
>> description which leads to results like:
>>      Description:         Documentation (including API Javadocs) for
>> Java SDK version 1.6.0
>>
>> I did see anything in devmanual taking a stance on this issue:
>> http://devmanual.gentoo.org/ebuild-writing/variables/index.html
>> What do you think about adding a sentence or two saying that you should
>> not use version numbers in DESCRIPTION? This could even be added to repoman.
> 
> As far as I understood it, having DESCRIPTION in the ebuild itself
> (rather than in metadata) means that DESCRIPTION is allowed to change
> between versions, whether "automatically" by using a version-dependent
> variable or "manually".
> 
> I'd therefore only add a note in the devmanual which recommends not to
> use ${PV} (and ${P}, ...) in the DESCRIPTION.
> 
> Cheers,
> Tiziano
> 

But is there anything that makes use of version specific DESCRIPTION atoms?

Regards,
Petteri


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

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

* Re: [gentoo-dev]  Re: RFC: Forbid using versions in DESCRIPTION
  2007-07-24 12:02 ` Tiziano Müller
  2007-07-24 12:06   ` Petteri Räty
@ 2007-07-24 12:12   ` David Shakaryan
  1 sibling, 0 replies; 26+ messages in thread
From: David Shakaryan @ 2007-07-24 12:12 UTC (permalink / raw
  To: gentoo-dev

Tiziano Müller wrote:
> As far as I understood it, having DESCRIPTION in the ebuild itself
> (rather than in metadata) means that DESCRIPTION is allowed to change
> between versions, whether "automatically" by using a version-dependent
> variable or "manually".

Well, from what I understand, DESCRIPTION should generally stay the same 
between different versions of the same package. While two versions of 
the same package may have some slight differences, the general purpose 
of the package should remain the same, and DESCRIPTION is after all just 
a short general description. I don't see any/enough exceptions to 
warrant all the duplication and unnecessary complexity.

-- 
David Shakaryan
-- 
gentoo-dev@gentoo.org mailing list



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

* Re: [gentoo-dev]  Re: RFC: Forbid using versions in DESCRIPTION
  2007-07-24 12:06   ` Petteri Räty
@ 2007-07-24 12:14     ` Ciaran McCreesh
  2007-07-24 12:18       ` Petteri Räty
                         ` (2 more replies)
  0 siblings, 3 replies; 26+ messages in thread
From: Ciaran McCreesh @ 2007-07-24 12:14 UTC (permalink / raw
  To: gentoo-dev

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

On Tue, 24 Jul 2007 15:06:40 +0300
Petteri Räty <betelgeuse@gentoo.org> wrote:
> But is there anything that makes use of version specific DESCRIPTION
> atoms?

Yep. Have a look at sys-devel/gcc for example. Some versions include
various extensions, and say so in DESCRIPTION.

-- 
Ciaran McCreesh


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

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

* Re: [gentoo-dev] Re: RFC: Forbid using versions in DESCRIPTION
  2007-07-24 11:44   ` Marijn Schouten (hkBst)
  2007-07-24 11:54     ` David Shakaryan
  2007-07-24 12:04     ` Petteri Räty
@ 2007-07-24 12:16     ` Ciaran McCreesh
  2007-07-24 12:26       ` Petteri Räty
  2007-07-24 13:18       ` Tiziano Müller
  2007-07-24 13:36     ` Luca Barbato
  3 siblings, 2 replies; 26+ messages in thread
From: Ciaran McCreesh @ 2007-07-24 12:16 UTC (permalink / raw
  To: gentoo-dev

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

On Tue, 24 Jul 2007 13:44:52 +0200
"Marijn Schouten (hkBst)" <hkBst@gentoo.org> wrote:
> Perhaps we should just move DESCRIPTIONs to metadata. That would make
> it impossible to use ${PV} and more importantly also remove some
> duplication.

Got to be careful here. In the past it's been stated that Portage won't
use XML for anything that it has to parse.

-- 
Ciaran McCreesh


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

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

* Re: [gentoo-dev]  Re: RFC: Forbid using versions in DESCRIPTION
  2007-07-24 12:14     ` Ciaran McCreesh
@ 2007-07-24 12:18       ` Petteri Räty
  2007-07-24 13:14         ` Tiziano Müller
  2007-07-24 12:53       ` Marijn Schouten (hkBst)
  2007-07-25 12:15       ` Mike Frysinger
  2 siblings, 1 reply; 26+ messages in thread
From: Petteri Räty @ 2007-07-24 12:18 UTC (permalink / raw
  To: gentoo-dev

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

Ciaran McCreesh kirjoitti:
> On Tue, 24 Jul 2007 15:06:40 +0300
> Petteri Räty <betelgeuse@gentoo.org> wrote:
>> But is there anything that makes use of version specific DESCRIPTION
>> atoms?
> 
> Yep. Have a look at sys-devel/gcc for example. Some versions include
> various extensions, and say so in DESCRIPTION.
> 

I did say in my original mail that there are ebuilds building dynamic
DESCRIPTION variables but the my question was that does anything make
use of their dynamic nature. I think for example eix only looks at the
latest.

Regards,
Petteri


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

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

* Re: [gentoo-dev] Re: RFC: Forbid using versions in DESCRIPTION
  2007-07-24 12:16     ` Ciaran McCreesh
@ 2007-07-24 12:26       ` Petteri Räty
  2007-07-24 13:09         ` Robert Buchholz
  2007-07-24 13:18       ` Tiziano Müller
  1 sibling, 1 reply; 26+ messages in thread
From: Petteri Räty @ 2007-07-24 12:26 UTC (permalink / raw
  To: gentoo-dev

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

Ciaran McCreesh kirjoitti:
> On Tue, 24 Jul 2007 13:44:52 +0200
> "Marijn Schouten (hkBst)" <hkBst@gentoo.org> wrote:
>> Perhaps we should just move DESCRIPTIONs to metadata. That would make
>> it impossible to use ${PV} and more importantly also remove some
>> duplication.
> 
> Got to be careful here. In the past it's been stated that Portage won't
> use XML for anything that it has to parse.
> 

Well here we need to answer the question whether searching DESCRIPTION
strings is a core feature. I have never used emerge --searchdesc but
that might be just me.

Regards,
Petteri


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

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

* Re: [gentoo-dev]  Re: RFC: Forbid using versions in DESCRIPTION
  2007-07-24 12:14     ` Ciaran McCreesh
  2007-07-24 12:18       ` Petteri Räty
@ 2007-07-24 12:53       ` Marijn Schouten (hkBst)
  2007-07-25 12:15       ` Mike Frysinger
  2 siblings, 0 replies; 26+ messages in thread
From: Marijn Schouten (hkBst) @ 2007-07-24 12:53 UTC (permalink / raw
  To: gentoo-dev

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Petteri Räty wrote:
> Marijn Schouten (hkBst) kirjoitti:
>> Perhaps we should just move DESCRIPTIONs to metadata. That would make it
>> impossible to use ${PV} and more importantly also remove some duplication.
>
> <shortdescription>
> </shortdescription>
>
> sounds like something for EAPI-1
>
> https://bugs.gentoo.org/show_bug.cgi?id=186454

right, we can just get rid of DESCIRPTION

Ciaran McCreesh wrote:
> On Tue, 24 Jul 2007 15:06:40 +0300
> Petteri Räty <betelgeuse@gentoo.org> wrote:
>> But is there anything that makes use of version specific DESCRIPTION
>> atoms?
> 
> Yep. Have a look at sys-devel/gcc for example. Some versions include
> various extensions, and say so in DESCRIPTION.

and put details like this in <longdescription>.

Marijn
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.5 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFGpfZZp/VmCx0OL2wRAqnsAJ4s1QCF2X+DZlxupyRjLGm3getRVwCeMrmx
bwX7qP5PeseQ4B8ypNIcQIA=
=V04j
-----END PGP SIGNATURE-----
-- 
gentoo-dev@gentoo.org mailing list



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

* Re: [gentoo-dev] Re: RFC: Forbid using versions in DESCRIPTION
  2007-07-24 12:26       ` Petteri Räty
@ 2007-07-24 13:09         ` Robert Buchholz
  0 siblings, 0 replies; 26+ messages in thread
From: Robert Buchholz @ 2007-07-24 13:09 UTC (permalink / raw
  To: gentoo-dev; +Cc: Petteri Räty

On Tuesday, 24. July 2007 14:26, Petteri Räty wrote:
> Ciaran McCreesh kirjoitti:
> > On Tue, 24 Jul 2007 13:44:52 +0200
> >
> > "Marijn Schouten (hkBst)" <hkBst@gentoo.org> wrote:
> >> Perhaps we should just move DESCRIPTIONs to metadata. That would
> >> make it impossible to use ${PV} and more importantly also remove
> >> some duplication.
> >
> > Got to be careful here. In the past it's been stated that Portage
> > won't use XML for anything that it has to parse.
>
> Well here we need to answer the question whether searching
> DESCRIPTION strings is a core feature. I have never used emerge
> --searchdesc but that might be just me.

I believe it to be a core feature. How else am I to find an rss reader 
in portage without having any preference or knowledge before 
installing? Or some random tool to convert X to Y.
Often, features are not part of the name.

Robert
--
gentoo-dev@gentoo.org mailing list



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

* [gentoo-dev]  Re: RFC: Forbid using versions in DESCRIPTION
  2007-07-24 12:18       ` Petteri Räty
@ 2007-07-24 13:14         ` Tiziano Müller
  0 siblings, 0 replies; 26+ messages in thread
From: Tiziano Müller @ 2007-07-24 13:14 UTC (permalink / raw
  To: gentoo-dev

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

Petteri Räty schrieb:
> Ciaran McCreesh kirjoitti:
>> On Tue, 24 Jul 2007 15:06:40 +0300
>> Petteri Räty <betelgeuse@gentoo.org> wrote:
>>> But is there anything that makes use of version specific DESCRIPTION
>>> atoms?
>> Yep. Have a look at sys-devel/gcc for example. Some versions include
>> various extensions, and say so in DESCRIPTION.
>>
> 
> I did say in my original mail that there are ebuilds building dynamic
> DESCRIPTION variables but the my question was that does anything make
> use of their dynamic nature. I think for example eix only looks at the
> latest.

Because it spuriously assumes that only the latest one is relevant and
it therefore doesn't do any ${PV} substitution (which is correct
behavior under this assumption).



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

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

* [gentoo-dev]  Re: RFC: Forbid using versions in DESCRIPTION
  2007-07-24 12:16     ` Ciaran McCreesh
  2007-07-24 12:26       ` Petteri Räty
@ 2007-07-24 13:18       ` Tiziano Müller
  2007-07-24 13:30         ` Ciaran McCreesh
  1 sibling, 1 reply; 26+ messages in thread
From: Tiziano Müller @ 2007-07-24 13:18 UTC (permalink / raw
  To: gentoo-dev

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

Ciaran McCreesh schrieb:
> On Tue, 24 Jul 2007 13:44:52 +0200
> "Marijn Schouten (hkBst)" <hkBst@gentoo.org> wrote:
>> Perhaps we should just move DESCRIPTIONs to metadata. That would make
>> it impossible to use ${PV} and more importantly also remove some
>> duplication.
> 
> Got to be careful here. In the past it's been stated that Portage won't
> use XML for anything that it has to parse.

Well, if/when DESCRIPTION is moved to metadata, this must be changed.
Unless we change the metadata format as well (to yaml for example :-)



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

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

* [gentoo-dev]  Re: RFC: Forbid using versions in DESCRIPTION
  2007-07-24 12:04     ` Petteri Räty
@ 2007-07-24 13:22       ` Tiziano Müller
  0 siblings, 0 replies; 26+ messages in thread
From: Tiziano Müller @ 2007-07-24 13:22 UTC (permalink / raw
  To: gentoo-dev

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

Petteri Räty schrieb:
> 
> https://bugs.gentoo.org/show_bug.cgi?id=186454

In regard to this it makes sense to add a check (but only a warning) to
repoman and document it in the devmanual.



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

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

* Re: [gentoo-dev]  Re: RFC: Forbid using versions in DESCRIPTION
  2007-07-24 13:18       ` Tiziano Müller
@ 2007-07-24 13:30         ` Ciaran McCreesh
  2007-07-24 13:46           ` Luca Barbato
  0 siblings, 1 reply; 26+ messages in thread
From: Ciaran McCreesh @ 2007-07-24 13:30 UTC (permalink / raw
  To: gentoo-dev

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

On Tue, 24 Jul 2007 15:18:46 +0200
Tiziano Müller <dev-zero@gentoo.org> wrote:
> Ciaran McCreesh schrieb:
> > On Tue, 24 Jul 2007 13:44:52 +0200
> > "Marijn Schouten (hkBst)" <hkBst@gentoo.org> wrote:
> >> Perhaps we should just move DESCRIPTIONs to metadata. That would
> >> make it impossible to use ${PV} and more importantly also remove
> >> some duplication.
> > 
> > Got to be careful here. In the past it's been stated that Portage
> > won't use XML for anything that it has to parse.
> 
> Well, if/when DESCRIPTION is moved to metadata, this must be changed.

The intention was to stick with things that could be parsed quickly and
easily, without relying upon slow library code. Whether that's still an
issue these days what with the Portage people who were saying that the
loudest not being around any more is up for debate...

Although, at the other end of the scale, Daniel claims that he wanted
to move all ebuild metadata into metadata.xml...

> Unless we change the metadata format as well (to yaml for example :-)

The only specification-compliant yaml parser is written in C, has
only the bottom two layers of the stack and no usable external
bindings... Perhaps you mean "something that's basically yaml except
with reserved string-start characters not handled correctly", in which
case there's Syck...

-- 
Ciaran McCreesh


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

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

* Re: [gentoo-dev] Re: RFC: Forbid using versions in DESCRIPTION
  2007-07-24 11:44   ` Marijn Schouten (hkBst)
                       ` (2 preceding siblings ...)
  2007-07-24 12:16     ` Ciaran McCreesh
@ 2007-07-24 13:36     ` Luca Barbato
  2007-07-25 12:17       ` Mike Frysinger
  3 siblings, 1 reply; 26+ messages in thread
From: Luca Barbato @ 2007-07-24 13:36 UTC (permalink / raw
  To: gentoo-dev

Marijn Schouten (hkBst) wrote:
> Christian Faulhammer wrote:
>> Petteri Rýty <betelgeuse@gentoo.org>:
> 
>>> I did see anything in devmanual taking a stance on this issue:
>>> http://devmanual.gentoo.org/ebuild-writing/variables/index.html
>>> What do you think about adding a sentence or two saying that you
>>> should not use version numbers in DESCRIPTION? This could even be
>>> added to repoman.
>>  Is this iussue that grave, that we repoman needs to whine about it?
>> What is the issue with it (apart from p.g.o, eix and friends not
>> displaying correct information) exactly?
> 
>> V-Li
> 
> Perhaps we should just move DESCRIPTIONs to metadata.

No

> That would make it
> impossible to use ${PV} and more importantly also remove some duplication.
> 

It isn't duplicated, description is per ebuild and could change,
metadata is for the package as whole.

lu

-- 

Luca Barbato

Gentoo/linux Gentoo/PPC
http://dev.gentoo.org/~lu_zero
-- 
gentoo-dev@gentoo.org mailing list



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

* Re: [gentoo-dev]  Re: RFC: Forbid using versions in DESCRIPTION
  2007-07-24 13:30         ` Ciaran McCreesh
@ 2007-07-24 13:46           ` Luca Barbato
  2007-07-24 13:55             ` Ciaran McCreesh
  0 siblings, 1 reply; 26+ messages in thread
From: Luca Barbato @ 2007-07-24 13:46 UTC (permalink / raw
  To: gentoo-dev

Ciaran McCreesh wrote:
> The only specification-compliant yaml parser is written in C, has
> only the bottom two layers of the stack and no usable external
> bindings... Perhaps you mean "something that's basically yaml except
> with reserved string-start characters not handled correctly", in which
> case there's Syck...
> 

what about libyaml?

lu

-- 

Luca Barbato

Gentoo/linux Gentoo/PPC
http://dev.gentoo.org/~lu_zero
-- 
gentoo-dev@gentoo.org mailing list



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

* Re: [gentoo-dev]  Re: RFC: Forbid using versions in DESCRIPTION
  2007-07-24 13:46           ` Luca Barbato
@ 2007-07-24 13:55             ` Ciaran McCreesh
  2007-07-24 14:11               ` Luca Barbato
  0 siblings, 1 reply; 26+ messages in thread
From: Ciaran McCreesh @ 2007-07-24 13:55 UTC (permalink / raw
  To: gentoo-dev

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

On Tue, 24 Jul 2007 15:46:05 +0200
Luca Barbato <lu_zero@gentoo.org> wrote:
> Ciaran McCreesh wrote:
> > The only specification-compliant yaml parser is written in C, has
> > only the bottom two layers of the stack and no usable external
> > bindings... Perhaps you mean "something that's basically yaml except
> > with reserved string-start characters not handled correctly", in
> > which case there's Syck...
> 
> what about libyaml?

libyaml's the compliant one, but it only supports the bottom part of the
stack. You'd still have to write the composer and constructor by hand,
which is a lot of work. It also can't read many documents generated by
Syck because it's strictly specification compliant and rejects invalid
input.

Yaml looks nicer than XML on the surface, but unfortunately it's still a
pain in the ass to handle...

-- 
Ciaran McCreesh


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

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

* Re: [gentoo-dev]  Re: RFC: Forbid using versions in DESCRIPTION
  2007-07-24 13:55             ` Ciaran McCreesh
@ 2007-07-24 14:11               ` Luca Barbato
  2007-07-24 14:21                 ` Ciaran McCreesh
  0 siblings, 1 reply; 26+ messages in thread
From: Luca Barbato @ 2007-07-24 14:11 UTC (permalink / raw
  To: gentoo-dev

Ciaran McCreesh wrote:

> 
> Yaml looks nicer than XML on the surface, but unfortunately it's still a
> pain in the ass to handle...
> 

Basically because there aren't nicer libraries for languages different
than ruby python and perl... =/

lu

-- 

Luca Barbato

Gentoo/linux Gentoo/PPC
http://dev.gentoo.org/~lu_zero
-- 
gentoo-dev@gentoo.org mailing list



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

* Re: [gentoo-dev]  Re: RFC: Forbid using versions in DESCRIPTION
  2007-07-24 14:11               ` Luca Barbato
@ 2007-07-24 14:21                 ` Ciaran McCreesh
  2007-07-24 14:46                   ` Tiziano Müller
  0 siblings, 1 reply; 26+ messages in thread
From: Ciaran McCreesh @ 2007-07-24 14:21 UTC (permalink / raw
  To: gentoo-dev

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

On Tue, 24 Jul 2007 16:11:35 +0200
Luca Barbato <lu_zero@gentoo.org> wrote:
> Ciaran McCreesh wrote:
> > Yaml looks nicer than XML on the surface, but unfortunately it's
> > still a pain in the ass to handle...
> > 
> 
> Basically because there aren't nicer libraries for languages different
> than ruby python and perl... =/

And there aren't specification-compliant Yaml libraries for Ruby,
Python or Perl. That's important. If you're using the thing that Syck
generates, you're not using Yaml.

-- 
Ciaran McCreesh


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

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

* [gentoo-dev]  Re: RFC: Forbid using versions in DESCRIPTION
  2007-07-24 14:21                 ` Ciaran McCreesh
@ 2007-07-24 14:46                   ` Tiziano Müller
  0 siblings, 0 replies; 26+ messages in thread
From: Tiziano Müller @ 2007-07-24 14:46 UTC (permalink / raw
  To: gentoo-dev

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

Ciaran McCreesh schrieb:
> And there aren't specification-compliant Yaml libraries for Ruby,
> Python or Perl. That's important. If you're using the thing that Syck
> generates, you're not using Yaml.

Sorry for starting this off-topic discussion. I'd suggest that we first
concentrate on what we want (moving DESCRIPTION or not), while not
forgetting this difficulty when making the decision of which format or
library to choose (which might not happen at all if we decide not to
check whether we should change the format of metadata).


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

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

* Re: [gentoo-dev]  Re: RFC: Forbid using versions in DESCRIPTION
  2007-07-24 12:14     ` Ciaran McCreesh
  2007-07-24 12:18       ` Petteri Räty
  2007-07-24 12:53       ` Marijn Schouten (hkBst)
@ 2007-07-25 12:15       ` Mike Frysinger
  2 siblings, 0 replies; 26+ messages in thread
From: Mike Frysinger @ 2007-07-25 12:15 UTC (permalink / raw
  To: gentoo-dev

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

On Tuesday 24 July 2007, Ciaran McCreesh wrote:
> Petteri Räty <betelgeuse@gentoo.org> wrote:
> > But is there anything that makes use of version specific DESCRIPTION
> > atoms?
>
> Yep. Have a look at sys-devel/gcc for example. Some versions include
> various extensions, and say so in DESCRIPTION.

eh, i'm not really partial to such enumeration, not that it really matters 
considering most search programs show 1 DESCRIPTION (the latest)

easy enough to expound upon in a long description
-mike

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

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

* Re: [gentoo-dev] Re: RFC: Forbid using versions in DESCRIPTION
  2007-07-24 13:36     ` Luca Barbato
@ 2007-07-25 12:17       ` Mike Frysinger
  0 siblings, 0 replies; 26+ messages in thread
From: Mike Frysinger @ 2007-07-25 12:17 UTC (permalink / raw
  To: gentoo-dev

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

On Tuesday 24 July 2007, Luca Barbato wrote:
> Marijn Schouten (hkBst) wrote:
> > That would make it
> > impossible to use ${PV} and more importantly also remove some
> > duplication.
>
> It isn't duplicated, description is per ebuild and could change,
> metadata is for the package as whole.

can you point out a package where this is actually needed let alone used ?  
none of our utilities expose the DESCRIPTION on a per-ebuild basis, only 
per-package
-mike

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

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

end of thread, other threads:[~2007-07-25 12:19 UTC | newest]

Thread overview: 26+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-07-24 11:11 [gentoo-dev] RFC: Forbid using versions in DESCRIPTION Petteri Räty
2007-07-24 11:36 ` [gentoo-dev] " Christian Faulhammer
2007-07-24 11:44   ` Marijn Schouten (hkBst)
2007-07-24 11:54     ` David Shakaryan
2007-07-24 12:04     ` Petteri Räty
2007-07-24 13:22       ` Tiziano Müller
2007-07-24 12:16     ` Ciaran McCreesh
2007-07-24 12:26       ` Petteri Räty
2007-07-24 13:09         ` Robert Buchholz
2007-07-24 13:18       ` Tiziano Müller
2007-07-24 13:30         ` Ciaran McCreesh
2007-07-24 13:46           ` Luca Barbato
2007-07-24 13:55             ` Ciaran McCreesh
2007-07-24 14:11               ` Luca Barbato
2007-07-24 14:21                 ` Ciaran McCreesh
2007-07-24 14:46                   ` Tiziano Müller
2007-07-24 13:36     ` Luca Barbato
2007-07-25 12:17       ` Mike Frysinger
2007-07-24 12:02 ` Tiziano Müller
2007-07-24 12:06   ` Petteri Räty
2007-07-24 12:14     ` Ciaran McCreesh
2007-07-24 12:18       ` Petteri Räty
2007-07-24 13:14         ` Tiziano Müller
2007-07-24 12:53       ` Marijn Schouten (hkBst)
2007-07-25 12:15       ` Mike Frysinger
2007-07-24 12:12   ` David Shakaryan

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