[Debian-med-packaging] Bug#560438: seaview: FTBFS: use_mase_files.cxx:1437: error: invalid conversion from 'const char*' to 'char*'
Luk Claes
luk at debian.org
Sat Dec 26 23:29:06 UTC 2009
Luk Claes wrote:
> Below is a patch which fixes this bug. I've not yet uploaded an NMU, but
> will consider doing so within about a week.
Sorry, the patch was not pasted completely:
> diff -Nru seaview-3.2/debian/changelog seaview-3.2/debian/changelog
> --- seaview-3.2/debian/changelog 2009-12-26 23:23:35.000000000 +0000
> +++ seaview-3.2/debian/changelog 2009-12-26 23:23:35.000000000 +0000
> @@ -1,3 +1,10 @@
> +seaview (1:3.2-1.1) unstable; urgency=medium
> +
> + * Non-maintainer upload.
> + * Don't declare a char* const when it's not (Closes: #560438).
> +
> + -- Luk Claes <luk at debian.org> Sat, 26 Dec 2009 16:54:35 +0000
> +
> seaview (1:3.2-1) unstable; urgency=low
>
> * New upstream version:
> diff -Nru seaview-3.2/seaview.cxx seaview-3.2/seaview.cxx
> --- seaview-3.2/seaview.cxx 2008-11-01 15:20:32.000000000 +0000
> +++ seaview-3.2/seaview.cxx 2009-12-26 23:23:35.000000000 +0000
> @@ -128,7 +128,7 @@
> void deplacer_grp_seqs(SEA_VIEW *view, int target);
> void del_gap_only_sites(SEA_VIEW *view);
> void reference_toggle(SEA_VIEW *view, int on);
> -void handle_paste(SEA_VIEW *view, const char *clipboard, int doing_dnd);
> +void handle_paste(SEA_VIEW *view, char *clipboard, int doing_dnd);
void handle_mouse(SEA_VIEW *view, int mx, int my,
int *p_selecting_seqs, int *p_sel_seq_move, int *p_modifying_segment);
void handle_keyboard(SEA_VIEW *view, unsigned int key, int istext);
@@ -178,7 +178,7 @@
#elif defined(WIN32)
extern char **getutf8args(int *pargc);
#else
-extern void inform_prog_dir(const char *arg0);
+extern void inform_prog_dir(char *arg0);
#endif
extern int pdf_printout(SEA_VIEW *view, const char *filename,
int fontsize, int block_size, paperformat pageformat, int vary_only, int
ref0,
@@ -3785,7 +3785,7 @@
else return 0;
#endif
case FL_PASTE:
- handle_paste(view, Fl::event_text(), doing_dnd);
+ handle_paste(view, (char *)Fl::event_text(), doing_dnd);
doing_dnd = FALSE;
Fl::focus(this);
return 1;
@@ -3863,7 +3863,7 @@
}
-void handle_paste(SEA_VIEW *view, const char *clipboard, int doing_dnd)
+void handle_paste(SEA_VIEW *view, char *clipboard, int doing_dnd)
{
if(doing_dnd) {
use_initial_file(view, (char *)clipboard );
diff -Nru seaview-3.2/use_mase_files.cxx seaview-3.2/use_mase_files.cxx
--- seaview-3.2/use_mase_files.cxx 2008-10-14 21:31:28.000000000 +0000
+++ seaview-3.2/use_mase_files.cxx 2009-12-26 23:23:35.000000000 +0000
@@ -1431,7 +1431,7 @@
#if !(defined(WIN32) || defined(__APPLE__))
static char seaview_prog_dir[200] = "";
-void inform_prog_dir(const char *arg0)
+void inform_prog_dir(char *arg0)
{
char *p;
if((p = strrchr(arg0, '/')) != NULL) {
More information about the Debian-med-packaging
mailing list