zsh-workers
 help / color / mirror / code / Atom feed
* 3.0.5 Src/Makefile.in doesn't stop after error
@ 1997-12-26 12:17 Andreas J. Koenig
  0 siblings, 0 replies; only message in thread
From: Andreas J. Koenig @ 1997-12-26 12:17 UTC (permalink / raw)
  To: zsh-workers

The Src/Makefile.in has a buglet in the rule for rlimits.h.

The patch below deletes a quite useless warning that has the
inappropriate side effect of returning TRUE instead of FALSE.

Without the patch a failing awk script (which I will describe in a
separate message) doesn't stop the make from proceeding. In my case,
on a NeXT 3.3, this leads to an empty Src/rlimits.h which leads to a
failing compilation later. It is much easier to find the cause for the
troubles if the error becomes visible immediately when it happens.

The current warning is unlikely to be seen by anybody. It comes quite
early during the first run of a make. It won't be issued again if you
repeat the make. It just gets buried and can only be reproduced by
removing the empty rlimits.h file.

*** /tmp/Makefile.in.~1.1~	Fri Dec 26 13:11:34 1997
--- /tmp/Makefile.in	Fri Dec 26 13:11:34 1997
***************
*** 135,142 ****
  # silent so the warning doesn't appear unless necessary
  rlimits.h: rlimits.awk $(RLIMITS_INC_H)
  	@echo '$(AWK) -f $(srcdir)/rlimits.awk $(RLIMITS_INC_H) > rlimits.h'; \
! 	$(AWK) -f $(srcdir)/rlimits.awk $(RLIMITS_INC_H) > rlimits.h || \
! 	    echo WARNING: unknown limits:  mail rlimits.h to developers
  
  $(OBJS): $(HDRS)
  
--- 135,141 ----
  # silent so the warning doesn't appear unless necessary
  rlimits.h: rlimits.awk $(RLIMITS_INC_H)
  	@echo '$(AWK) -f $(srcdir)/rlimits.awk $(RLIMITS_INC_H) > rlimits.h'; \
! 	$(AWK) -f $(srcdir)/rlimits.awk $(RLIMITS_INC_H) > rlimits.h
  
  $(OBJS): $(HDRS)
  


Enjoy,
-- 
andreas


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~1997-12-26 12:32 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
1997-12-26 12:17 3.0.5 Src/Makefile.in doesn't stop after error Andreas J. Koenig

Code repositories for project(s) associated with this public inbox

	https://git.vuxu.org/mirror/zsh/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).