tags 667374 + patch
thanks

uploaded to delayed/5, part of the boost transition
diff -Nru sinfo-0.0.42/debian/changelog sinfo-0.0.42/debian/changelog
--- sinfo-0.0.42/debian/changelog       2012-05-10 20:31:49.000000000 +0200
+++ sinfo-0.0.42/debian/changelog       2012-05-10 20:31:50.000000000 +0200
@@ -1,3 +1,10 @@
+sinfo (0.0.42-1.1) unstable; urgency=low
+
+  * Non maintainer upload.
+  * Work around build failure with GCC 4.7. Closes: #667374.
+
+ -- Matthias Klose <d...@debian.org>  Thu, 10 May 2012 20:24:14 +0200
+
 sinfo (0.0.42-1) unstable; urgency=low
 
   * [d36ccf5] Imported Upstream version 0.0.42
diff -Nru sinfo-0.0.42/debian/rules sinfo-0.0.42/debian/rules
--- sinfo-0.0.42/debian/rules   2012-05-10 20:31:49.000000000 +0200
+++ sinfo-0.0.42/debian/rules   2012-05-10 20:31:50.000000000 +0200
@@ -17,13 +17,9 @@
 DEB_BUILD_GNU_TYPE  ?= $(shell dpkg-architecture -qDEB_BUILD_GNU_TYPE)
 
 
-CFLAGS = -Wall -g
+CFLAGS = $(shell dpkg-buildflags --get CFLAGS)
+CXXFLAGS = $(shell dpkg-buildflags --get CXXFLAGS) -fpermissive
 
-ifneq (,$(findstring noopt,$(DEB_BUILD_OPTIONS)))
-       CFLAGS += -O0
-else
-       CFLAGS += -O2
-endif
 ifeq (,$(findstring nostrip,$(DEB_BUILD_OPTIONS)))
        INSTALL_PROGRAM += -s
 endif
@@ -31,6 +27,7 @@
 config.status: configure
        dh_testdir
        # Add here commands to configure the package.
+       CFLAGS="$(CFLAGS)" CXXFLAGS="$(CXXFLAGS)" \
        ./configure --host=$(DEB_HOST_GNU_TYPE)\
                         --build=$(DEB_BUILD_GNU_TYPE) \
                         --prefix=/usr \

Reply via email to