tech-pkg archive

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

Re: Fix for floating point exception in check-portability.awk



On Tue, Nov 19, 2013 at 06:24:26PM +0000, John Klos wrote:
> Hi,
> 
> I was seeing these errors for various packages on netbsd-6 on VAX:
> 
> ...
> => Checking for portability problems in extracted files
> awk: floating point exception: Floating point overflow
> 
>  input record number 165261, file
>  source line number 34
> *** Error code 1
> 
> Stop.
> ...
> 
> The corresponding line calls split, apparently with either parameter
> empty. While it'd be nice to figure out where in awk this is and fix
> it there (I'll do that some other time), this fixes it for now:
> 
>         if (length(line) == 0 || length(word) == 0)
>                 return;
> 
> Is there a better way to do this?

Can you provide an actual diff?

Joerg


Home | Main Index | Thread Index | Old Index