Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 653388

Summary: app-shells/mksh: consider disabling static support to drop klibc usage
Product: Gentoo Linux Reporter: Pacho Ramos <pacho>
Component: Current packagesAssignee: Haelwenn (lanodan) Monnier <contact>
Status: RESOLVED FIXED    
Severity: normal CC: proxy-maint
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---

Description Pacho Ramos gentoo-dev 2018-04-17 15:04:40 UTC
Our klibc package is severely outdated for years, buggy and nobody wants to take care of it. Maybe it would be interesting to try to disable the optional static support here to try to avoid its dependency if possible

Thanks
Comment 1 Haelwenn (lanodan) Monnier 2019-03-17 09:47:07 UTC
Wouldn’t it be better to change USE=static to use the system libc’s when possible? (thus not allowing glibc and maybe other libc with broken static linking but allowing at least musl for that)

I can do the patch, and as I’m using mksh as the default shell for quite some time now I can take maintenance (and anyone is welcome on co-maintainance).
Comment 2 Pacho Ramos gentoo-dev 2019-03-23 13:17:02 UTC
Thanks for volunteering :)
https://wiki.gentoo.org/wiki/Project:Proxy_Maintainers/User_Guide
Comment 3 Larry the Git Cow gentoo-dev 2019-12-01 23:24:57 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=9629083d7b4571de1d17548e90854346a277dcd4

commit 9629083d7b4571de1d17548e90854346a277dcd4
Author:     Haelwenn (lanodan) Monnier <contact@hacktivis.me>
AuthorDate: 2019-11-25 07:27:20 +0000
Commit:     Michał Górny <mgorny@gentoo.org>
CommitDate: 2019-12-01 23:24:17 +0000

    app-shells/mksh: USE=static now uses the system libc
    
    Which means that glibc needs to be masked as it's static-linking is
    broken.
    
    I considered dietlibc as a replacement to klibc but:
    - dietlibc is maintained-needed too
    - it could be a elibc_glibc? in DEPEND but this would probably be a
    noblah USE flag
    - it would mean that arches where mksh is believed to work and some of
    our libc do but not dietlibc or klibc (like alpha with bug #487672)
    would be prevented from USE=static
    
    Closes: https://bugs.gentoo.org/653388
    Signed-off-by: Haelwenn (lanodan) Monnier <contact@hacktivis.me>
    Signed-off-by: Michał Górny <mgorny@gentoo.org>

 app-shells/mksh/mksh-57-r2.ebuild         | 54 +++++++++++++++++++++++++++++++
 app-shells/mksh/mksh-9999.ebuild          | 16 +++++----
 profiles/base/package.use.mask            |  4 +++
 profiles/features/musl/package.use.mask   |  3 ++
 profiles/features/uclibc/package.use.mask |  3 ++
 5 files changed, 73 insertions(+), 7 deletions(-)
Comment 4 Larry the Git Cow gentoo-dev 2020-02-11 14:14:14 UTC
The bug has been referenced in the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=53918ee7fdd838de95ce7c2132c61a984921b9ff

commit 53918ee7fdd838de95ce7c2132c61a984921b9ff
Author:     Haelwenn (lanodan) Monnier <contact@hacktivis.me>
AuthorDate: 2020-02-11 13:55:58 +0000
Commit:     Michał Górny <mgorny@gentoo.org>
CommitDate: 2020-02-11 14:11:58 +0000

    app-shells/mksh: Version cleanup, <57-r2
    
    This makes sys-fs/dmraid-1.0.0_rc16-r3[klibc] the last revdep
    of dev-libs/klibc.
    
    Bug: https://bugs.gentoo.org/653388
    Signed-off-by: Michał Górny <mgorny@gentoo.org>

 app-shells/mksh/Manifest          |  1 -
 app-shells/mksh/mksh-56c.ebuild   | 47 ----------------------------------
 app-shells/mksh/mksh-57-r1.ebuild | 53 ---------------------------------------
 app-shells/mksh/mksh-57.ebuild    | 47 ----------------------------------
 4 files changed, 148 deletions(-)