| Summary: | app-admin/eselect-1.4.5: `# LANG=': not a valid identifier | ||
|---|---|---|---|
| Product: | Gentoo Linux | Reporter: | Toralf Förster <toralf> |
| Component: | Current packages | Assignee: | Gentoo eselect Team <eselect> |
| Status: | RESOLVED FIXED | ||
| Severity: | normal | CC: | systemd |
| Priority: | Normal | ||
| Version: | unspecified | ||
| Hardware: | All | ||
| OS: | Linux | ||
| Whiteboard: | |||
| Package list: | Runtime testing required: | --- | |
| Attachments: | Patch for libs/config.bash.in | ||
|
Description
Toralf Förster
2016-10-29 20:27:59 UTC
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 |