Ticket #26982: portfile-kdelibs4-config-dir-patch.diff

File portfile-kdelibs4-config-dir-patch.diff, 1.4 KB (added by mkae (Marko Käning), 10 years ago)

patch to fix user permission issues after installing KDE4 ports

  • ports/kde/kdelibs4/Portfile

    diff -r 6cbe568179ef ports/kde/kdelibs4/Portfile
    a b  
    4545                    default-kde4-xdg-menu-prefix.patch \
    4646                    fix-bundle-icons.patch \
    4747                    workaround-kdeinit4-crash.patch \
    48                     patch-cmake-modules-FindKDE4-Internal.cmake.diff
     48                    patch-cmake-modules-FindKDE4-Internal.cmake.diff \
     49                    patch-dont-create-empty-config-dirs.diff
    4950
    5051patch.dir           ${workpath}/${distname}
    5152patch.pre_args      -p1
  • new file ports/kde/kdelibs4/files/patch-dont-create-empty-config-dirs.diff

    diff -r 6cbe568179ef ports/kde/kdelibs4/files/patch-dont-create-empty-config-dirs.diff
    - +  
     1--- kdelibs/kdecore/config/kconfig.cpp  2010/10/21 23:07:41     1188301
     2+++ kdelibs/kdecore/config/kconfig.cpp  2010/10/21 23:10:49     1188302
     3@@ -59,7 +59,7 @@
     4       bFileImmutable(false), bForceGlobal(false), bSuppressGlobal(false),
     5       componentData(componentData_), configState(KConfigBase::NoAccess)
     6 {
     7-    sGlobalFileName = componentData.dirs()->saveLocation("config") + QLatin1String("kdeglobals");
     8+    sGlobalFileName = componentData.dirs()->saveLocation("config", QString(), false) + QLatin1String("kdeglobals");
     9
     10     static int use_etc_kderc = -1;
     11     if (use_etc_kderc < 0)