Package: leptonlib
Version: 1.62-1.1
Severity: important
Tags: patch
Justification: fails to build from source


This package tries to build with -Werror but triggers multiple
warn_unused_result warnings (e.g. fread, fscanf, system, etc.) and a
handful of other warnings as well, causing the package to FTBFS on
Ubuntu Lucid with gcc 4.4.

https://bugs.launchpad.net/ubuntu/+source/leptonlib/+bug/506757

http://launchpadlibrarian.net/36726967/buildlog_ubuntu-lucid-i386.leptonlib_1.62-1.1_FAILEDTOBUILD.txt.gz
=== modified file 'debian/changelog'
--- a/debian/changelog  2009-12-04 16:22:14 +0000
+++ b/debian/changelog  2010-01-13 02:44:35 +0000
@@ -1,3 +1,10 @@
+leptonlib (1.62-1.1ubuntu1~kamalmostafa~ppa0~lucid) lucid; urgency=low
+
+  * {src,prog}/makefile: Turn off -Werror; too many warn_unused_result's
+    with gcc 4.4.
+
+ -- Kamal Mostafa <ka...@whence.com>  Tue, 12 Jan 2010 18:34:03 -0800
+
 leptonlib (1.62-1.1) unstable; urgency=low
 
   * Non-maintainer upload.

=== modified file 'debian/control'
--- a/debian/control    2007-06-01 15:56:49 +0000
+++ b/debian/control    2010-01-13 02:39:44 +0000
@@ -1,6 +1,7 @@
 Source: leptonlib
 Priority: optional
-Maintainer: Jeff Breidenbach <j...@debian.org>
+Maintainer: Ubuntu Developers <ubuntu-devel-disc...@lists.ubuntu.com>
+XSBC-Original-Maintainer: Jeff Breidenbach <j...@debian.org>
 Build-Depends: debhelper (>= 4.0.0), libtiff4-dev (>= 3.7.4), libpng12-dev
 Standards-Version: 3.7.2
 Section: graphics

=== modified file 'prog/makefile'
--- a/prog/makefile     2009-12-04 16:22:14 +0000
+++ b/prog/makefile     2010-01-13 02:43:34 +0000
@@ -79,7 +79,8 @@
 IMAGELIB_INCL =        $(ROOT_DIR)/src
 
 
-CC =           gcc -ansi -Werror -DANSI -fPIC
+CC =           gcc -ansi -DANSI -fPIC
+#CC =          gcc -ansi -Werror -DANSI -fPIC
 #CC =            g++ -Werror -fPIC
 
 

=== modified file 'src/makefile'
--- a/src/makefile      2009-07-28 15:10:11 +0000
+++ b/src/makefile      2010-01-13 02:33:54 +0000
@@ -100,7 +100,8 @@
 #        ERROR_* logging, and to remove all DEBUG information dependent
 #        on whether or not NO_CONSOLE_IO has been defined.
 #     use -D_CYGWIN_ENVIRON (and without -fPIC) for cygwin
-CC =           gcc -ansi -Werror -D_BSD_SOURCE -DANSI -fPIC
+CC =           gcc -ansi -D_BSD_SOURCE -DANSI -fPIC
+#CC =          gcc -ansi -Werror -D_BSD_SOURCE -DANSI -fPIC
 #CC =          gcc -ansi -Werror -D_CYGWIN_ENVIRON -DANSI
 #CC =          gcc -ansi -Werror -DNO_CONSOLE_IO -D_BSD_SOURCE -DANSI -fPIC
 #CC =          g++ -Werror -D_BSD_SOURCE -fPIC

Reply via email to