severity 526668 important
#gcc 4.4 is in unstable now
tags 526668 patch
thanks

Here's a patch to fix it. Turns off strict-aliasing optimization and
adds a missing header.

diff -u nepenthes-0.2.2/debian/rules nepenthes-0.2.2/debian/rules
--- nepenthes-0.2.2/debian/rules
+++ nepenthes-0.2.2/debian/rules
@@ -3,6 +3,7 @@
 DEB_BUILD_GNU_TYPE  ?= $(shell dpkg-architecture -qDEB_BUILD_GNU_TYPE)
 
 CFLAGS = -Wall -g
+CXXFLAGS += -fno-strict-aliasing
 
 ifneq (,$(findstring noopt,$(DEB_BUILD_OPTIONS)))
        CFLAGS += -O0
diff -u nepenthes-0.2.2/debian/patches/00list 
nepenthes-0.2.2/debian/patches/00list
--- nepenthes-0.2.2/debian/patches/00list
+++ nepenthes-0.2.2/debian/patches/00list
@@ -5,0 +6 @@
+06_includes_for_eglibc_2.10.dpatch
only in patch2:
unchanged:
--- nepenthes-0.2.2.orig/debian/patches/06_includes_for_eglibc_2.10.dpatch
+++ nepenthes-0.2.2/debian/patches/06_includes_for_eglibc_2.10.dpatch
@@ -0,0 +1,18 @@
+#! /bin/sh /usr/share/dpatch/dpatch-run
+## 06_more_includes.dpatch by Ilya Barygin <bary...@gmail.com>
+##
+## All lines beginning with `## DP:' are a description of the patch.
+## DP: Add missing #include to modules/submit-postgres/PGDownloadContext.cpp
+
+...@dpatch@
+diff -urNad nepenthes-0.2.2~/modules/submit-postgres/PGDownloadContext.cpp 
nepenthes-0.2.2/modules/submit-postgres/PGDownloadContext.cpp
+--- nepenthes-0.2.2~/modules/submit-postgres/PGDownloadContext.cpp     
2006-10-29 23:08:42.000000000 +0300
++++ nepenthes-0.2.2/modules/submit-postgres/PGDownloadContext.cpp      
2009-12-10 15:16:08.000000000 +0300
+@@ -41,6 +41,7 @@
+ #include <time.h>
+ #include <errno.h>
+ #include <string.h>
++#include <cstdio>
+ 
+ #include <sstream>
+ #include <map>



-- 
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