Your message dated Mon, 03 Feb 2020 23:18:16 +0000
with message-id <[email protected]>
and subject line Bug#950567: fixed in wp2latex 3.86-2
has caused the Debian Bug report #950567,
regarding FTBFS: expected unqualified-id before string constant
to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact [email protected]
immediately.)


-- 
950567: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=950567
Debian Bug Tracking System
Contact [email protected] with problems
--- Begin Message ---
Package: src:wp2latex
Version: 3.86-1
Control: tags -1 ftbfs patch

--

Dear maintainer,
latest 3.86-1 fails to build on multiple architectures with the
following error :
---
In file included from wp2latex.cc:29:
wp2latex.h:20:25: error: expected unqualified-id before string constant
   20 | #define version         "3.86"
      |                         ^~~~~~
---

Actually that "version" keyword collides deep in some arch-specific header : for
example on ppc64el, I get this :
---
# 201 "/usr/include/powerpc64le-linux-gnu/asm/ptrace.h" 3 4
struct ppc_debug_info {

# 202 "/usr/include/powerpc64le-linux-gnu/asm/ptrace.h"
__u32 "3.86"
---

Renaming from "version" to "versionwp2l" in the source, for example, does the 
trick.

Regards,


F.
diff -Nru wp2latex-3.86/debian/patches/fix-version-keyword-FTBFS.patch 
wp2latex-3.86/debian/patches/fix-version-keyword-FTBFS.patch
--- wp2latex-3.86/debian/patches/fix-version-keyword-FTBFS.patch        
1970-01-01 01:00:00.000000000 +0100
+++ wp2latex-3.86/debian/patches/fix-version-keyword-FTBFS.patch        
2019-12-20 20:56:49.000000000 +0100
@@ -0,0 +1,64 @@
+--- a/sources.cc/pass2.cc
++++ b/sources.cc/pass2.cc
+@@ -292,7 +292,7 @@
+ int i;
+ string TeX_RelativeFigDir;
+ 
+-  fprintf(this->LaTeX,_("%% This file was created by the WP2LaTeX program 
version: %s \n"), version );
++  fprintf(this->LaTeX,_("%% This file was created by the WP2LaTeX program 
version: %s \n"), versionwp2l );
+   if(LaTeX_Version<0x300)
+     {
+     fprintf(this->LaTeX, "\\documentstyle[11pt,");
+--- a/sources.cc/wp2latex.cc
++++ b/sources.cc/wp2latex.cc
+@@ -319,7 +319,7 @@
+  if(Verbosing < 1) return;
+  printf(_("\n>>>WP2LaTeX<<< Conversion program: From Wordperfect to LaTeX 
Version %s \n"
+         "  (c) Made by J.Fojtik  ---- Date : 1996-2019\n"),
+-          version);
++          versionwp2l);
+ }
+ 
+ 
+@@ -733,7 +733,7 @@
+       else fprintf(logg,_("%% log file for converted file %s, %s ver %d.%d\n"
+                         "%% conversion program WP2LaTeX v. %s from %s.\n"),
+                          wpd_filename(), chk(FilForD.DocumentType), 
FilForD.DocVersion>>8, FilForD.DocVersion & 0xFF,
+-                           version, versiondate);
++                           versionwp2l, versiondate);
+       }
+     }
+ 
+--- a/sources.cc/wp2latex.h
++++ b/sources.cc/wp2latex.h
+@@ -17,7 +17,7 @@
+ 
+ #define LineLength   80               /* Split lines after more than 
LineLength charcters */
+ 
+-#define version         "3.86"
++#define versionwp2l         "3.86"
+ #define versiondate "21 Dec 2019"  /* day (space) month (space) full year */
+ 
+ #ifndef false
+--- a/sources.cc/wp2l_lib.cc
++++ b/sources.cc/wp2l_lib.cc
+@@ -1842,7 +1842,7 @@
+               }
+       if(!strcmp(name, "v"))
+               {
+-              fprintf(err,_("wp2latex %s   %s\n  
modules:("),version,versiondate);
++              fprintf(err,_("wp2latex %s   %s\n  
modules:("),versionwp2l,versiondate);
+               FFormatTranslator *Fx;
+               Fx = FFormatTranslator::first();
+               while(Fx!=NULL)
+--- a/sources.cc/images.cc
++++ b/sources.cc/images.cc
+@@ -222,7 +222,7 @@
+ %%%%IncludeFeature: *PageSize Letter\n\
+ %%%%EndSetup\n\
+ %%%%EndComments\n",
+-Filename,version,versiondate);
++Filename,versionwp2l,versiondate);
+ 
+ fprintf(PostScript,"\
+ /$F2psDict 200 dict def\n\
diff -Nru wp2latex-3.86/debian/patches/series 
wp2latex-3.86/debian/patches/series
--- wp2latex-3.86/debian/patches/series 2019-12-20 20:56:49.000000000 +0100
+++ wp2latex-3.86/debian/patches/series 2019-12-20 20:56:49.000000000 +0100
@@ -3,3 +3,4 @@
 sources.cc_pass1_3.cc.patch
 sources.cc_wp2l_lib.cc.patch
 no_copy_binary.patch
+fix-version-keyword-FTBFS.patch

Attachment: pgpghN2zCdqqA.pgp
Description: PGP signature


--- End Message ---
--- Begin Message ---
Source: wp2latex
Source-Version: 3.86-2

We believe that the bug you reported is fixed in the latest version of
wp2latex, which is due to be installed in the Debian FTP archive.

A summary of the changes between this version and the previous one is
attached.

Thank you for reporting the bug, which will now be closed.  If you
have further comments please address them to [email protected],
and the maintainer will reopen the bug report if appropriate.

Debian distribution maintenance software
pp.
Hilmar Preusse <[email protected]> (supplier of updated wp2latex package)

(This message was generated automatically at their request; if you
believe that there is a problem with it please contact the archive
administrators by mailing [email protected])


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA512

Format: 1.8
Date: Mon, 03 Feb 2020 22:51:49 +0100
Source: wp2latex
Architecture: source
Version: 3.86-2
Distribution: unstable
Urgency: medium
Maintainer: Hilmar Preusse <[email protected]>
Changed-By: Hilmar Preusse <[email protected]>
Closes: 950567
Changes:
 wp2latex (3.86-2) unstable; urgency=medium
 .
   * Add patch from Jaroslav Fojtik <[email protected]> to fix FTBFS on
     arm64, ppc64el & ppc64: FTBFS_arm64_ppc64el_ppc64.patch.
   * Add patch fix-version-keyword-FTBFS.patch from
     Frédéric Bonnard <[email protected]> to fix FTBFS on m68k & powerpc
     (Closes: #950567)
Checksums-Sha1:
 fb20c9872129b6ca5061d9fafe4d8e02f6c4888c 1896 wp2latex_3.86-2.dsc
 ba475f35060f6df19041d66c630178f8759f0683 5864 wp2latex_3.86-2.debian.tar.xz
 90b4e8c442e4b6cb794e42abea6a890150fb994c 6702 wp2latex_3.86-2_i386.buildinfo
Checksums-Sha256:
 1c0732758a8e3a1e633e1906b40a2baf81a075289e8fa752a5aaba62a4d69c0a 1896 
wp2latex_3.86-2.dsc
 76f974afcabe2f206d9fa2975148d00c0b0f5cd98ce8f0b5b05f357bbadb6a9c 5864 
wp2latex_3.86-2.debian.tar.xz
 6e5bae19b5e00a96dd4d7f91f32a65e0ea79014ef81b63433ff25dcc6bf69b36 6702 
wp2latex_3.86-2_i386.buildinfo
Files:
 696eb3e6ffa96f240bcd9a27d30107bc 1896 text optional wp2latex_3.86-2.dsc
 93519596e9f997110d3791d3f525a535 5864 text optional 
wp2latex_3.86-2.debian.tar.xz
 794d50230c52c135f270fd83953b4191 6702 text optional 
wp2latex_3.86-2_i386.buildinfo

-----BEGIN PGP SIGNATURE-----

iQKTBAEBCgB9FiEEaXGmC/nkbIhxf16kxiZYRqvgLIsFAl44loNfFIAAAAAALgAo
aXNzdWVyLWZwckBub3RhdGlvbnMub3BlbnBncC5maWZ0aGhvcnNlbWFuLm5ldDY5
NzFBNjBCRjlFNDZDODg3MTdGNUVBNEM2MjY1ODQ2QUJFMDJDOEIACgkQxiZYRqvg
LIsXWRAApK9VlN24St6G1GmaatJkdfXhFphj4biJiZbzK87yu6p2xOY/5Gucusgk
3QiUU+z7ENmT5G3LKZ1hmHvELKEF1XfUu1P/V3ttCWL767qIa+8W3ismtop6+s5e
cGl4c+mY9G84hGsh1AtvmiKXCyONF8+NsKYBBjlsfL8bTp9Os40L6bbuifkXbC4L
/UXLDjjrocIHby2KK7juzFPgdEU/ry9UREhFFU3v8ej1Hg6DNw/Z6bpyItTLMZuL
0aj4pmZm0zkQ+8ORpU17GD5VOA32zDp8xi8lV1bcdqd63MUUvmiI5OL9iG8RCU+w
kaoyMVG31FO3soZ5tU0PnagfRlgyOuxlIgQv+yt7fzuBcVBWz8kkT0lJ2xsHJHmg
KdRc/VUWj4hwCutmtM77GzgalTwrCr5hi/y0lkmzq0IozYZS6fweXqFVQkOyeqFs
dtVgMwB1yx5KYwEAtyylOXQSEkIb7VDOZc7n1qUXcK51aDXPpZOIuOi+QK9YMnC0
Va8bP/POMLbg7/LRnsgYd/rHouGw60CnjupTqYJ/ciqVheRCC2PFVNPYO0xczilt
z4w1PWN3NtpfUtgfItHmav5z3XSaGqqYw0c+PPcWBTSQ2R4f7AgRfPT3WLbYkk3+
67B8sYL4Ig0sWqtSSaOeqc0NRkOG8SwQnsvFl+t8346VGl3Z+H0=
=gUMA
-----END PGP SIGNATURE-----

--- End Message ---

Reply via email to