summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--net-nntp/gnewspost/ChangeLog9
-rw-r--r--net-nntp/gnewspost/files/session.c-fix_errno.patch38
-rw-r--r--net-nntp/gnewspost/files/session.c-fix_errno.patch.gzbin590 -> 0 bytes
-rw-r--r--net-nntp/gnewspost/gnewspost-0.6.ebuild6
4 files changed, 48 insertions, 5 deletions
diff --git a/net-nntp/gnewspost/ChangeLog b/net-nntp/gnewspost/ChangeLog
index 9ffc40230cb3..b8d13668886e 100644
--- a/net-nntp/gnewspost/ChangeLog
+++ b/net-nntp/gnewspost/ChangeLog
@@ -1,6 +1,11 @@
# ChangeLog for net-nntp/gnewspost
-# Copyright 2002-2005 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/net-nntp/gnewspost/ChangeLog,v 1.6 2005/09/13 20:14:46 metalgod Exp $
+# Copyright 2002-2006 Gentoo Foundation; Distributed under the GPL v2
+# $Header: /var/cvsroot/gentoo-x86/net-nntp/gnewspost/ChangeLog,v 1.7 2006/02/17 16:43:19 blubb Exp $
+
+ 17 Feb 2006; Simon Stelling <blubb@gentoo.org>
+ +files/session.c-fix_errno.patch, -files/session.c-fix_errno.patch.gz,
+ gnewspost-0.6.ebuild:
+ no need to gzip smallish patches
13 Sep 2005; Luis Medinas <metalgod@gentoo.org> gnewspost-0.6.ebuild:
Added ~amd64 keywords. Closes bug #104954.
diff --git a/net-nntp/gnewspost/files/session.c-fix_errno.patch b/net-nntp/gnewspost/files/session.c-fix_errno.patch
new file mode 100644
index 000000000000..926f74656294
--- /dev/null
+++ b/net-nntp/gnewspost/files/session.c-fix_errno.patch
@@ -0,0 +1,38 @@
+--- session.c.dist 2003-08-02 10:36:27.000000000 -0400
++++ session.c 2003-08-02 10:34:10.000000000 -0400
+@@ -36,14 +36,13 @@
+ #include <gnome.h>
+ #include <stdio.h>
+ #include <fcntl.h>
++#include <errno.h>
+ #include "gnewspost.h"
+ #include "prefs.h"
+ #include "app.h"
+ #include "profile.h"
+ #include "session.h"
+
+-extern int errno;
+-
+ static void _ok_button_clicked_cb(GtkWidget *widget, gpointer data);
+ static gboolean _session_dlg_close_cb(GtkWidget *widget, gpointer data);
+ static void _zero_file_tb_clicked_cb(GtkWidget *widget, gpointer data);
+@@ -437,7 +436,7 @@
+ static gchar *
+ _make_zero_file(void)
+ {
+- gchar *fname, *txt;
++ gchar *fname = "tmpgnewspostXXXXXX", *txt;
+ int fd;
+
+ if (!gtk_toggle_button_get_active(GTK_TOGGLE_BUTTON(w_zero_file_enabled_tb)))
+@@ -447,8 +446,8 @@
+ if (!strcmp(txt, ""))
+ return NULL;
+
+- fname = g_strdup(tmpnam(NULL));
+- if ((fd = open(fname, O_WRONLY|O_CREAT)) == -1) {
++ fd = mkstemp(fname);
++ if( fd == -1 ) {
+ g_warning("Can't make zero-file: %s", strerror(errno));
+ g_free(fname);
+ return NULL;
diff --git a/net-nntp/gnewspost/files/session.c-fix_errno.patch.gz b/net-nntp/gnewspost/files/session.c-fix_errno.patch.gz
deleted file mode 100644
index a2ad1d0eb502..000000000000
--- a/net-nntp/gnewspost/files/session.c-fix_errno.patch.gz
+++ /dev/null
Binary files differ
diff --git a/net-nntp/gnewspost/gnewspost-0.6.ebuild b/net-nntp/gnewspost/gnewspost-0.6.ebuild
index cc83fde1882a..07cc605820a3 100644
--- a/net-nntp/gnewspost/gnewspost-0.6.ebuild
+++ b/net-nntp/gnewspost/gnewspost-0.6.ebuild
@@ -1,6 +1,6 @@
-# Copyright 1999-2005 Gentoo Foundation
+# Copyright 1999-2006 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/net-nntp/gnewspost/gnewspost-0.6.ebuild,v 1.5 2005/09/13 20:14:46 metalgod Exp $
+# $Header: /var/cvsroot/gentoo-x86/net-nntp/gnewspost/gnewspost-0.6.ebuild,v 1.6 2006/02/17 16:43:19 blubb Exp $
inherit eutils
@@ -24,7 +24,7 @@ RDEPEND="${DEPEND}
src_unpack() {
unpack ${A}
cd ${S}/src
- epatch ${FILESDIR}/session.c-fix_errno.patch.gz
+ epatch ${FILESDIR}/session.c-fix_errno.patch
}
src_compile() {