wok-4.x rev 3232

pan: apply debian fix for gcc 4.4.0
author Pascal Bellard <pascal.bellard@slitaz.org>
date Fri May 29 17:17:03 2009 +0200 (2009-05-29)
parents 88767c8c53a3
children 906386ad33be
files pan/receipt
line diff
     1.1 --- a/pan/receipt	Fri May 29 11:04:44 2009 +0000
     1.2 +++ b/pan/receipt	Fri May 29 17:17:03 2009 +0200
     1.3 @@ -15,6 +15,18 @@
     1.4  compile_rules()
     1.5  {
     1.6  	cd $src
     1.7 +	# apply debian fix for gcc 4.4.0
     1.8 +	# http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=504900
     1.9 +	while read file last; do
    1.10 +		grep -q 'include <cstdio>' pan/$file ||
    1.11 +		sed -i "s/<$last>/<$last>\n#include <cstdio>/" pan/$file
    1.12 +	done <<EOT
    1.13 +general/log.cc		cstdarg
    1.14 +general/progress.cc	cstdarg
    1.15 +tasks/nntp.cc		cstdarg
    1.16 +tasks/nntp-pool.cc	config.h
    1.17 +usenet-utils/numbers.cc	cctype
    1.18 +EOT
    1.19  	./configure \
    1.20  		--prefix=/usr \
    1.21  		--infodir=/usr/share/info \