diff options
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 |