Subject: Re: DG/UX HELP!!!!!

From: [email-masked] (Ken Weaverling)
Date: 1 Aug 1996 12:39:56 -0400

pine3.95 gets a wee bit closer to being compilable out-of-the-box on DG/UX
systems, at least on dg/ux m88k running 4.11.

The last patches appeared in the c-client distribution, but they added a
comment which blocked out the utime.h include!

To apply this patch, unzip and untar the pine distribution from
ftp.cac.washington.edu, then cd into pine3.95, and finally pipe this file
into patch (make sure to use the -p option.)

For example:

  zcat pine3.95.tar.gz | tar xvof -
  cd pine3.95
  cat thispatchfile | patch -p
  ./build d-g

*OR* if you lack the patch program, you can grab the edited files and
park them manually in place from ftp://hopi.dtcc.edu/pub/dgux/pine/
and place them in

   imap/ANSI/c-client/os_d-g.c
   pine/makefile.d-g
   pine/osdep/os-sv4.h

*OR* you can grab a compiled (for m88k) version of patch from
   ftp://hopi.dtcc.edu/pub/dgux/pine/patch
 and apply the patches below if you lack patch

When you are all done, simply "./build d-g" to hopefully get a successful
pine compile.

Note that this is tested with DG/UX 4.11 under 88k platform. The utime()
controversy still exists "unconditionally" for 88k boxes and can be set to
work the same weird way with intel boxes iff you #define _USEC_UTIME_FLAVOR,
which I did in this patch.  The symptom of this not working right will be
weird messages when quitting pine that the folder time was changed but no
changes were found (paraphrased greatly) and folder times of Dec 31, 1969

*** pine/makefile.d-g.orig	Fri Mar 15 02:14:55 1996
--- pine/makefile.d-g	Tue Jul 23 07:58:09 1996
***************
*** 59,63 ****
  LIBES=       $(EXTRALIBES) $(LOCLIBES) $(STDLIBES)
  
! STDCFLAGS=   -Dconst= -DSV4 -DSYSTYPE=\"D-G\" -DMOUSE
  CFLAGS=      $(OPTIMIZE) $(PROFILE) $(DEBUG) $(EXTRACFLAGS) $(STDCFLAGS)
  
--- 59,63 ----
  LIBES=       $(EXTRALIBES) $(LOCLIBES) $(STDLIBES)
  
! STDCFLAGS=   -DSV4 -DSYSTYPE=\"D-G\" -DMOUSE
  CFLAGS=      $(OPTIMIZE) $(PROFILE) $(DEBUG) $(EXTRACFLAGS) $(STDCFLAGS)
  
*** imap/ANSI/c-client/os_d-g.c.dist	Mon Jul 22 12:10:38 1996
--- imap/ANSI/c-client/os_d-g.c	Mon Jul 22 12:38:04 1996
***************
*** 36,41 ****
  #include "tcp_unix.h"		/* must be before osdep includes tcp.h */
  #include "mail.h"
! #define _USEC_UTIME_FLAVOR	/* break it for compatibility with
! #include <utime.h>		   the incompatible past */
  #include "osdep.h"
  #include <stdio.h>
--- 36,41 ----
  #include "tcp_unix.h"		/* must be before osdep includes tcp.h */
  #include "mail.h"
! #define _USEC_UTIME_FLAVOR	/* break it for compatibility with */
! #include <utime.h>		/*   the incompatible past */
  #include "osdep.h"
  #include <stdio.h>
*** pine/osdep/os-sv4.h.orig	Tue Jul 23 07:37:44 1996
--- pine/osdep/os-sv4.h	Tue Jul 23 07:40:32 1996
***************
*** 232,236 ****
--- 232,241 ----

+ /*-------- For DG/UX systems, define setpgrp to be setpgrp2 -------------*/
+ #ifdef DGUX
+ #define setpgrp setpgrp2
+ #endif
  
+ 
  /*----------------- locale.h -------------------------------------------*/
  /* #include <locale.h>  /* To make matching and sorting work right */
-- 
Ken Weaverling,  Delaware Tech     (WHOIS: KJW)  *         [email-masked]
finger [email-masked]@publickey.com for PGP key. * http://www.dtcc.edu/~weave/
****************************************************************************** 
  Visit Delaware on the web - beats in person! http://www.dtcc.edu/delaware/