Subject: pkg/7236: kermit build should always use BIGBUFOK on 4.4BSDs
To: None <gnats-bugs@gnats.netbsd.org>
From: None <woods@mail.weird.com>
List: netbsd-bugs
Date: 03/25/1999 18:07:46
>Number:         7236
>Category:       pkg
>Synopsis:       kermit build should always use BIGBUFOK on 4.4BSDs
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    gnats-admin (GNATS administrator)
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Thu Mar 25 15:20:01 1999
>Last-Modified:
>Originator:     Greg A. Woods
>Organization:
Planix, Inc.; Toronto, Ontario; Canada
>Release:        pkgsrc-current Thu Mar 25 08:23:43 EST 1999
>Environment:

>Description:

	I'd be writing a kermit script (don't ask why!) and testing it
	on my sparc machines.  Then I went to run the same script on an
	i386 and kermit refused to "take" it.

	Turns out that kermit's horribly messy configuration system
	noticed that I was on a sparc and thus could safely have "big"
	buffers for things like command lines and such, but no such
	concession was made for i386.

	Since so far as I know all 4.4BSDs are 32bit machines, and
	certainly any using NetBSD's pkgsrc will be, I've stuck a
	#define BIGBUFOK in the BSD44 section of ckcdeb.h.

	There were some other strange oddities between the way the
	script behaved on the sparc and the i386 (input parsing didn't
	seem as reliable, or was out of order, or somthing like that, on
	i386), but I think I'll re-write the program in C and be done
	with it.  If only the kermit folks had the forethought to use an
	embeddable real scripting language instead of inventing and then
	attempting to extend their own macro language.... ;-)

>How-To-Repeat:

>Fix:

	apply the following patch to the kermit pkgsrc module:

Index: pkgsrc/comms/kermit/patches/patch-ac
===================================================================
RCS file: /cvs/NetBSD/pkgsrc/comms/kermit/patches/patch-ac,v
retrieving revision 1.1.1.2
diff -c -r1.1.1.2 patch-ac
*** pkgsrc/comms/kermit/patches/patch-ac	1998/09/01 18:38:14	1.1.1.2
--- pkgsrc/comms/kermit/patches/patch-ac	1999/03/25 04:07:24
***************
*** 1,8 ****
! $NetBSD: patch-ac,v 1.3 1998/08/07 10:36:40 agc Exp $
! 
! --- ckcdeb.h.orig	Mon Nov 25 01:20:48 1996
! +++ ckcdeb.h	Sat Jun 20 23:20:14 1998
! @@ -908,10 +908,10 @@
   /* Now define the debug() macro. */
   #ifdef IFDEBUG
   /* Use this form to avoid function calls: */
--- 1,16 ----
! --- ckcdeb.h.orig	Sun Nov 24 19:20:48 1996
! +++ ckcdeb.h	Wed Mar 24 23:06:20 1999
! @@ -267,6 +267,9 @@
!  #ifndef NOSETBUF			/* NOSETBUF is safe */
!  #define NOSETBUF
!  #endif /* NOSETBUF */
! +#ifndef BIGBUFOK			/* BIGBUFOK is safe (all 32bit) */
! +#define BIGBUFOK
! +#endif /* BIGBUFOK */
!  #ifndef DIRENT				/* Uses <dirent.h> */
!  #define DIRENT
!  #endif /* DIRENT */
! @@ -908,10 +911,10 @@
   /* Now define the debug() macro. */
   #ifdef IFDEBUG
   /* Use this form to avoid function calls: */
>Audit-Trail:
>Unformatted: