rev 8729 - in branches/kde4/packages: kdebase-runtime/debian kdebase-runtime/debian/patches kdelibs/debian kdelibs/debian/patches
Armin Berres
trigger-guest at alioth.debian.org
Thu Jan 3 01:40:38 UTC 2008
Author: trigger-guest
Date: 2008-01-03 01:40:38 +0000 (Thu, 03 Jan 2008)
New Revision: 8729
Added:
branches/kde4/packages/kdebase-runtime/debian/patches/04_disable_debug_by_default.diff
branches/kde4/packages/kdelibs/debian/patches/09_disable_debug_messages_if_not_explicitly_enabled.diff
Modified:
branches/kde4/packages/kdebase-runtime/debian/changelog
branches/kde4/packages/kdebase-runtime/debian/patches/series
branches/kde4/packages/kdelibs/debian/changelog
branches/kde4/packages/kdelibs/debian/patches/series
Log:
add two patches for disabling debug output by default. this way only important stuff ends in the konsole. when needed the debug areas can be selectively enabled with kdebugdialog. if anyone has problems with these patches please tell me.
Modified: branches/kde4/packages/kdebase-runtime/debian/changelog
===================================================================
--- branches/kde4/packages/kdebase-runtime/debian/changelog 2008-01-03 00:52:26 UTC (rev 8728)
+++ branches/kde4/packages/kdebase-runtime/debian/changelog 2008-01-03 01:40:38 UTC (rev 8729)
@@ -1,3 +1,10 @@
+kdebase-runtime (4:3.98.0~svn755919-2) UNRELEASED; urgency=low
+
+ * Add a patch to make kdebugdialog only select debug areas
+ which aren't enabled.
+
+ -- Armin Berres <trigger+debian at space-based.de> Thu, 03 Jan 2008 02:18:07 +0100
+
kdebase-runtime (4:3.98.0~svn755919-1) experimental; urgency=low
* New svn snapshot release to revision 755919.
Added: branches/kde4/packages/kdebase-runtime/debian/patches/04_disable_debug_by_default.diff
===================================================================
--- branches/kde4/packages/kdebase-runtime/debian/patches/04_disable_debug_by_default.diff (rev 0)
+++ branches/kde4/packages/kdebase-runtime/debian/patches/04_disable_debug_by_default.diff 2008-01-03 01:40:38 UTC (rev 8729)
@@ -0,0 +1,17 @@
+Normally kdebugdialog enables all debugging information which isn't
+explicitly turned off. This patch reverses this behaviour. Only the
+debugging areas which are enabled are checked.
+See also kdelibs' 09_disable_debug_messages_if_not_explicitly_enabled.diff
+which does the same when printing debug information. Don't print them
+unless the user requested them.
+--- a/kdebugdialog/klistdebugdialog.cpp
++++ b/kdebugdialog/klistdebugdialog.cpp
+@@ -124,7 +124,7 @@
+ QListWidgetItem* item = m_areaWidget->item(i);
+ KConfigGroup group = pConfig->group( item->data(Qt::UserRole).toByteArray() ); // Group name = debug area code = cb's name
+
+- int setting = group.readEntry( "InfoOutput", 2 );
++ int setting = group.readEntry( "InfoOutput", 4 );
+
+ switch (setting) {
+ case 4: // off
Modified: branches/kde4/packages/kdebase-runtime/debian/patches/series
===================================================================
--- branches/kde4/packages/kdebase-runtime/debian/patches/series 2008-01-03 00:52:26 UTC (rev 8728)
+++ branches/kde4/packages/kdebase-runtime/debian/patches/series 2008-01-03 01:40:38 UTC (rev 8729)
@@ -1,3 +1,4 @@
01_kde4_information_menu.diff
02_ksvgtopng4.diff
03_ktrash4.diff
+04_disable_debug_by_default.diff
Modified: branches/kde4/packages/kdelibs/debian/changelog
===================================================================
--- branches/kde4/packages/kdelibs/debian/changelog 2008-01-03 00:52:26 UTC (rev 8728)
+++ branches/kde4/packages/kdelibs/debian/changelog 2008-01-03 01:40:38 UTC (rev 8729)
@@ -1,3 +1,10 @@
+kde4libs (4:3.98.0~svn755919-2) UNRELEASED; urgency=low
+
+ * Add patch to disable debug information by default. They can be enabled
+ with kdebugdialog.
+
+ -- Armin Berres <trigger+debian at space-based.de> Thu, 03 Jan 2008 02:17:06 +0100
+
kde4libs (4:3.98.0~svn755919-1) experimental; urgency=low
* New svn snapshot release to revision 755919.
Added: branches/kde4/packages/kdelibs/debian/patches/09_disable_debug_messages_if_not_explicitly_enabled.diff
===================================================================
--- branches/kde4/packages/kdelibs/debian/patches/09_disable_debug_messages_if_not_explicitly_enabled.diff (rev 0)
+++ branches/kde4/packages/kdelibs/debian/patches/09_disable_debug_messages_if_not_explicitly_enabled.diff 2008-01-03 01:40:38 UTC (rev 8729)
@@ -0,0 +1,15 @@
+We build with debugging symbols enabled, that's why we get a lot of debugging
+messages on the konsole. This patch disables these messages. Kdebugdialog
+can be used to enable them.
+See also 04_disable_debug_by_default.diff in kdebase-runtime.
+--- a/kdecore/io/kdebug.cpp
++++ b/kdecore/io/kdebug.cpp
+@@ -314,7 +314,7 @@
+ }
+
+ KConfigGroup cg(config, QString::number(area));
+- int mode = cg.readEntry(key, 2);
++ int mode = cg.readEntry(key, 4);
+ return OutputMode(mode);
+ }
+
Modified: branches/kde4/packages/kdelibs/debian/patches/series
===================================================================
--- branches/kde4/packages/kdelibs/debian/patches/series 2008-01-03 00:52:26 UTC (rev 8728)
+++ branches/kde4/packages/kdelibs/debian/patches/series 2008-01-03 01:40:38 UTC (rev 8729)
@@ -1,3 +1,4 @@
+09_disable_debug_messages_if_not_explicitly_enabled.diff
10_kdehome_kde4.diff
11_kde4_applications_menu.diff
12_deprecate_applnk.diff
More information about the pkg-kde-commits
mailing list