Package: axis2c
Version: 1.6.0-2
Severity: important
Justification: FTBFS but autobuilders coped somehow
Tags: patch

Hi,

Trying to build from source (gcc is gcc-4.4, but the same happens
with gcc-4.5 or 4.6).

$ debian/rules build
[...]
 gcc -DHAVE_CONFIG_H -I. -I../../../../.. -I../../../../../include 
-I../../../../../src/core/transport -I../../../../../src/core/transport/http 
-I../../../../../src/core/transport/http/sender/libcurl 
-I../../../../../src/core/description -I../../../../../src/core/context 
-I../../../../../src/core/phaseresolver -I../../../../../src/core/engine 
-I../../../../../src/core/deployment -I../../../../../util/include 
-I../../../../../axiom/include -D_LARGEFILE64_SOURCE -DAXIS2_GUTHTHILA_ENABLED 
-DAXIS2_SSL_ENABLED -g -Wall -O2 -D_LARGEFILE64_SOURCE -ansi -Wall -Werror 
-Wno-implicit-function-declaration -g -D_GNU_SOURCE -DAXIS2_GUTHTHILA_ENABLED 
-DAXIS2_SSL_ENABLED -c ssl/ssl_utils.c  -fPIC -DPIC -o .libs/ssl_utils.o
cc1: warnings being treated as errors
ssl/ssl_utils.c: In function 'axis2_ssl_utils_initialize_ctx':
ssl/ssl_utils.c:66: error: assignment discards qualifiers from pointer target 
type
make[8]: *** [ssl_utils.lo] Error 1
make[8]: Leaving directory `/tmp/axis2c-1.6.0/src/core/transport/http/sender'

How about this patch?
---
 debian/changelog |   11 +++++++++++
 debian/control   |    2 +-
 debian/rules     |    5 +++++
 3 files changed, 17 insertions(+), 1 deletions(-)

diff --git a/debian/changelog b/debian/changelog
index 72eeb58..f6c26de 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -1,3 +1,14 @@
+axis2c (1.6.0-2.1) local; urgency=low
+
+  * Do not pass -Werror to gcc at build time.  (Otherwise, the
+    package fails to build from source.)
+  * Allow build flags to be customized by setting
+    DEB_BUILD_OPTIONS=noopt or DEB_CFLAGS_APPEND=-Werror in the
+    build-time environment.
+  * Build-Depends: dpkg-dev (>= 1.15.7) for dpkg-buildflags.
+
+ -- Jonathan Nieder <jrnie...@gmail.com>  Thu, 03 Mar 2011 01:48:21 -0600
+
 axis2c (1.6.0-2) unstable; urgency=low
 
   * Fix patches/03_enable-security to enable both security
diff --git a/debian/control b/debian/control
index d451552..0292743 100644
--- a/debian/control
+++ b/debian/control
@@ -5,7 +5,7 @@ DM-Upload-Allowed: yes
 Uploaders: Daniel Nurmi <nu...@eucalyptus.com>, Graziano Obertelli 
<grazi...@eucalyptus.com>, Chris Grzegorczyk <g...@eucalyptus.com>, Thierry 
Carrez <thierry.car...@ubuntu.com>
 XSBC-Original-Maintainer: Soren Hansen <so...@ubuntu.com>, Thierry Carrez 
<thierry.car...@ubuntu.com>
 Maintainer: Kyo Lee <kyo....@eucalyptus.com>
-Build-Depends: cdbs, debhelper (>= 7), autotools-dev, libxml2-dev, 
libapr1-dev, apache2-threaded-dev, zlib1g-dev, libssl-dev
+Build-Depends: cdbs, debhelper (>= 7), dpkg (>= 1.15.7), autotools-dev, 
libxml2-dev, libapr1-dev, apache2-threaded-dev, zlib1g-dev, libssl-dev
 Standards-Version: 3.9.1
 Homepage: http://ws.apache.org/axis2/c/
 
diff --git a/debian/rules b/debian/rules
index 821a809..0cc9e03 100755
--- a/debian/rules
+++ b/debian/rules
@@ -3,6 +3,11 @@
 include /usr/share/cdbs/1/rules/debhelper.mk
 include /usr/share/cdbs/1/class/autotools.mk
 
+# NEEDSWORK: Simplify when cdbs learns to use dpkg-buildflags.
+CFLAGS := -ansi -Wall -Wno-implicit-function-declaration \
+       $(shell dpkg-buildflags --get CFLAGS) \
+       -D_LARGEFILE64_SOURCE -D_GNU_SOURCE
+
 DEB_CONFIGURE_PREFIX:=/usr/lib/axis2
 DEB_CONFIGURE_EXTRA_FLAGS := --with-apache2=/usr/include/apache2 
--with-apr=/usr/include/apr-1.0 --enable-openssl --enable-multi-thread=no
 
-- 
1.7.4.1




-- 
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org

Reply via email to