Subject: xsrc/25185: netbsd-2-0 build (with -x) breaks on fc-cache without $HOME
To: None <>
From: None <>
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
>Originator:     Mason Loring Bliss
>Release:        NetBSD 1.6.2_STABLE
System: NetBSD 1.6.2_STABLE NetBSD 1.6.2_STABLE (kern-acheron) #5: Tue Apr 13 18:24:55 EDT 2004 i386
Architecture: i386
Machine: i386
>Description: -x breaks if there is no HOME environment variable, such as is the
case when 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
-fv /u1/buildspace/build-i386-20040414-0252/dest/usr/X11R6/lib/X11/fonts
 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
*** Error code 1

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


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


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

Fix: as yet unknown. Still exploring.