public inbox for gentoo-dev@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-dev] [PATCH] skel.ebuild: Update comments for inherit, SLOT, KEYWORDS.
@ 2017-12-31 13:31 Ulrich Müller
  2017-12-31 14:55 ` Mike Gilbert
                   ` (4 more replies)
  0 siblings, 5 replies; 13+ messages in thread
From: Ulrich Müller @ 2017-12-31 13:31 UTC (permalink / raw
  To: gentoo-dev

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

epatch() is provided by epatch.eclass now. Also comment the inherit
line, since not every ebuild will use it.

Empty SLOT doesn't disable slots, but is outright illegal in all EAPIs.
Similar for KEYWORDS="*", which isn't "deprecated" but invalid.
---
 skel.ebuild | 9 ++++-----
 1 file changed, 4 insertions(+), 5 deletions(-)

diff --git a/skel.ebuild b/skel.ebuild
index 7ac9dfb7d6d8..4c19b1de4cb8 100644
--- a/skel.ebuild
+++ b/skel.ebuild
@@ -13,9 +13,9 @@
 EAPI=6
 
 # inherit lists eclasses to inherit functions from. For example, an ebuild
-# that needs the epatch function from eutils.eclass won't work without the
+# that needs the epatch function from epatch.eclass won't work without the
 # following line:
-inherit eutils
+#inherit epatch
 #
 # eclasses tend to list descriptions of how to use their functions properly.
 # take a look at /usr/portage/eclass/ for more examples.
@@ -46,7 +46,7 @@ LICENSE=""
 # of each SLOT and remove everything else.
 # Note that normal applications should use SLOT="0" if possible, since
 # there should only be exactly one version installed at a time.
-# DO NOT USE SLOT=""! This tells Portage to disable SLOTs for this package.
+# Do not use SLOT="", because the SLOT variable must not be empty.
 SLOT="0"
 
 # Using KEYWORDS, we can record masking information *inside* an ebuild
@@ -63,8 +63,7 @@ SLOT="0"
 # For binary packages, use -* and then list the archs the bin package
 # exists for.  If the package was for an x86 binary package, then
 # KEYWORDS would be set like this: KEYWORDS="-* x86"
-# DO NOT USE KEYWORDS="*".  This is deprecated and only for backward
-# compatibility reasons.
+# Do not use KEYWORDS="*".  This is not valid in an ebuild context.
 KEYWORDS="~x86"
 
 # Comprehensive list of any and all USE flags leveraged in the ebuild,
-- 
2.15.1

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

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

* Re: [gentoo-dev] [PATCH] skel.ebuild: Update comments for inherit, SLOT, KEYWORDS.
  2017-12-31 13:31 [gentoo-dev] [PATCH] skel.ebuild: Update comments for inherit, SLOT, KEYWORDS Ulrich Müller
@ 2017-12-31 14:55 ` Mike Gilbert
  2017-12-31 19:42   ` Ulrich Mueller
  2017-12-31 15:09 ` Mart Raudsepp
                   ` (3 subsequent siblings)
  4 siblings, 1 reply; 13+ messages in thread
From: Mike Gilbert @ 2017-12-31 14:55 UTC (permalink / raw
  To: Gentoo Dev

On Sun, Dec 31, 2017 at 8:31 AM, Ulrich Müller <ulm@gentoo.org> wrote:
> @@ -63,8 +63,7 @@ SLOT="0"
>  # For binary packages, use -* and then list the archs the bin package
>  # exists for.  If the package was for an x86 binary package, then
>  # KEYWORDS would be set like this: KEYWORDS="-* x86"
> -# DO NOT USE KEYWORDS="*".  This is deprecated and only for backward
> -# compatibility reasons.
> +# Do not use KEYWORDS="*".  This is not valid in an ebuild context.
>  KEYWORDS="~x86"

Portage actually does support KEYWORDS="*". I believe Funtoo uses this
for arch-agnostic packages.

Maybe rephrase this as being forbidden by Gentoo policy.

The rest of the patch looks ok.


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

* Re: [gentoo-dev] [PATCH] skel.ebuild: Update comments for inherit, SLOT, KEYWORDS.
  2017-12-31 13:31 [gentoo-dev] [PATCH] skel.ebuild: Update comments for inherit, SLOT, KEYWORDS Ulrich Müller
  2017-12-31 14:55 ` Mike Gilbert
@ 2017-12-31 15:09 ` Mart Raudsepp
  2017-12-31 19:34   ` Ulrich Mueller
  2017-12-31 15:29 ` Sergei Trofimovich
                   ` (2 subsequent siblings)
  4 siblings, 1 reply; 13+ messages in thread
From: Mart Raudsepp @ 2017-12-31 15:09 UTC (permalink / raw
  To: gentoo-dev

On Sun, 2017-12-31 at 14:31 +0100, Ulrich Müller wrote:
> -# DO NOT USE KEYWORDS="*".  This is deprecated and only for backward
> -# compatibility reasons.
> +# Do not use KEYWORDS="*".  This is not valid in an ebuild context.
>  KEYWORDS="~x86"

Maybe update to KEYWORDS="~amd64" while here?



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

* Re: [gentoo-dev] [PATCH] skel.ebuild: Update comments for inherit, SLOT, KEYWORDS.
  2017-12-31 13:31 [gentoo-dev] [PATCH] skel.ebuild: Update comments for inherit, SLOT, KEYWORDS Ulrich Müller
  2017-12-31 14:55 ` Mike Gilbert
  2017-12-31 15:09 ` Mart Raudsepp
@ 2017-12-31 15:29 ` Sergei Trofimovich
  2017-12-31 17:44 ` Michał Górny
  2018-01-01 11:17 ` [gentoo-dev] [PATCH v2] " Ulrich Müller
  4 siblings, 0 replies; 13+ messages in thread
From: Sergei Trofimovich @ 2017-12-31 15:29 UTC (permalink / raw
  To: Ulrich Müller; +Cc: gentoo-dev

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

On Sun, 31 Dec 2017 14:31:00 +0100
Ulrich Müller <ulm@gentoo.org> wrote:

> epatch() is provided by epatch.eclass now. Also comment the inherit
> line, since not every ebuild will use it.
> 
> Empty SLOT doesn't disable slots, but is outright illegal in all EAPIs.
> Similar for KEYWORDS="*", which isn't "deprecated" but invalid.
> ---
>  skel.ebuild | 9 ++++-----
>  1 file changed, 4 insertions(+), 5 deletions(-)
> 
> diff --git a/skel.ebuild b/skel.ebuild
> index 7ac9dfb7d6d8..4c19b1de4cb8 100644
> --- a/skel.ebuild
> +++ b/skel.ebuild
> @@ -13,9 +13,9 @@
>  EAPI=6
>  
>  # inherit lists eclasses to inherit functions from. For example, an ebuild
> -# that needs the epatch function from eutils.eclass won't work without the
> +# that needs the epatch function from epatch.eclass won't work without the
>  # following line:
> -inherit eutils
> +#inherit epatch
>  #
>  # eclasses tend to list descriptions of how to use their functions properly.
>  # take a look at /usr/portage/eclass/ for more examples.
> @@ -46,7 +46,7 @@ LICENSE=""
>  # of each SLOT and remove everything else.
>  # Note that normal applications should use SLOT="0" if possible, since
>  # there should only be exactly one version installed at a time.
> -# DO NOT USE SLOT=""! This tells Portage to disable SLOTs for this package.
> +# Do not use SLOT="", because the SLOT variable must not be empty.
>  SLOT="0"
>  
>  # Using KEYWORDS, we can record masking information *inside* an ebuild
> @@ -63,8 +63,7 @@ SLOT="0"
>  # For binary packages, use -* and then list the archs the bin package
>  # exists for.  If the package was for an x86 binary package, then
>  # KEYWORDS would be set like this: KEYWORDS="-* x86"
> -# DO NOT USE KEYWORDS="*".  This is deprecated and only for backward
> -# compatibility reasons.
> +# Do not use KEYWORDS="*".  This is not valid in an ebuild context.
>  KEYWORDS="~x86"

Looks good.

-- 

  Sergei

[-- Attachment #2: Цифровая подпись OpenPGP --]
[-- Type: application/pgp-signature, Size: 195 bytes --]

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

* Re: [gentoo-dev] [PATCH] skel.ebuild: Update comments for inherit, SLOT, KEYWORDS.
  2017-12-31 13:31 [gentoo-dev] [PATCH] skel.ebuild: Update comments for inherit, SLOT, KEYWORDS Ulrich Müller
                   ` (2 preceding siblings ...)
  2017-12-31 15:29 ` Sergei Trofimovich
@ 2017-12-31 17:44 ` Michał Górny
  2017-12-31 18:12   ` William Hubbs
  2018-01-01 11:17 ` [gentoo-dev] [PATCH v2] " Ulrich Müller
  4 siblings, 1 reply; 13+ messages in thread
From: Michał Górny @ 2017-12-31 17:44 UTC (permalink / raw
  To: gentoo-dev

W dniu nie, 31.12.2017 o godzinie 14∶31 +0100, użytkownik Ulrich Müller
napisał:
> epatch() is provided by epatch.eclass now. Also comment the inherit
> line, since not every ebuild will use it.
> 
> Empty SLOT doesn't disable slots, but is outright illegal in all EAPIs.
> Similar for KEYWORDS="*", which isn't "deprecated" but invalid.
> ---
>  skel.ebuild | 9 ++++-----
>  1 file changed, 4 insertions(+), 5 deletions(-)
> 
> diff --git a/skel.ebuild b/skel.ebuild
> index 7ac9dfb7d6d8..4c19b1de4cb8 100644
> --- a/skel.ebuild
> +++ b/skel.ebuild
> @@ -13,9 +13,9 @@
>  EAPI=6
>  
>  # inherit lists eclasses to inherit functions from. For example, an ebuild
> -# that needs the epatch function from eutils.eclass won't work without the
> +# that needs the epatch function from epatch.eclass won't work without the
>  # following line:
> -inherit eutils
> +#inherit epatch

Well, given that it's EAPI 6 and we do not want to encourage people to
use epatch there, I would prefer if we replaced that example with
something else. But it's just a wishful thinking here.

>  #
>  # eclasses tend to list descriptions of how to use their functions properly.
>  # take a look at /usr/portage/eclass/ for more examples.
> @@ -46,7 +46,7 @@ LICENSE=""
>  # of each SLOT and remove everything else.
>  # Note that normal applications should use SLOT="0" if possible, since
>  # there should only be exactly one version installed at a time.
> -# DO NOT USE SLOT=""! This tells Portage to disable SLOTs for this package.
> +# Do not use SLOT="", because the SLOT variable must not be empty.
>  SLOT="0"
>  
>  # Using KEYWORDS, we can record masking information *inside* an ebuild
> @@ -63,8 +63,7 @@ SLOT="0"
>  # For binary packages, use -* and then list the archs the bin package
>  # exists for.  If the package was for an x86 binary package, then
>  # KEYWORDS would be set like this: KEYWORDS="-* x86"
> -# DO NOT USE KEYWORDS="*".  This is deprecated and only for backward
> -# compatibility reasons.
> +# Do not use KEYWORDS="*".  This is not valid in an ebuild context.
>  KEYWORDS="~x86"
>  
>  # Comprehensive list of any and all USE flags leveraged in the ebuild,

LGTM.

-- 
Best regards,
Michał Górny



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

* Re: [gentoo-dev] [PATCH] skel.ebuild: Update comments for inherit, SLOT, KEYWORDS.
  2017-12-31 17:44 ` Michał Górny
@ 2017-12-31 18:12   ` William Hubbs
  2017-12-31 19:07     ` Pacho Ramos
  2017-12-31 19:59     ` Ulrich Mueller
  0 siblings, 2 replies; 13+ messages in thread
From: William Hubbs @ 2017-12-31 18:12 UTC (permalink / raw
  To: gentoo-dev; +Cc: ulm

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

On Sun, Dec 31, 2017 at 06:44:39PM +0100, Michał Górny wrote:
> W dniu nie, 31.12.2017 o godzinie 14∶31 +0100, użytkownik Ulrich Müller
> napisał:
> > epatch() is provided by epatch.eclass now. Also comment the inherit
> > line, since not every ebuild will use it.
> > 
> > Empty SLOT doesn't disable slots, but is outright illegal in all EAPIs.
> > Similar for KEYWORDS="*", which isn't "deprecated" but invalid.
> > ---
> >  skel.ebuild | 9 ++++-----
> >  1 file changed, 4 insertions(+), 5 deletions(-)
> > 
> > diff --git a/skel.ebuild b/skel.ebuild
> > index 7ac9dfb7d6d8..4c19b1de4cb8 100644
> > --- a/skel.ebuild
> > +++ b/skel.ebuild
> > @@ -13,9 +13,9 @@
> >  EAPI=6
> >  
> >  # inherit lists eclasses to inherit functions from. For example, an ebuild
> > -# that needs the epatch function from eutils.eclass won't work without the
> > +# that needs the epatch function from epatch.eclass won't work without the
> >  # following line:
> > -inherit eutils
> > +#inherit epatch
> 
> Well, given that it's EAPI 6 and we do not want to encourage people to
> use epatch there, I would prefer if we replaced that example with
> something else. But it's just a wishful thinking here.

+1, but I'm not going to suggest what to replace it with.

William

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

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

* Re: [gentoo-dev] [PATCH] skel.ebuild: Update comments for inherit, SLOT, KEYWORDS.
  2017-12-31 18:12   ` William Hubbs
@ 2017-12-31 19:07     ` Pacho Ramos
  2017-12-31 19:26       ` William Hubbs
  2017-12-31 19:59     ` Ulrich Mueller
  1 sibling, 1 reply; 13+ messages in thread
From: Pacho Ramos @ 2017-12-31 19:07 UTC (permalink / raw
  To: gentoo-dev

El dom, 31-12-2017 a las 12:12 -0600, William Hubbs escribió:
> On Sun, Dec 31, 2017 at 06:44:39PM +0100, Michał Górny wrote:
> > W dniu nie, 31.12.2017 o godzinie 14∶31 +0100, użytkownik Ulrich Müller
> > napisał:
> > > epatch() is provided by epatch.eclass now. Also comment the inherit
> > > line, since not every ebuild will use it.
> > > 
> > > Empty SLOT doesn't disable slots, but is outright illegal in all EAPIs.
> > > Similar for KEYWORDS="*", which isn't "deprecated" but invalid.
> > > ---
> > >  skel.ebuild | 9 ++++-----
> > >  1 file changed, 4 insertions(+), 5 deletions(-)
> > > 
> > > diff --git a/skel.ebuild b/skel.ebuild
> > > index 7ac9dfb7d6d8..4c19b1de4cb8 100644
> > > --- a/skel.ebuild
> > > +++ b/skel.ebuild
> > > @@ -13,9 +13,9 @@
> > >  EAPI=6
> > >  
> > >  # inherit lists eclasses to inherit functions from. For example, an
> > > ebuild
> > > -# that needs the epatch function from eutils.eclass won't work without
> > > the
> > > +# that needs the epatch function from epatch.eclass won't work without
> > > the
> > >  # following line:
> > > -inherit eutils
> > > +#inherit epatch
> > 
> > Well, given that it's EAPI 6 and we do not want to encourage people to
> > use epatch there, I would prefer if we replaced that example with
> > something else. But it's just a wishful thinking here.
> 
> +1, but I'm not going to suggest what to replace it with.
> 
> William

Why not eapply (and drop inherit then)? :/


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

* Re: [gentoo-dev] [PATCH] skel.ebuild: Update comments for inherit, SLOT, KEYWORDS.
  2017-12-31 19:07     ` Pacho Ramos
@ 2017-12-31 19:26       ` William Hubbs
  0 siblings, 0 replies; 13+ messages in thread
From: William Hubbs @ 2017-12-31 19:26 UTC (permalink / raw
  To: gentoo-dev

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

On Sun, Dec 31, 2017 at 08:07:33PM +0100, Pacho Ramos wrote:
> El dom, 31-12-2017 a las 12:12 -0600, William Hubbs escribió:
> > On Sun, Dec 31, 2017 at 06:44:39PM +0100, Michał Górny wrote:
> > > W dniu nie, 31.12.2017 o godzinie 14∶31 +0100, użytkownik Ulrich Müller
> > > napisał:
> > > > epatch() is provided by epatch.eclass now. Also comment the inherit
> > > > line, since not every ebuild will use it.
> > > > 
> > > > Empty SLOT doesn't disable slots, but is outright illegal in all EAPIs.
> > > > Similar for KEYWORDS="*", which isn't "deprecated" but invalid.
> > > > ---
> > > >  skel.ebuild | 9 ++++-----
> > > >  1 file changed, 4 insertions(+), 5 deletions(-)
> > > > 
> > > > diff --git a/skel.ebuild b/skel.ebuild
> > > > index 7ac9dfb7d6d8..4c19b1de4cb8 100644
> > > > --- a/skel.ebuild
> > > > +++ b/skel.ebuild
> > > > @@ -13,9 +13,9 @@
> > > >  EAPI=6
> > > >  
> > > >  # inherit lists eclasses to inherit functions from. For example, an
> > > > ebuild
> > > > -# that needs the epatch function from eutils.eclass won't work without
> > > > the
> > > > +# that needs the epatch function from epatch.eclass won't work without
> > > > the
> > > >  # following line:
> > > > -inherit eutils
> > > > +#inherit epatch
> > > 
> > > Well, given that it's EAPI 6 and we do not want to encourage people to
> > > use epatch there, I would prefer if we replaced that example with
> > > something else. But it's just a wishful thinking here.
> > 
> > +1, but I'm not going to suggest what to replace it with.
> > 
> > William
> 
> Why not eapply (and drop inherit then)? :/

Because that isn't the preferred way to apply patches since it requires
you to override src_prepare.

If the example was about how to apply patches, the correct way is to put
them in a PATCHES variable in global scope, but that's not the intent of
the example.

The intent is to show inheriting an eclass.

William

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

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

* Re: [gentoo-dev] [PATCH] skel.ebuild: Update comments for inherit, SLOT, KEYWORDS.
  2017-12-31 15:09 ` Mart Raudsepp
@ 2017-12-31 19:34   ` Ulrich Mueller
  0 siblings, 0 replies; 13+ messages in thread
From: Ulrich Mueller @ 2017-12-31 19:34 UTC (permalink / raw
  To: gentoo-dev

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

>>>>> On Sun, 31 Dec 2017, Mart Raudsepp wrote:

> On Sun, 2017-12-31 at 14:31 +0100, Ulrich Müller wrote:
>> -# DO NOT USE KEYWORDS="*".  This is deprecated and only for backward
>> -# compatibility reasons.
>> +# Do not use KEYWORDS="*".  This is not valid in an ebuild context.
>>  KEYWORDS="~x86"

> Maybe update to KEYWORDS="~amd64" while here?

Done.

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

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

* Re: [gentoo-dev] [PATCH] skel.ebuild: Update comments for inherit, SLOT, KEYWORDS.
  2017-12-31 14:55 ` Mike Gilbert
@ 2017-12-31 19:42   ` Ulrich Mueller
  0 siblings, 0 replies; 13+ messages in thread
From: Ulrich Mueller @ 2017-12-31 19:42 UTC (permalink / raw
  To: gentoo-dev

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

>>>>> On Sun, 31 Dec 2017, Mike Gilbert wrote:

> On Sun, Dec 31, 2017 at 8:31 AM, Ulrich Müller <ulm@gentoo.org> wrote:
>> +# Do not use KEYWORDS="*".  This is not valid in an ebuild context.

> Portage actually does support KEYWORDS="*". I believe Funtoo uses
> this for arch-agnostic packages.

> Maybe rephrase this as being forbidden by Gentoo policy.

Not only by policy. It is not valid, according to PMS:
https://projects.gentoo.org/pms/6/pms.html#x1-280003.1.7
https://projects.gentoo.org/pms/6/pms.html#x1-710007.3.2

Ulrich

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

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

* Re: [gentoo-dev] [PATCH] skel.ebuild: Update comments for inherit, SLOT, KEYWORDS.
  2017-12-31 18:12   ` William Hubbs
  2017-12-31 19:07     ` Pacho Ramos
@ 2017-12-31 19:59     ` Ulrich Mueller
  2017-12-31 20:17       ` M. J. Everitt
  1 sibling, 1 reply; 13+ messages in thread
From: Ulrich Mueller @ 2017-12-31 19:59 UTC (permalink / raw
  To: William Hubbs; +Cc: gentoo-dev

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

>>>>> On Sun, 31 Dec 2017, William Hubbs wrote:

> On Sun, Dec 31, 2017 at 06:44:39PM +0100, Michał Górny wrote:
>> W dniu nie, 31.12.2017 o godzinie 14∶31 +0100, użytkownik Ulrich Müller
>> napisał:
>> > -# that needs the epatch function from eutils.eclass won't work without the
>> > +# that needs the epatch function from epatch.eclass won't work without the
>> >  # following line:
>> > -inherit eutils
>> > +#inherit epatch
>>
>> Well, given that it's EAPI 6 and we do not want to encourage people
>> to use epatch there, I would prefer if we replaced that example
>> with something else. But it's just a wishful thinking here.

> +1, but I'm not going to suggest what to replace it with.

How about one of these examples:
"eautoreconf function from autotools.eclass"
"tc-getCC function from toolchain-funcs.eclass"

Ulrich

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

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

* Re: [gentoo-dev] [PATCH] skel.ebuild: Update comments for inherit, SLOT, KEYWORDS.
  2017-12-31 19:59     ` Ulrich Mueller
@ 2017-12-31 20:17       ` M. J. Everitt
  0 siblings, 0 replies; 13+ messages in thread
From: M. J. Everitt @ 2017-12-31 20:17 UTC (permalink / raw
  To: gentoo-dev


[-- Attachment #1.1: Type: text/plain, Size: 420 bytes --]

On 31/12/17 19:59, Ulrich Mueller wrote:
>
>> +1, but I'm not going to suggest what to replace it with.
> How about one of these examples:
> "eautoreconf function from autotools.eclass"
> "tc-getCC function from toolchain-funcs.eclass"
>
> Ulrich
I second eautoreconf (with mention of eapply_user and/or default) as I
recently mistakenly put it in the wrong phase function .... [d'oh, the
n00bness!]

MJE


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

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

* [gentoo-dev] [PATCH v2] skel.ebuild: Update comments for inherit, SLOT, KEYWORDS.
  2017-12-31 13:31 [gentoo-dev] [PATCH] skel.ebuild: Update comments for inherit, SLOT, KEYWORDS Ulrich Müller
                   ` (3 preceding siblings ...)
  2017-12-31 17:44 ` Michał Górny
@ 2018-01-01 11:17 ` Ulrich Müller
  4 siblings, 0 replies; 13+ messages in thread
From: Ulrich Müller @ 2018-01-01 11:17 UTC (permalink / raw
  To: gentoo-dev

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

Change the example used for inherit. Also comment the inherit line,
since not every ebuild will use it.

Empty SLOT doesn't disable slots, but is outright illegal in all EAPIs.
Similar for KEYWORDS="*", which isn't "deprecated" but invalid.

Replace x86 by amd64 as an example, where appropriate.
---

Changes in v2:
- inherit uses autotools rather than epatch as an example.
- x86 replaced by amd64 where appropriate.
- More accurate wording for IUSE.

 skel.ebuild | 27 +++++++++++++--------------
 1 file changed, 13 insertions(+), 14 deletions(-)

diff --git a/skel.ebuild b/skel.ebuild
index 591b58e8d367..129f61dcdb29 100644
--- a/skel.ebuild
+++ b/skel.ebuild
@@ -13,9 +13,9 @@
 EAPI=6
 
 # inherit lists eclasses to inherit functions from. For example, an ebuild
-# that needs the epatch function from eutils.eclass won't work without the
-# following line:
-inherit eutils
+# that needs the eautoreconf function from autotools.eclass won't work
+# without the following line:
+#inherit autotools
 #
 # eclasses tend to list descriptions of how to use their functions properly.
 # take a look at /usr/portage/eclass/ for more examples.
@@ -46,7 +46,7 @@ LICENSE=""
 # of each SLOT and remove everything else.
 # Note that normal applications should use SLOT="0" if possible, since
 # there should only be exactly one version installed at a time.
-# DO NOT USE SLOT=""! This tells Portage to disable SLOTs for this package.
+# Do not use SLOT="", because the SLOT variable must not be empty.
 SLOT="0"
 
 # Using KEYWORDS, we can record masking information *inside* an ebuild
@@ -54,22 +54,21 @@ SLOT="0"
 # set the KEYWORDS variable for every ebuild so that it contains the names of
 # all the architectures with which the ebuild works.  All of the official
 # architectures can be found in the arch.list file which is in
-# /usr/portage/profiles/.  Usually you should just set this to "~x86".  The ~
-# in front of the architecture indicates that the package is new and should be
-# considered unstable until testing proves its stability.  So, if you've
-# confirmed that your ebuild works on x86 and ppc, you'd specify:
-# KEYWORDS="~x86 ~ppc"
+# /usr/portage/profiles/.  Usually you should just set this to "~amd64".
+# The ~ in front of the architecture indicates that the package is new and
+# should be considered unstable until testing proves its stability.  So, if
+# you've confirmed that your ebuild works on amd64 and ppc, you'd specify:
+# KEYWORDS="~amd64 ~ppc"
 # Once packages go stable, the ~ prefix is removed.
 # For binary packages, use -* and then list the archs the bin package
 # exists for.  If the package was for an x86 binary package, then
 # KEYWORDS would be set like this: KEYWORDS="-* x86"
-# DO NOT USE KEYWORDS="*".  This is deprecated and only for backward
-# compatibility reasons.
-KEYWORDS="~x86"
+# Do not use KEYWORDS="*"; this is not valid in an ebuild context.
+KEYWORDS="~amd64"
 
 # Comprehensive list of any and all USE flags leveraged in the ebuild,
-# with the exception of any ARCH specific flags, i.e. "ppc", "sparc",
-# "x86" and "alpha".  Not needed if the ebuild doesn't use any USE flags.
+# with some exceptions, e.g., ARCH specific flags like "amd64" or "ppc".
+# Not needed if the ebuild doesn't use any USE flags.
 IUSE="gnome X"
 
 # A space delimited list of portage features to restrict. man 5 ebuild
-- 
2.15.1

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

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

end of thread, other threads:[~2018-01-01 11:22 UTC | newest]

Thread overview: 13+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-12-31 13:31 [gentoo-dev] [PATCH] skel.ebuild: Update comments for inherit, SLOT, KEYWORDS Ulrich Müller
2017-12-31 14:55 ` Mike Gilbert
2017-12-31 19:42   ` Ulrich Mueller
2017-12-31 15:09 ` Mart Raudsepp
2017-12-31 19:34   ` Ulrich Mueller
2017-12-31 15:29 ` Sergei Trofimovich
2017-12-31 17:44 ` Michał Górny
2017-12-31 18:12   ` William Hubbs
2017-12-31 19:07     ` Pacho Ramos
2017-12-31 19:26       ` William Hubbs
2017-12-31 19:59     ` Ulrich Mueller
2017-12-31 20:17       ` M. J. Everitt
2018-01-01 11:17 ` [gentoo-dev] [PATCH v2] " Ulrich Müller

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