pkgsrc-Changes-HG archive

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

[pkgsrc/trunk]: pkgsrc/news/pan news/pan: bring back some patches.



details:   https://anonhg.NetBSD.org/pkgsrc/rev/47ee54814eff
branches:  trunk
changeset: 458759:47ee54814eff
user:      rhialto <rhialto%pkgsrc.org@localhost>
date:      Sun Sep 19 18:02:37 2021 +0000

description:
news/pan: bring back some patches.

Pan compiled without them but they may still be useful.

diffstat:

 news/pan/Makefile                                     |   4 +-
 news/pan/patches/patch-pan_general_text-match.cc      |  13 ++++++++
 news/pan/patches/patch-pan_general_text-match.h       |  13 ++++++++
 news/pan/patches/patch-pan_gui_group-prefs-dialog.cc  |  13 ++++++++
 news/pan/patches/patch-pan_usenet-utils_mime-utils.cc |  29 +++++++++++++++++++
 5 files changed, 70 insertions(+), 2 deletions(-)

diffs (104 lines):

diff -r 1c9397431b82 -r 47ee54814eff news/pan/Makefile
--- a/news/pan/Makefile Sun Sep 19 18:01:00 2021 +0000
+++ b/news/pan/Makefile Sun Sep 19 18:02:37 2021 +0000
@@ -1,6 +1,7 @@
-# $NetBSD: Makefile,v 1.113 2021/09/19 17:40:27 rhialto Exp $
+# $NetBSD: Makefile,v 1.114 2021/09/19 18:02:37 rhialto Exp $
 
 PKGNAME=               pan-0.147
+PKGREVISION=           1
 CATEGORIES=            news
 TAG=                   ${PKGNAME_NOREV:tu:C/-/_/:C/\./_/} # PAN_0_147
 MASTER_SITES=          https://gitlab.gnome.org/GNOME/pan/-/archive/${TAG}/
@@ -41,7 +42,6 @@
 .include "../../mail/gmime/buildlink3.mk"
 .include "../../security/gnutls/buildlink3.mk"
 .include "../../textproc/gtkspell/buildlink3.mk"
-.include "../../textproc/enchant/buildlink3.mk"
 .include "../../x11/gtk2/buildlink3.mk"
 .include "../../sysutils/desktop-file-utils/desktopdb.mk"
 .include "../../mk/bsd.pkg.mk"
diff -r 1c9397431b82 -r 47ee54814eff news/pan/patches/patch-pan_general_text-match.cc
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/news/pan/patches/patch-pan_general_text-match.cc  Sun Sep 19 18:02:37 2021 +0000
@@ -0,0 +1,13 @@
+$NetBSD: patch-pan_general_text-match.cc,v 1.3 2021/09/19 18:02:37 rhialto Exp $
+Avoid clash with host defined ERR (on SunOS)
+--- pan/general/text-match.cc.orig     2012-06-29 22:24:54.000000000 +0000
++++ pan/general/text-match.cc
+@@ -209,7 +209,7 @@ TextMatch :: my_regexec (const StringVie
+       if (_pcre_info->set (_impl_text, state.case_sensitive))
+          _pcre_state = COMPILED;
+       else
+-         _pcre_state = ERR;
++         _pcre_state = PCRE_ERR;
+    }
+ 
+    return _pcre_state != COMPILED
diff -r 1c9397431b82 -r 47ee54814eff news/pan/patches/patch-pan_general_text-match.h
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/news/pan/patches/patch-pan_general_text-match.h   Sun Sep 19 18:02:37 2021 +0000
@@ -0,0 +1,13 @@
+$NetBSD: patch-pan_general_text-match.h,v 1.3 2021/09/19 18:02:37 rhialto Exp $
+Avoid clash with host defined ERR (on SunOS)
+--- pan/general/text-match.h.orig      2012-06-29 22:24:54.000000000 +0000
++++ pan/general/text-match.h
+@@ -108,7 +108,7 @@ private:
+       class PcreInfo;
+       mutable PcreInfo * _pcre_info;
+ 
+-      enum PcreState { NEED_COMPILE, COMPILED, ERR };
++      enum PcreState { NEED_COMPILE, COMPILED, PCRE_ERR };
+       mutable PcreState _pcre_state;
+ 
+ public:
diff -r 1c9397431b82 -r 47ee54814eff news/pan/patches/patch-pan_gui_group-prefs-dialog.cc
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/news/pan/patches/patch-pan_gui_group-prefs-dialog.cc      Sun Sep 19 18:02:37 2021 +0000
@@ -0,0 +1,13 @@
+$NetBSD: patch-pan_gui_group-prefs-dialog.cc,v 1.3 2021/09/19 18:02:37 rhialto Exp $
+
+--- pan/gui/group-prefs-dialog.cc.orig 2021-09-16 16:17:07.000000000 +0000
++++ pan/gui/group-prefs-dialog.cc
+@@ -22,7 +22,7 @@
+ #include <glib.h>
+ #include "gtk-compat.h"
+ #ifdef HAVE_GTKSPELL
+-#include <enchant/enchant.h>
++#include <enchant-2/enchant.h>
+ #endif
+ #include <pan/general/debug.h>
+ #include <pan/general/macros.h>
diff -r 1c9397431b82 -r 47ee54814eff news/pan/patches/patch-pan_usenet-utils_mime-utils.cc
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/news/pan/patches/patch-pan_usenet-utils_mime-utils.cc     Sun Sep 19 18:02:37 2021 +0000
@@ -0,0 +1,29 @@
+$NetBSD: patch-pan_usenet-utils_mime-utils.cc,v 1.7 2021/09/19 18:02:37 rhialto Exp $
+
+NetBSD iconv's argument is no longer const.
+
+--- pan/usenet-utils/mime-utils.cc.orig        2019-09-29 21:01:34.000000000 +0000
++++ pan/usenet-utils/mime-utils.cc
+@@ -17,6 +17,13 @@
+  *
+  */
+ 
++#ifdef __NetBSD__
++#include <sys/param.h>
++#if __NetBSD_Prereq__(9,99,17)
++#define NETBSD_POSIX_ICONV
++#endif
++#endif
++
+ #include <config.h>
+ #include <cctype>
+ #include <cstring>
+@@ -77,7 +84,7 @@ namespace pan
+       outbuf = out + converted;
+       outleft = outlen - converted;
+ 
+-#if defined(__NetBSD__)
++#if (defined(__NetBSD__) && !defined(NETBSD_POSIX_ICONV)) || defined(__sun)
+       converted = iconv (cd, &inbuf, &inleft, &outbuf, &outleft);
+ #else
+       converted = iconv (cd, (char **) &inbuf, &inleft, &outbuf, &outleft);



Home | Main Index | Thread Index | Old Index