From dim@tensor.xs4all.nl  Tue Nov 25 04:33:35 2003
Return-Path: <dim@tensor.xs4all.nl>
Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125])
	by hub.freebsd.org (Postfix) with ESMTP id 0DF0B16A4CE
	for <FreeBSD-gnats-submit@freebsd.org>; Tue, 25 Nov 2003 04:33:35 -0800 (PST)
Received: from tensor.xs4all.nl (tensor.xs4all.nl [194.109.160.97])
	by mx1.FreeBSD.org (Postfix) with ESMTP id 3E90C43F93
	for <FreeBSD-gnats-submit@freebsd.org>; Tue, 25 Nov 2003 04:33:34 -0800 (PST)
	(envelope-from dim@tensor.xs4all.nl)
Received: by tensor.xs4all.nl (Postfix, from userid 1000)
	id 3690F22848; Tue, 25 Nov 2003 13:33:30 +0100 (CET)
Message-Id: <20031125123330.3690F22848@tensor.xs4all.nl>
Date: Tue, 25 Nov 2003 13:33:30 +0100 (CET)
From: Dimitry Andric <dim@tensor.xs4all.nl>
Reply-To: Dimitry Andric <dimitry@andric.com>
To: FreeBSD-gnats-submit@freebsd.org
Cc:
Subject: BSD.usr.dist doesn't create share/nls/en_US.US-ASCII
X-Send-Pr-Version: 3.113
X-GNATS-Notify:

>Number:         59679
>Category:       conf
>Synopsis:       BSD.usr.dist doesn't create share/nls/en_US.US-ASCII
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    freebsd-bugs
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Tue Nov 25 04:40:18 PST 2003
>Closed-Date:    Tue Nov 25 04:56:05 PST 2003
>Last-Modified:  Tue Nov 25 05:00:38 PST 2003
>Originator:     Dimitry Andric
>Release:        FreeBSD 5.1-CURRENT i386
>Organization:
>Environment:
System: FreeBSD tensor.xs4all.nl 5.1-CURRENT FreeBSD 5.1-CURRENT #0: Tue Nov 11 12:27:59 CET 2003 root@vfbsd5.dim:/usr/obj/usr/src/sys/TENSOR i386
>Description:
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.
>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.
>Fix:
This patch also removes a whitespace at EOL occurrence.

--- BSD.usr.dist.orig	Mon Nov 10 11:01:56 2003
+++ BSD.usr.dist	Tue Nov 25 12:56:59 2003
@@ -521,7 +521,7 @@
             ..
             zh_CN.eucCN
             ..
-            zh_CN.GB18030      
+            zh_CN.GB18030
             ..
             zh_CN.GB2312
             ..
@@ -736,6 +736,8 @@
             en_US.ISO8859-1
             ..
             en_US.ISO8859-15
+            ..
+            en_US.US-ASCII
             ..
             es_ES.ISO8859-1
             ..
>Release-Note:
>Audit-Trail:
State-Changed-From-To: open->closed 
State-Changed-By: kris 
State-Changed-When: Tue Nov 25 04:55:29 PST 2003 
State-Changed-Why:  
This symlink is specified in /usr/src/share/etc/nls.alias and is 
created as part of installworld during a normal build. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=59679 

From: Kris Kennaway <kris@obsecurity.org>
To: Dimitry Andric <dimitry@andric.com>
Cc: FreeBSD-gnats-submit@FreeBSD.org
Subject: Re: conf/59679: BSD.usr.dist doesn't create share/nls/en_US.US-ASCII
Date: Tue, 25 Nov 2003 04:55:17 -0800

 --PNTmBPCT7hxwcZjr
 Content-Type: text/plain; charset=us-ascii
 Content-Disposition: inline
 
 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
 
 --PNTmBPCT7hxwcZjr
 Content-Type: application/pgp-signature
 Content-Disposition: inline
 
 -----BEGIN PGP SIGNATURE-----
 Version: GnuPG v1.2.3 (FreeBSD)
 
 iD8DBQE/w1E0Wry0BWjoQKURAnW9AJ93cEbmJZRe1n2GL/Grv25/4SVf0QCfZrM/
 oFM7iofpnujLNh6E2gdT77I=
 =hTp1
 -----END PGP SIGNATURE-----
 
 --PNTmBPCT7hxwcZjr--
>Unformatted:
