rpms/balsa/devel balsa-rename-open.patch, NONE, 1.1 balsa.spec, 1.26, 1.27

Pawel Salek (pawsa) fedora-extras-commits at redhat.com
Sat Aug 11 21:47:25 UTC 2007


Author: pawsa

Update of /cvs/extras/rpms/balsa/devel
In directory cvs-int.fedora.redhat.com:/tmp/cvs-serv7111

Modified Files:
	balsa.spec 
Added Files:
	balsa-rename-open.patch 
Log Message:
Work around build problem.


balsa-rename-open.patch:

--- NEW FILE balsa-rename-open.patch ---
Index: libbalsa/mailbox_pop3.c
===================================================================
--- libbalsa/mailbox_pop3.c	(revision 7667)
+++ libbalsa/mailbox_pop3.c	(working copy)
@@ -288,8 +288,8 @@
 }
 
 struct PopDownloadMode {
-    FILE* (*open)(const char *path);
-    int (*close)(FILE *arg);
+    FILE* (*open_file)(const char *path);
+    int (*close_file)(FILE *arg);
 } pop_direct = {
     pop_direct_open,
     fclose
@@ -333,7 +333,7 @@
     switch(prc) {
     case POP_REQ_OK: 
 	{/* GError **err = va_arg(alist, GError**); */
-        fd->f  = fd->dm->open(fd->dest_path);
+        fd->f  = fd->dm->open_file(fd->dest_path);
         if(fd->f == NULL) {
             if(!*fd->err) {
                 g_set_error(fd->err, IMAP_ERROR, IMAP_POP_SAVE_ERROR,
@@ -388,7 +388,7 @@
 	}
 	break;
     case POP_REQ_DONE:
-            if(fd->dm->close(fd->f) != 0) {
+            if(fd->dm->close_file(fd->f) != 0) {
                 if(!*fd->err)
                     g_set_error(fd->err, IMAP_ERROR, IMAP_POP_SAVE_ERROR,
                                 _("Transferring POP message to %s failed."),
@@ -538,7 +538,7 @@
         libbalsa_mailbox_progress_notify(mailbox,
                                          LIBBALSA_NTFY_PROGRESS, i, msgcnt,
                                          "next message");
-        f = mode->open(dest_path);
+        f = mode->open_file(dest_path);
         if(!f) {
             libbalsa_information(LIBBALSA_INFORMATION_ERROR,
 			     _("POP3 error: cannot open %s for writing."), 
@@ -547,7 +547,7 @@
         }
         if(!pop_fetch_message_s(pop, i, dump_cb, f, &err)) 
             break;
-        if(mode->close(f) != 0) {
+        if(mode->close_file(f) != 0) {
             libbalsa_information(LIBBALSA_INFORMATION_ERROR,
 			     _("POP3 error: cannot close %s."), 
 			     dest_path);


Index: balsa.spec
===================================================================
RCS file: /cvs/extras/rpms/balsa/devel/balsa.spec,v
retrieving revision 1.26
retrieving revision 1.27
diff -u -r1.26 -r1.27
--- balsa.spec	4 Jul 2007 19:47:53 -0000	1.26
+++ balsa.spec	11 Aug 2007 21:46:53 -0000	1.27
@@ -2,13 +2,14 @@
 
 Name:           balsa
 Version:        2.3.17
-Release:        1%{?dist}
+Release:        2%{?dist}
 Summary:        Mail Client
 
 Group:          Applications/Internet
 License:        GPL
 URL:            http://balsa.gnome.org/
 Source0:        http://balsa.gnome.org/%{name}-%{version}.tar.bz2
+Patch1:         balsa-rename-open.patch
 BuildRoot:      %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
 
 Requires: libesmtp >= 1.0.4
@@ -40,6 +41,7 @@
 
 %prep
 %setup -q
+%patch1 -p0
 
 %build
 
@@ -100,6 +102,9 @@
 
 
 %changelog
+* Sat Aug 11 2007 Pawel Salek <pawsa at theochem.kth.se> - 2.3.17-2
+- work around build problem.
+
 * Wed Jul  4 2007 Pawel Salek <pawsa at theochem.kth.se> - 2.3.17-1
 - update to upstream 2.3.17.
 




More information about the fedora-extras-commits mailing list