Package: rawstudio
Version: 1.2-1
Severity: normal
Tags: patch
User: [email protected]
Usertags: origin-ubuntu karmic ubuntu-patch
In Ubuntu, we've applied the attached patch to achieve the following:
* src/dcraw.cc: fix FTBFS due to invalid const char * conversion
(LP: #448488).
We thought you might be interested in doing the same.
The build fails with the following error:
g++ -DHAVE_CONFIG_H -I. -I.. -DPACKAGE_DATA_DIR=\""/usr/share"\"
-DPACKAGE_LOCALE_DIR=\""/usr/share/locale"\" -D_REENTRANT -DORBIT2=1 -pthread
-I/usr/include/gtk-2.0 -I/usr/lib/gtk-2.0/include -I/usr/include/atk-1.0
-I/usr/include/cairo -I/usr/include/pango-1.0 -I/usr/include/pixman-1
-I/usr/include/freetype2 -I/usr/include/directfb -I/usr/include/libpng12
-I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/libxml2
-I/usr/include/gconf/2 -I/usr/include/orbit-2.0 -I/usr/include/dbus-1.0
-I/usr/lib/dbus-1.0/include -Wall -fno-strict-aliasing -O4 -DWITH_GCONF
-DDCRAW_NOMAIN -DDCRAW_NOLCMS -DWITH_MMAP_HACK -g -O2 -MT dcraw.o -MD -MP -MF
.deps/dcraw.Tpo -c -o dcraw.o dcraw.cc
dcraw.cc: In member function 'int DCRaw::main(int, const char**)':
dcraw.cc:8513: error: invalid conversion from 'const char*' to 'char*'
http://launchpadlibrarian.net/32242631/buildlog_ubuntu-karmic-i386.rawstudio_1.2-1_FAILEDTOBUILD.txt.gz
The same problem is present in ufraw (#549416).
-- System Information:
Debian Release: 5.0
APT prefers jaunty-updates
APT policy: (500, 'jaunty-updates'), (500, 'jaunty-security'), (500,
'jaunty-proposed'), (500, 'jaunty-backports'), (500, 'jaunty')
Architecture: i386 (i686)
Kernel: Linux 2.6.28-15-generic (SMP w/2 CPU cores)
Locale: LANG=ru_RU.UTF-8, LC_CTYPE=ru_RU.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
--- rawstudio-1.2.orig/src/dcraw.cc
+++ rawstudio-1.2/src/dcraw.cc
@@ -8510,7 +8510,7 @@
argv[argc] = "";
for (arg=1; (((opm = argv[arg][0]) - 2) | 2) == '+'; ) {
opt = argv[arg++][1];
- if ((cp = strchr (sp="nbrkStqmHACg", opt)))
+ if ((cp = (char *) strchr (sp="nbrkStqmHACg", opt)))
for (i=0; i < "114111111422"[cp-sp]-'0'; i++)
if (!isdigit(argv[arg+i][0])) {
dcraw_message (DCRAW_ERROR,_("Non-numeric argument to \"-%c\"\n"),
opt);