Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 26 Aug 2018 06:39:09 +0000 (UTC)
From:      Dima Panov <fluffy@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r478100 - in head/net-p2p/ktorrent: . files
Message-ID:  <201808260639.w7Q6d9E4041620@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: fluffy
Date: Sun Aug 26 06:39:08 2018
New Revision: 478100
URL: https://svnweb.freebsd.org/changeset/ports/478100

Log:
  - Unbreak after latest KDE Framwork upgrade, 5.49, introduced by r477922
  
  Syndication::Loader::loadUrl() now always requires a DataRetriever
  to be passed as a second argument
  
  Obtained from:	KDE git

Added:
  head/net-p2p/ktorrent/files/patch-syndication   (contents, props changed)
Modified:
  head/net-p2p/ktorrent/Makefile

Modified: head/net-p2p/ktorrent/Makefile
==============================================================================
--- head/net-p2p/ktorrent/Makefile	Sun Aug 26 05:11:38 2018	(r478099)
+++ head/net-p2p/ktorrent/Makefile	Sun Aug 26 06:39:08 2018	(r478100)
@@ -4,7 +4,7 @@
 
 PORTNAME=	ktorrent
 DISTVERSION=	5.1.0
-PORTREVISION=	1
+PORTREVISION=	2
 CATEGORIES=	net-p2p kde
 MASTER_SITES=	KDE/stable/${PORTNAME}/${DISTVERSION:R}/
 

Added: head/net-p2p/ktorrent/files/patch-syndication
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/net-p2p/ktorrent/files/patch-syndication	Sun Aug 26 06:39:08 2018	(r478100)
@@ -0,0 +1,44 @@
+From 46a4d7a378372a028522cfba94e77a11c478b36c Mon Sep 17 00:00:00 2001
+From: =?UTF-8?q?Daniel=20Vr=C3=A1til?= <dvratil@kde.org>
+Date: Fri, 4 May 2018 00:31:44 +0200
+Subject: Fix build against new Syndication library
+
+Syndication::Loader::loadUrl() now always requires a DataRetriever
+to be passed as a second argument. The behavior of the old method
+was basically identical to using FeedRetriever anyway, so we can
+use the FeedRetriever here to make it compile against new Syndication
+and keep the behavior.
+---
+ plugins/syndication/ktfeed.cpp              | 2 +-
+ plugins/syndication/syndicationactivity.cpp | 2 +-
+ 2 files changed, 2 insertions(+), 2 deletions(-)
+
+diff --git ./plugins/syndication/ktfeed.cpp ./plugins/syndication/ktfeed.cpp
+index 099cd4f..f20eb2c 100644
+--- ./plugins/syndication/ktfeed.cpp
++++ ./plugins/syndication/ktfeed.cpp
+@@ -277,7 +277,7 @@ namespace kt
+         status = DOWNLOADING;
+         update_timer.stop();
+         Syndication::Loader* loader = Syndication::Loader::create(this, SLOT(loadingFromDiskComplete(Syndication::Loader*, Syndication::FeedPtr, Syndication::ErrorCode)));
+-        loader->loadFrom(QUrl(dir + QStringLiteral("feed.xml")));
++        loader->loadFrom(QUrl(dir + QStringLiteral("feed.xml")), new FeedRetriever());
+         updated();
+     }
+ 
+diff --git ./plugins/syndication/syndicationactivity.cpp ./plugins/syndication/syndicationactivity.cpp
+index 293540d..61e8039 100644
+--- ./plugins/syndication/syndicationactivity.cpp
++++ ./plugins/syndication/syndicationactivity.cpp
+@@ -135,7 +135,7 @@ namespace kt
+         }
+         else
+         {
+-            loader->loadFrom(QUrl(url));
++            loader->loadFrom(QUrl(url), new FeedRetriever());
+             downloads.insert(loader, url);
+         }
+     }
+-- 
+cgit v0.11.2
+



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201808260639.w7Q6d9E4041620>