From scrappy@hub.org  Sat Dec  9 12:27:01 1995
Received: from hub.org (hub.org [199.166.238.138])
          by freefall.freebsd.org (8.7.3/8.7.3) with ESMTP id MAA11278
          for <FreeBSD-gnats-submit@freebsd.org>; Sat, 9 Dec 1995 12:26:59 -0800 (PST)
Received: (from root@localhost) by hub.org (8.7.1/8.7.1) id PAA01860; Sat, 9 Dec 1995 15:26:56 -0500 (EST)
Message-Id: <199512092026.PAA01860@hub.org>
Date: Sat, 9 Dec 1995 15:26:56 -0500 (EST)
From: "Marc G. Fournier" <scrappy@hub.org>
Reply-To: scrappy@hub.org
To: FreeBSD-gnats-submit@freebsd.org
Subject: Makefile is not smart enough to bypass libraries...
X-Send-Pr-Version: 3.2

>Number:         882
>Category:       misc
>Synopsis:       Makefile is not smart enough to bypass libraries...
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    peter
>State:          closed
>Quarter:
>Keywords:
>Date-Required:
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Sat Dec  9 12:30:01 PST 1995
>Closed-Date:    Thu Apr 25 12:02:45 PDT 1996
>Last-Modified:  Thu Apr 25 12:04:42 PDT 1996
>Originator:     Marc G. Fournier
>Release:        FreeBSD 2.2-CURRENT i386
>Organization:
>Environment:

	

>Description:

	The Makefiles are not smart enough to recognize that various
	libraries have not been installed in /usr/src/lib directory,
	and then fail to compile as a result

>How-To-Repeat:

	Don't install /usr/src/lib/libncurses because you have a newer
	version already installed that you don't want overwritten.

>Fix:
	
	A simple patch to the Makefile in /usr/src/lib so that it 
	checks for the existence of each of the library directories
	to create the SUBDIR listing:

*** Makefile.orig       Sat Dec  9 15:10:03 1995
--- Makefile    Sat Dec  9 15:22:38 1995
***************
*** 10,19 ****
  .endif

  # XXX MISSING:                libplot
! SUBDIR+=        libc libcompat libcom_err libcurses libedit \
!               libf2c libforms \
!       libkvm libmd libmytinfo libncurses libpcap libresolv librpcsvc \
!       libscsi libskey libss libtermcap libutil libxpg4 liby libipx

  .if !exists(../secure) || defined(NOSECURE) || defined(NOCRYPT)
  SUBDIR+= libcrypt
--- 10,24 ----
  .endif

  # XXX MISSING:                libplot
! DIRLIST=      libc libcompat libcom_err libedit libf2c libforms \
!               libkvm libmd libmytinfo libncurses libpcap libresolv librpcsvc \
!               libscsi libskey libss libtermcap libutil libxpg4 liby libipx
!
! .for INDIR in ${DIRLIST}
! .if exists(${INDIR})
! SUBDIR+= ${INDIR}
! .endif
! .endfor

  .if !exists(../secure) || defined(NOSECURE) || defined(NOCRYPT)
  SUBDIR+= libcrypt



>Release-Note:
>Audit-Trail:
Responsible-Changed-From-To: freebsd-bugs->pst 
Responsible-Changed-By: pst 
Responsible-Changed-When: Wed Feb 7 16:55:39 PST 1996 
Responsible-Changed-Why:  
Responsible-Changed-From-To: pst->peter 
Responsible-Changed-By: pst 
Responsible-Changed-When: Wed Feb 7 22:38:56 PST 1996 
Responsible-Changed-Why:  
Peter, I was going to do something similar to this to Makefile and lib/Makefile 
to reduce the uglyness, but I'm not so sure this is really such a good idea 
after all.  This could cause make world's to unexplicably fail if the user 
forgets that he's mucked with things.  I don't know that we should make 
things that easy to change. 
State-Changed-From-To: open->closed 
State-Changed-By: scrappy 
State-Changed-When: Thu Apr 25 12:02:45 PDT 1996 
State-Changed-Why:  
Really old and quite a useless change request :) 
>Unformatted:
