aboutsummaryrefslogtreecommitdiff
path: root/network
diff options
context:
space:
mode:
authorBinh Nguyen <binhnguyen@fastmail.fm>2010-12-15 20:01:05 -0200
committerErik Hanson <erik@slackbuilds.org>2010-12-17 07:56:47 -0600
commita077b3877a297caf47b92196f903167fdb28e96f (patch)
tree768ffdd2a9f09d8c1dc64aa6307604b801e81f64 /network
parent228e54ebd0d16d253b3234a157602bbc66ab006c (diff)
network/gtorrentviewer: Included two patches.
Signed-off-by: Niels Horn <niels.horn@slackbuilds.org>
Diffstat (limited to 'network')
-rw-r--r--network/gtorrentviewer/gtorrentviewer.SlackBuild9
-rw-r--r--network/gtorrentviewer/patches/GTorrentViewer-0.2b-tracker-details-refresh.patch18
-rw-r--r--network/gtorrentviewer/patches/gtorrentviewer-0.2b-desktop.patch17
3 files changed, 44 insertions, 0 deletions
diff --git a/network/gtorrentviewer/gtorrentviewer.SlackBuild b/network/gtorrentviewer/gtorrentviewer.SlackBuild
index a31e817ec3cf..171e6902cd86 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 000000000000..ece646178a47
--- /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 000000000000..ca12b05ec366
--- /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