public inbox for gentoo-dev@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-dev] Last rites: user.eclass
@ 2022-10-19 16:36 Mike Gilbert
  2022-10-19 19:08 ` [gentoo-dev] " Martin Vaeth
  0 siblings, 1 reply; 5+ messages in thread
From: Mike Gilbert @ 2022-10-19 16:36 UTC (permalink / raw
  To: gentoo-dev-announce; +Cc: gentoo-dev

user.eclass has been deprecated for two years. In the gentoo repo, it
is currently only used by acct-group.eclass and acct-user.eclass, and a
patchset is currently under review remedy that [1].

Planned removal is in 30 days on 2022-11-18.

[1] https://github.com/gentoo/gentoo/pull/27825


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

* [gentoo-dev] Re: Last rites: user.eclass
  2022-10-19 16:36 [gentoo-dev] Last rites: user.eclass Mike Gilbert
@ 2022-10-19 19:08 ` Martin Vaeth
  2022-10-19 19:15   ` Mike Gilbert
  2022-10-19 19:15   ` John Helmert III
  0 siblings, 2 replies; 5+ messages in thread
From: Martin Vaeth @ 2022-10-19 19:08 UTC (permalink / raw
  To: gentoo-dev

Mike Gilbert <floppym@gentoo.org> wrote:
> user.eclass has been deprecated for two years. In the gentoo repo, it
> is currently only used by acct-group.eclass and acct-user.eclass

It is needed for ebuilds in non-gentoo repositories which cannot
reserve a fixed number for users and groups.



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

* Re: [gentoo-dev] Re: Last rites: user.eclass
  2022-10-19 19:08 ` [gentoo-dev] " Martin Vaeth
@ 2022-10-19 19:15   ` Mike Gilbert
  2022-10-20  6:21     ` Martin Vaeth
  2022-10-19 19:15   ` John Helmert III
  1 sibling, 1 reply; 5+ messages in thread
From: Mike Gilbert @ 2022-10-19 19:15 UTC (permalink / raw
  To: gentoo-dev

On Wed, Oct 19, 2022 at 3:08 PM Martin Vaeth <martin@mvath.de> wrote:
>
> Mike Gilbert <floppym@gentoo.org> wrote:
> > user.eclass has been deprecated for two years. In the gentoo repo, it
> > is currently only used by acct-group.eclass and acct-user.eclass
>
> It is needed for ebuilds in non-gentoo repositories which cannot
> reserve a fixed number for users and groups.

Such ebuilds should be converted into acct-user and acct-group
packages instead. If you set ACCT_USER_ID=-1 or ACCT_GROUP_ID=-1, they
will pick an available UID/GID upon installation.


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

* Re: [gentoo-dev] Re: Last rites: user.eclass
  2022-10-19 19:08 ` [gentoo-dev] " Martin Vaeth
  2022-10-19 19:15   ` Mike Gilbert
@ 2022-10-19 19:15   ` John Helmert III
  1 sibling, 0 replies; 5+ messages in thread
From: John Helmert III @ 2022-10-19 19:15 UTC (permalink / raw
  To: gentoo-dev

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

On Wed, Oct 19, 2022 at 07:08:44PM -0000, Martin Vaeth wrote:
> Mike Gilbert <floppym@gentoo.org> wrote:
> > user.eclass has been deprecated for two years. In the gentoo repo, it
> > is currently only used by acct-group.eclass and acct-user.eclass
> 
> It is needed for ebuilds in non-gentoo repositories which cannot
> reserve a fixed number for users and groups.

Can't you import it into any overlay that needs it? Why not use
acct-{user,group} anyway?

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

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

* [gentoo-dev] Re: Last rites: user.eclass
  2022-10-19 19:15   ` Mike Gilbert
@ 2022-10-20  6:21     ` Martin Vaeth
  0 siblings, 0 replies; 5+ messages in thread
From: Martin Vaeth @ 2022-10-20  6:21 UTC (permalink / raw
  To: gentoo-dev

Mike Gilbert <floppym@gentoo.org> wrote:
> On Wed, Oct 19, 2022 at 3:08 PM Martin Vaeth <martin@mvath.de> wrote:
>>
>> Mike Gilbert <floppym@gentoo.org> wrote:
>> > user.eclass [...]
>>
>> It is needed for ebuilds in non-gentoo repositories which cannot
>> reserve a fixed number for users and groups.
>
> If you set ACCT_USER_ID=-1 or ACCT_GROUP_ID=-1, they
> will pick an available UID/GID upon installation.

I was not aware of that.
Indeed, it was probably added after I looked at the documentation last time:
https://github.com/gentoo-mirror/gentoo/commit/
c871b87b56208684b0a1fedeaf24fe10943748e2

Sorry for the noise.



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

end of thread, other threads:[~2022-10-20  6:21 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-10-19 16:36 [gentoo-dev] Last rites: user.eclass Mike Gilbert
2022-10-19 19:08 ` [gentoo-dev] " Martin Vaeth
2022-10-19 19:15   ` Mike Gilbert
2022-10-20  6:21     ` Martin Vaeth
2022-10-19 19:15   ` John Helmert III

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