Subject: xsrc/25185: netbsd-2-0 build (with -x) breaks on fc-cache without $HOME
To: None <gnats-bugs@gnats.netbsd.org>
From: None <mason@netbsd.org>
List: netbsd-bugs
Date: 04/14/2004 15:00:13
>Number:         25185
>Category:       xsrc
>Synopsis:       netbsd-2-0 build (with -x) breaks on fc-cache without $HOME
>Confidential:   no
>Severity:       critical
>Priority:       low
>Responsible:    xsrc-manager
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Wed Apr 14 19:01:00 UTC 2004
>Closed-Date:
>Last-Modified:
>Originator:     Mason Loring Bliss
>Release:        NetBSD 1.6.2_STABLE
>Organization:
	
>Environment:
	
	
System: NetBSD acheron.in.hades 1.6.2_STABLE NetBSD 1.6.2_STABLE (kern-acheron) #5: Tue Apr 13 18:24:55 EDT 2004 mason@acheron.in.hades:/u1/buildspace/kern-acheron i386
Architecture: i386
Machine: i386
>Description:

build.sh -x breaks if there is no HOME environment variable, such as is the
case when build.sh is run through "env -i". This is a hidden dependency, and
seems somewhat unclean. The build breaks here:

#    create  /u1/buildspace/build-i386-20040414-0252/dest/usr/X11R6/lib/X11/font
s/fonts.cache-1
/u1/buildspace/build-i386-20040414-0252/obj/usr/src/x11/tools/fc-cache/fc-cache 
-fv /u1/buildspace/build-i386-20040414-0252/dest/usr/X11R6/lib/X11/fonts
/u1/buildspace/build-i386-20040414-0252/obj/usr/src/x11/tools/fc-cache/fc-cache:
 Can't init font config library

*** Failed target:  afterinstall
*** Failed command: /u1/buildspace/build-i386-20040414-0252/obj/usr/src/x11/tool
s/fc-cache/fc-cache -fv /u1/buildspace/build-i386-20040414-0252/dest/usr/X11R6/l
ib/X11/fonts
*** Error code 1

Stop.
nbmake: stopped in /usr/src/x11/share/fonts


>How-To-Repeat:

"env -i PATH=/bin:/usr/bin build.sh -x" with appropriate flags set.

>Fix:

Workaround: "env -i PATH=... HOME=foo"

Fix: as yet unknown. Still exploring.

>Release-Note:
>Audit-Trail:
>Unformatted: