CVS commit: src/tools/host-mkdep

2019-10-29 Thread Joerg Sonnenberger
Module Name:src
Committed By:   joerg
Date:   Tue Oct 29 23:33:06 UTC 2019

Modified Files:
src/tools/host-mkdep: host-mkdep.in

Log Message:
Don't escape ", GNU awk 5 warns about it.


To generate a diff of this commit:
cvs rdiff -u -r1.31 -r1.32 src/tools/host-mkdep/host-mkdep.in

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/tools/host-mkdep

2019-10-29 Thread Joerg Sonnenberger
Module Name:src
Committed By:   joerg
Date:   Tue Oct 29 23:33:06 UTC 2019

Modified Files:
src/tools/host-mkdep: host-mkdep.in

Log Message:
Don't escape ", GNU awk 5 warns about it.


To generate a diff of this commit:
cvs rdiff -u -r1.31 -r1.32 src/tools/host-mkdep/host-mkdep.in

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/tools/host-mkdep/host-mkdep.in
diff -u src/tools/host-mkdep/host-mkdep.in:1.31 src/tools/host-mkdep/host-mkdep.in:1.32
--- src/tools/host-mkdep/host-mkdep.in:1.31	Tue May 12 00:04:34 2015
+++ src/tools/host-mkdep/host-mkdep.in	Tue Oct 29 23:33:06 2019
@@ -1,6 +1,6 @@
 #!@BSHELL@ -
 #
-#	$NetBSD: host-mkdep.in,v 1.31 2015/05/12 00:04:34 christos Exp $
+#	$NetBSD: host-mkdep.in,v 1.32 2019/10/29 23:33:06 joerg Exp $
 #
 # Copyright (c) 1991, 1993
 #	The Regents of the University of California.  All rights reserved.
@@ -239,10 +239,10 @@ else
 		( (@CPP@ "$@" $f; echo $? >&3) | @AWK@ '
 			/^#/ {
 # Be as tolerant as possible.
-sub(/^#(line)? [ 0-9]*\"?/, "")
+sub(/^#(line)? [ 0-9]*"?/, "")
 sub(/^#(pragma).*/, "")
 sub(/^<.*/, "")
-sub(/\".*$/, "")
+sub(/".*$/, "")
 sub(/^\.\//, "")
 sub(/ [ 0-9]*$/, "")
 



Re: CVS commit: src/tools/host-mkdep

2013-03-15 Thread Valery Ushakov
On Thu, Mar 14, 2013 at 21:02:06 -0700, Tom Spindler (moof) wrote:

Log Message:
Revert 1.25 and 1.26: Breaks build on !NetBSD

Can you explain how? The shell does not work?
   
   E.g. util.h not found in binstall and a lot of other header issues.
   
   On what os?
  
  I've seen it on OSX ( 10.5 PowerPC if it matters ).
 
 And I've seen it on Debian.

That begins to sound like I've got it on MacOS, err, sorry, I've
got it from Agnes song. :)

Was there an error message, perhaps?

-uwe


Re: CVS commit: src/tools/host-mkdep

2013-03-15 Thread Valery Ushakov
On Fri, Mar 15, 2013 at 16:56:53 +0400, Valery Ushakov wrote:

 On Thu, Mar 14, 2013 at 21:02:06 -0700, Tom Spindler (moof) wrote:
 
 Log Message:
 Revert 1.25 and 1.26: Breaks build on !NetBSD
 
 Can you explain how? The shell does not work?

E.g. util.h not found in binstall and a lot of other header issues.

On what os?
   
   I've seen it on OSX ( 10.5 PowerPC if it matters ).
  
  And I've seen it on Debian.
 
 That begins to sound like I've got it on MacOS, err, sorry, I've
 got it from Agnes song. :)
 
 Was there an error message, perhaps?

Ah, as Martin pointed out privately, the problem is not some bug in
the change (Can you explain how? The shell does not work?), but the
fact that a missing include is now fatal, which is a wrong thing to do
for mkdep.

-uwe


Re: CVS commit: src/tools/host-mkdep

2013-03-15 Thread Christos Zoulas
In article 20130315130901.gd...@pony.stderr.spb.ru,
Valery Ushakov  u...@stderr.spb.ru wrote:
On Fri, Mar 15, 2013 at 16:56:53 +0400, Valery Ushakov wrote:

 On Thu, Mar 14, 2013 at 21:02:06 -0700, Tom Spindler (moof) wrote:
 
 Log Message:
 Revert 1.25 and 1.26: Breaks build on !NetBSD
 
 Can you explain how? The shell does not work?

E.g. util.h not found in binstall and a lot of other header issues.

On what os?
   
   I've seen it on OSX ( 10.5 PowerPC if it matters ).
  
  And I've seen it on Debian.
 
 That begins to sound like I've got it on MacOS, err, sorry, I've
 got it from Agnes song. :)
 
 Was there an error message, perhaps?

Ah, as Martin pointed out privately, the problem is not some bug in
the change (Can you explain how? The shell does not work?), but the
fact that a missing include is now fatal, which is a wrong thing to do
for mkdep.

I still don't understand how a missing include does not cause an error
in the compilation phase, but it can be ignore in the dependency generation.

christos



Re: CVS commit: src/tools/host-mkdep

2013-03-15 Thread Alan Barrett

On Fri, 15 Mar 2013, Christos Zoulas wrote:
I still don't understand how a missing include does not cause 
an error in the compilation phase, but it can be ignore in the 
dependency generation.


tools/compat creates a dummy include file, if necessary.  This is 
good enough for the compilation phase.  I am not sure why it's not 
good enough for host-mkdep, but two ideas spring to mind:  perhaps 
host-mkdep is run before the dummy include file is created, or 
perhaps host-mkdep is run without the -I flags that would allow it 
to find the dummy include file.


--apb (Alan Barrett)


Re: CVS commit: src/tools/host-mkdep

2013-03-15 Thread Christos Zoulas
In article 20130315185454.gb22...@apb-laptoy.apb.alt.za,
Alan Barrett  a...@cequrux.com wrote:
On Fri, 15 Mar 2013, Christos Zoulas wrote:
 I still don't understand how a missing include does not cause 
 an error in the compilation phase, but it can be ignore in the 
 dependency generation.

tools/compat creates a dummy include file, if necessary.  This is 
good enough for the compilation phase.  I am not sure why it's not 
good enough for host-mkdep, but two ideas spring to mind:  perhaps 
host-mkdep is run before the dummy include file is created, or 
perhaps host-mkdep is run without the -I flags that would allow it 
to find the dummy include file.

So, let's put back the changes reverted and find and fix the real
problem. I'll try my cross-build on windows tonight.

christos



Re: CVS commit: src/tools/host-mkdep

2013-03-14 Thread Christos Zoulas
In article 20130314145536.7745617...@cvs.netbsd.org,
Joerg Sonnenberger source-changes-d@NetBSD.org wrote:
-=-=-=-=-=-

Module Name:   src
Committed By:  joerg
Date:  Thu Mar 14 14:55:36 UTC 2013

Modified Files:
   src/tools/host-mkdep: host-mkdep.in

Log Message:
Revert 1.25 and 1.26: Breaks build on !NetBSD

Can you explain how? The shell does not work?

christos



Re: CVS commit: src/tools/host-mkdep

2013-03-14 Thread Joerg Sonnenberger
On Thu, Mar 14, 2013 at 10:37:06PM +, Christos Zoulas wrote:
 In article 20130314145536.7745617...@cvs.netbsd.org,
 Joerg Sonnenberger source-changes-d@NetBSD.org wrote:
 -=-=-=-=-=-
 
 Module Name: src
 Committed By:joerg
 Date:Thu Mar 14 14:55:36 UTC 2013
 
 Modified Files:
  src/tools/host-mkdep: host-mkdep.in
 
 Log Message:
 Revert 1.25 and 1.26: Breaks build on !NetBSD
 
 Can you explain how? The shell does not work?

E.g. util.h not found in binstall and a lot of other header issues.

Joerg


Re: CVS commit: src/tools/host-mkdep

2013-03-14 Thread Christos Zoulas
In article 20130315000350.ga27...@britannica.bec.de,
Joerg Sonnenberger  jo...@britannica.bec.de wrote:
On Thu, Mar 14, 2013 at 10:37:06PM +, Christos Zoulas wrote:
 In article 20130314145536.7745617...@cvs.netbsd.org,
 Joerg Sonnenberger source-changes-d@NetBSD.org wrote:
 -=-=-=-=-=-
 
 Module Name:src
 Committed By:   joerg
 Date:   Thu Mar 14 14:55:36 UTC 2013
 
 Modified Files:
 src/tools/host-mkdep: host-mkdep.in
 
 Log Message:
 Revert 1.25 and 1.26: Breaks build on !NetBSD
 
 Can you explain how? The shell does not work?

E.g. util.h not found in binstall and a lot of other header issues.

On what os?

christos



Re: CVS commit: src/tools/host-mkdep

2013-03-14 Thread Michael
Hello,

On Fri, 15 Mar 2013 00:19:54 + (UTC)
chris...@astron.com (Christos Zoulas) wrote:

 In article 20130315000350.ga27...@britannica.bec.de,
 Joerg Sonnenberger  jo...@britannica.bec.de wrote:
 On Thu, Mar 14, 2013 at 10:37:06PM +, Christos Zoulas wrote:
  In article 20130314145536.7745617...@cvs.netbsd.org,
  Joerg Sonnenberger source-changes-d@NetBSD.org wrote:
  -=-=-=-=-=-
  
  Module Name:  src
  Committed By: joerg
  Date: Thu Mar 14 14:55:36 UTC 2013
  
  Modified Files:
src/tools/host-mkdep: host-mkdep.in
  
  Log Message:
  Revert 1.25 and 1.26: Breaks build on !NetBSD
  
  Can you explain how? The shell does not work?
 
 E.g. util.h not found in binstall and a lot of other header issues.
 
 On what os?

I've seen it on OSX ( 10.5 PowerPC if it matters ).

have fun
Michael


Re: CVS commit: src/tools/host-mkdep

2013-03-14 Thread Tom Spindler (moof)
   Log Message:
   Revert 1.25 and 1.26: Breaks build on !NetBSD
   
   Can you explain how? The shell does not work?
  
  E.g. util.h not found in binstall and a lot of other header issues.
  
  On what os?
 
 I've seen it on OSX ( 10.5 PowerPC if it matters ).

And I've seen it on Debian.



CVS commit: src/tools/host-mkdep

2010-02-20 Thread Joerg Sonnenberger
Module Name:src
Committed By:   joerg
Date:   Sat Feb 20 15:04:04 UTC 2010

Modified Files:
src/tools/host-mkdep: host-mkdep.in

Log Message:
Rewrite argument processing to deal with spaces and other meta
characters in options. This was exposed by the NetBSD 5.99 argument of
mandoc.


To generate a diff of this commit:
cvs rdiff -u -r1.17 -r1.18 src/tools/host-mkdep/host-mkdep.in

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.