Subject: bin/4553: override /usr/share/mk when building make
To: None <gnats-bugs@gnats.netbsd.org>
From: Michael C. Richardson <mcr@ssh.fi>
List: netbsd-bugs
Date: 11/21/1997 12:22:44
>Number: 4553
>Category: bin
>Synopsis: allow a way to override /usr/share/mk when building make
>Confidential: no
>Severity: non-critical
>Priority: low
>Responsible: bin-bug-people (Utility Bug People)
>State: open
>Class: change-request
>Submitter-Id: net
>Arrival-Date: Fri Nov 21 02:35:04 1997
>Last-Modified:
>Originator: Michael Richardson
>Organization:
Sandelman Software Works
>Release: 1.2
>Environment:
System: NetBSD ovi.ssh.fi 1.2 NetBSD 1.2 (TAULU) #50: Mon Feb 24 21:40:52 EET 1997 kivinen@taulu.ssh.fi:/usr/src/sys/arch/i386/compile/TAULU i386
>Description:
I want to do "make CFLAGS+=-D_PATH_SYSPATH=/foo/bar" in
/usr/src/usr.bin/make to build -current on a 1.2 system.
>How-To-Repeat:
>Fix:
*** pathnames.h1 Thu Nov 20 12:48:32 1997
--- pathnames.h Thu Nov 20 12:48:41 1997
***************
*** 40,42 ****
--- 40,46 ----
#define _PATH_DEFSHELLDIR "/bin"
#define _PATH_DEFSYSMK "sys.mk"
#define _PATH_DEFSYSPATH "/usr/share/mk"
+
+ #ifndef _PATH_SYSPATH
+ #define _PATH_SYSPATH _PATH_DEFSYSPATH
+ #endif
*** main.c1 Thu Nov 20 13:07:03 1997
--- main.c Thu Nov 20 13:07:20 1997
***************
*** 451,457 ****
Lst sysMkPath; /* Path of sys.mk */
char *cp = NULL, *start;
/* avoid faults on read-only strings */
! static char syspath[] = _PATH_DEFSYSPATH;
#ifdef RLIMIT_NOFILE
/*
--- 451,457 ----
Lst sysMkPath; /* Path of sys.mk */
char *cp = NULL, *start;
/* avoid faults on read-only strings */
! static char syspath[] = _PATH_SYSPATH;
#ifdef RLIMIT_NOFILE
/*
>Audit-Trail:
>Unformatted: