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 diff -u yafray-0.0.9+dfsg/debian/control yafray-0.0.9+dfsg/debian/control --- yafray-0.0.9+dfsg/debian/control +++ yafray-0.0.9+dfsg/debian/control @@ -1,7 +1,8 @@ Source: yafray Section: graphics Priority: optional -Maintainer: Nick Rusnov +Maintainer: Ubuntu Developers +XSBC-Original-Maintainer: Nick Rusnov Uploaders: Cyril Brulebois Build-Depends: scons, dpatch, debhelper (>= 5), libjpeg62-dev, zlib1g-dev, libopenexr-dev, autotools-dev Standards-Version: 3.7.3 diff -u yafray-0.0.9+dfsg/debian/changelog yafray-0.0.9+dfsg/debian/changelog --- yafray-0.0.9+dfsg/debian/changelog +++ yafray-0.0.9+dfsg/debian/changelog @@ -1,3 +1,10 @@ +yafray (0.0.9+dfsg-1ubuntu1) karmic; urgency=low + + * 50_const_char.dpatch: new patch, declare pointer as const char* + to fix FTBFS (LP: #441377). + + -- Ilya Barygin Sat, 03 Oct 2009 17:31:19 +0400 + yafray (0.0.9+dfsg-1build1) intrepid; urgency=low * Rebuild for libopenexr2ldbl -> libopenexr6 transistion. 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 +## +## 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;