[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#730599: marked as done (makeinfo -D 'var value' doesn't work)



Your message dated Wed, 07 May 2014 22:34:02 +0000
with message-id <E1WiAPa-0000GF-0O@franck.debian.org>
and subject line Bug#730599: fixed in texinfo 5.2.0.dfsg.1-3
has caused the Debian Bug report #730599,
regarding makeinfo -D 'var value' doesn't work
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 owner@bugs.debian.org
immediately.)


-- 
730599: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=730599
Debian Bug Tracking System
Contact owner@bugs.debian.org with problems
--- Begin Message ---
Package: texinfo
Version: 5.2.0.dfsg.1-2
Severity: important
Tags: patch

Hello,

In new versions of texinfo, the behaviour of makeinfo -D option changed
so that the -D "variable value" no longer works.

eg.

$ cat test.texi
@value{var1}
$ # older version (4.13)
$ makeinfo -v -D 'var1 foo' -o test.info test.texi
makeinfo (GNU texinfo) 4.13
Making info file `test.info' from `test.texi'.
$ cat test.info
This is test.info, produced by makeinfo version 4.13 from test.texi.

foo

$ # new version of makeinfo (5.2)
$ makeinfo -v -D 'var1 foo' -o test.info test.texi
test.texi:1: warning: undefined flag: var1
Output file test.info
test.texi: warning: document without nodes
gyx@miz:~/bugs.d.o/texinfo$ cat test.info
This is test.info, produced by makeinfo version 5.2 from test.texi.

{No value for 'var1'}


Tag Table:

End Tag Table
$

A patch is attached that could hopefully fix this bug. (However, I
didn't check the old implementation's source for the exact semantics
of "-D".)

Cheers,

GUO Yixuan

-- System Information:
Debian Release: jessie/sid
  APT prefers unstable
  APT policy: (990, 'unstable'), (1, 'experimental')
Architecture: amd64 (x86_64)

Kernel: Linux 3.11-1-amd64 (SMP w/4 CPU cores)
Locale: LANG=C, LC_CTYPE=C (charmap=ANSI_X3.4-1968)
Shell: /bin/sh linked to /bin/dash

Versions of packages texinfo depends on:
ii  libc6                   2.17-93
ii  libintl-perl            1.23-1
ii  libtext-unidecode-perl  0.04-2
ii  libxml-libxml-perl      2.0107+dfsg-1

texinfo recommends no packages.

Versions of packages texinfo suggests:
pn  texinfo-doc-nonfree          <none>
pn  texlive-base                 <none>
pn  texlive-generic-recommended  <none>
pn  texlive-latex-base           <none>

--- a/tp/texi2any.pl
+++ b/tp/texi2any.pl
@@ -924,7 +924,15 @@ There is NO WARRANTY, to the extent perm
                         document_warn($message);
                       }
                     },
- 'D=s' => sub {$parser_default_options->{'values'}->{$_[1]} = 1;},
+ 'D=s' => sub {
+    my $var = $_[1];
+    my @field = split /\s+/, $var;
+    if (@field == 1) {
+      $parser_default_options->{'values'}->{$var} = 1;
+    } else {
+      $parser_default_options->{'values'}->{$field[0]} = $field[1];
+    }
+ },
  'U=s' => sub {delete $parser_default_options->{'values'}->{$_[1]};},
  'init-file=s' => sub {
     locate_and_load_init_file($_[1], [ @conf_dirs, @program_init_dirs ]);

--- End Message ---
--- Begin Message ---
Source: texinfo
Source-Version: 5.2.0.dfsg.1-3

We believe that the bug you reported is fixed in the latest version of
texinfo, 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 730599@bugs.debian.org,
and the maintainer will reopen the bug report if appropriate.

Debian distribution maintenance software
pp.
Norbert Preining <preining@debian.org> (supplier of updated texinfo 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 ftpmaster@ftp-master.debian.org)


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA256

Format: 1.8
Date: Thu, 08 May 2014 07:09:44 +0900
Source: texinfo
Binary: texinfo info install-info
Architecture: source amd64
Version: 5.2.0.dfsg.1-3
Distribution: unstable
Urgency: medium
Maintainer: Debian TeX maintainers <debian-tex-maint@lists.debian.org>
Changed-By: Norbert Preining <preining@debian.org>
Description: 
 info       - Standalone GNU Info documentation browser
 install-info - Manage installed documentation in info format
 texinfo    - Documentation system for on-line information and printed output
Closes: 730599 740343
Changes: 
 texinfo (5.2.0.dfsg.1-3) unstable; urgency=medium
 .
   * fix broken man pages due to missing tex at build time (Closes: #740343)
   * add patch for texi2any.pl pulled from upstream (Closes: #730599)
   * bump standards version to 3.9.5, no changes necessary
Checksums-Sha1: 
 6b704739c1710940d4a2b85800b7b0d61b6d21c2 2133 texinfo_5.2.0.dfsg.1-3.dsc
 5c85ad47a4407e34152c584894e29d14f44c772f 23580 texinfo_5.2.0.dfsg.1-3.debian.tar.xz
 a0550f1d7c4aa0927d977f97d87a4f068fe8d72d 955900 texinfo_5.2.0.dfsg.1-3_amd64.deb
 2e8bfecc6ef94af54bfc6f8e98661ed460021c34 268714 info_5.2.0.dfsg.1-3_amd64.deb
 293cfe4502580d6bc398b5cbf4b833aaeb7256eb 194018 install-info_5.2.0.dfsg.1-3_amd64.deb
Checksums-Sha256: 
 d6d68396153b61826160f7d57bbabe10a6a2f28260d469759709228240bedeb0 2133 texinfo_5.2.0.dfsg.1-3.dsc
 0398786bcb3a99dc5d43e2127e567da328b106ca0cbe841815fe8c38d333e4e4 23580 texinfo_5.2.0.dfsg.1-3.debian.tar.xz
 7d09a8a1024afdb658afbdfb5b3d5186acfa86ef12aa7b0e2c7bf1e3a24bfa6d 955900 texinfo_5.2.0.dfsg.1-3_amd64.deb
 ad9d26709c079bb7d61190fa3f855d0b424198554dc6b307d909c728dfdb67fd 268714 info_5.2.0.dfsg.1-3_amd64.deb
 97700a87fb79ca539245fc36266e9f1c3db14868b1c065b2f5a365ef7d25dfb5 194018 install-info_5.2.0.dfsg.1-3_amd64.deb
Files: 
 7cd6af3f1929e9f331cbba70325099af 955900 text standard texinfo_5.2.0.dfsg.1-3_amd64.deb
 8981fd89bbfaa4d87ab855f150ff7fb6 268714 doc important info_5.2.0.dfsg.1-3_amd64.deb
 365102b066cb187cbb87ba8c52ee85fc 194018 doc important install-info_5.2.0.dfsg.1-3_amd64.deb
 fc7af330a046f52271b786fd3dfb98f1 2133 doc standard texinfo_5.2.0.dfsg.1-3.dsc
 a3bfcaeed4d1e207f43ba0d4d5b67628 23580 doc standard texinfo_5.2.0.dfsg.1-3.debian.tar.xz

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1

iQIVAwUBU2qxi2yspEiGDNwTAQjDpg/8Dbldg9IBvWJ0VP0xvwEfvQtSzjdfpSXE
MxjNwV+4JiT8/PEmZRY3LhJ4kpG/BDAG1mtHS7q4RnqzqKJE4vTNJoxXS8eBEQ84
f5TO88JJ/N+Mvt9TTYlgkn6B7jjZljXvGDPGcEkPDxDl1UFlQkC1naWjZFdMM3dt
AZVa2f7aE/NO4TntnsrJ/D0nv/+K9gqLoqJ/oo7UZDlP5Op4qx5ldhKxwsHXWGJO
XvcEob/5jNb1lwu5K5O/RBRWbJNAPX8Fi+euycxYys1NLwyHppK1M+Oslw7+BsCc
sYMIzgTn81FVwUsHXSHEibOFxdDaLKYO3+X/e+fnMqW+cH3P0GvuxZ2dKs/KyJ/K
KRzYMQt26nid1wvr6CsOJYUrse7yoaCcI05c9pImBvOvln5CkOoNXUQj8yD4ZI2N
oo4YDn5Ae1oQFoAfWmtKd4GYc3Cdnhq2a5CAy7Wv3fRRSvYzzruZB4wa3OVXqCJD
8xUOkOLTgbxKSAp9YR85yqXl8hUQy1V85PbN7ZO907qYTPeh1QzUfgE84jlF88fs
cY9YMg8FFxJ6k9hRmdlKPAnunW0jGYrwJ2w4Mi90Mp3offVI92PIbFzfHOy5+wz7
NUtiXXuLVQSkHEJ9k53h2kc8m8A+gVfKAeZ9FK/phuJHns6sWTz5yIrrdVzym6J0
WXafl9aQu0M=
=DRtn
-----END PGP SIGNATURE-----

--- End Message ---

Reply to: