summaryrefslogtreecommitdiff
path: root/community/qtcurve-kde3/bypass-kde-config.patch
diff options
context:
space:
mode:
authorroot <root@rshg054.dnsready.net>2012-02-23 23:15:11 +0000
committerroot <root@rshg054.dnsready.net>2012-02-23 23:15:11 +0000
commitd466ef49f224a9347fe0375eac8126725e10a0a4 (patch)
treec08a9d7437c4d6de169858ac98fb340fd90202c2 /community/qtcurve-kde3/bypass-kde-config.patch
parent1d9fb21dff6df1679e536ab672edcbbdb4cf3a15 (diff)
Thu Feb 23 23:15:11 UTC 2012
Diffstat (limited to 'community/qtcurve-kde3/bypass-kde-config.patch')
-rw-r--r--community/qtcurve-kde3/bypass-kde-config.patch24
1 files changed, 24 insertions, 0 deletions
diff --git a/community/qtcurve-kde3/bypass-kde-config.patch b/community/qtcurve-kde3/bypass-kde-config.patch
new file mode 100644
index 000000000..113fb93b8
--- /dev/null
+++ b/community/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)