I just tried to build all ports on 11.0 that I have installed on 10.3.
There were two unexpected failure: kdenlive and k9copy-kde4.

kdenlive has two ambiguous uses of abs, k9copy-kde4 has one.

For kdenlive, area51 seems to have the fix:

http://src.mouf.net/area51/checkout/branches/plasma5/KDE/multimedia/kdenlive/files/patch-src_scopes_audioscopes_spectrogram.cpp

I think the patch works.

For k9copy-kde4, simply converting a difference of two uint32 values to
int will not fix the abs at least on 32bit. Casting both to long long
before should work. (Maybe it should rather be replaced by an "if".)

With the patches attached, both ports build for me on 11.0-RC2/amd64.

Cheers,
Jan Henrik
--- multimedia/k9copy-kde4/files/patch-src__backup__k9dvdbackup.cpp.orig	1970-01-01 00:00:00.000000000 +0000
+++ multimedia/k9copy-kde4/files/patch-src__backup__k9dvdbackup.cpp	2016-09-03 12:13:02.510163000 +0000
@@ -0,0 +1,11 @@
+--- src/backup/k9dvdbackup.cpp.orig	2009-12-06 10:13:36.000000000 +0000
++++ src/backup/k9dvdbackup.cpp	2016-09-03 12:12:26.764957000 +0000
+@@ -885,7 +885,7 @@
+ 
+ 
+         if ((vobu1 !=NULL) && (vobu2!=NULL)) {
+-            *_offset = abs(vobu1->newSector - vobu2->newSector)  | maskOffset1 ;
++            *_offset = abs((long)vobu1->newSector - (long)vobu2->newSector)  | maskOffset1 ;
+             *_offset |= maskOffset2;
+             return vobu2;
+         }
--- multimedia/kdenlive/files/patch-src__scopes__audioscopes__spectrogram.cpp.orig	1970-01-01 00:00:00.000000000 +0000
+++ multimedia/kdenlive/files/patch-src__scopes__audioscopes__spectrogram.cpp	2016-09-03 11:40:42.543309000 +0000
@@ -0,0 +1,20 @@
+--- src/scopes/audioscopes/spectrogram.cpp.orig	2014-08-14 23:57:34.000000000 +0000
++++ src/scopes/audioscopes/spectrogram.cpp	2016-09-03 11:40:07.737834000 +0000
+@@ -241,7 +241,7 @@
+                 x = leftDist + (m_innerScopeRect.width()-1) * ((float)hz)/m_freqMax;
+ 
+                 // Hide text if it would overlap with the text drawn at the mouse position
+-                hideText = m_aTrackMouse->isChecked() && m_mouseWithinWidget && abs(x-(leftDist + mouseX + 20)) < (int) minDistX + 16
++                hideText = m_aTrackMouse->isChecked() && m_mouseWithinWidget && abs((int)(x-(leftDist + mouseX + 20))) < (int) minDistX + 16
+                         && mouseX < m_innerScopeRect.width() && mouseX >= 0;
+ 
+                 if (x <= rightBorder) {
+@@ -269,7 +269,7 @@
+             }
+             // Draw the line at the very right (maximum frequency)
+             x = leftDist + m_innerScopeRect.width()-1;
+-            hideText = m_aTrackMouse->isChecked() && m_mouseWithinWidget && abs(x-(leftDist + mouseX + 30)) < (int) minDistX
++            hideText = m_aTrackMouse->isChecked() && m_mouseWithinWidget && abs((int)(x-(leftDist + mouseX + 30))) < (int) minDistX
+                     && mouseX < m_innerScopeRect.width() && mouseX >= 0;
+             davinci.drawLine(x, topDist, x, topDist + m_innerScopeRect.height()+6);
+             if (!hideText) {

Reply via email to