no need to gzip smallish patches
authorSimon Stelling <blubb@gentoo.org>
Fri, 17 Feb 2006 16:43:19 +0000 (16:43 +0000)
committerSimon Stelling <blubb@gentoo.org>
Fri, 17 Feb 2006 16:43:19 +0000 (16:43 +0000)
Package-Manager: portage-2.1_pre4-r1

net-nntp/gnewspost/ChangeLog
net-nntp/gnewspost/Manifest
net-nntp/gnewspost/files/session.c-fix_errno.patch [new file with mode: 0644]
net-nntp/gnewspost/files/session.c-fix_errno.patch.gz [deleted file]
net-nntp/gnewspost/gnewspost-0.6.ebuild

index 9ffc40230cb3f9de87d33ee79248e2f721456396..b8d13668886e88b8d2251a8bc06d381223e7a8ed 100644 (file)
@@ -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.
index 70b5de5201db19a4d7bf9f83970fbca318626e31..29cf885ce0cea1430a76dfee5c136cd908a8d72c 100644 (file)
@@ -1,15 +1,15 @@
------BEGIN PGP SIGNED MESSAGE-----
-Hash: SHA1
-
-MD5 eaeb30fd042e7d8d70da77dd5a3df380 ChangeLog 2163
-MD5 61676cdb802637dcb545271a6548592c gnewspost-0.6.ebuild 1093
-MD5 d4764f5c17f5e0b416f7ddf271c77d71 metadata.xml 161
+MD5 e6db1b15cf5e9e8707f1b168c158d4ac ChangeLog 2342
+RMD160 3578a4acd51bbcd6908158247d9bb7481f36a27c ChangeLog 2342
+SHA256 58d36d8d299ec0893b3ab87f631cabb60f5d6c8bb187e028aa6426f070e51f9e ChangeLog 2342
 MD5 3506642e9faf221b0d2d3e9a3713479f files/digest-gnewspost-0.6 65
-MD5 6607318912624e017104b28f8525b9cc files/session.c-fix_errno.patch.gz 590
------BEGIN PGP SIGNATURE-----
-Version: GnuPG v1.4.1 (GNU/Linux)
-
-iD8DBQFDJ0FnwUpWvClEHQoRAmczAJ0eTq1ikUJ80TM4rdk7Q0uBHkLlEACeK/YY
-oIv8VfGnDHii+wtfhQ0LgOo=
-=HHGA
------END PGP SIGNATURE-----
+RMD160 1bda9dffaa6a449c7837c83c55ea26cd254e31f9 files/digest-gnewspost-0.6 65
+SHA256 01a8e899c662bed9456e84953daffa7a4cd82543fc0097366bf3d25578c63914 files/digest-gnewspost-0.6 65
+MD5 23b9aade5e170c740988297765544bdb files/session.c-fix_errno.patch 1069
+RMD160 ce44e761c798a000361ec351709d4efbc3c89875 files/session.c-fix_errno.patch 1069
+SHA256 2619b92ca518af9db6d755c222acae42d71d70e8c03fc869099eabef0b168d44 files/session.c-fix_errno.patch 1069
+MD5 585c585aca1bfc6e5f48f57362e8160f gnewspost-0.6.ebuild 1087
+RMD160 1790d68b74931ab8a28837a5a02adc6f04b22bc4 gnewspost-0.6.ebuild 1087
+SHA256 512f075e393ca56564ea787e58833e7dfb1735dc42d2dd8c0efaff6429d15300 gnewspost-0.6.ebuild 1087
+MD5 d4764f5c17f5e0b416f7ddf271c77d71 metadata.xml 161
+RMD160 f1947f39ceb22269275e1b59023c4eadcdbc1a15 metadata.xml 161
+SHA256 8031b551b7913d7c088a55811814db35dad801454d369d05ff365d33cd722153 metadata.xml 161
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 (file)
index 0000000..926f746
--- /dev/null
@@ -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 (file)
index a2ad1d0..0000000
Binary files a/net-nntp/gnewspost/files/session.c-fix_errno.patch.gz and /dev/null differ
index cc83fde1882abb4f7dbe3f70f86b65df8170b78a..07cc605820a3d951a35ed19e19676e43b9003503 100644 (file)
@@ -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() {