Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 949225 - dev-lang/zig-0.13.0-r2 depclean fails due to eselect zig in postrm (IDEPEND)
Summary: dev-lang/zig-0.13.0-r2 depclean fails due to eselect zig in postrm (IDEPEND)
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Eric Joldasov
URL:
Whiteboard:
Keywords: PullRequest
Depends on:
Blocks:
 
Reported: 2025-02-02 12:05 UTC by selckin
Modified: 2025-02-16 17:19 UTC (History)
2 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description selckin 2025-02-02 12:05:15 UTC
few days ago --depclean removed eselect-zig, after todays world update depclean wants to remove zig

!!! Error: Can't load module zig
 * ERROR: dev-lang/zig-0.13.0-r2::gentoo failed (postrm phase):
 *   (no error message)
 *
 * Call stack:
 *     ebuild.sh, line 136:  Called pkg_postrm
 *   environment, line 2796:  Called die
 * The specific snippet of code:
 *       eselect zig update ifunset || die



https://projects.gentoo.org/pms/8/pms.html#x1-710008
IDEPEND => "Ebuilds may also call them in pkg_prerm and pkg_postrm but must not rely on them being available."

https://bugs.gentoo.org/892539


Reproducible: Always
Comment 1 Larry the Git Cow gentoo-dev 2025-02-16 16:29:27 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=32f75feb938e89b1b4c60e261576546ec1a1dbdc

commit 32f75feb938e89b1b4c60e261576546ec1a1dbdc
Author:     Eric Joldasov <bratishkaerik@landless-city.net>
AuthorDate: 2025-02-04 16:53:00 +0000
Commit:     Sam James <sam@gentoo.org>
CommitDate: 2025-02-16 16:28:11 +0000

    dev-lang/zig-bin: do not die on `eselect` in `pkg_postrm`
    
    Per PMS:
    > Ebuilds are allowed to call them in pkg_preinst and pkg_postinst.
    > Ebuilds may also call them in pkg_prerm and pkg_postrm but must not
    > rely on them being available.
    
    Closes: https://bugs.gentoo.org/949225
    Signed-off-by: Eric Joldasov <bratishkaerik@landless-city.net>
    Signed-off-by: Sam James <sam@gentoo.org>

 dev-lang/zig-bin/zig-bin-0.13.0.ebuild | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

Additionally, it has been referenced in the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=9cbe02e307e7f552415f5bc8ab19dfcd2aecad6e

commit 9cbe02e307e7f552415f5bc8ab19dfcd2aecad6e
Author:     Eric Joldasov <bratishkaerik@landless-city.net>
AuthorDate: 2025-02-04 16:51:58 +0000
Commit:     Sam James <sam@gentoo.org>
CommitDate: 2025-02-16 16:28:11 +0000

    dev-lang/zig: do not die on `eselect` in `pkg_postrm`
    
    Per PMS:
    > Ebuilds are allowed to call them in pkg_preinst and pkg_postinst.
    > Ebuilds may also call them in pkg_prerm and pkg_postrm but must not
    > rely on them being available.
    
    Bug: https://bugs.gentoo.org/949225
    Signed-off-by: Eric Joldasov <bratishkaerik@landless-city.net>
    Signed-off-by: Sam James <sam@gentoo.org>

 dev-lang/zig/zig-0.13.0-r2.ebuild | 2 +-
 dev-lang/zig/zig-9999.ebuild      | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)