[gnu.utils.bug] gnumake 3.54 bug

Leisner.Henr@XEROX.COM (Marty) (07/15/89)

On Sun386i and Sun4, the behavior of 
%make -p -f/dev/null changes from 3.48 to 3.54


mlsun% ./make -p -f/dev/null
# GNU Make version 3.54, by Richard Stallman and Roland McGrath.
# Copyright (C) 1988, 1989 Free Software Foundation, Inc.
# This is free software; see the source for copying conditions.
# There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A
# PARTICULAR PURPOSE.
 
make: no goal target.  Stop.


mlsun% /usr/local/bin/gnumake -p -f/dev/null |& head
GNU Make version 3.48, by Richard Stallman and Roland McGrath.
Copyright (C) 1988, 1989 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.
There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A
PARTICULAR PURPOSE.
 
 
Variables
 
LOGNAME (environment) = marty
.... and lots more stuff




mlsun%
marty
ARPA:	leisner.henr@xerox.com
GV:  leisner.henr
NS:  leisner:wbst139:xerox
UUCP:	hplabs!arisia!leisner
 

grady@fxgrp.fx.com (Steven Grady) (08/04/89)

Gnumake 3.54 does not use the vpath mechanism to look for
library files (-lfoo.a).  While finding the cause of this bug,
I also found another bug which prevents library files from
being found in the current directory (unlike the claim in
"CHANGES" under 3.51).  The following patch fixes both of
these problems.

*** remake.c	Thu Aug  3 16:58:28 1989
--- remake.c.new	Thu Aug  3 16:58:24 1989
***************
*** 704,713 ****
    if (mtime == (time_t) -1)
      mtime = name_mtime (name + 4);
    if (mtime == (time_t) -1)
!     mtime = name_mtime (name + 8);
    if (mtime == (time_t) -1)
      {
!       char *newname = name;
        if (vpath_search (&newname))
  	{
  	  mtime = name_mtime (newname);
--- 704,713 ----
    if (mtime == (time_t) -1)
      mtime = name_mtime (name + 4);
    if (mtime == (time_t) -1)
!     mtime = name_mtime (name + 9);
    if (mtime == (time_t) -1)
      {
!       char *newname = name + 9;
        if (vpath_search (&newname))
  	{
  	  mtime = name_mtime (newname);

	Steven
	...!ucbvax!grady
	grady@postgres.berkeley.edu

"There should be a psychology of feet.  For do we not
make decisions with our legs, and walk about on our brains?
What do you mean, `No, not really,'?"
	-from "The Notebooks of Mauve'Bib--Outtakes, Bloopers,
		and Unconvincing Maxims," Edited by the Princess Serutan.