The setup of a new tinderbox image spews for a systemd profile an error: * Generating locale-archive: forcing # of jobs to 1 * Generating 5 locales (this might take a while) with 1 jobs * (1/5) Generating de_DE.ISO-8859-1 ... [ ok ] * (2/5) Generating de_DE.UTF-8.UTF-8@euro ... [ ok ] * (3/5) Generating de_DE.ISO-8859-15@euro ... [ ok ] * (4/5) Generating en_US.ISO-8859-1 ... [ ok ] * (5/5) Generating en_US.UTF-8 ... [ ok ] * Generation complete Setting LANG to en_US.utf8 ... /usr/share/eselect/libs/config.bash: line 62: local: `# LANG=': not a valid identifier Run ". /etc/profile" to update the variable in your shell. non-systemd images are fine
I missed to call a env-update after a locale-gen call, but why appeared this issue only for systemd profiles ?
Sorry, but my crystal ball isn't working well at the moment, so I fail to divine what was the exact eselect command that led to your error. :) So, maybe you could tell me? Also, what version of bash (or emerge --info output)?
% ls -l /etc/env.d/02locale lrwxrwxrwx 1 root root 14 Sep 15 2013 /etc/env.d/02locale -> ../locale.conf % cat /etc/locale.conf # This file has been created by the sys-apps/systemd ebuild. # See locale.conf(5) and localectl(1). # LANG= % sudo eselect locale set en_US.utf8 Setting LANG to en_US.utf8 ... /usr/share/eselect/libs/config.bash: line 62: local: `# LANG=': not a valid identifier Run ". /etc/profile" to update the variable in your shell.
Toralf: For systemd images, it might be better to call localectl set instead of eselect locale.
(In reply to Mike Gilbert from comment #4) Nevermind on that; localectl makes a dbus call to localed, so that won't work in a chroot.
Created attachment 451903 [details, diff] Patch for libs/config.bash.in (In reply to Mike Gilbert from comment #3) > % ls -l /etc/env.d/02locale > lrwxrwxrwx 1 root root 14 Sep 15 2013 /etc/env.d/02locale -> ../locale.conf > > % cat /etc/locale.conf > # This file has been created by the sys-apps/systemd ebuild. > # See locale.conf(5) and localectl(1). > > # LANG= Looks like eselect chokes on the last line. Please try attached patch.
(In reply to Ulrich Müller from comment #6) >Looks like eselect chokes on the last line. Please try attached patch. gah - EAPI 4 - will try it, but needs time :-( The emerge is always the one from latest stage3 file. FWIW the issue happens in line 361 of https://github.com/toralf/tinderbox/blob/master/bin/tbs.sh
patch works !
Fixed in eselect-1.4.7: commit c24b332b9410df9e67002d13a24a2627d3ff7c8c Author: Ulrich Müller <ulm@gentoo.org> Date: Sun Oct 30 11:51:52 2016 +0100 app-admin/eselect: Version bump. Fixes bug 598480. Package-Manager: portage-2.3.2