Package: cinepaint
Version: 0.20-1-1
Severity: serious
Tags: patch
Justification: no longer builds from source

One source file in the "Bracketing to HBR" plugin inappropriately
tries to cast from void* to int in a few places, which fails on 64-bit
systems per the following logs:

http://amd64.ftbfs.de/fetch.php?&pkg=cinepaint&ver=0.20-1-1&arch=amd64&stamp=1136903732&file=log&as=raw
http://buildd.debian.org/fetch.php?&pkg=cinepaint&ver=0.20-1-1&arch=alpha&stamp=1136740455&file=log&as=raw
http://buildd.debian.org/fetch.php?&pkg=cinepaint&ver=0.20-1-1&arch=ia64&stamp=1136740233&file=log&as=raw

When you get a chance, could you please apply the attached patch,
which replaces int with intptr_t in the relevant spots?

Thanks!

-- System Information:
Debian Release: testing/unstable
  APT prefers unstable
  APT policy: (500, 'unstable'), (500, 'testing'), (500, 'stable'), (1, 
'sarge-unsupported')
Architecture: amd64 (x86_64)
Shell:  /bin/sh linked to /bin/bash
Kernel: Linux 2.6.15
Locale: LANG=en_US, LC_CTYPE=en_US (charmap=ISO-8859-1)

Versions of packages cinepaint depends on:
ii  cinepaint-da 0.20-1-1.0                  data files for CinePaint
ii  libc6        2.3.5-11                    GNU C Library: Shared libraries an
ii  libcinepaint 0.20-1-1.0                  runtime library files for CinePain
ii  libfltk1.1   1.1.6-10                    Fast Light Toolkit shared librarie
ii  libfontconfi 2.3.2-1.1                   generic font configuration library
ii  libfreetype6 2.1.10-1                    FreeType 2 font engine, shared lib
ii  libgcc1      1:4.0.2-6                   GCC support library
ii  libglib1.2   1.2.10-10                   The GLib library of C routines
ii  libgtk1.2    1.2.10-18                   The GIMP Toolkit set of widgets fo
ii  libgutenprin 4.3.99+cvs20051122.dfsg.1-2 runtime for the Gutenprint printer
ii  libgutenprin 4.3.99+cvs20051122.dfsg.1-2 runtime for the Gutenprint printer
ii  libice6      6.9.0.dfsg.1-3              Inter-Client Exchange library
ii  libjpeg62    6b-11                       The Independent JPEG Group's JPEG 
ii  liblcms1     1.13-1                      Color management library
ii  libopenexr2c 1.2.2-4.1                   runtime files for the OpenEXR imag
ii  libpng12-0   1.2.8rel-5                  PNG library - runtime
ii  libsm6       6.9.0.dfsg.1-3              X Window System Session Management
ii  libstdc++6   4.0.2-6                     The GNU Standard C++ Library v3
ii  libtiff4     3.7.4-1                     Tag Image File Format (TIFF) libra
ii  libx11-6     6.9.0.dfsg.1-3              X Window System protocol client li
ii  libxext6     6.9.0.dfsg.1-3              X Window System miscellaneous exte
ii  libxft2      2.1.7-1                     FreeType-based font drawing librar
ii  libxi6       6.9.0.dfsg.1-3              X Window System Input extension li
ii  libxmu6      6.9.0.dfsg.1-3              X Window System miscellaneous util
ii  libxrender1  1:0.9.0.2-1                 X Rendering Extension client libra
ii  libxt6       6.9.0.dfsg.1-3              X Toolkit Intrinsics
ii  zlib1g       1:1.2.3-9                   compression library - runtime

cinepaint recommends no packages.

-- no debconf information
diff -u cinepaint-0.20-1/debian/changelog cinepaint-0.20-1/debian/changelog
--- cinepaint-0.20-1/debian/changelog
+++ cinepaint-0.20-1/debian/changelog
@@ -1,3 +1,10 @@
+cinepaint (0.20-1-1.0) unstable; urgency=low
+
+  * Quasi-NMU.
+  * Fix "Bracketing to HDR" plugin to compile on 64-bit systems.
+
+ -- Aaron M. Ucko <[EMAIL PROTECTED]>  Wed, 11 Jan 2006 11:05:10 -0500
+
 cinepaint (0.20-1-1) unstable; urgency=medium
 
   * New upstream release.
only in patch2:
unchanged:
--- cinepaint-0.20-1.orig/plug-ins/bracketing_to_hdr/PrimeWindow.cpp
+++ cinepaint-0.20-1/plug-ins/bracketing_to_hdr/PrimeWindow.cpp
@@ -106,7 +106,7 @@
   else if (m->shortcut())
     printf("\"%s\" - %s\n", m->label(), fl_shortcut_label(m->shortcut()));
   else
-    printf("\"%s\", arg2 = %d\n", m->label(), (int)arg2);
+    printf("\"%s\", arg2 = %td\n", m->label(), (intptr_t)arg2);
 }
 
 
@@ -314,14 +314,14 @@
 void PrimeWindow::cb_stops_menubar(Fl_Menu_*, void* v) 
 {
   // Calc. new times accordingly to stops value...
-  val_stops_ = menuMap_stops[ int(v) ].value;
+  val_stops_ = menuMap_stops[ intptr_t(v) ].value;
   Br.imgVec.set_times_by_stops(val_stops_);
   
   // update time column in imgPanel...
   imgPanel_->table()-> redraw();   
   
   // update the stops choice menu in imgPanel_ (output the new value)...
-  imgPanel_->choice_stops()-> value(int(v));  
+  imgPanel_->choice_stops()-> value(intptr_t(v));  
 }
 
 /**-----------------------------------------------------

Reply via email to