🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.readers
Article #21481

Re: ANNOUNCE: slrn0.8.8.1 released

#21481
From: jmay... Jay Maynard
Date: Thu, 09 May 1996 00:00
282 lines
9686 bytes

On Thu, 9 May 1996 19:05:22 GMT, David Nugent <dav...@csource.blaze.net.au> wrote:
>Yes, there is a 'standard program' available, being of course the
>port of Larry Wall's patch program itself. As with OS/2, UNIX boxes
>also do not have a special program supplied with the operating system
>that apply the context/unified diffs that patch works with. It is an
>add-on in any environment.

I'm aware that patch is an addon in Unix, having added it to every Unix
system I've installed since 1987; I consider it part of the standard set of
utilities to be downloaded and installed right after the OS is booted for
real.

I wasn't aware of a functional OS/2 port, however. Is there a functional
port of diff that produces either unidiffs or context diffs suitable for
feeding to patch?

>BTW, nice port to OS/2. I like it. :-)

Thanks..but it was easy: John already did the hard part in slang.

>>The patch file for slrn is 154 lines long, but that's before the fix
>>John mentioned (and for which I'll be releasing an updated slrn0881.zip
>>today, hopefully).
>Great, I'll look for it.

It's on ftp-os2.nmsu.edu in /incoming as slrn0881.zip.new. The OS/2 archive
at ftp.cdrom.com is still unavailable, unfortunately.

I've included the patch file for 0.8.8.1 at the bottom of this message;
it's 198 lines long. You should be able to save this message, edit out all
but the patch file, and feed it to patch (though the file names I use
depend on HPFS).

> 1)  Make ^Z work? I realise that this does a bg (suspend) under
>     UNIX, but under OS/2 the usual thing is to substitute a shell.
>	 Jed already does this.

This one should be easy, though I just fire up another command window if I
need a shell - so I wouldn't have thought of it.

> 2)  Allow the sender name to be passed on the mailer command line
>     (it is not clear from the documentation if it should be doing
>     this already, but in any case it does not seem to work by using
>     %s) so that I can mail from slrn. I don't use sendmail, and
>     certainly don't WANT to use sendmail under OS/2 since I already
>     have and make use of small, fast and efficient (words which could
>     never describe sendmail!) smtp mailer that'll quite happily hand
>     off any mail piped to it to a local mail server.

This is a change that would apply to at least the Unix and OS/2 versions;
I don't know how it might work for VMS. At any rate, it's not specific
to the OS/2 version.

I chose to use sendmail (and there's a simple sendmail configuration file
supplied with 0.8.8.1), just as I chose to use E.EXE as the default editor,
because I know it will be present on any system on which slrn would be
useful.

>     Actually, it would be even better for slrn to support SMTP
>     internally, even as an option with the UNIX version, so I'd be
>     tempted to include that as well. Interfacing to the world is
>     much easier if you don't need to rely on external programs which
>     may not be there.

I'd prefer that slrn do SMTP, at least as far as bouncing the message to
a relay host (as the supplied sendmail configuration file does), internally
as well...but that's not the way things are done in Unix, which, after all,
is slrn's home environment and the one whose design philosophy it's modeled
after.

Here's the 0.8.8.1 patch to produce the OS/2 binary in slrn0881.zip.new:

----------8<-----if-you-cut-here-you'll-destroy-your-monitor----->8--------
*** makefile.os2.orig	Mon May 06 16:08:05 1996
--- makefile.os2	Mon May 06 16:08:28 1996
***************
*** 8,14 ****
  #-----------------------------------------------------------------------------
  # 1. Choose a C compiler.  It must understand prototypes.
  #-----------------------------------------------------------------------------
! CC = gcc -g -Zmt -DHAS_TERMIOS -DOS2 -D__os2__
  
  #-----------------------------------------------------------------------------
  # 2. On a few systems, additional libraries are required.
--- 8,14 ----
  #-----------------------------------------------------------------------------
  # 1. Choose a C compiler.  It must understand prototypes.
  #-----------------------------------------------------------------------------
! CC = gcc -g -Zmt -DHAS_TERMIOS -DHAVE_UNISTD_H -DOS2 -D__os2__
  
  #-----------------------------------------------------------------------------
  # 2. On a few systems, additional libraries are required.
*** group.c.orig	Mon May 06 16:08:04 1996
--- group.c	Mon May 06 16:08:27 1996
***************
*** 935,940 ****
--- 935,941 ----
     slrn_fclose (fp); fp = NULL;
     
  #ifdef unix
+ # ifndef __os2__
     /* Try to preserve .newsrc permissions and owner/group */
     if (stat_worked)
       {
***************
*** 945,950 ****
--- 946,952 ----
       }
     else
       (void) chmod (file, 0600 );
+ # endif
  #endif
  
     Slrn_Groups_Dirty = 0;
***************
*** 1965,1971 ****
--- 1967,1977 ----
  #ifdef VMS
     sprintf (file, "%s-dsc", Slrn_Newsrc_File);
  #else
+ # ifdef __os2__
+    sprintf (file, "ds-%s", Slrn_Newsrc_File);
+ # else
     sprintf (file, "%s.dsc", Slrn_Newsrc_File);
+ # endif
  #endif
     
     
*** misc.c.orig	Mon May 06 16:08:06 1996
--- misc.c	Thu May 09 11:39:04 1996
***************
*** 211,217 ****
--- 211,223 ----
  {
     char *home;
  #ifndef VMS
+ # ifndef __os2__
     if ((*name == '/') || ((*name == '.') && (*(name + 1) == '/')))
+ # else
+    if ((*name == '/') || (*name == '\\') || (*(name + 1) == ':') ||
+ 	((*name == '.') && (*(name + 1) == '/')) ||
+ 	((*name == '.') && (*(name + 1) == '\\')))
+ # endif
       {
  	strcpy (file, name);
  	return;
***************
*** 383,389 ****
--- 389,400 ----
  	free (f);
       }
  #else
+ 
+ #ifndef __os2__
     char *dir = getenv ("TMPDIR");
+ #else
+    char *dir = getenv("TMP");
+ #endif
     
  #ifdef VMS
     if (dir == NULL) dir = "SYS$LOGIN:";
***************
*** 544,550 ****
     va_list ap;
     char *v;
     
!    if (SLang_Error) return -1;
     
     while (1)
       {
--- 555,561 ----
     va_list ap;
     char *v;
     
!    /* if (SLang_Error) return -1; */
     
     while (1)
       {
***************
*** 570,575 ****
--- 581,587 ----
  	     
  	     ch = SLang_getkey ();
  	     slrn_clear_message ();
+ 	     SLang_Error = SLKeyBoard_Quit = 0;
  	  }
  	
  	v = valid_chars;
***************
*** 595,601 ****
     char ch, rsp;
     char *fmt;
     
!    if (SLang_Error) return -1;
     
     va_start(ap, str);
     (void) vsprintf(buf, str, ap);
--- 607,613 ----
     char ch, rsp;
     char *fmt;
     
!    /* if (SLang_Error) return -1; */
     
     va_start(ap, str);
     (void) vsprintf(buf, str, ap);
*** slrn.c.orig	Mon May 06 16:08:06 1996
--- slrn.c	Mon May 06 16:08:29 1996
***************
*** 203,212 ****
  }
  
  #ifndef VMS
  /* If defined, an rn style lock file will be created if .newsrc is the newsrc
   * file.
   */
! # define SLRN_USE_RNLOCK
  #endif
  
  
--- 203,214 ----
  }
  
  #ifndef VMS
+ # ifndef __os2__
  /* If defined, an rn style lock file will be created if .newsrc is the newsrc
   * file.
   */
! #  define SLRN_USE_RNLOCK
! # endif
  #endif
  
  
***************
*** 781,787 ****
       {
  	slrn_exit_error ("\
  Unable to find a fully qualified hostname.  You will have to specify a\r\n\
! hostname in your .slrnrc file (slrn.rc on VMS).\r\n");
       }
     if ((NULL == Slrn_User_Info.username)
         || (0 == *Slrn_User_Info.username)
--- 783,789 ----
       {
  	slrn_exit_error ("\
  Unable to find a fully qualified hostname.  You will have to specify a\r\n\
! hostname in your .slrnrc file (slrn.rc on VMS and OS/2).\r\n");
       }
     if ((NULL == Slrn_User_Info.username)
         || (0 == *Slrn_User_Info.username)
*** startup.c.orig	Mon May 06 16:17:14 1996
--- startup.c	Mon May 06 16:17:09 1996
***************
*** 694,697 ****
     return NULL;
  }
  
! 
--- 694,706 ----
     return NULL;
  }
  
! #if SLANG_VERSION < 9932
! #ifdef __os2__
! void SLtt_set_mono (int obj, char *what, SLtt_Char_Type mask)
! {
!    obj;
!    what;
!    mask;	/* shut the compiler up */
! }
! #endif
! #endif
----------8<-----if-you-cut-here-you'll-destroy-your-monitor----->8--------

-- 
Jay Maynard, EMT-P, K5ZC, PP-ASEL | Never ascribe to malice that which can
http://k5zc.hsc.uth.tmc.edu       | adequately be explained by stupidity.
      "Are we going to push it to the edge of the envelope?" -- Pinky
     "No, Pinky. We may, however, reach the sticky part." -- The Brain

Technical Details
Message-ID: <slrn4p4vaq.17n.jmaynard@k5zc.hsc.uth.tmc.edu>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!i2pn2.pugleaf.net!archive.newsdeef.eu!mbox2nntp!not-for-mail
References: <slrn4oqqea.7jb.davis@wiwaxia.mit.edu> <slrn4ot1m6.8r.jmaynard@k5zc.hsc.uth.tmc.edu> <4mqnf3$gtd@peippo.cs.tut.fi> <slrn4p4b4u.12j.jmaynard@k5zc.hsc.uth.tmc.edu> <slrn4p4g0h.2tl.davidn@csource.blaze.net.au>

Show Full Headers
Complete Article Headers
Message-ID: <slrn4p4vaq.17n.jmaynard@k5zc.hsc.uth.tmc.edu>
Subject: Re: ANNOUNCE: slrn0.8.8.1 released
Date: Thu, 09 May 1996 00:00:00 +0000
From: jmay...@k5zc.hsc.uth.tmc.edu (Jay Maynard)
References: <slrn4oqqea.7jb.davis@wiwaxia.mit.edu> <slrn4ot1m6.8r.jmaynard@k5zc.hsc.uth.tmc.edu> <4mqnf3$gtd@peippo.cs.tut.fi> <slrn4p4b4u.12j.jmaynard@k5zc.hsc.uth.tmc.edu> <slrn4p4g0h.2tl.davidn@csource.blaze.net.au>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!i2pn2.pugleaf.net!archive.newsdeef.eu!mbox2nntp!not-for-mail
X-Deja-AN: 154007455
Content-type: text/plain;charset=US-ASCII
Organization: University of Texas Health Science Center
Mime-version: 1.0
Reply-to: jmay...@admin5.hsc.uth.tmc.edu
Newsgroups: news.software.readers,alt.lang.s-lang,comp.os.os2.networking.tcp-ip