tags 653779 +patch
thanks
exult FTBFS:
| if g++ -DHAVE_CONFIG_H -I. -I. -I../.. -I./../../headers -I./.. -I./../../files
-I./../.. -O2 -Wno-long-long -O2 -MT ucparse.o -MD -MP -MF
".deps/ucparse.Tpo" -c -o ucparse.o ucparse.cc; \
| then mv -f ".deps/ucparse.Tpo" ".deps/ucparse.Po"; else rm -f
".deps/ucparse.Tpo"; exit 1; fi
| ucparse.cc: In function 'int yyparse()':
| ucparse.cc:3378:24: error: invalid conversion from 'const char*' to 'char*'
[-fpermissive]
| ucparse.yy:46:6: error: initializing argument 1 of 'void yyerror(char*)'
[-fpermissive]
| ucparse.cc:3493:35: warning: deprecated conversion from string constant to
'char*' [-Wwrite-strings]
| make[4]: *** [ucparse.o] Error 1
The simplest way to fix the build is simply to take the hint from the error
message and
pass -fpermissive. I attatch a path that does that and improves debian/rules
clean. to
prevent "unrepresentable changes to source" issues.
Unfortunately the c++ file in question is a generated file and I have no knowlage of bison/yacc
so I couldn't really look into the root cause of the lack of const-correctness.
--- exult-1.2/debian/rules 2012-01-11 21:08:51.000000000 +0000
+++ exult-1.2.new/debian/rules 2012-01-11 21:03:30.000000000 +0000
@@ -29,6 +29,8 @@
CXXFLAGS += -O2
endif
+CXXFLAGS += -fpermissive
+
configure: patch configure-stamp
configure-stamp:
dh_testdir
@@ -60,6 +62,8 @@
config.status aclocal.m4
find . -name Makefile.in -print0 | xargs -0 rm -f
dh_clean
+ rm -f depcomp
+ rm -f INSTALL
install: build
dh_testdir