Bug 59679

Summary: BSD.usr.dist doesn't create share/nls/en_US.US-ASCII
Product: Base System Reporter: Dimitry Andric <dim>
Component: confAssignee: freebsd-bugs (Nobody) <bugs>
Status: Closed FIXED    
Severity: Affects Only Me    
Priority: Normal    
Version: 5.1-CURRENT   
Hardware: Any   
OS: Any   
Attachments:
Description Flags
file.diff none

Description Dimitry Andric 2003-11-25 12:40:18 UTC
The file src/etc/mtree/BSD.usr.dist misses an entry for the
/usr/share/nls/en_US.US-ASCII directory.

I ran into this when I zapped my complete /usr/share before running
installworld, which subsequently errored out with:

  ===> usr.bin/ee
  install -s -o root -g wheel -m 555   ee /usr/bin
  install -o root  -g wheel -m 444  en_US.US-ASCII.cat  /usr/share/nls/en_US.US-ASCII/ee.cat
  install: /usr/share/nls/en_US.US-ASCII/ee.cat: No such file or directory
  *** Error code 71

  Stop in /usr/src/usr.bin/ee.
  *** Error code 1

  Stop in /usr/src/usr.bin.
  *** Error code 1

  Stop in /usr/src.

This directory simply needs to be added.

Fix: This patch also removes a whitespace at EOL occurrence.
How-To-Repeat: - build world
- build kernel
- install kernel
- reboot to single user
- mv /usr/share /usr/share.old
- mkdir /usr/share
- cp -Rp /usr/src/etc/share/mk /usr/share/mk  (make dies otherwise)
- cd /usr/src && make installworld
This will result in the errors described above.
Comment 1 Kris Kennaway 2003-11-25 12:55:17 UTC
On Tue, Nov 25, 2003 at 01:33:30PM +0100, Dimitry Andric wrote:

> The file src/etc/mtree/BSD.usr.dist misses an entry for the
> /usr/share/nls/en_US.US-ASCII directory.

See /usr/src/etc/nls.alias - this is not missing.  Rather, you're
trying to bootstrap your system by hand and have omitted a necessary
step in the process that is taken care of by installworld.

Kris
Comment 2 Kris Kennaway freebsd_committer freebsd_triage 2003-11-25 12:55:29 UTC
State Changed
From-To: open->closed

This symlink is specified in /usr/src/share/etc/nls.alias and is 
created as part of installworld during a normal build.