From 805b4090ebfeeba32ca29f20ed8e700301b1a877 Mon Sep 17 00:00:00 2001 From: Than Ngo Date: Fri, 4 Apr 2008 13:23:32 +0000 Subject: [PATCH] - apply upstream patch to fix klauncher crash - fix kconfig_sync_crash patch --- kdelibs-4.0.3-kconfig_sync_crash.patch | 34 +++++++++++++++++++++++--- kdelibs.spec | 1 + 2 files changed, 31 insertions(+), 4 deletions(-) diff --git a/kdelibs-4.0.3-kconfig_sync_crash.patch b/kdelibs-4.0.3-kconfig_sync_crash.patch index 51a0ca9..c2ec604 100644 --- a/kdelibs-4.0.3-kconfig_sync_crash.patch +++ b/kdelibs-4.0.3-kconfig_sync_crash.patch @@ -1,5 +1,6 @@ ---- kdelibs/kdecore/kernel/kglobal.cpp 2008/01/04 09:09:11 757128 -+++ kdelibs/kdecore/kernel/kglobal.cpp 2008/04/04 08:48:53 793504 +diff -up kdelibs-4.0.3/kdecore/kernel/kglobal.cpp.kconfig_sync_crash kdelibs-4.0.3/kdecore/kernel/kglobal.cpp +--- kdelibs-4.0.3/kdecore/kernel/kglobal.cpp.kconfig_sync_crash 2008-03-27 21:27:35.000000000 +0100 ++++ kdelibs-4.0.3/kdecore/kernel/kglobal.cpp 2008-04-04 14:49:03.000000000 +0200 @@ -28,6 +28,12 @@ #include "kglobal.h" #include "kglobal_p.h" @@ -29,7 +30,7 @@ class KGlobalPrivate { -@@ -64,6 +72,10 @@ +@@ -64,6 +72,10 @@ class KGlobalPrivate locale(0), charsets(0) { @@ -40,7 +41,7 @@ } inline ~KGlobalPrivate() -@@ -151,6 +163,12 @@ +@@ -151,6 +163,12 @@ KCharsets *KGlobal::charsets() return d->charsets; } @@ -53,3 +54,28 @@ KComponentData KGlobal::activeComponent() { PRIVATE_DATA; +diff -up kdelibs-4.0.3/kdecore/kernel/kglobal.h.kconfig_sync_crash kdelibs-4.0.3/kdecore/kernel/kglobal.h +--- kdelibs-4.0.3/kdecore/kernel/kglobal.h.kconfig_sync_crash 2008-04-04 15:16:45.000000000 +0200 ++++ kdelibs-4.0.3/kdecore/kernel/kglobal.h 2008-04-04 15:19:49.000000000 +0200 +@@ -21,7 +21,7 @@ + + #include + #include +- ++#include + // + // WARNING!! + // This code uses undocumented Qt API +@@ -354,6 +354,12 @@ namespace KGlobal + KDECORE_EXPORT KCharsets *charsets(); + + /** ++ * Returns the umask of the process. ++ * @return the umask of the process ++ */ ++ KDECORE_EXPORT mode_t umask(); ++ ++ /** + * Creates a static QString. + * + * To be used inside functions(!) like: diff --git a/kdelibs.spec b/kdelibs.spec index 2e85892..14ee54b 100644 --- a/kdelibs.spec +++ b/kdelibs.spec @@ -368,6 +368,7 @@ rm -rf %{buildroot} %changelog * Fri Apr 04 2008 Than Ngo - 4.0.3-6 - apply upstream patch to fix klauncher crash +- fix kconfig_sync_crash patch * Fri Apr 4 2008 Rex Dieter 4.0.3-5 - kconfig_sync_crash patch