• [gentoo-dev] Last rites: user.eclass

    From Mike Gilbert@21:1/5 to All on Wed Oct 19 18:40:01 2022
    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

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Martin Vaeth@21:1/5 to Mike Gilbert on Wed Oct 19 21:10:01 2022
    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.

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Mike Gilbert@21:1/5 to martin@mvath.de on Wed Oct 19 21:20:01 2022
    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.

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From John Helmert III@21:1/5 to Martin Vaeth on Wed Oct 19 21:20:02 2022
    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?

    -----BEGIN PGP SIGNATURE-----

    iHUEABYKAB0WIQQyG9yfCrmO0LPSdG2gXq2+aa/JtQUCY1BM0gAKCRCgXq2+aa/J tU+DAP9YIkt41tlKrMO+psYYWt0gByw01mPtbscdC9bd3Ik5igEA6utkE5EKzV2r cGFRYQM+WbaXjhOa66iGoyfzRts7VQw=
    =qHLW
    -----END PGP SIGNATURE-----

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Martin Vaeth@21:1/5 to Mike Gilbert on Thu Oct 20 08:30:02 2022
    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.

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)