Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 942759 - dev-util/shadowman: `eselect compiler-shadow clean all` keeps removing /usr/lib/distcc/bin compatibility symlink
Summary: dev-util/shadowman: `eselect compiler-shadow clean all` keeps removing /usr/l...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Michał Górny
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: 942758
  Show dependency tree
 
Reported: 2024-11-02 11:53 UTC by Matt Whitlock
Modified: 2024-11-03 16:18 UTC (History)
1 user (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 Matt Whitlock 2024-11-02 11:53:30 UTC
sys-devel/distcc installs a symlink at /usr/lib/distcc/bin for Portage compatibility, but then subsequently upgrading any installed compiler (sys-devel/gcc, sys-devel/clang) runs `eselect compiler-shadow clean all` during pkg_postrm, which deletes that symlink and breaks Portage's distcc support.

Maybe shadowman should be taught to leave that compatibility symlink in place, or better yet, maybe Portage should stop removing distcc from FEATURES if it's absent.
Comment 1 Mike Gilbert gentoo-dev 2024-11-03 14:55:39 UTC
Ah, my bad; I was unaware of this "clean" function for compiler-shadow. I'll think on how to handle this.
Comment 2 Mike Gilbert gentoo-dev 2024-11-03 16:18:03 UTC
Author: Mike Gilbert <floppym@gentoo.org>
Date:   Sun Nov 3 10:35:03 2024 -0500

    Bump to v4
    
    Signed-off-by: Mike Gilbert <floppym@gentoo.org>
    Closes: https://github.com/projg2/shadowman/pull/3
    Signed-off-by: Michał Górny <mgorny@gentoo.org>

commit 8863d9e64d694562f316d2b6bc742c63c35e7985
Author: Mike Gilbert <floppym@gentoo.org>
Date:   Sun Nov 3 10:33:54 2024 -0500

    clean: skip symlinks to directories
    
    Bug: https://bugs.gentoo.org/942759
    Signed-off-by: Mike Gilbert <floppym@gentoo.org>
    Signed-off-by: Michał Górny <mgorny@gentoo.org>


commit 7d97614f4d3811f7089bbf5db9e57c7c7f09d59c
Author: Michał Górny <mgorny@gentoo.org>
Date:   Sun Nov 3 16:58:32 2024 +0100

    dev-util/shadowman: Bump to 4
    
    Signed-off-by: Michał Górny <mgorny@gentoo.org>