NetBSD-Bugs archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: misc/59456: nbdate not found building -10 on Linux host



The following reply was made to PR misc/59456; it has been noted by GNATS.

From: Martin Husemann <martin%duskware.de@localhost>
To: gnats-bugs%netbsd.org@localhost
Cc: 
Subject: Re: misc/59456: nbdate not found building -10 on Linux host
Date: Tue, 3 Jun 2025 10:21:15 +0200

 On Tue, Jun 03, 2025 at 07:55:03AM +0000, Robert Elz via gnats wrote:
 >  That's setting the date (etc) for MKREPRO - it needs to be guarded
 >  by a test which checks that the make target isn't one of the clean
 >  variety (timestamps aren't needed for cleaning).
 
 Good catch - Andreas, could you test the patch below?
 
 Martin
 
 
 Index: Makefile
 ===================================================================
 RCS file: /cvsroot/src/external/bsd/ntp/lib/libntp/Makefile,v
 retrieving revision 1.25.6.3
 diff -u -r1.25.6.3 Makefile
 --- Makefile	20 Apr 2024 13:26:35 -0000	1.25.6.3
 +++ Makefile	3 Jun 2025 08:19:39 -0000
 @@ -87,7 +87,7 @@
  
  # For MKREPRO, avoid using __DATE__ and __TIME__.
  # Instead, use the date and time from ${MKREPRO_TIMESTAMP}
 -.if ${MKREPRO:Uno} == "yes"
 +.if ${MKREPRO:Uno} == "yes" && !(make(clean) || make(cleandir))
  .if ${MKREPRO_TIMESTAMP:Uundefined} == "undefined"
  .error MKREPRO_TIMESTAMP is undefined with MKREPRO active
  .endif
 


Home | Main Index | Thread Index | Old Index