From a077b3877a297caf47b92196f903167fdb28e96f Mon Sep 17 00:00:00 2001 From: Binh Nguyen Date: Wed, 15 Dec 2010 20:01:05 -0200 Subject: network/gtorrentviewer: Included two patches. Signed-off-by: Niels Horn --- network/gtorrentviewer/gtorrentviewer.SlackBuild | 9 +++++++++ .../GTorrentViewer-0.2b-tracker-details-refresh.patch | 18 ++++++++++++++++++ .../patches/gtorrentviewer-0.2b-desktop.patch | 17 +++++++++++++++++ 3 files changed, 44 insertions(+) create mode 100644 network/gtorrentviewer/patches/GTorrentViewer-0.2b-tracker-details-refresh.patch create mode 100644 network/gtorrentviewer/patches/gtorrentviewer-0.2b-desktop.patch diff --git a/network/gtorrentviewer/gtorrentviewer.SlackBuild b/network/gtorrentviewer/gtorrentviewer.SlackBuild index a31e817ec3..171e6902cd 100644 --- a/network/gtorrentviewer/gtorrentviewer.SlackBuild +++ b/network/gtorrentviewer/gtorrentviewer.SlackBuild @@ -69,6 +69,15 @@ find . \ \( -perm 666 -o -perm 664 -o -perm 600 -o -perm 444 -o -perm 440 -o -perm 400 \) \ -exec chmod 644 {} \; +# The following 2 patches are from Fedora 13 + +# Let drag and drop work with URIs as well as files +patch -p1 < $CWD/patches/gtorrentviewer-0.2b-desktop.patch + +# Fix crash due to use of uninitialized GValue +# Thanks to Niels Horn for pointing this out +patch -p1 < $CWD/patches/GTorrentViewer-0.2b-tracker-details-refresh.patch + CFLAGS="$SLKCFLAGS" \ ./configure \ --prefix=/usr \ diff --git a/network/gtorrentviewer/patches/GTorrentViewer-0.2b-tracker-details-refresh.patch b/network/gtorrentviewer/patches/GTorrentViewer-0.2b-tracker-details-refresh.patch new file mode 100644 index 0000000000..ece646178a --- /dev/null +++ b/network/gtorrentviewer/patches/GTorrentViewer-0.2b-tracker-details-refresh.patch @@ -0,0 +1,18 @@ +This patch fixes a crash when the "Refresh" button in the "Tracker Details" +tab is pushed, due to the use of an uninitialized GValue. + +https://bugzilla.redhat.com/show_bug.cgi?id=542502 +https://bugzilla.redhat.com/show_bug.cgi?id=572806 +https://bugzilla.redhat.com/show_bug.cgi?id=593734 + +--- GTorrentViewer-0.2b/src/mainwindow.c.orig 2004-10-26 05:37:58.000000000 +0100 ++++ GTorrentViewer-0.2b/src/mainwindow.c 2010-06-25 14:43:22.391786427 +0100 +@@ -744,7 +744,7 @@ + { + GtkListStore *list; + GtkTreeIter iter; +- GValue itemvalue; ++ GValue itemvalue = {0}; + gchar *tracker; + GError *err; + diff --git a/network/gtorrentviewer/patches/gtorrentviewer-0.2b-desktop.patch b/network/gtorrentviewer/patches/gtorrentviewer-0.2b-desktop.patch new file mode 100644 index 0000000000..ca12b05ec3 --- /dev/null +++ b/network/gtorrentviewer/patches/gtorrentviewer-0.2b-desktop.patch @@ -0,0 +1,17 @@ +--- GTorrentViewer-0.2b/data/gtorrentviewer.desktop.in.orig 2004-10-21 05:40:16.000000000 +0100 ++++ GTorrentViewer-0.2b/data/gtorrentviewer.desktop.in 2007-08-12 12:14:52.000000000 +0100 +@@ -2,7 +2,7 @@ + _Name=Torrent Metainfo Viewer + _GenericName=Torrent Viewer + _Comment=Viewer and Editor for .torrent files +-Exec=gtorrentviewer %U ++Exec=gtorrentviewer %f + Icon=gtorrentviewer.png + StartupNotify=false + Terminal=false +@@ -10,4 +10,4 @@ + Encoding=UTF-8 + Categories=Application;Network; + MimeType=application/x-bittorrent; +-Version=0.2 ++Version=1.0 -- cgit v1.2.3