aboutsummaryrefslogtreecommitdiff
path: root/system/filelight
diff options
context:
space:
mode:
authordsomero <xgizzmo@slackbuilds.org>2011-03-31 18:15:56 -0400
committerRobby Workman <rworkman@slackbuilds.org>2011-03-31 23:51:43 -0500
commit2f5d00ad173f92d29d195e5df2c0b0e8a8d43be9 (patch)
treedda5ac4dd4f7db6e570413b4e827f3497b39418a /system/filelight
parent2bec686bc96db57ae04c335d08169d97a46eef9a (diff)
system/filelight: Patched to fix building with gcc 4.5.
Signed-off-by: dsomero <xgizzmo@slackbuilds.org>
Diffstat (limited to 'system/filelight')
-rw-r--r--system/filelight/filelight-1.9_rc3-gcc45.patch24
-rw-r--r--system/filelight/filelight.SlackBuild5
2 files changed, 28 insertions, 1 deletions
diff --git a/system/filelight/filelight-1.9_rc3-gcc45.patch b/system/filelight/filelight-1.9_rc3-gcc45.patch
new file mode 100644
index 0000000000000..3471cb350cf68
--- /dev/null
+++ b/system/filelight/filelight-1.9_rc3-gcc45.patch
@@ -0,0 +1,24 @@
+http://bugs.gentoo.org/321357
+
+--- src/app/mainWindow.cpp
++++ src/app/mainWindow.cpp
+@@ -222,7 +222,7 @@
+
+ inline bool MainWindow::slotScanPath(const QString &path)
+ {
+- return slotScanUrl(KUrl::KUrl(path));
++ return slotScanUrl(KUrl(path));
+ }
+
+ bool MainWindow::slotScanUrl(const KUrl &url)
+--- src/part/radialMap/widget.cpp
++++ src/part/radialMap/widget.cpp
+@@ -64,7 +64,7 @@
+ KUrl
+ RadialMap::Widget::url(File const * const file) const
+ {
+- return KUrl::KUrl(file ? file->fullPath() : m_tree->fullPath());
++ return KUrl(file ? file->fullPath() : m_tree->fullPath());
+ }
+
+ void
diff --git a/system/filelight/filelight.SlackBuild b/system/filelight/filelight.SlackBuild
index eb8a24a1804f4..4ee59d62993ef 100644
--- a/system/filelight/filelight.SlackBuild
+++ b/system/filelight/filelight.SlackBuild
@@ -6,7 +6,7 @@
PRGNAM=filelight
VERSION=${VERSION:-1.9rc3}
-BUILD=${BUILD:-1}
+BUILD=${BUILD:-2}
TAG=${TAG:-_SBo}
# Automatically determine the architecture we're building on:
@@ -55,6 +55,9 @@ find . \
\( -perm 666 -o -perm 664 -o -perm 600 -o -perm 444 -o -perm 440 -o -perm 400 \) \
-exec chmod 644 {} \;
+# Fix building with gcc 4.5.
+patch -p0 < $CWD/filelight-1.9_rc3-gcc45.patch
+
# Configure with cmake
CFLAGS="$SLKCFLAGS" \
CXXFLAGS="$SLKCFLAGS" \