tags 560486 + patch
retitle 560486 scim: [PATCH] FTBFS: ltdl.cpp:3376: error: invalid conversion 
from 'const char*' to 'char*'
thanks

> tony mancill wrote:
>> Could you two could coordinate regarding the FTBFS patch?  I'm available to
>> sponsor the upload.
>>
>> Jari Aalto wrote:
>>> Candidate for DELAYED (FTBFS reported 2009-12-11). A trivial fix (see
>>> patch).
>> 
>>>     dget -x http://cante.net/~jaalto/tmp/debian/scim/scim_1.4.9-1.1.dsc
>> 
>>> Jari
>> 
>>> Changes: 
>>>  scim (1.4.9-1.1) unstable; urgency=low
>>>  .
>>>    [Jari Aalto]
>>>    * Non-maintainer upload.
>>>    * debian/patches
>>>      - (number 60): New patch to fix gcc 4.4
>>>        error: invalid conversion from const char* to char*.
>>>        (FTBFS RC bug serious; Closes #560486).
>> 
Rolf Leggewie <f...@rolf.leggewie.biz> writes:
> Jari and Tony,
>
> I'm cc'ing Aoki-san, another scim maintainer who is also a DD.... But
> let's get this patch out ASAP. Osamu, did you have a chance to verify
> the original RC bug?

Patch attached below.

Jari

--- a/debian/patches/00list
+++ b/debian/patches/00list
@@ -9,3 +9,4 @@
 #10_gtk-immodule-install-dir.dpatch
 #10_remove-deprecated-desktop-entry.dpatch
 50_validate-desktop-entry.dpatch
+60_gcc-4.4-const-char.dpatch
--- /dev/null
+++ b/debian/patches/60_gcc-4.4-const-char.dpatch
@@ -0,0 +1,23 @@
+#! /bin/sh /usr/share/dpatch/dpatch-run
+## /tmp/gcc.patch.dpatch by  <jari.aa...@cante.net>
+##
+## All lines beginning with `## DP:' are a description of the patch.
+## DP: daa
+## DP: Author: Jari Aalto <jari.aa...@cante.net>
+## DP: src/ltdl.cpp: Fix Gcc 4.4 error: invalid conversion from const char* to char*
+
+...@dpatch@
+
+diff --git a/src/ltdl.cpp b/src/ltdl.cpp
+index e96dda2..b6dc97d 100644
+--- a/src/ltdl.cpp
++++ b/src/ltdl.cpp
+@@ -3361,7 +3361,7 @@ lt_dlopenext (
+ {
+   lt_dlhandle	handle		= 0;
+   char *	tmp		= 0;
+-  char *	ext		= 0;
++  const char *	ext		= 0;
+   size_t	len;
+   int		errors		= 0;
+ 

Reply via email to