Your message dated Sat, 3 Oct 2009 09:50:08 +0200
with message-id <[email protected]>
and subject line Re: Bug#547362: FTBFS: The package fails to build because of a
bad conversion from const char* to char*
has caused the Debian Bug report #547362,
regarding FTBFS: The package fails to build because of a bad conversion from
const char* to char*
to be marked as done.
This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.
(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact [email protected]
immediately.)
--
547362: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=547362
Debian Bug Tracking System
Contact [email protected] with problems
--- Begin Message ---
Package: gambas2
User: [email protected]
Usertags: origin-ubuntu karmic ubuntu-patch
Version: 2.13.1-1
Severity: important
Justification: fails to build from source
Tags: patch
*** Please type your report below this line ***
The package does not build from source because of:
main.cpp:1011: error: invalid conversion from 'const char*' to 'char*'
*** /tmp/tmpIW2yFt
In Ubuntu, we've applied the attached patch to achieve the following:
* debian/patches/03_fix_const_char_conversion.patch:
- It fixes a FTBFS due to a conversion from const char*
to char* (LP: #432792)
We thought you might be interested in doing the same.
-- System Information:
Debian Release: 5.0
APT prefers jaunty-updates
APT policy: (500, 'jaunty-updates'), (500, 'jaunty-security'), (500,
'jaunty-backports'), (500, 'jaunty')
Architecture: amd64 (x86_64)
Kernel: Linux 2.6.28-15-generic (SMP w/2 CPU cores)
Locale: LANG=de_DE.UTF-8, LC_CTYPE=de_DE.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
diff -u gambas2-2.13.1/debian/patches/00list
gambas2-2.13.1/debian/patches/00list
--- gambas2-2.13.1/debian/patches/00list
+++ gambas2-2.13.1/debian/patches/00list
@@ -2,0 +3 @@
+03_fix_const_char_conversion.patch
only in patch2:
unchanged:
--- gambas2-2.13.1.orig/debian/patches/03_fix_const_char_conversion.patch
+++ gambas2-2.13.1/debian/patches/03_fix_const_char_conversion.patch
@@ -0,0 +1,40 @@
+#! /bin/sh /usr/share/dpatch/dpatch-run
+## 03_fix_const_char_conversion.patch
+## DP: Fixes FTBFS due to invalid conversion from const char* to char*
+
+...@dpatch@
+
+--- gambas2-2.13.1.orig/gb.db.sqlite3/src/main.cpp
++++ gambas2-2.13.1/gb.db.sqlite3/src/main.cpp
+@@ -36,6 +36,7 @@
+ #include <sys/stat.h>
+ #include <dirent.h>
+ #include <unistd.h>
++#include <cassert>
+
+ #include "sqlitedataset.h"
+
+@@ -1007,13 +1008,21 @@
+ static int field_index(DB_RESULT result, const char *name, DB_DATABASE * db)
+ {
+ char *fld;
++ char *s;
++ int ret;
++
++ s = strdup(name);
++ assert(s != NULL);
+
+- fld = strchr(name, (int) FLD_SEP);
++ fld = strchr(s, (int) FLD_SEP);
+ if (fld)
+ {
//Includes table identity
+ fld[0] = '.';
+ }
+- return (((Dataset *) result)->fieldIndex(name));
++
++ ret = (((Dataset *) result)->fieldIndex(s));
++ free(s);
++ return ret;
+ }
+
+
--- End Message ---
--- Begin Message ---
Version: 2.16-1
This bug was fixed upstream, and thus it's fixed in Debian since de
upload of version 2.16 of Gambas2.
Thanks for your report
--- End Message ---