Bug 181788 - [PATCH] multimedia/kaffeine: fix build with clang
Summary: [PATCH] multimedia/kaffeine: fix build with clang
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: Normal Affects Only Me
Assignee: Tilman Keskinoz
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-09-04 03:10 UTC by Steve Wills
Modified: 2013-09-05 14:50 UTC (History)
1 user (show)

See Also:


Attachments
kaffeine-1.2.2_4.patch (1.73 KB, patch)
2013-09-04 03:10 UTC, Steve Wills
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Steve Wills freebsd_committer freebsd_triage 2013-09-04 03:10:00 UTC
Fix build with clang, taken from:

https://projects.kde.org/projects/extragear/multimedia/kaffeine/repository/diff/src/dvb/dvbepg.cpp?rev=2da9df1e67004c3cfa879578c351300a99f23da1&rev_to=fefd55407f51fb2e2d16fac55092447a1dfa6f2a

Port maintainer (arved@FreeBSD.org) is cc'd.

Generated with FreeBSD Port Tools 0.99_8 (mode: change, diff: SVN)
Comment 1 Edwin Groothuis freebsd_committer freebsd_triage 2013-09-04 03:10:08 UTC
Responsible Changed
From-To: freebsd-ports-bugs->arved

Over to maintainer (via the GNATS Auto Assign Tool)
Comment 2 dfilter service freebsd_committer freebsd_triage 2013-09-05 14:43:56 UTC
Author: swills
Date: Thu Sep  5 13:43:48 2013
New Revision: 326397
URL: http://svnweb.freebsd.org/changeset/ports/326397

Log:
  - Fix build with clang
  
  PR:		ports/181788
  Approved by:	arved (maintainer, via private mail)

Added:
  head/multimedia/kaffeine/files/patch-clang   (contents, props changed)

Added: head/multimedia/kaffeine/files/patch-clang
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/multimedia/kaffeine/files/patch-clang	Thu Sep  5 13:43:48 2013	(r326397)
@@ -0,0 +1,24 @@
+--- src/dvb/dvbepg.cpp.orig	2011-04-17 19:17:19.000000000 +0000
++++ src/dvb/dvbepg.cpp	2013-09-04 01:48:35.479500850 +0000
+@@ -690,15 +690,15 @@
+ 	// 1980-01-06T000000 minus 15 secs (= UTC - GPS in 2011)
+ 	QDateTime baseDateTime = QDateTime(QDate(1980, 1, 5), QTime(23, 59, 45), Qt::UTC);
+ 
+-	for (AtscEitSectionEntry entry = eitSection.entries(); (entryCount > 0) && entry.isValid();
+-	     --entryCount, entry.advance()) {
++	for (AtscEitSectionEntry eitEntry = eitSection.entries();
++	     (entryCount > 0) && eitEntry.isValid(); --entryCount, eitEntry.advance()) {
+ 		DvbEpgEntry epgEntry;
+ 		epgEntry.channel = channel;
+-		epgEntry.begin = baseDateTime.addSecs(entry.startTime());
+-		epgEntry.duration = QTime().addSecs(entry.duration());
+-		epgEntry.title = entry.title();
++		epgEntry.begin = baseDateTime.addSecs(eitEntry.startTime());
++		epgEntry.duration = QTime().addSecs(eitEntry.duration());
++		epgEntry.title = eitEntry.title();
+ 
+-		quint32 id = ((quint32(fakeChannel.networkId) << 16) | quint32(entry.eventId()));
++		quint32 id = ((quint32(fakeChannel.networkId) << 16) | quint32(eitEntry.eventId()));
+ 		DvbSharedEpgEntry entry = epgEntries.value(id);
+ 
+ 		if (entry.isValid() && (entry->channel == epgEntry.channel) &&
_______________________________________________
svn-ports-all@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/svn-ports-all
To unsubscribe, send any mail to "svn-ports-all-unsubscribe@freebsd.org"
Comment 3 Steve Wills freebsd_committer freebsd_triage 2013-09-05 14:44:14 UTC
State Changed
From-To: open->closed

Committed.