rpms/kdbg/devel kdbg-2.1.0-gcc44.patch, NONE, 1.1 .cvsignore, 1.12, 1.13 kdbg.spec, 1.33, 1.34 sources, 1.12, 1.13

Than Ngo than at fedoraproject.org
Mon Mar 2 10:16:18 UTC 2009


Author: than

Update of /cvs/extras/rpms/kdbg/devel
In directory cvs1.fedora.phx.redhat.com:/tmp/cvs-serv14883

Modified Files:
	.cvsignore kdbg.spec sources 
Added Files:
	kdbg-2.1.0-gcc44.patch 
Log Message:
* update to 2.1.1
* fix build problem with gcc-4.4



kdbg-2.1.0-gcc44.patch:

--- NEW FILE kdbg-2.1.0-gcc44.patch ---
diff -up kdbg-2.1.1/kdbg/gdbdriver.cpp.gcc44 kdbg-2.1.1/kdbg/gdbdriver.cpp
--- kdbg-2.1.1/kdbg/gdbdriver.cpp.gcc44	2008-11-17 23:17:55.000000000 +0100
+++ kdbg-2.1.1/kdbg/gdbdriver.cpp	2009-03-02 11:07:26.000000000 +0100
@@ -133,7 +133,7 @@ GdbDriver::GdbDriver() :
 
 #ifndef NDEBUG
     // check command info array
-    char* perc;
+    const char* perc;
     for (int i = 0; i < NUM_CMDS; i++) {
 	// must be indexable by DbgCommand values, i.e. sorted by DbgCommand values
 	assert(i == cmds[i].cmd);
@@ -669,7 +669,7 @@ static bool parseErrorMessage(const char
     // skip warnings
     while (strncmp(output, "warning:", 8) == 0)
     {
-	char* end = strchr(output+8, '\n');
+	const char* end = strchr(output+8, '\n');
 	if (end == 0)
 	    output += strlen(output);
 	else
@@ -1880,8 +1880,8 @@ bool GdbDriver::parseThreadList(const ch
 	    p++;
 	    // there follows only whitespace
 	}
-	char* end;
-	id = strtol(p, &end, 10);
+	const char* end;
+	id = strtol(p,(char**)&end, 10);
 	if (p == end) {
 	    // syntax error: no number found; bail out
 	    return true;
diff -up kdbg-2.1.1/kdbg/xsldbgdriver.cpp.gcc44 kdbg-2.1.1/kdbg/xsldbgdriver.cpp
--- kdbg-2.1.1/kdbg/xsldbgdriver.cpp.gcc44	2009-03-02 11:08:09.000000000 +0100
+++ kdbg-2.1.1/kdbg/xsldbgdriver.cpp	2009-03-02 11:09:08.000000000 +0100
@@ -114,7 +114,7 @@ DebuggerDriver(), m_gdbMajor(2), m_gdbMi
 
 #ifndef NDEBUG
     // check command info array
-    char *perc;
+    const char *perc;
 
     for (int i = 0; i < NUM_CMDS; i++) {
         // must be indexable by DbgCommand values, i.e. sorted by DbgCommand values
@@ -768,7 +768,7 @@ parseVar(const char *&s)
     } else if (strncmp(p, "= ", 2) == 0) {
         /* we're processing the result of a "print command" */
         /* find next line */
-        char *nextLine = strchr(p, '\n');
+        const char *nextLine = strchr(p, '\n');
 
 	TRACE("Found print expr");
         if (nextLine) {


Index: .cvsignore
===================================================================
RCS file: /cvs/extras/rpms/kdbg/devel/.cvsignore,v
retrieving revision 1.12
retrieving revision 1.13
diff -u -r1.12 -r1.13
--- .cvsignore	8 Jan 2008 16:32:33 -0000	1.12
+++ .cvsignore	2 Mar 2009 10:15:48 -0000	1.13
@@ -4,3 +4,4 @@
 kdbg-2.0.2.tar.gz
 kdbg-2.0.5.tar.gz
 kdbg-2.1.0.tar.gz
+kdbg-2.1.1.tar.gz


Index: kdbg.spec
===================================================================
RCS file: /cvs/extras/rpms/kdbg/devel/kdbg.spec,v
retrieving revision 1.33
retrieving revision 1.34
diff -u -r1.33 -r1.34
--- kdbg.spec	25 Feb 2009 10:25:59 -0000	1.33
+++ kdbg.spec	2 Mar 2009 10:15:48 -0000	1.34
@@ -1,7 +1,7 @@
 Name: kdbg
 Summary: A GUI for gdb, the GNU debugger, and KDE
-Version: 2.1.0
-Release: 4%{?dist}
+Version: 2.1.1
+Release: 1%{?dist}
 Epoch: 1
 Source: http://download.sourceforge.net/kdbg/%{name}-%{version}.tar.gz
 # No version specified.
@@ -9,6 +9,7 @@
 URL: http://www.kdbg.org/
 Group: Development/Debuggers
 Buildroot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
+Patch0: kdbg-2.1.0-gcc44.patch
 
 Requires: gdb
 
@@ -23,6 +24,7 @@
 
 %prep
 %setup -q
+%patch0 -p1 -b .gcc44
 
 %build
 unset QTDIR || : ; source /etc/profile.d/qt.sh
@@ -62,8 +64,9 @@
 %config (noreplace) %{_datadir}/config/kdbgrc
 
 %changelog
-* Wed Feb 25 2009 Fedora Release Engineering <rel-eng at lists.fedoraproject.org> - 1:2.1.0-4
-- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
+* Fri Feb 27 2009 Than Ngo <than at redhat.com> - 2.1.1-1
+- 2.1.1
+- fix build issue against gcc-4.4
 
 * Tue Aug  5 2008 Tom "spot" Callaway <tcallawa at redhat.com> 2.1.0-3
 - fix license tag


Index: sources
===================================================================
RCS file: /cvs/extras/rpms/kdbg/devel/sources,v
retrieving revision 1.12
retrieving revision 1.13
diff -u -r1.12 -r1.13
--- sources	8 Jan 2008 16:32:33 -0000	1.12
+++ sources	2 Mar 2009 10:15:48 -0000	1.13
@@ -1 +1 @@
-dbac8bbc9f0182be6a272201b342fafc  kdbg-2.1.0.tar.gz
+2b7998528a68d09ff871925335092a1e  kdbg-2.1.1.tar.gz




More information about the fedora-extras-commits mailing list