Bug 72312

Summary: Build of jail fails
Product: Base System Reporter: SystemOperator <sysop>
Component: miscAssignee: freebsd-bugs (Nobody) <bugs>
Status: Closed FIXED    
Severity: Affects Only Me    
Priority: Normal    
Version: 5.3-BETA7   
Hardware: Any   
OS: Any   

Description SystemOperator 2004-10-04 16:30:15 UTC
	As documented in the jail(8) manpage there is an apparent
	inability to build world with an alternate "DESTDIR"

	Did make clean in /usr/src, no difference in behavior.

Fix: 

Unknown at this time.
How-To-Repeat: 	As documented in the jail(8) manpage the following fails:

     D=/data/master
     cd /usr/src
     mkdir -p $D
     make world DESTDIR=$D		<--  Fails here with

...SNIP...

mkdep -f .depend -a    -I/usr/obj/usr/src/i386/legacy/usr/include /usr/src/games/fortune/strfile/strfile.c
echo strfile: /data/master/usr/lib/libc.a /usr/obj/usr/src/i386/legacy/usr/lib/libegacy.a >> .depend
cc -O -pipe  -I/usr/obj/usr/src/i386/legacy/usr/include -c /usr/src/games/fortune/strfile/strfile.c
make: don't know how to make /data/master/usr/lib/libc.a. Stop
*** Error code 2

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

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

Stop in /usr/src.
Comment 1 ru freebsd_committer freebsd_triage 2004-10-05 12:22:14 UTC
On Mon, Oct 04, 2004 at 11:23:14AM -0400, SystemOperator wrote:
> As documented in the jail(8) manpage the following fails:
> 
>      D=/data/master
>      cd /usr/src
>      mkdir -p $D
>      make world DESTDIR=$D	<--  Fails here with
> 
> ...SNIP...
> 
> mkdep -f .depend -a    -I/usr/obj/usr/src/i386/legacy/usr/include /usr/src/games/fortune/strfile/strfile.c
> echo strfile: /data/master/usr/lib/libc.a /usr/obj/usr/src/i386/legacy/usr/lib/libegacy.a >> .depend
> cc -O -pipe  -I/usr/obj/usr/src/i386/legacy/usr/include -c /usr/src/games/fortune/strfile/strfile.c
> make: don't know how to make /data/master/usr/lib/libc.a. Stop
> *** Error code 2
> 
> Stop in /usr/src.
> *** Error code 1
> 
The fix is available in HEAD for more than a month now, as
src/Makefile.inc1,v 1.442.  re@ haven't decided yet if they
want it in RELENG_5 at this point or not.  The workaround
is to first "make buildworld" without DESTDIR, then do a
"make installworld DESTDIR=$D".


Cheers,
-- 
Ruslan Ermilov
ru@FreeBSD.org
FreeBSD committer
Comment 2 Mark Linimon freebsd_committer freebsd_triage 2004-10-24 00:53:30 UTC
State Changed
From-To: open->suspended

Mark suspended since this is awaiting an MFC decision.
Comment 3 Maxim Konovalov freebsd_committer freebsd_triage 2004-11-25 07:12:41 UTC
State Changed
From-To: suspended->closed

The bugfix was MFCed to RELENG_5.