# HG changeset patch # User Pascal Bellard # Date 1253953912 -7200 # Node ID f5bbd95d8200fed136c148ab1b38b0b68a53fb32 # Parent 911706b3873324d8e74ca66ed4e2353fbc0e590b cdrdao: fix build with gcc-4.x diff -r 911706b38733 -r f5bbd95d8200 cdrdao/receipt --- a/cdrdao/receipt Sat Sep 26 07:53:47 2009 +0000 +++ b/cdrdao/receipt Sat Sep 26 10:31:52 2009 +0200 @@ -15,8 +15,15 @@ compile_rules() { cd $src - ./configure --prefix=/usr --with-lame - make + for i in trackdb/*.cc ; do + grep -q string.h $i && continue + grep -q util.h $i || continue + sed -i 's/"util.h"/&\n#include /' $i + done + find -name '*.c' | xargs sed -i -e 's/getline/get_line/' \ + -e 's/fexecve/fexec_ve/' scsilib/include/schily.h + ./configure --prefix=/usr --with-lame && + make && make DESTDIR=$PWD/_pkg install }