tags 561157 +patch
thanks
The attatched patch resolves the FTBFS by taking the simple approach of
building with -fno-strict-aliasing .
It also fixes a FTBFs if built twice in a row issue I discovered while
testing the fix for the above.
Only in cwidget-0.5.16: cwidget-config.h
diff -ur cwidget-0.5.16/debian/rules cwidget-0.5.16.new/debian/rules
--- cwidget-0.5.16/debian/rules 2009-12-15 02:11:20.000000000 +0000
+++ cwidget-0.5.16.new/debian/rules 2009-12-15 19:33:02.000000000 +0000
@@ -1,13 +1,15 @@
#!/usr/bin/make -f
ifneq (,$(findstring noopt,$(DEB_BUILD_OPTIONS)))
- export CXXFLAGS=-g -O0 -fno-inline
+ export CXXFLAGS=-g -O0 -fno-inline -fno-strict-aliasing
else
- export CXXFLAGS=-g -O2
+ export CXXFLAGS=-g -O2 -fno-strict-aliasing
endif
configure: configure-stamp
configure-stamp:
+ #backup po/POTFILES.in
+ cp po/POTFILES.in po_POTFILES_in_bak
./configure --prefix=/usr
touch configure-stamp
@@ -37,11 +39,38 @@
dh_testroot
rm -f build-stamp-indep build-stamp-arch configure-stamp
+ #create dummy makefiles where makefiles don't already exist
+ #to avoid error from top level distclean
+ [ -f doc/Makefile ] || echo distclean: > doc/Makefile
+ [ -f tests/Makefile ] || echo distclean: > tests/Makefile
+ [ -f src/Makefile ] || echo distclean: > src/Makefile
+ [ -f po/Makefile ] || echo distclean: > po/Makefile
+
[ ! -f Makefile ] || $(MAKE) distclean
+ #ensure the dummy Makefiles get nuked
+ rm -f doc/Makefile
+ rm -f tests/Makefile
+ rm -f src/Makefile
+ rm -f po/Makefile
+
-rm -r doc/ikiwiki/.ikiwiki
dh_clean
-
+ #manually clean up some cruft left behind by upstream clean target
+ rm -f config.h
+ rm -f config.log
+ rm -f config.status
+ rm -f cwidget.pc
+ rm -f Doxyfile
+ rm -f libtool
+ rm -f Makefile
+ rm -f po/Makefile.in
+ rm -f POTFILES.in
+ rm -f stamp-h1
+ rm -f stamp-h2
+
+ #restore po/POTFILES.in from backup
+ [ ! -f po_POTFILES_in_bak ] || mv po_POTFILES_in_bak po/POTFILES.in
install: build-arch
dh_testdir