public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
From: Rahul Sundaram <sundaram@fedoraproject.org>
To: git-commits@fedoraproject.org
Subject: [rpms/transmission] epel10: - apply upstream bug fix patch from https://trac.transmissionbt.com/changeset/13300?format=diff&new=13300
Date: Mon, 20 Jul 2026 20:37:06 GMT	[thread overview]
Message-ID: <178457982643.1.1794217919616987401.rpms-transmission-368d458324e5@fedoraproject.org> (raw)

            A new commit has been pushed.

            Repo   : rpms/transmission
            Branch : epel10
            Commit : 368d458324e5b0512e6f9d4eb30e3aa96f97353f
            Author : Rahul Sundaram <sundaram@fedoraproject.org>
            Date   : 2012-06-02T13:39:10+05:30
            Stats  : +140/-3 in 3 file(s)
            URL    : https://src.fedoraproject.org/rpms/transmission/c/368d458324e5b0512e6f9d4eb30e3aa96f97353f?branch=epel10

            Log:
            - apply upstream bug fix patch from https://trac.transmissionbt.com/changeset/13300?format=diff&new=13300
- fixes https://trac.transmissionbt.com/ticket/4894

---
diff --git a/changeset_13300.diff b/changeset_13300.diff
new file mode 100644
index 0000000..eded966
--- /dev/null
+++ b/changeset_13300.diff
@@ -0,0 +1,132 @@
+Index: /trunk/libtransmission/utils.c
+===================================================================
+--- /trunk/libtransmission/utils.c	(revision 13191)
++++ /trunk/libtransmission/utils.c	(revision 13300)
+@@ -232,4 +232,6 @@
+         struct evbuffer * buf = evbuffer_new( );
+         char *            base = tr_basename( file );
++        char *            message;
++        const char      * str;
+ 
+         evbuffer_add_printf( buf, "[%s] ",
+@@ -242,10 +244,11 @@
+         evbuffer_add_printf( buf, " (%s:%d)\n", base, line );
+         /* FIXME(libevent2) ifdef this out for nonwindows platforms */
+-        OutputDebugString( evbuffer_pullup( buf, -1 ) );
++        message = evbuffer_free_to_str( buf );
++        OutputDebugString( message );
+         if( fp )
+-            fputs( (const char*)evbuffer_pullup( buf, -1 ), fp );
+-
++            fputs( message, fp );
++
++        tr_free( message );
+         tr_free( base );
+-        evbuffer_free( buf );
+     }
+ }
+Index: /trunk/libtransmission/peer-msgs.c
+===================================================================
+--- /trunk/libtransmission/peer-msgs.c	(revision 13154)
++++ /trunk/libtransmission/peer-msgs.c	(revision 13300)
+@@ -240,4 +240,5 @@
+         struct evbuffer * buf = evbuffer_new( );
+         char *            base = tr_basename( file );
++        char *            message;
+ 
+         evbuffer_add_printf( buf, "[%s] %s - %s [%s]: ",
+@@ -250,8 +251,10 @@
+         va_end( args );
+         evbuffer_add_printf( buf, " (%s:%d)\n", base, line );
+-        fputs( (const char*)evbuffer_pullup( buf, -1 ), fp );
++
++        message = evbuffer_free_to_str( buf );
++        fputs( message, fp );
+ 
+         tr_free( base );
+-        evbuffer_free( buf );
++        tr_free( message );
+     }
+ }
+Index: /trunk/libtransmission/announcer.c
+===================================================================
+--- /trunk/libtransmission/announcer.c	(revision 13155)
++++ /trunk/libtransmission/announcer.c	(revision 13300)
+@@ -754,4 +754,5 @@
+         int i;
+         char name[128];
++        char * message;
+         struct evbuffer * buf = evbuffer_new( );
+ 
+@@ -764,6 +765,7 @@
+         }
+ 
+-        tr_deepLog( __FILE__, __LINE__, name, "announce queue is %s", evbuffer_pullup( buf, -1 ) );
+-        evbuffer_free( buf );
++        message = evbuffer_free_to_str( buf );
++        tr_deepLog( __FILE__, __LINE__, name, "announce queue is %s", message );
++        tr_free( message );
+     }
+ }
+Index: /trunk/libtransmission/announcer-http.c
+===================================================================
+--- /trunk/libtransmission/announcer-http.c	(revision 13191)
++++ /trunk/libtransmission/announcer-http.c	(revision 13300)
+@@ -51,5 +51,5 @@
+ }
+ 
+-static struct evbuffer *
++static char*
+ announce_url_new( const tr_session * session, const tr_announce_request * req )
+ {
+@@ -117,5 +117,5 @@
+     }
+ 
+-    return buf;
++    return evbuffer_free_to_str( buf );
+ }
+ 
+@@ -288,6 +288,5 @@
+ {
+     struct announce_data * d;
+-    struct evbuffer * buf = announce_url_new( session, request );
+-    const char * url = (const char *) evbuffer_pullup( buf, -1 );
++    char * url = announce_url_new( session, request );
+ 
+     d = tr_new0( struct announce_data, 1 );
+@@ -303,5 +302,5 @@
+     tr_webRun( session, url, NULL, NULL, on_announce_done, d );
+ 
+-    evbuffer_free( buf );
++    tr_free( url );
+ }
+ 
+@@ -430,5 +429,5 @@
+ }
+ 
+-static struct evbuffer *
++static char *
+ scrape_url_new( const tr_scrape_request * req )
+ {
+@@ -447,5 +446,5 @@
+     }
+ 
+-    return buf;
++    return evbuffer_free_to_str( buf );
+ }
+ 
+@@ -458,6 +457,5 @@
+     int i;
+     struct scrape_data * d;
+-    struct evbuffer * buf = scrape_url_new( request );
+-    const char * url = (const char *) evbuffer_pullup( buf, -1 );
++    char * url = scrape_url_new( request );
+ 
+     d = tr_new0( struct scrape_data, 1 );
+@@ -478,4 +476,4 @@
+     tr_webRun( session, url, NULL, NULL, on_scrape_done, d );
+ 
+-    evbuffer_free( buf );
+-}
++    tr_free( url );
++}

diff --git a/clog b/clog
index bd5c4ab..ef3c65d 100644
--- a/clog
+++ b/clog
@@ -1,3 +1,2 @@
-upstream release 2.50
-
-- https://trac.transmissionbt.com/wiki/Changes#version-2.50
+- apply upstream bug fix patch from https://trac.transmissionbt.com/changeset/13300?format=diff&new=13300
+- fixes https://trac.transmissionbt.com/ticket/4894

diff --git a/transmission.spec b/transmission.spec
index c98fb44..a1d1997 100644
--- a/transmission.spec
+++ b/transmission.spec
@@ -25,6 +25,7 @@ BuildRequires:  gettext intltool
 BuildRequires:  qt4-devel
 # this modification applies to the Qt qtr.pro file
 Patch1:         fix-optflags.patch
+Patch2:         changeset_13300.diff
 Requires: transmission-cli
 Requires: transmission-gtk
 
@@ -92,6 +93,7 @@ exit 0
 %prep
 %setup -q 
 %patch1 -p1
+%patch2 -p2
 
 iconv --from=ISO-8859-1 --to=UTF-8 AUTHORS > AUTHORS.new
 mv AUTHORS.new AUTHORS
@@ -207,6 +209,10 @@ update-desktop-database > /dev/null 2>&1 || :
 %doc %{_mandir}/man1/transmission-qt.*
 
 %changelog
+* Sat Jun 02 2012 Rahul Sundaram <sundaram@fedoraproject.org> - 2.50-2
+- apply upstream bug fix patch from https://trac.transmissionbt.com/changeset/13300?format=diff&new=13300
+- fixes https://trac.transmissionbt.com/ticket/4894
+
 * Tue Feb 28 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.50-2
 - Rebuilt for c++ ABI breakage
 

                 reply	other threads:[~2026-07-20 20:37 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=178457982643.1.1794217919616987401.rpms-transmission-368d458324e5@fedoraproject.org \
    --to=sundaram@fedoraproject.org \
    --cc=git-commits@fedoraproject.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox