Package: gbgoffice
Severity: normal
Tags: patch

gbgoffice is failing to build from source in Ubuntu Karmic. The error is
at [1]. I've attached a patch. You'll want to remove the ubuntu-specific
parts, but otherwise it fixes this up nicely.

[1]: https://launchpad.net/ubuntu/+archive/test-rebuild-20090909/+build/1215102

-- 
Jon
diff -u gbgoffice-1.4/debian/patches/series gbgoffice-1.4/debian/patches/series
--- gbgoffice-1.4/debian/patches/series
+++ gbgoffice-1.4/debian/patches/series
@@ -7,0 +8 @@
+08_fix_const_conversion.patch
diff -u gbgoffice-1.4/debian/changelog gbgoffice-1.4/debian/changelog
--- gbgoffice-1.4/debian/changelog
+++ gbgoffice-1.4/debian/changelog
@@ -1,3 +1,9 @@
+gbgoffice (1.4-4ubuntu1) karmic; urgency=low
+
+  * Fix FTBFS due to an invalid const conversion (LP: #445624)
+
+ -- Jon Bernard <berna...@gmail.com>  Mon, 05 Oct 2009 18:41:47 -0400
+
 gbgoffice (1.4-4) unstable; urgency=low
 
   * "Going official"
diff -u gbgoffice-1.4/debian/control gbgoffice-1.4/debian/control
--- gbgoffice-1.4/debian/control
+++ gbgoffice-1.4/debian/control
@@ -1,7 +1,8 @@
 Source: gbgoffice
 Section: text
 Priority: optional
-Maintainer: Debian Add-ons Bulgaria Project 
<debian-addons-bg-maintain...@openfmi.net>
+Maintainer: Ubuntu Developers <ubuntu-devel-disc...@lists.ubuntu.com>
+XSBC-Original-Maintainer: Debian Add-ons Bulgaria Project 
<debian-addons-bg-maintain...@openfmi.net>
 Uploaders: George Danchev <danc...@spnet.net>, Damyan Ivanov <d...@debian.org>
 Build-Depends: debhelper (>= 5), libsigc++-2.0-dev, libgtkmm-2.4-dev,
  libglibmm-2.4-dev, imagemagick, quilt(>=0.40), desktop-file-utils
only in patch2:
unchanged:
--- gbgoffice-1.4.orig/debian/patches/08_fix_const_conversion.patch
+++ gbgoffice-1.4/debian/patches/08_fix_const_conversion.patch
@@ -0,0 +1,19 @@
+#
+# Description: Since a constant is passed into strchr(), pu must also be const
+#              to keep the compiler from generating an error.
+# Ubuntu: https://bugs.launchpad.net/ubuntu/+source/gbgoffice/+bug/445624
+#
+Index: b/src/translator.cpp
+===================================================================
+--- a/src/translator.cpp
++++ b/src/translator.cpp
+@@ -315,7 +315,8 @@ bool Translator::findWord(const char *wo
+ 
+ char *Translator::transformResult(const char *result) {
+       int j, i, m, n, u;
+-      char *b, *pu;
++      const char *pu;
++      char *b;
+       char c;
+       strcpy(dataBuffer2, result);
+       if ((advancedSearchState) && (advancedSearchHighlight)) {

Reply via email to