pkgsrc-Changes-HG archive

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

[pkgsrc/trunk]: pkgsrc/news/tin Add patch from Dennis Preiser on tin-dev.



details:   https://anonhg.NetBSD.org/pkgsrc/rev/88a22bee1fdc
branches:  trunk
changeset: 400596:88a22bee1fdc
user:      wiz <wiz%pkgsrc.org@localhost>
date:      Thu Oct 22 22:01:25 2009 +0000

description:
Add patch from Dennis Preiser on tin-dev.
Fixes, among others, |perl-script issues with suspending and
SIGWINCH problems.

Bump PKGREVISION.

diffstat:

 news/tin/Makefile         |    3 +-
 news/tin/distinfo         |   11 +++-
 news/tin/patches/patch-ad |   12 +++
 news/tin/patches/patch-ae |   12 +++
 news/tin/patches/patch-af |   13 ++++
 news/tin/patches/patch-ag |   28 +++++++++
 news/tin/patches/patch-ah |   23 +++++++
 news/tin/patches/patch-ai |   15 ++++
 news/tin/patches/patch-aj |  110 +++++++++++++++++++++++++++++++++++
 news/tin/patches/patch-ak |   84 +++++++++++++++++++++++++++
 news/tin/patches/patch-al |  142 ++++++++++++++++++++++++++++++++++++++++++++++
 11 files changed, 451 insertions(+), 2 deletions(-)

diffs (truncated from 510 to 300 lines):

diff -r 783d76dc31fd -r 88a22bee1fdc news/tin/Makefile
--- a/news/tin/Makefile Thu Oct 22 21:54:15 2009 +0000
+++ b/news/tin/Makefile Thu Oct 22 22:01:25 2009 +0000
@@ -1,7 +1,8 @@
-# $NetBSD: Makefile,v 1.42 2009/08/23 16:49:54 wiz Exp $
+# $NetBSD: Makefile,v 1.43 2009/10/22 22:01:25 wiz Exp $
 #
 
 DISTNAME=      tin-1.9.4
+PKGREVISION=   1
 CATEGORIES=    news
 MASTER_SITES=  ftp://ftp.tin.org/pub/news/clients/tin/unstable/ \
                ftp://ftp.cs.tu-berlin.de/pub/net/news/tin/unstable/
diff -r 783d76dc31fd -r 88a22bee1fdc news/tin/distinfo
--- a/news/tin/distinfo Thu Oct 22 21:54:15 2009 +0000
+++ b/news/tin/distinfo Thu Oct 22 22:01:25 2009 +0000
@@ -1,4 +1,4 @@
-$NetBSD: distinfo,v 1.16 2009/07/22 10:53:51 wiz Exp $
+$NetBSD: distinfo,v 1.17 2009/10/22 22:01:25 wiz Exp $
 
 SHA1 (tin-1.9.4.tar.bz2) = e1f5ff2f04923137f43119b144f8a20e733eea23
 RMD160 (tin-1.9.4.tar.bz2) = 6a85e47ea06f2e86f2b8f688df137432ecb7c4e9
@@ -6,3 +6,12 @@
 SHA1 (patch-aa) = a3d40ff4e38230bcf8a3814c92ec2a75f85bf44e
 SHA1 (patch-ab) = 34794d259ae4fb81888184ded9876ab5874d8731
 SHA1 (patch-ac) = b5e72a659414833db5f18c2e8f3404dadd03f87f
+SHA1 (patch-ad) = 598a9e287a343eff866ac95d89ed7724eb364c0c
+SHA1 (patch-ae) = 558deb467d7c3c423d4982952a736a501c906355
+SHA1 (patch-af) = c71cfb049312ac4931bb2d488623aa249d255486
+SHA1 (patch-ag) = 6885a9a8444129288207904084963705fb60aaea
+SHA1 (patch-ah) = bac7062665d7351f88081d8582110c079d828228
+SHA1 (patch-ai) = d956f88aff41969e25857af60b04e92c055fb8d2
+SHA1 (patch-aj) = db18012097b3f7fbc1108c1ec530658dc2d3ff1d
+SHA1 (patch-ak) = 746c6edfef424e8ccfd93f945e51eea4b93f4f1c
+SHA1 (patch-al) = f17d06620d7556f90cd72de443ac27fe91604896
diff -r 783d76dc31fd -r 88a22bee1fdc news/tin/patches/patch-ad
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/news/tin/patches/patch-ad Thu Oct 22 22:01:25 2009 +0000
@@ -0,0 +1,12 @@
+$NetBSD: patch-ad,v 1.3 2009/10/22 22:01:26 wiz Exp $
+
+--- include/proto.h.orig       2009-01-25 19:59:14.000000000 +0100
++++ include/proto.h
+@@ -503,6 +503,7 @@ extern t_bool prompt_option_string(enum 
+ extern t_bool prompt_string(const char *prompt, char *buf, int which_hist);
+ extern void prompt_continue(void);
+ extern void prompt_slk_redraw(void);
++extern void prompt_yn_redraw(void);
+ 
+ /* read.c */
+ extern char *tin_fgets(FILE *fp, t_bool header);
diff -r 783d76dc31fd -r 88a22bee1fdc news/tin/patches/patch-ae
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/news/tin/patches/patch-ae Thu Oct 22 22:01:25 2009 +0000
@@ -0,0 +1,12 @@
+$NetBSD: patch-ae,v 1.1 2009/10/22 22:01:26 wiz Exp $
+
+--- include/tcurses.h.orig     2008-12-30 20:27:28.000000000 +0100
++++ include/tcurses.h
+@@ -95,6 +95,7 @@
+ #             define HpGlitch(func)                   /*nothing*/
+ 
+ extern int cmdReadCh(void);
++extern int cmd_get_arrow_key(int prech);
+ extern char *screen_contents(int row, int col, char *buffer);
+ extern void MoveCursor(int row, int col);
+ extern void my_erase(void);
diff -r 783d76dc31fd -r 88a22bee1fdc news/tin/patches/patch-af
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/news/tin/patches/patch-af Thu Oct 22 22:01:25 2009 +0000
@@ -0,0 +1,13 @@
+$NetBSD: patch-af,v 1.1 2009/10/22 22:01:26 wiz Exp $
+
+--- include/tin.h.orig 2009-02-10 18:10:02.000000000 +0100
++++ include/tin.h
+@@ -98,7 +98,7 @@
+ #include      <signal.h>
+ 
+ enum context { cMain, cArt, cConfig, cFilter, cGroup, cHelp, cInfopager, cPage, cSelect, cThread };
+-enum icontext { cNone, cGetline, cPromptSLK };
++enum icontext { cNone, cGetline, cPromptCONT, cPromptSLK, cPromptYN };
+ enum resizer { cNo, cYes, cRedraw };
+ enum rc_state { RC_IGNORE, RC_CHECK, RC_UPGRADE, RC_DOWNGRADE, RC_ERROR };
+ 
diff -r 783d76dc31fd -r 88a22bee1fdc news/tin/patches/patch-ag
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/news/tin/patches/patch-ag Thu Oct 22 22:01:25 2009 +0000
@@ -0,0 +1,28 @@
+$NetBSD: patch-ag,v 1.1 2009/10/22 22:01:26 wiz Exp $
+
+--- src/curses.c.orig  2008-12-30 20:26:23.000000000 +0100
++++ src/curses.c
+@@ -32,6 +32,7 @@
+ #if defined(MULTIBYTE_ABLE) && !defined(NO_LOCALE) && defined(M_UNIX)
+ #     define ReadWch cmdReadWch
+ #endif /* MULTIBYTE_ABLE && !NO_LOCALE && M_UNIX */
++#define get_arrow_key cmd_get_arrow_key
+ 
+ void my_dummy(void) { }       /* ANSI C requires non-empty file */
+ t_bool have_linescroll = TRUE;        /* USE_CURSES always allows line scrolling */
+@@ -920,6 +921,7 @@ word_highlight_string(
+                       tputs(_reset, 1, outchar);
+       stow_cursor();
+ }
++#endif /* USE_CURSES */
+ 
+ 
+ /*
+@@ -1142,7 +1144,6 @@ get_arrow_key(
+                       return KEYMAP_UNKNOWN;
+       }
+ }
+-#endif /* USE_CURSES */
+ 
+ 
+ /*
diff -r 783d76dc31fd -r 88a22bee1fdc news/tin/patches/patch-ah
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/news/tin/patches/patch-ah Thu Oct 22 22:01:25 2009 +0000
@@ -0,0 +1,23 @@
+$NetBSD: patch-ah,v 1.1 2009/10/22 22:01:26 wiz Exp $
+
+--- src/feed.c.orig    2008-12-30 20:26:23.000000000 +0100
++++ src/feed.c
+@@ -607,8 +607,10 @@ feed_articles(
+                       EndWin(); /* Turn off curses/windowing */
+                       Raw(FALSE);
+                       fflush(stdout);
++                      set_signal_catcher(FALSE);
+                       if ((pipe_fp = popen(tinrc.default_pipe_command, "w")) == NULL) {
+                               perror_message(_(txt_command_failed), tinrc.default_pipe_command);
++                              set_signal_catcher(TRUE);
+                               Raw(TRUE);
+                               InitWin();
+                               return;
+@@ -846,6 +848,7 @@ got_sig_pipe_while_piping:
+                       got_sig_pipe = FALSE;
+                       fflush(pipe_fp);
+                       (void) pclose(pipe_fp);
++                      set_signal_catcher(TRUE);
+                       Raw(TRUE);
+                       InitWin();
+                       prompt_continue();
diff -r 783d76dc31fd -r 88a22bee1fdc news/tin/patches/patch-ai
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/news/tin/patches/patch-ai Thu Oct 22 22:01:25 2009 +0000
@@ -0,0 +1,15 @@
+$NetBSD: patch-ai,v 1.1 2009/10/22 22:01:26 wiz Exp $
+
+--- src/nntplib.c.orig 2009-02-09 11:03:19.000000000 +0100
++++ src/nntplib.c
+@@ -888,6 +888,10 @@ get_server(
+        *       leave the s_gets() in that case)
+        */
+       while (nntp_rd_fp == NULL || s_gets(string, size, nntp_rd_fp) == NULL) {
++              if (errno == EINTR) {
++                      errno = 0;
++                      continue;
++              }
+               if (quitting)                                           /* Don't bother to reconnect */
+                       tin_done(NNTP_ERROR_EXIT);              /* And don't try to disconnect again! */
+ 
diff -r 783d76dc31fd -r 88a22bee1fdc news/tin/patches/patch-aj
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/news/tin/patches/patch-aj Thu Oct 22 22:01:25 2009 +0000
@@ -0,0 +1,110 @@
+$NetBSD: patch-aj,v 1.1 2009/10/22 22:01:26 wiz Exp $
+
+--- src/prompt.c.orig  2009-01-23 16:10:39.000000000 +0100
++++ src/prompt.c
+@@ -44,6 +44,7 @@
+ 
+ 
+ static char *prompt_slk_message;      /* prompt message for prompt_slk_redraw */
++static char *prompt_yn_message;
+ 
+ /*
+  * Local prototypes
+@@ -163,7 +164,7 @@ prompt_yn(
+ {
+       char *keyprompt;
+       char keyno[MAXKEYLEN], keyyes[MAXKEYLEN];
+-      int keyyes_len = 0, keyno_len = 0, maxlen;
++      int keyyes_len = 0, keyno_len = 0, maxlen, prompt_len;
+       t_function func;
+ #if defined (MULTIBYTE_ABLE) && !defined(NO_LOCALE)
+       wint_t yes, no, prompt_ch, ch;
+@@ -194,21 +195,17 @@ prompt_yn(
+       keyno_len = (int) strlen(keyno);
+ #endif /* MULTIBYTE_ABLE && !NO_LOCALE */
+       maxlen = MAX(keyyes_len, keyno_len);
++      prompt_len = (int) strlen(prompt) + keyyes_len + keyno_len + maxlen + 6;
++      prompt_yn_message = my_malloc(prompt_len + 1);
++
++      input_context = cPromptYN;
+ 
+       do {
+               prompt_ch = (default_answer ? yes : no);
+               keyprompt = (default_answer ? keyyes : keyno);
+ 
+-              if (!cmd_line) {
+-                      MoveCursor(cLINES, 0);
+-                      CleartoEOLN();
+-              }
+-              my_printf("%s (%s/%s) %-*s", prompt, keyyes, keyno, maxlen, keyprompt);
+-              if (!cmd_line)
+-                      cursoron();
+-              my_flush();
+-              if (!cmd_line)
+-                      MoveCursor(cLINES, (int) strlen(prompt) + keyyes_len + keyno_len + 5);
++              snprintf(prompt_yn_message, prompt_len, "%s (%s/%s) %-*s", prompt, keyyes, keyno, maxlen, keyprompt);
++              prompt_yn_redraw();
+ 
+ #if defined (MULTIBYTE_ABLE) && !defined(NO_LOCALE)
+               if (((ch = ReadWch()) == '\n') || (ch == '\r'))
+@@ -248,6 +245,9 @@ prompt_yn(
+               func = key_to_func(ch, prompt_keys);
+       } while (func == NOT_ASSIGNED);
+ 
++      input_context = cNone;
++      FreeAndNull(prompt_yn_message);
++
+       if (!cmd_line) {
+               clear_message();
+               my_flush();
+@@ -256,6 +256,24 @@ prompt_yn(
+ }
+ 
+ 
++/* (Re)draws the prompt message for prompt_yn() */
++void
++prompt_yn_redraw(
++      void)
++{
++      if (!cmd_line) {
++              MoveCursor(cLINES, 0);
++              CleartoEOLN();
++      }
++      my_printf("%s", prompt_yn_message);
++      if (!cmd_line)
++              cursoron();
++      my_flush();
++      if (!cmd_line)
++              MoveCursor(cLINES, (int) strlen(prompt_yn_message) -1);
++}
++
++
+ /*
+  * help_text is displayed near the bottom of the screen.
+  * var is an index into a list containing size elements.
+@@ -745,11 +763,14 @@ prompt_continue(
+       void)
+ {
+       int ch;
++      int save_signal_context = signal_context;
+ 
+ #ifdef USE_CURSES
+       cmd_line = TRUE;
+ #endif /* USE_CURSES */
+       info_message(_(txt_return_key));
++      signal_context = cMain;
++      input_context = cPromptCONT;
+ 
+       switch ((ch = ReadCh())) {
+               case ESC:
+@@ -763,6 +784,10 @@ prompt_continue(
+                       break;
+       }
+ 
++      input_context = cNone;
++      signal_context = save_signal_context;
++      my_fputc('\n', stdout);
++
+ #ifdef USE_CURSES
+       cmd_line = FALSE;
+       my_retouch();
diff -r 783d76dc31fd -r 88a22bee1fdc news/tin/patches/patch-ak
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/news/tin/patches/patch-ak Thu Oct 22 22:01:25 2009 +0000
@@ -0,0 +1,84 @@
+$NetBSD: patch-ak,v 1.1 2009/10/22 22:01:26 wiz Exp $
+
+--- src/signal.c.orig  2008-12-30 20:26:25.000000000 +0100
++++ src/signal.c
+@@ -104,6 +104,8 @@ int need_resize = cNo;
+  */
+ int NOTESLINES;
+ 
++static t_bool redraw_after_suspend;
++
+ 
+ #ifndef __LCLINT__ /* lclint doesn't like it */
+ static const struct {
+@@ -268,7 +270,7 @@ handle_resize(
+       switch (signal_context) {
+               case cArt:
+                       ClearScreen();
+-                      show_art_msg(curr_group->name);
++                      show_art_msg(CURR_GROUP.name);
+                       break;



Home | Main Index | Thread Index | Old Index