summaryrefslogtreecommitdiff
path: root/extra/qtcurve-kde3/bypass-kde-config.patch
diff options
context:
space:
mode:
Diffstat (limited to 'extra/qtcurve-kde3/bypass-kde-config.patch')
-rw-r--r--extra/qtcurve-kde3/bypass-kde-config.patch24
1 files changed, 24 insertions, 0 deletions
diff --git a/extra/qtcurve-kde3/bypass-kde-config.patch b/extra/qtcurve-kde3/bypass-kde-config.patch
new file mode 100644
index 000000000..113fb93b8
--- /dev/null
+++ b/extra/qtcurve-kde3/bypass-kde-config.patch
@@ -0,0 +1,24 @@
+--- QtCurve-KDE3-1.6.0/CMakeLists.txt~ 2010-09-14 16:19:36.543333337 +0200
++++ QtCurve-KDE3-1.6.0/CMakeLists.txt 2010-09-14 16:22:18.160000003 +0200
+@@ -44,6 +44,12 @@
+ endif (QT_PLUGINS_DIR MATCHES NOTFOUND)
+ endif (NOT QTC_QT_ONLY)
+
++# Comment the kde3/kde4 prefix detection as a whole as it wants to run
++# kde-config and kde4-config, which in turn can create stuff in ~/.kde.
++# This cannot work on read-only homes.
++# So, the "fallback" prefixes ("/usr" for both) will be used.
++if (BRAINDEAD_DETECTION)
++
+ if (NOT QTC_QT_ONLY)
+ exec_program(kde-config
+ ARGS --prefix --expandvars
+@@ -71,6 +77,8 @@
+ OUTPUT_VARIABLE KDE4PREFIX)
+ endif(KDE4_KDECONFIG_EXECUTABLE)
+
++endif (BRAINDEAD_DETECTION)
++
+ if(NOT KDE4PREFIX)
+ set(KDE4PREFIX ${KDE3PREFIX})
+ endif(NOT KDE4PREFIX)