summaryrefslogtreecommitdiff
path: root/news/pan/patches
diff options
context:
space:
mode:
authorrh <rh@pkgsrc.org>2001-04-24 14:14:09 +0000
committerrh <rh@pkgsrc.org>2001-04-24 14:14:09 +0000
commit697299165f944fc60e091a3ffefd60d49e85008d (patch)
treeef7bcf3aa16020c7609f73d7631c13988e225507 /news/pan/patches
parent30761500e54f3f7e2c5bbab5473ecdd7103e3512 (diff)
downloadpkgsrc-697299165f944fc60e091a3ffefd60d49e85008d.tar.gz
Initial import of pan-0.9.6, an advanced, threaded Gnome newsreader.
Diffstat (limited to 'news/pan/patches')
-rw-r--r--news/pan/patches/patch-aa29
-rw-r--r--news/pan/patches/patch-ab19
-rw-r--r--news/pan/patches/patch-ac41
3 files changed, 89 insertions, 0 deletions
diff --git a/news/pan/patches/patch-aa b/news/pan/patches/patch-aa
new file mode 100644
index 00000000000..cd7193e1d41
--- /dev/null
+++ b/news/pan/patches/patch-aa
@@ -0,0 +1,29 @@
+$NetBSD: patch-aa,v 1.1.1.1 2001/04/24 14:14:09 rh Exp $
+
+--- configure.orig Sun Apr 22 11:51:35 2001
++++ configure
+@@ -3009,13 +3009,13 @@
+ if { (eval echo configure:3010: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
+ rm -rf conftest*
+ CATOBJEXT=.gmo
+- DATADIRNAME=share
++ DATADIRNAME=${LOCALEDIR}
+ else
+ echo "configure: failed program was:" >&5
+ cat conftest.$ac_ext >&5
+ rm -rf conftest*
+ CATOBJEXT=.mo
+- DATADIRNAME=lib
++ DATADIRNAME=${LOCALEDIR}
+ fi
+ rm -f conftest*
+ INSTOBJEXT=.mo
+@@ -3244,7 +3244,7 @@
+ # We need to process the po/ directory.
+ POSUB=po
+ else
+- DATADIRNAME=share
++ DATADIRNAME=${LOCALEDIR}
+ nls_cv_header_intl=intl/libintl.h
+ nls_cv_header_libgt=intl/libgettext.h
+ fi
diff --git a/news/pan/patches/patch-ab b/news/pan/patches/patch-ab
new file mode 100644
index 00000000000..b2663a82780
--- /dev/null
+++ b/news/pan/patches/patch-ab
@@ -0,0 +1,19 @@
+$NetBSD: patch-ab,v 1.1.1.1 2001/04/24 14:14:09 rh Exp $
+
+--- pan/util.c.orig Fri Mar 16 05:20:42 2001
++++ pan/util.c
+@@ -333,12 +333,14 @@
+
+ if (!g_file_test (buf, G_FILE_TEST_ISDIR))
+ {
++ *(out-1) = '\0';
+ if (mkdir (buf, S_IRUSR | S_IWUSR | S_IXUSR))
+ {
+ pan_error_dialog (_("Couldn't create directory `%s': %s"),
+ buf, g_strerror (errno));
+ break;
+ }
++ *(out-1) = G_DIR_SEPARATOR;
+ }
+ }
+
diff --git a/news/pan/patches/patch-ac b/news/pan/patches/patch-ac
new file mode 100644
index 00000000000..75dc621910f
--- /dev/null
+++ b/news/pan/patches/patch-ac
@@ -0,0 +1,41 @@
+$NetBSD: patch-ac,v 1.1.1.1 2001/04/24 14:14:09 rh Exp $
+
+--- pan/pan.c.orig Tue Mar 20 03:14:26 2001
++++ pan/pan.c
+@@ -117,6 +117,24 @@
+ };
+
+
++#ifdef __NetBSD__
++#include <gtk/gtk.h>
++#include <pthread.h>
++
++/*
++ * NetBSD uses non-preemptive pth, so we yield the processor periodically
++ */
++
++gint
++pth_nbschedule (gpointer data)
++{
++ pthread_yield_np();
++
++ return TRUE;
++}
++#endif
++
++
+ static int
+ pan_post_gtkmain_init (gpointer null)
+ {
+@@ -234,6 +252,11 @@
+ pan_init ();
+ gtk_widget_show_all (Pan.window);
+ }
++
++
++#ifdef __NetBSD__
++ gtk_timeout_add (200, pth_nbschedule, NULL);
++#endif
+
+ gtk_main ();
+