Sorry, let me update the diff.  Previous missed the patch.

On Thu, 17 Aug 2023 16:42:35 +0900 (JST)
YASUOKA Masahiko <yasu...@openbsd.org> wrote:
> ok?
> 
> Prepare the libc bump.  stderr will become unable to be initialized
> when compile time.
> 

Index: Makefile
===================================================================
RCS file: /cvs/ports/mail/elm/Makefile,v
retrieving revision 1.34
diff -u -p -r1.34 Makefile
--- Makefile    11 Mar 2022 19:34:35 -0000      1.34
+++ Makefile    17 Aug 2023 07:44:00 -0000
@@ -1,7 +1,7 @@
 COMMENT=       once-popular mail user agent
 
 DISTNAME=      elm-2.4ME+66
-REVISION=      3
+REVISION=      4
 CATEGORIES=    mail
 
 MASTER_SITES=  ftp://ftp.ozone.fmi.fi/KEH/
Index: patches/patch-lib_read_rc_c
===================================================================
RCS file: patches/patch-lib_read_rc_c
diff -N patches/patch-lib_read_rc_c
--- /dev/null   1 Jan 1970 00:00:00 -0000
+++ patches/patch-lib_read_rc_c 17 Aug 2023 07:44:00 -0000
@@ -0,0 +1,11 @@
+Index: lib/read_rc.c
+--- lib/read_rc.c.orig
++++ lib/read_rc.c
+@@ -76,7 +76,6 @@ char raw_calendar_file[SLEN] = {0};  /* unexpanded name
+ int clear_pages = 0;          /* flag: act like "page" (more -c)? */
+ int title_messages = 1;               /* flag: title message display?     */
+ int debug = 0;                        /* flag: default is no debug!       */
+-FILE *debugfile = stderr;     /* file for debug output            */
+ 
+ nl_catd  elm_msg_cat = 0;     /* message catalog          */
+ 
Index: patches/patch-src_elm_c
===================================================================
RCS file: /cvs/ports/mail/elm/patches/patch-src_elm_c,v
retrieving revision 1.2
diff -u -p -r1.2 patch-src_elm_c
--- patches/patch-src_elm_c     11 Mar 2022 19:34:35 -0000      1.2
+++ patches/patch-src_elm_c     17 Aug 2023 07:44:00 -0000
@@ -1,5 +1,6 @@
---- src/elm.c.orig     Sat Dec  7 23:51:21 2013
-+++ src/elm.c  Sat Dec  7 23:51:36 2013
+Index: src/elm.c
+--- src/elm.c.orig
++++ src/elm.c
 @@ -21,10 +21,6 @@ static char rcsid[] = "@(#)$Id: elm.c,v 1.12.2.1 1999/
  #include "s_elm.h"
  #include "elmlib.h"
@@ -11,3 +12,20 @@
  #include "mime.h"
  #include "me.h"
  
+@@ -35,6 +31,8 @@ static void do_check_only P_((char *argv[])); /* Proto
+ static void debug_screen P_((void));
+ static void debug_message P_((void));
+ 
++FILE *debugfile;
++
+ int main(argc, argv)
+      int argc;
+      char *argv[];
+@@ -47,6 +45,7 @@ int main(argc, argv)
+       long num;               /** another variable for fun..               **/
+       extern int errno;
+ 
++      debugfile = stderr;
+       locale_init();
+       
+       req_mfile = parse_arguments(argc, argv, &to_whom, 

Reply via email to