From nik@blueberry.co.uk  Mon Mar 11 10:11:47 1996
Received: from plum.blueberry.co.uk ([194.70.52.50])
          by freefall.freebsd.org (8.7.3/8.7.3) with SMTP id KAA29978
          for <FreeBSD-gnats-submit@freebsd.org>; Mon, 11 Mar 1996 10:11:45 -0800 (PST)
Received: (from nik@localhost) by plum.blueberry.co.uk (8.6.12/8.6.12) id SAA20100; Mon, 11 Mar 1996 18:08:35 GMT
Message-Id: <199603111808.SAA20100@plum.blueberry.co.uk>
Date: Mon, 11 Mar 1996 18:08:35 GMT
From: Nik Clayton <nik@blueberry.co.uk>
Reply-To: nik@blueberry.co.uk
To: FreeBSD-gnats-submit@freebsd.org
Subject: 'make install' fails for /usr/src/share/examples in -stable
X-Send-Pr-Version: 3.2

>Number:         1076
>Category:       conf
>Synopsis:       'make install' fails for /usr/src/share/examples in -stable
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    freebsd-bugs
>State:          closed
>Quarter:
>Keywords:
>Date-Required:
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Mon Mar 11 10:20:00 PST 1996
>Closed-Date:    Tue Oct 22 02:05:20 PDT 1996
>Last-Modified:  Tue Oct 22 02:05:48 PDT 1996
>Originator:     Nik Clayton
>Release:        FreeBSD 2.1.0-RELEASE i386
>Organization:
Blueberry Design                   
>Environment:

	2-1-stable sup'd over the weekend 9/10 March

>Description:

        When 'make install'ing in /usr/src/share/examples, multiple errors
        of the type

            install: mkstemp: /usr/share/examples/etc for 
            /usr/share/examples/etc/README.examples: No such file or directory
  
        (long line broken) are generated.

        Only occurs if the variable SHARED is set to 'copies'. This is the
        default in the supplied makefile. As far as I can tell, 'install'
	is objecting because the directories to install to do not exist.

>How-To-Repeat:

	Install 2.1.0-RELEASE
        Sup -stable on top of it
        Do a 'make world' (or anything else that will cause 'make install'
        to be run in /usr/src/share/examples. 

>Fix:
        
        Set the variable SHARED to 'symlinks' (if that works for you), 
        otherwise, apply this patch, which creates the directories first.

*** Makefile.org        Mon Mar 11 17:56:40 1996
--- Makefile    Mon Mar 11 18:04:59 1996
***************
*** 19,27 ****
--- 19,32 ----
  
  copies:
        @${ECHO} installing ${DDIR}
+ 
        @-for a in ${DIRS}; do \
                rm -rf ${DDIR}/$$a; \
        done
+
+       find ${DIRS} \( -name CVS -prune \) -o -type d -print -exec \
+               mkdir -p ${DDIR}/{} \;
+ 
        find ${DIRS} \( -name CVS -prune \) -o -type f -print -exec \
                ${INSTALL} -C -o ${BINOWN} -g ${BINGRP} -m 644 {} ${DDIR}/{} \;

        
>Release-Note:
>Audit-Trail:

From: J Wunsch <j@uriah.heep.sax.de>
To: nik@blueberry.co.uk
Cc: FreeBSD-gnats-submit@freebsd.org
Subject: Re: conf/1076: 'make install' fails for /usr/src/share/examples in -stable
Date: Tue, 12 Mar 1996 00:09:37 +0100 (MET)

 As Nik Clayton wrote:
 > 
 > 
 > >Number:         1076
 > >Category:       conf
 > >Synopsis:       'make install' fails for /usr/src/share/examples in -stable
 > >Confidential:   no
 > >Severity:       serious
 
 Huh?  Are you serious about this? :)
 
 >         When 'make install'ing in /usr/src/share/examples, multiple errors
 >         of the type
 
 Hmm.  I'm not sure about your fix.  My suggested fix would be:
 
 install:
 	@echo "You cannot install these examples directly."
 
 I think they haven't ever been intended to be auto-installable, they
 are rather there as a reference for curious people.  The fact that the
 `install' targets were still around at all is simply that nobody
 bothered to disable the default install targets from the included .mk
 files.
 
 What do other people think about this?
 
 -- 
 cheers, J"org
 
 joerg_wunsch@uriah.heep.sax.de -- http://www.sax.de/~joerg/ -- NIC: JW11-RIPE
 Never trust an operating system you don't have sources for. ;-)
State-Changed-From-To: open->feedback 
State-Changed-By: scrappy 
State-Changed-When: Mon Oct 21 23:17:02 PDT 1996 
State-Changed-Why:  

Dust off the cobwebs - Confirm Status 
State-Changed-From-To: feedback->closed 
State-Changed-By: scrappy 
State-Changed-When: Tue Oct 22 02:05:20 PDT 1996 
State-Changed-Why:  

Originator Confirmed Closure 
>Unformatted:
