Re: bug in kde-base/kate-plugins-3.5.10 (kde-sunset): build fails
Yuriy Davygora <[email protected]> Mon, 20 Feb 2012 14:09:30 +0100
| Newsgroups | gmane.linux.gentoo.desktop |
|---|---|
| Message-ID | <[email protected]> |
Yes, a similar patch should be applied there. Basically, one should do exactly, what the compiler tells you: remove the redundant ::QDateTime (patch in attachment). Similar patches are needed for about half a dozen packages pulled by kde-meta:3.5. On 02/20/2012 01:21 PM, Andii Hughes wrote: > On 4 February 2012 09:04, Yuriy Davygora<[email protected]> wrote: >> Hello, >> >> while emerging kde-meta:3.5 from kde-sunset, I have encountered the >> following problem with kde-base/kate-plugins-3.5.10: >> >> plugin_katetabbarextension.h: In constructor 'MyPtrList::MyPtrList()': >> plugin_katetabbarextension.h:56:54: error: cannot call constructor >> 'MyPtrList::QPtrList' directly >> plugin_katetabbarextension.h:56:54: error: for a function-style cast, >> remove the redundant '::QPtrList' >> plugin_katetabbarextension.h: At global scope: >> plugin_katetabbarextension.h:309:13: warning: unused parameter 'number' >> plugin_katetabbarextension.h:309:13: warning: unused parameter 'size' >> make[3]: *** [plugin_katetabbarextension.lo] Error 1 >> make[3]: Leaving directory >> `/var/tmp/portage/kde-base/kate-plugins-3.5.10/work/kate-plugins-3.5.10/kate/tabbarextension' >> make[2]: *** [all-recursive] Error 1 >> make[2]: Leaving directory >> `/var/tmp/portage/kde-base/kate-plugins-3.5.10/work/kate-plugins-3.5.10/kate' >> make[1]: *** [all-recursive] Error 1 >> make[1]: Leaving directory >> `/var/tmp/portage/kde-base/kate-plugins-3.5.10/work/kate-plugins-3.5.10' >> make: *** [all] Error 2 >> emake failed >> >> The complete build log is in the attachment (build.log). Output of >> >> emerge --info =kde-base/kate-plugins-3.5.10 >> >> is in info.log. >> >> Thanks in advance for any help! >> >> Best regards, >> Yuriy > konsolekalendar hits something similar: > > main.cpp:37:5: warning: "TIME_WITH_SYS_TIME" is not defined > main.cpp: In function ‘int main(int, char**)’: > main.cpp:802:64: error: cannot call constructor ‘QDateTime::QDateTime’ directly > main.cpp:802:64: error: for a function-style cast, remove the > redundant ‘::QDateTime’ > main.cpp:808:58: error: cannot call constructor ‘QDateTime::QDateTime’ directly > main.cpp:808:58: error: for a function-style cast, remove the > redundant ‘::QDateTime’ > main.cpp:817:64: error: cannot call constructor ‘QDateTime::QDateTime’ directly > main.cpp:817:64: error: for a function-style cast, remove the > redundant ‘::QDateTime’ > main.cpp:823:58: error: cannot call constructor ‘QDateTime::QDateTime’ directly > main.cpp:823:58: error: for a function-style cast, remove the > redundant ‘::QDateTime’ >
kdepim_konsolekalendar-qdatetime.patch
(text/x-patch, 1.7 KB)
diff -rupN kdepim-3.5.10.orig//konsolekalendar/main.cpp kdepim-3.5.10//konsolekalendar/main.cpp
--- kdepim-3.5.10.orig//konsolekalendar/main.cpp 2012-02-20 11:18:13.705968950 +0100
+++ kdepim-3.5.10//konsolekalendar/main.cpp 2012-02-20 11:19:23.955831276 +0100
@@ -799,13 +799,13 @@ int main( int argc, char *argv[] )
if ( !args->isSet( "time" ) && !args->isSet( "epoch-start" ) &&
!args->isSet( "end-time" ) && !args->isSet( "epoch-end" ) ) {
// set default start date/time
- startdatetime = QDateTime::QDateTime( startdate, starttime );
+ startdatetime = QDateTime( startdate, starttime );
kdDebug() << "main | datetimestamp | "
<< "setting startdatetime from "
<< "default startdate (today) and starttime"
<< endl;
// set default end date/time
- enddatetime = QDateTime::QDateTime( enddate, endtime );
+ enddatetime = QDateTime( enddate, endtime );
kdDebug() << "main | datetimestamp | "
<< "setting enddatetime from "
<< "default enddate (today) and endtime"
@@ -814,13 +814,13 @@ int main( int argc, char *argv[] )
// Set startdatetime, enddatetime if still necessary
if ( startdatetime.isNull() ) {
- startdatetime = QDateTime::QDateTime( startdate, starttime );
+ startdatetime = QDateTime( startdate, starttime );
kdDebug() << "main | datetimestamp | "
<< "setting startdatetime from startdate and starttime"
<< endl;
}
if ( enddatetime.isNull() ) {
- enddatetime = QDateTime::QDateTime( enddate, endtime );
+ enddatetime = QDateTime( enddate, endtime );
kdDebug() << "main | datetimestamp | "
<< "setting enddatetime from enddate and endtime"
<< endl;