Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 779790 - sys-libs/glibc-2.32-r8 - missing trailing slash after EROOT
Summary: sys-libs/glibc-2.32-r8 - missing trailing slash after EROOT
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo Toolchain Maintainers
URL:
Whiteboard:
Keywords:
: 795885 (view as bug list)
Depends on:
Blocks:
 
Reported: 2021-04-02 08:27 UTC by Martin Mokrejš
Modified: 2022-04-12 09:56 UTC (History)
3 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 Martin Mokrejš 2021-04-02 08:27:27 UTC
On a Gentoo-Prefix installation I see a slash is missing after the ${EPREFIX} resulting in .../gentoousr/bin/localedef: No such file or directory

It should be .../gentoo/usr/bin/localedef: No such file or directory

>>> Installing (2 of 3) sys-libs/glibc-2.32-r8::gentoo
 * Defaulting /etc/host.conf:multi to on
/storage/brno3-cerit/home/mmokrejs/gentoo/usr/sbin/locale-gen: line 166: /storage/brno3-cerit/home/mmokrejs/gentoousr/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'.
locale-gen --jobs 36 --config /storage/brno3-cerit/home/mmokrejs/gentoo//etc/locale.gen --destdir /storage/brno3-cerit/home/mmokrejs/gentoo/
 * Using locale.gen from /storage/brno3-cerit/home/mmokrejs/gentooetc/
 * Building locales in DESTDIR '/storage/brno3-cerit/home/mmokrejs/gentoo/'
 * Generating 6 locales (this might take a while) with 36 jobs
 *  (4/6) Generating en_US.ISO-8859-1 ...                                                                                                                          [ ok ]
 *  (1/6) Generating cs_CZ.ISO-8859-2 ...                                                                                                                          [ ok ]
 *  (6/6) Generating C.UTF-8 ...                                                                                                                                   [ ok ]
 *  (2/6) Generating cs_CZ.UTF-8 ...                                                                                                                               [ ok ]
 *  (5/6) Generating en_US.UTF-8 ...                                                                                                                               [ ok ]
 *  (3/6) Generating en_GB.UTF-8 ...                                                                                                                               [ ok ]
 * Generation complete
 * Adding locales to archive ...                                                                                                                                   [ ok ]
rm: cannot remove '/mnt/storage-brno3-cerit/nfs4/home/mmokrejs/gentoo/var/tmp/portage/sys-libs/glibc-2.32-r8/temp': Directory not empty



$ emerge --info
Portage 3.0.17 (python 3.8.8-final-0, default/linux/amd64/17.1/no-multilib/prefix/kernel-3.2+, gcc-10.2.0, glibc-2.32-r8, 3.10.0-1160.15.2.el7.x86_64 x86_64)
=================================================================
System uname: Linux-3.10.0-1160.15.2.el7.x86_64-x86_64-Intel-R-_Xeon-R-_Gold_6254_CPU_@_3.10GHz-with-glibc2.2.5
KiB Mem:  10563841808 total,5425646128 free
KiB Swap:    4194300 total,   4147072 free
Timestamp of repository gentoo: Thu, 01 Apr 2021 20:30:01 +0000
Head commit of repository gentoo: b56155414603338eed7e59e5b07b5069ec4de48d
sh bash 5.1_p4
ld GNU ld (Gentoo 2.35.2 p1) 2.35.2
app-shells/bash:          5.1_p4::gentoo
dev-java/java-config:     2.3.1::gentoo
dev-lang/perl:            5.32.1::gentoo
dev-lang/python:          3.8.8::gentoo, 3.9.2::gentoo
dev-util/cmake:           3.19.7::gentoo
sys-apps/baselayout:      2.7-r1::gentoo
sys-apps/sandbox:         2.21::gentoo
sys-devel/autoconf:       2.71::gentoo
sys-devel/automake:       1.16.3-r1::gentoo
sys-devel/binutils:       2.35.2::gentoo
sys-devel/gcc:            9.3.0-r2::gentoo, 10.2.0-r5::gentoo
sys-devel/gcc-config:     2.4::gentoo
sys-devel/libtool:        2.4.6-r6::gentoo
sys-devel/make:           4.3::gentoo
sys-kernel/linux-headers: 5.11::gentoo (virtual/os-headers)
sys-libs/glibc:           2.32-r8::gentoo
Repositories:

gentoo
    location: /mnt/storage-brno3-cerit/nfs4/home/mmokrejs/gentoo/var/db/repos/gentoo
    sync-type: rsync
    sync-uri: rsync://rsync.gentoo.org/gentoo-portage
    priority: -1000
    sync-rsync-verify-jobs: 1
    sync-rsync-verify-max-age: 24
    sync-rsync-verify-metamanifest: no
    sync-rsync-extra-opts: 

science
    location: /mnt/storage-brno3-cerit/nfs4/home/mmokrejs/gentoo/var/lib/layman/science
    masters: gentoo
    priority: 50

ACCEPT_KEYWORDS="amd64 ~amd64"
ACCEPT_LICENSE="@FREE Intel-SDP intel-ucode fasta meme mRNAmarkup ApE modeller gmap abyss swiss-prot Aladdin AVASYS pyvcf Non-profit-OSL-3.0 estscan blat staden CeCILL-1.1 phrap STRIDE cctbx-2.0 bh-luxi ARIADNE unRAR trf freedist free-noncomm genscan no-source-code BSD MIT BSD-2 unicode Subversion all-rights-reserved BSD-BroadInstitute"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-O2 -pipe -mtune=native -ftree-vectorize"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /storage/brno3-cerit/home/mmokrejs/gentoo/etc /usr/share/gnupg/qualified.txt"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo /etc/texmf/language.dat.d /etc/texmf/language.def.d /etc/texmf/updmap.d /etc/texmf/web2c /storage/brno3-cerit/home/mmokrejs/gentoo/etc/env.d /storage/brno3-cerit/home/mmokrejs/gentoo/etc/gentoo-release"
CXXFLAGS="-O2 -pipe -mtune=native -ftree-vectorize"
DISTDIR="/storage/brno3-cerit/home/mmokrejs/gentoo/var/cache/distfiles"
ENV_UNSET="CARGO_HOME DBUS_SESSION_BUS_ADDRESS DISPLAY GOBIN GOPATH PERL5LIB PERL5OPT PERLPREFIX PERL_CORE PERL_MB_OPT PERL_MM_OPT XAUTHORITY XDG_CACHE_HOME XDG_CONFIG_HOME XDG_DATA_HOME XDG_RUNTIME_DIR"
FCFLAGS="-O2 -pipe -mtune=native -ftree-vectorize"
FEATURES="assume-digests binpkg-docompress binpkg-dostrip binpkg-logs config-protect-if-modified distlocks ebuild-locks fixlafiles force-prefix ipc-sandbox merge-sync multilib-strict network-sandbox news nostrip parallel-fetch pid-sandbox preserve-libs protect-owned qa-unresolved-soname-deps sfperms splitdebug strict unknown-features-warn unmerge-logs unmerge-orphans unprivileged"
FFLAGS="-O2 -pipe -mtune=native -ftree-vectorize"
GENTOO_MIRRORS="http://distfiles.gentoo.org"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
MAKEOPTS="-j1"
PKGDIR="/storage/brno3-cerit/home/mmokrejs/gentoo/var/cache/binpkgs"
PORTAGE_CONFIGROOT="/storage/brno3-cerit/home/mmokrejs/gentoo/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --omit-dir-times --compress --force --whole-file --delete --stats --human-readable --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages --exclude=/.git"
PORTAGE_TMPDIR="/storage/brno3-cerit/home/mmokrejs/gentoo/var/tmp"
USE="acl amd64 asm avx avx2 berkdb boost bzip2 cli crypt dri emboss fortran gdbm gmp iconv icu java jpeg jpg lapack libglvnd libtirpc mariadb mmx ncurses nfs nls nptl nptlonly objc openmp openssl pbs pcre pcre16 pdf perl png prefix readline sctp seccomp server session split-usr sqlite sse sse2 sse3 sse4_1 sse4_2 ssl sslv3 ssse3 svg tcl tcpd threads tiff tk truetype unicode vim-syntax xml zlib" ABI_X86="64" ADA_TARGET="gnat_2018" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" APACHE2_MODULES="authn_core authz_core socache_shmcb unixd actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache cgi cgid dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" CALLIGRA_FEATURES="karbon sheets words" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" CPU_FLAGS_X86="aes avx avx2 avx512f avx512dq avx512cd avx512bw avx512vl f16c fma3 mmx mmxext pclmul popcnt rdrand sse sse2 sse3 sse4_1 sse4_2 ssse3" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock greis isync itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf skytraq superstar2 timing tsip tripmate tnt ublox ubx" INPUT_DEVICES="libinput" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" LUA_SINGLE_TARGET="lua5-1" LUA_TARGETS="lua5-1" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php7-3 php7-4" POSTGRES_TARGETS="postgres10 postgres11" PYTHON_SINGLE_TARGET="python3_8" PYTHON_TARGETS="python3_8" RUBY_TARGETS="ruby26" USERLAND="GNU" VIDEO_CARDS="amdgpu fbdev intel nouveau radeon radeonsi vesa dummy v4l" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipset ipp2p iface geoip fuzzy condition tee tarpit sysrq proto steal rawnat logmark ipmark dhcpmac delude chaos account"
Unset:  CC, CPPFLAGS, CTARGET, CXX, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LANG, LC_ALL, LINGUAS, PORTAGE_BINHOST, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 1 Martin Mokrejš 2021-04-02 08:31:42 UTC
Here is the locale-gen script with line numbers shown:

135 : ${CONFIG:=${EROOT}etc/locale.gen}
136 LOCALES=${DESTDIR}usr/share/i18n/locales
137 CHARMAPS=${DESTDIR}usr/share/i18n/charmaps
138 SUPPORTED=${DESTDIR}usr/share/i18n/SUPPORTED
139 ALIAS=${DESTDIR}usr/share/locale/locale.alias
140 
141 #
142 # Grab any user options in their config file
143 options=$(sed -n \
144         -e '/^[[:space:]]*#%/s:^[[:space:]]*#%[[:space:]]*::p'\
145         "${CONFIG}" 2>/dev/null
146 )
147 IFS=$'\n'
148 for option in ${options} ; do
149         case ${option} in
150                 no-locale-archive)
151                         LOCALE_ARCHIVE=false
152                         ;;
153                 *)
154                         ewarn "Unrecognized option '${option}'"
155                         ;;
156         esac
157 done
158 unset IFS
159 
160 [[ -n ${ALL} ]] && CONFIG=${SUPPORTED}
161 
162 # Extract the location of the locale dir on the fly as `localedef --help` has:
163 #                        locale path    : /usr/lib64/locale:/usr/share/i18n
164 # For long paths, the line may get wrapped into two, in which case space (' ') is replaced
165 # by newline (\n).
166 LOCALEDIR=$(LC_ALL="C" "${DESTDIR}"usr/bin/localedef --help | sed -n -r '/locale path/{N;s|.*:[ \n](.*):/.*|\1|;p}')
167 LOCALEDIR="${DESTDIR}${LOCALEDIR#${EPREFIX}}"
168 if [[ $? -ne 0 ]] || [[ -z ${LOCALEDIR} ]] || [[ ${LOCALEDIR} != ${DESTDIR}/usr/lib*/locale ]] ; then
169         eerror "Unable to parse the output of your localedef utility." 1>&2
170         eerror "File a bug about this issue and include the output of 'localedef --help'." 1>&2
171         exit 1
172 fi
Comment 2 Sergei Trofimovich (RETIRED) gentoo-dev 2021-04-07 07:22:45 UTC
Sounds reasonable. Can you attach a patch against https://gitweb.gentoo.org/proj/locale-gen.git/ so we could apply it with 'git am'?
Comment 3 Larry the Git Cow gentoo-dev 2021-08-06 21:09:30 UTC
The bug has been referenced in the following commit(s):

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

commit 799b0ed2ef39e49b56f0204bc8db52d0353b1e63
Author:     Andreas K. Hüttel <dilfridge@gentoo.org>
AuthorDate: 2021-08-06 21:09:03 +0000
Commit:     Andreas K. Hüttel <dilfridge@gentoo.org>
CommitDate: 2021-08-06 21:09:03 +0000

    Ensure DESTDIR ends with a /
    
    Bug: https://bugs.gentoo.org/779790
    Signed-off-by: Andreas K. Hüttel <dilfridge@gentoo.org>

 locale-gen | 1 +
 1 file changed, 1 insertion(+)
Comment 4 Andreas K. Hüttel archtester gentoo-dev 2021-08-06 21:55:54 UTC
*** Bug 795885 has been marked as a duplicate of this bug. ***
Comment 5 Larry the Git Cow gentoo-dev 2021-10-30 15:50:22 UTC
The bug has been referenced in the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=01d429402c527a2f611b4faa105579ec81f66fcb

commit 01d429402c527a2f611b4faa105579ec81f66fcb
Author:     Andreas K. Hüttel <dilfridge@gentoo.org>
AuthorDate: 2021-10-30 15:50:02 +0000
Commit:     Andreas K. Hüttel <dilfridge@gentoo.org>
CommitDate: 2021-10-30 15:50:02 +0000

    sys-libs/glibc: Bump locale-gen version in 2.34 and later
    
    Bug: https://bugs.gentoo.org/779790
    Package-Manager: Portage-3.0.28, Repoman-3.0.3
    Signed-off-by: Andreas K. Hüttel <dilfridge@gentoo.org>

 sys-libs/glibc/Manifest          | 1 +
 sys-libs/glibc/glibc-2.34.ebuild | 2 +-
 sys-libs/glibc/glibc-9999.ebuild | 2 +-
 3 files changed, 3 insertions(+), 2 deletions(-)