From nobody  Sun Jun  8 08:40:15 1997
Received: (from nobody@localhost)
          by hub.freebsd.org (8.8.5/8.8.5) id IAA16953;
          Sun, 8 Jun 1997 08:40:15 -0700 (PDT)
Message-Id: <199706081540.IAA16953@hub.freebsd.org>
Date: Sun, 8 Jun 1997 08:40:15 -0700 (PDT)
From: canuck@caam.rice.edu
To: freebsd-gnats-submit@freebsd.org
Subject: make world on 2.2-STABLE dies when trying to create /usr/include/ufs/ffs
X-Send-Pr-Version: www-1.0

>Number:         3813
>Category:       bin
>Synopsis:       make world on 2.2-STABLE dies when trying to create /usr/include/ufs/ffs
>Confidential:   no
>Severity:       critical
>Priority:       high
>Responsible:    steve
>State:          closed
>Quarter:
>Keywords:
>Date-Required:
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Sun Jun  8 08:50:01 PDT 1997
>Closed-Date:    Sat Aug 16 16:43:32 PDT 1997
>Last-Modified:  Sat Aug 16 16:44:07 PDT 1997
>Originator:     Michael Pearlman
>Release:        2.2-STABLE
>Organization:
CAAM Dept., Rice Univeristy
>Environment:
FreeBSD gauss.stat.rice.edu 2.2-STABLE FreeBSD 2.2-STABLE #0: Wed Jun  4 09:58:01 CDT 1997     root@gauss.stat.rice.edu:/usr/src/sys/compile/GAUSS  i386

>Description:
The file /usr/include/Makefile

#       From: @(#)Makefile      8.2 (Berkeley) 1/4/94
#       $Id: Makefile,v 1.45.2.1 1997/06/05 21:23:49 jkh Exp $

is broken it tries to create /usr/include/ufs/ffs without first
creating /usr/include/ufs
>How-To-Repeat:
just do
	make world

>Fix:
Here is context diff between the broken Makefile and a corrected one.
Note once someone does a "make world" the /usr/include structure needs
to be restored to allow a make world with the corrected Makefile to work.
The quick fix is
	cp /usr/src/sys/sys/*.h /usr/include/sys
	cp /usr/src/sys/i386/include/*.h /usr/include/machine
Now patch the Makefile and do a "make world"

diff -c Makefile.broken Makefile
*** Makefile.broken     Sun Jun  8 10:30:56 1997
--- Makefile    Sun Jun  8 10:32:25 1997
***************
*** 86,92 ****
                rm -f ${DESTDIR}/usr/include/$i; \
        fi
  .endfor
! .for i in ${LDIRS} ${UDIRS} ${LUDIR} machine
        if [ ! -d ${DESTDIR}/usr/include/$i ]; then \
                mkdir ${DESTDIR}/usr/include/$i; \
                chown ${BINOWN}.${BINGRP} ${DESTDIR}/usr/include/$i; \
--- 86,92 ----
                rm -f ${DESTDIR}/usr/include/$i; \
        fi
  .endfor
! .for i in ${LDIRS} ${LUDIR} ${UDIRS} machine
        if [ ! -d ${DESTDIR}/usr/include/$i ]; then \
                mkdir ${DESTDIR}/usr/include/$i; \
                chown ${BINOWN}.${BINGRP} ${DESTDIR}/usr/include/$i; \

>Release-Note:
>Audit-Trail:
State-Changed-From-To: open->closed 
State-Changed-By: steve 
State-Changed-When: Sat Aug 16 16:43:32 PDT 1997 
State-Changed-Why:  
Fixed by jkh in revision 1.45.2.2 of Makefile. 
>Unformatted:
