tags 809054 +patch
thanks

The attatched debdiff fixes the build by stripping any -W<whatever> tokens out of CPPFLAGS . It applies it at the debian/rules level so it unfortunately affects everything. If someone wants to dig through the upstream build system and apply the stripping only when the CFLAGs are passed to swig then that would be an improvement.

The change to a comment in config_keys.inc was not a deliberate action. I would guess the file got regenerated during the build/




diff -u subversion-1.9.3/debian/changelog subversion-1.9.3/debian/changelog
--- subversion-1.9.3/debian/changelog
+++ subversion-1.9.3/debian/changelog
@@ -1,3 +1,9 @@
+subversion (1.9.3-1+rpi1) stretch-staging; urgency=medium
+
+  * Strip warning flags from CCPFLAGS, they break swig.
+
+ -- Peter Michael Green <plugw...@raspbian.org>  Fri, 15 Jan 2016 11:04:32 
+0000
+
 subversion (1.9.3-1) unstable; urgency=high
 
   * New upstream release.
diff -u subversion-1.9.3/debian/rules subversion-1.9.3/debian/rules
--- subversion-1.9.3/debian/rules
+++ subversion-1.9.3/debian/rules
@@ -74,7 +74,7 @@
 
 export EXTRA_CFLAGS := $(CFLAGS)
 export EXTRA_CXXFLAGS := $(CXXFLAGS)
-export EXTRA_CPPFLAGS := $(CPPFLAGS)
+export EXTRA_CPPFLAGS := $(shell echo $($CPPFLAGS) | sed 's/-W[^ ]*//g')
 export EXTRA_LDFLAGS := $(LDFLAGS)
 export EXTRA_SWIG_LDFLAGS := $(EXTRA_LDFLAGS)
 
only in patch2:
unchanged:
--- subversion-1.9.3.orig/subversion/libsvn_subr/config_keys.inc
+++ subversion-1.9.3/subversion/libsvn_subr/config_keys.inc
@@ -1,4 +1,4 @@
-/* Automatically generated by build/generator/gen_base.pyc:write_config_keys() 
*/
+/* Automatically generated by build/generator/gen_base.py:write_config_keys() 
*/
 
 static const char *svn__valid_config_files[] = {
   SVN_CONFIG_CATEGORY_SERVERS,

Reply via email to