Subject: bin/3919: usr.sbin/amd/libamu/Makefile does not handle config_local.h correct
To: None <gnats-bugs@gnats.netbsd.org>
From: None <frueauf@ira.uka.de>
List: netbsd-bugs
Date: 07/26/1997 23:46:24
>Number: 3919
>Category: bin
>Synopsis: usr.sbin/amd/libamu/Makefile does not handle config_local.h correct
>Confidential: no
>Severity: non-critical
>Priority: medium
>Responsible: bin-bug-people (Utility Bug People)
>State: open
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Sat Jul 26 15:05:01 1997
>Last-Modified:
>Originator: Thorsten Frueauf
>Organization:
private
>Release: <NetBSD-current source date> NetBSD current 26.07.1997
>Environment:
System: NetBSD cyberlap 1.2G NetBSD 1.2G (CYBERLAP) #16: Sat Jul 26 23:13:02 CEST 1997 frueauf@cyberlap:/usr/src/sys/arch/i386/compile/CYBERLAP i386
>Description:
usr.sbin/amd/libamu/Makefile does not handle config_local.h correct; if
one uses a seperate object dir, config_local.h does not get installed in
obj/ and it does not get deleted if one does a `make cleandir`.
>How-To-Repeat:
Try to make /src/usr.sbin/amd on a current system and use a seperate
/usr/obj/* dir for the objects, and watch several files not finding
config_local.h like:
In file included from /usr/src/usr.sbin/amd/amd/conf_parse.y:47:
/usr/src/usr.sbin/amd/amd/../include/config.h:828: config_local.h: No such file
or directory
In file included from /usr/src/usr.sbin/amd/amd/conf_tok.l:51:
/usr/src/usr.sbin/amd/amd/../include/config.h:828: config_local.h: No such file
or directory
and so on. The try `make cleandir` and watch config_local.h not getting deleted.
>Fix:
Dunno if this is the right thing (tm), but the following patch to
/src/usr.sbin/amd/libamu/Makefile worked for me:
*** Makefile-orig Sat Jul 26 23:36:27 1997
--- Makefile Sat Jul 26 23:36:27 1997
***************
*** 2,8 ****
LIB= amu
SRCS= mtabutil.c tranputil.c umount_fs.c xutil.c xdr_mountres3.c wire.c \
! util.c nfs_prot_xdr.c mtab.c mount_fs.c misc_rpc.c hasmntopt.c
config_local.h: mkconf
@rm -f ${.TARGET}
--- 2,9 ----
LIB= amu
SRCS= mtabutil.c tranputil.c umount_fs.c xutil.c xdr_mountres3.c wire.c \
! util.c nfs_prot_xdr.c mtab.c mount_fs.c misc_rpc.c hasmntopt.c config_local.h
! CLEANFILES+= config_local.h
config_local.h: mkconf
@rm -f ${.TARGET}
>Audit-Trail:
>Unformatted:
usr.sbin/amd/libamu/Makefile does not handle config_local.h correct