summaryrefslogtreecommitdiff
path: root/extra/qtcurve-kde3/bypass-kde-config.patch
blob: 113fb93b80e4fdda719f3f7a83381a39376816d8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
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)