Have verified package builds succesfully with gcc-7 in current sid chroot.
Made another house-keeping change, updated debdiff attached.  (If I have more
time I'll upload later.)

Bye,

Joost


diff -Nru pinfo-0.6.9/debian/changelog pinfo-0.6.9/debian/changelog
--- pinfo-0.6.9/debian/changelog        2017-10-04 05:39:34.000000000 +0200
+++ pinfo-0.6.9/debian/changelog        2017-10-04 05:38:11.000000000 +0200
@@ -1,3 +1,18 @@
+pinfo (0.6.9-5.2) unstable; urgency=low
+
+  * NMU
+  * Get rid of undefined references to inline functions when compiling
+    with gcc-7 using -Os by first declaring these 3 functions without
+    using the inline keyword.  Thanks Matthias Klose for reporting,
+    Adrian Bunk for writing a test case and Jakub Jelinek for pointing
+    the way to a fix in
+    https://gcc.gnu.org/bugzilla/show_bug.cgi?id=81734#c3.
+    (Closes: #853613) [06_gcc_7_Os_inline_functions.dpatch]
+  * Use source format '3.0 (quilt)' [debian/source/format], no longer
+    build-depend upon deprecated package dpatch.
+
+ -- Joost van Baal-Ilić <joos...@debian.org>  Wed, 04 Oct 2017 05:38:11 +0200
+
 pinfo (0.6.9-5.1) unstable; urgency=low
 
   * NMU
diff -Nru pinfo-0.6.9/debian/control pinfo-0.6.9/debian/control
--- pinfo-0.6.9/debian/control  2017-10-04 05:39:34.000000000 +0200
+++ pinfo-0.6.9/debian/control  2017-10-04 05:36:03.000000000 +0200
@@ -3,7 +3,7 @@
 Priority: optional
 Maintainer: Bas Zoetekouw <b...@debian.org>
 Standards-Version: 3.8.3
-Build-Depends: debhelper (>=5), dpatch, bzip2, gettext, libreadline-dev, 
libncursesw5-dev, texinfo, install-info, autotools-dev
+Build-Depends: debhelper (>=5), bzip2, gettext, libreadline-dev, 
libncursesw5-dev, texinfo, install-info, autotools-dev
 Homepage: http://pinfo.alioth.debian.org/
 
 Package: pinfo
diff -Nru pinfo-0.6.9/debian/patches/00list pinfo-0.6.9/debian/patches/00list
--- pinfo-0.6.9/debian/patches/00list   2017-10-04 05:39:34.000000000 +0200
+++ pinfo-0.6.9/debian/patches/00list   2017-10-04 04:56:25.000000000 +0200
@@ -3,3 +3,4 @@
 03_typos.dpatch
 04_link_order.dpatch
 05_term.h.dpatch
+06_gcc_7_Os_inline_functions.dpatch
diff -Nru pinfo-0.6.9/debian/patches/06_gcc_7_Os_inline_functions.dpatch 
pinfo-0.6.9/debian/patches/06_gcc_7_Os_inline_functions.dpatch
--- pinfo-0.6.9/debian/patches/06_gcc_7_Os_inline_functions.dpatch      
1970-01-01 01:00:00.000000000 +0100
+++ pinfo-0.6.9/debian/patches/06_gcc_7_Os_inline_functions.dpatch      
2017-10-04 04:56:10.000000000 +0200
@@ -0,0 +1,40 @@
+#! /bin/sh /usr/share/dpatch/dpatch-run
+## 06_gcc_7_Os_inline_functions.dpatch by Joost van Baal-Ilić 
<joos...@debian.org>
+##
+## All lines beginning with `## DP:' are a description of the patch.
+## DP: Get rid of undefined references to inline functions when compiling
+## DP: with gcc-7 using -Os by first declaring these 3 functions without
+## DP: using the inline keyword.
+## DP: Thanks Matthias Klose for reporting, Adrian Bunk for writing a test
+## DP: case and Jakub Jelinek for pointing the way to a fix.
+
+@DPATCH@
+
+--- pinfo-0.6.9/src/initializelinks.c  2006-03-15 22:54:56.000000000 +0100
++++ pinfo-0.6.9/src/initializelinks.c  2017-10-04 04:37:18.782964086 +0200
+@@ -75,6 +75,7 @@
+  * checks if an item belongs to tag table. returns 1 on success and 0 on
+  * failure.  It should be optimised...
+  */
++extern int exists_in_tag_table(char *item);
+ inline int
+ exists_in_tag_table(char *item)
+ {
+--- pinfo-0.6.9/src/filehandling_functions.c   2006-03-16 16:15:02.000000000 
+0100
++++ pinfo-0.6.9/src/filehandling_functions.c   2017-10-04 04:37:59.519976805 
+0200
+@@ -551,6 +551,7 @@
+       return 1;
+ }
+ 
++extern void buildcommand(char *dest, char *command, char *filename, const 
char *tmpfilename);
+ inline void
+ buildcommand(char *dest, char *command, char *filename, const char 
*tmpfilename)
+ {
+@@ -561,6 +562,7 @@
+       strcat(dest, tmpfilename);
+ }
+ 
++extern void builddircommand(char *dest, char *command, char *filename, const 
char *tmpfilename);
+ inline void
+ builddircommand(char *dest, char *command, char *filename, const char 
*tmpfilename)
+ {
diff -Nru pinfo-0.6.9/debian/source/format pinfo-0.6.9/debian/source/format
--- pinfo-0.6.9/debian/source/format    1970-01-01 01:00:00.000000000 +0100
+++ pinfo-0.6.9/debian/source/format    2017-10-04 05:35:40.000000000 +0200
@@ -0,0 +1 @@
+3.0 (quilt)

Attachment: signature.asc
Description: Digital signature

Reply via email to