Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 883457 - sys-libs/glibc-2.36-r6 <prefix>usr/bin/localedef: no such file or directory
Summary: sys-libs/glibc-2.36-r6 <prefix>usr/bin/localedef: no such file or directory
Status: RESOLVED FIXED
Alias: None
Product: Gentoo/Alt
Classification: Unclassified
Component: Prefix Support (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Gentoo Prefix
URL:
Whiteboard:
Keywords: PATCH, PullRequest
Depends on:
Blocks:
 
Reported: 2022-11-28 20:31 UTC by Esteve Varela Colominas
Modified: 2023-03-21 17:42 UTC (History)
0 users

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 Esteve Varela Colominas 2022-11-28 20:31:36 UTC
Today's glibc install phase showed me the following message:

    /home/mid-kid/.gentoo-current/usr/sbin/locale-gen: line 168: /home/mid-kid/.gentoo-currentusr/bin/localedef: No such file or directory

I'm not sure what other details I can provide but please tell me if necessary.
Comment 1 Bart Oldeman 2023-03-21 15:56:24 UTC
This is a problem with locale-gen's use of EROOT (which changed in EAPI 7 to no longer need a trailing slash)

I fixed this in:
https://github.com/gentoo/locale-gen/pull/1
Comment 2 Larry the Git Cow gentoo-dev 2023-03-21 17:37:34 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/proj/locale-gen.git/commit/?id=941f508fba6880b5d189c8fc6681bf9800a6e05b

commit 941f508fba6880b5d189c8fc6681bf9800a6e05b
Author:     Bart Oldeman <bart.oldeman@calculquebec.ca>
AuthorDate: 2023-03-17 14:47:51 +0000
Commit:     Andreas K. Hüttel <dilfridge@gentoo.org>
CommitDate: 2023-03-21 17:36:45 +0000

    Fix use of EROOT to be compatible with EAPI 7+
    
    EROOT no longer has a trailing slash, so replace it with "${EROOT%/}/"
    to avoid errors such as:
    
    /home/oldeman/eessi3/usr/sbin/locale-gen: line 168: /home/oldeman/eessi3usr/bin/localedef: No such file or directory
     * Unable to parse the output of your localedef utility.
     * File a bug about this issue and include the output of 'localedef --help'.
    
    in stage3.log when bootstrapping Gentoo Prefix.
    
    See also:
    https://mgorny.pl/articles/the-ultimate-guide-to-eapi-7.html#d-ed-root-eroot-no-longer-have-a-trailing-slash
    
    Closes: https://bugs.gentoo.org/883457
    Signed-off-by: Bart Oldeman <bart.oldeman@calculquebec.ca>
    Signed-off-by: Andreas K. Hüttel <dilfridge@gentoo.org>

 locale-gen | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)
Comment 3 Larry the Git Cow gentoo-dev 2023-03-21 17:42:32 UTC
The bug has been referenced in the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=7c56fc08503c956e421bafd8d2a584a3902876da

commit 7c56fc08503c956e421bafd8d2a584a3902876da
Author:     Andreas K. Hüttel <dilfridge@gentoo.org>
AuthorDate: 2023-03-21 17:41:12 +0000
Commit:     Andreas K. Hüttel <dilfridge@gentoo.org>
CommitDate: 2023-03-21 17:42:20 +0000

    sys-libs/glibc: Bump locale-gen version
    
    Bug: https://bugs.gentoo.org/883457
    Signed-off-by: Andreas K. Hüttel <dilfridge@gentoo.org>

 sys-libs/glibc/Manifest             | 1 +
 sys-libs/glibc/glibc-2.36-r7.ebuild | 2 +-
 sys-libs/glibc/glibc-2.37-r1.ebuild | 2 +-
 sys-libs/glibc/glibc-9999.ebuild    | 2 +-
 4 files changed, 4 insertions(+), 3 deletions(-)