I'm attaching a debdiff so that `patch' tag works.

/mjt
diff -Nru iproute2-3.9.0/debian/changelog iproute2-3.9.0/debian/changelog
--- iproute2-3.9.0/debian/changelog     2013-05-08 16:27:40.000000000 +0400
+++ iproute2-3.9.0/debian/changelog     2013-06-07 21:54:32.000000000 +0400
@@ -1,3 +1,14 @@
+iproute2 (3.9.0-2.1) unstable; urgency=medium
+
+  * Non-maintainer upload.
+  * Add debian/patches/suseconds-to-long.diff to fix FTBFS on sparc
+    (Closes: #711540)
+  * Urgency is set to medium because due to the above bug, the package
+    is holding a long and complicated list of other packages which
+    grows and becomes more complicated.
+
+ -- Michael Tokarev <m...@tls.msk.ru>  Fri, 07 Jun 2013 21:42:09 +0400
+
 iproute2 (3.9.0-2) unstable; urgency=low
 
   * Give up and just use an epoch for the transitional packages
diff -Nru iproute2-3.9.0/debian/patches/series 
iproute2-3.9.0/debian/patches/series
--- iproute2-3.9.0/debian/patches/series        2013-04-10 23:08:18.000000000 
+0400
+++ iproute2-3.9.0/debian/patches/series        2013-06-07 21:39:14.000000000 
+0400
@@ -1,2 +1,3 @@
 moo.diff
 txtdocs.diff
+suseconds-to-long.diff
diff -Nru iproute2-3.9.0/debian/patches/suseconds-to-long.diff 
iproute2-3.9.0/debian/patches/suseconds-to-long.diff
--- iproute2-3.9.0/debian/patches/suseconds-to-long.diff        1970-01-01 
03:00:00.000000000 +0300
+++ iproute2-3.9.0/debian/patches/suseconds-to-long.diff        2013-06-07 
21:41:56.000000000 +0400
@@ -0,0 +1,19 @@
+From: Michael Tokarev <m...@tls.msk.ru>
+Subject: util: cast suseconds_t to unsigned long
+
+This fixes an FTBFS on sparc:
+
+ utils.c:802:2: error: format '%lu' expects argument of type 'long unsigned 
int',
+    but argument 4 has type '__suseconds_t' [-Werror=format]
+
+--- a/lib/utils.c
++++ b/lib/utils.c
+@@ -799,7 +799,7 @@ int print_timestamp(FILE *fp)
+ 
+       tstr = asctime(localtime(&tv.tv_sec));
+       tstr[strlen(tstr)-1] = 0;
+-      fprintf(fp, "Timestamp: %s %lu usec\n", tstr, tv.tv_usec);
++      fprintf(fp, "Timestamp: %s %lu usec\n", tstr, (unsigned 
long)tv.tv_usec);
+       return 0;
+ }
+ 

Reply via email to