Package: yafray
Version: 0.0.9+dfsg-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:
* 50_const_char.dpatch: new patch, declare pointer as const char*
to fix FTBFS (LP: #441377).
We thought you might be interested in doing the same.
The build fails with the following error:
g++ -o src/shaders/basictex.os -c -Wall -DHAVE_CONFIG_H -D_PTHREADS -O3
-ffast-math -fomit-frame-pointer -fPIC -Isrc/shaders -I. -Isrc/yafraycore
src/shaders/basictex.cc
[...]
src/shaders/basictex.cc: In constructor
'yafray::textureImage_t::textureImage_t(const char*, const std::string&)':
src/shaders/basictex.cc:263: error: invalid conversion from 'const char*' to
'char*'
http://launchpadlibrarian.net/32673054/buildlog_ubuntu-karmic-i386.yafray_0.0.9%2Bdfsg-1build1_FAILEDTOBUILD.txt.gz
-- 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
diff -u yafray-0.0.9+dfsg/debian/patches/00list yafray-0.0.9+dfsg/debian/patches/00list
--- yafray-0.0.9+dfsg/debian/patches/00list
+++ yafray-0.0.9+dfsg/debian/patches/00list
@@ -5,0 +6 @@
+50_const_char.dpatch
only in patch2:
unchanged:
--- yafray-0.0.9+dfsg.orig/debian/patches/50_const_char.dpatch
+++ yafray-0.0.9+dfsg/debian/patches/50_const_char.dpatch
@@ -0,0 +1,19 @@
+#! /bin/sh /usr/share/dpatch/dpatch-run
+## 50_const_char.dpatch by Ilya Barygin <[email protected]>
+##
+## All lines beginning with `## DP:' are a description of the patch.
+## DP: No description.
+
+...@dpatch@
+diff -urNad yafray-0.0.9+dfsg~/src/shaders/basictex.cc yafray-0.0.9+dfsg/src/shaders/basictex.cc
+--- yafray-0.0.9+dfsg~/src/shaders/basictex.cc 2006-06-10 04:41:26.000000000 +0400
++++ yafray-0.0.9+dfsg/src/shaders/basictex.cc 2009-10-03 17:27:06.000000000 +0400
+@@ -259,7 +259,7 @@
+ intp_type = BICUBIC;
+
+ // Load image, try to determine from extensions first
+- char *ext = strrchr(filename, '.');
++ const char *ext = strrchr(filename, '.');
+ bool jpg_tried = false;
+ bool tga_tried = false;
+ bool hdr_tried = false;