Your message dated Tue, 23 Aug 2011 23:49:07 +0000
with message-id <e1qw0ir-0003ej...@franck.debian.org>
and subject line Bug#619786: fixed in texinfo 4.13a.dfsg.1-7
has caused the Debian Bug report #619786,
regarding texi2dvi: Syntax error: Bad function name when dash is /bin/sh (uses
"local" as function name)
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 ow...@bugs.debian.org
immediately.)
--
619786: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=619786
Debian Bug Tracking System
Contact ow...@bugs.debian.org with problems
--- Begin Message ---
Package: texinfo
Version: 4.13a.dfsg.1-6
Severity: important
Forwarded: bug-texi...@gnu.org
Justification: goal-dash; makes autogen ftbfs
Tags: upstream patch
Hi,
With dash is /bin/sh, texi2dvi doesn't seem to work:
| $ texi2dvi
| /usr/bin/texi2dvi: 144: /usr/bin/texi2dvi: Syntax error: Bad function name
| $ sed -ne 144p /usr/bin/texi2dvi
| ) || local () {
| $ dash -c 'true || local () { echo hi; }; echo continuing'; echo $?
| dash: 1: Syntax error: Bad function name
| 2
The cause: texi2dvi conditionally defines a function named "local".
What that condition is is not important for now; the trouble is that
regardless of the condition, dash errors out, considering such a
function declaration to be a syntax error.
At first I thought this was an odd corner case in application usage
that POSIX allows (such a function could never be used since the
builtin takes precedence, but it could be defined) and that dash was
in error. In fact that first part is true --- POSIX does allow this.
TC1 to the standard is intended not to allow it[1].
In any event, the usage is questionable. Patch to wrap it in "eval"
follows, so shells that implement local as a special builtin can avoid
some worry.
Thoughts?
Thanks for making some nice manuals possible.
Jonathan
[1] http://austingroupbugs.net/view.php?id=383
---
util/texi2dvi | 13 ++++++++-----
1 files changed, 8 insertions(+), 5 deletions(-)
diff --git a/util/texi2dvi b/util/texi2dvi
index 07f4da2..a64af49 100755
--- a/util/texi2dvi
+++ b/util/texi2dvi
@@ -141,11 +141,14 @@ test -n "$TEX" && test -d "$TEX" && unset TEX
}
test_local
test $foo = bar
-) || local () {
- case $1 in
- *=*) eval "$1";;
- esac
-}
+) ||
+eval '
+ local () {
+ case $1 in
+ *=*) eval "$1";;
+ esac
+ }
+'
# cd_orig
--
1.7.4.1
--- End Message ---
--- Begin Message ---
Source: texinfo
Source-Version: 4.13a.dfsg.1-7
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:
info_4.13a.dfsg.1-7_amd64.deb
to main/t/texinfo/info_4.13a.dfsg.1-7_amd64.deb
install-info_4.13a.dfsg.1-7_amd64.deb
to main/t/texinfo/install-info_4.13a.dfsg.1-7_amd64.deb
texinfo_4.13a.dfsg.1-7.diff.gz
to main/t/texinfo/texinfo_4.13a.dfsg.1-7.diff.gz
texinfo_4.13a.dfsg.1-7.dsc
to main/t/texinfo/texinfo_4.13a.dfsg.1-7.dsc
texinfo_4.13a.dfsg.1-7_amd64.deb
to main/t/texinfo/texinfo_4.13a.dfsg.1-7_amd64.deb
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 619...@bugs.debian.org,
and the maintainer will reopen the bug report if appropriate.
Debian distribution maintenance software
pp.
Norbert Preining <prein...@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 ftpmas...@debian.org)
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Format: 1.8
Date: Wed, 24 Aug 2011 08:26:25 +0900
Source: texinfo
Binary: texinfo info install-info
Architecture: source amd64
Version: 4.13a.dfsg.1-7
Distribution: unstable
Urgency: low
Maintainer: Debian TeX maintainers <debian-tex-ma...@lists.debian.org>
Changed-By: Norbert Preining <prein...@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: 541468 584191 611104 611151 612502 619786
Changes:
texinfo (4.13a.dfsg.1-7) unstable; urgency=low
.
* "grep [A-z]" does not work in non-C locale (Closes: #584191)
* add option -h/--help to update-info-dir, and fix the man page according
to it. Patch by Jari Aalto <jari.aa...@cante.net> (Closes: #541468)
* fix lintian errors (missing misc:Depends deps in all packages)
* remove conflicts on xemacs-support, it does not exist
* bump standards version to 3.9.2: change conflicts to breaks as we
are only moving files around (Closes: #611104)
* info dumps core if # of window rows drops below 6 (Closes: #611151)
* d/rules: depend build on $(QUILT_STAMPFN) instead of patch, this fixes
an rare FTBFS caused by the build target having been run twice
(Closes: #612502)
* Add texi2dvi-local-fallback-syntax.diff to make texinfo run on dash
(Closes: #619786)
* Add funny build targets to make lintian happy
Checksums-Sha1:
52e8927cb0f2ac6409cd4fc0f62d9809efb3cfca 1293 texinfo_4.13a.dfsg.1-7.dsc
a4ba09edc95369b293803e77847b58f52ba2c07f 28671 texinfo_4.13a.dfsg.1-7.diff.gz
9cb4a14aed8df560a08ae376a517d5761e600fe5 982658
texinfo_4.13a.dfsg.1-7_amd64.deb
ef52604f60a3637c96c9bf0b662fa38dd346014a 226122 info_4.13a.dfsg.1-7_amd64.deb
f4303891a446618fc0262fbaf4baa231e00314fe 147786
install-info_4.13a.dfsg.1-7_amd64.deb
Checksums-Sha256:
640de1610711c80d0aba4f2e0b7b99cf971f70c55f5592ad6422be3501f50c15 1293
texinfo_4.13a.dfsg.1-7.dsc
1a20b415c3c078d1f69120777770f44ba7b0ad120828bd9bfc21301ebb4eca0f 28671
texinfo_4.13a.dfsg.1-7.diff.gz
bb1db2e95edfaf2fe25f8cc74039643597f9ea7e04b95dfd839e0e9187c32918 982658
texinfo_4.13a.dfsg.1-7_amd64.deb
411517b04410357942568747274568c2f1fb756cb17dc763348a2a7426b8b50a 226122
info_4.13a.dfsg.1-7_amd64.deb
33662ab0d3534cefa16f4fec3a30f5a8df2c39ac0e5518c47f8299d82df49c76 147786
install-info_4.13a.dfsg.1-7_amd64.deb
Files:
93e1f9ff11fc3cc40aa4c31bb73d06a6 1293 doc standard texinfo_4.13a.dfsg.1-7.dsc
abf74ef77ca09a1ca912a477e92df61d 28671 doc standard
texinfo_4.13a.dfsg.1-7.diff.gz
b34da85cd24d20202f36f5a115b81552 982658 text standard
texinfo_4.13a.dfsg.1-7_amd64.deb
76ac470a134999f4788f0547f336c5f5 226122 doc important
info_4.13a.dfsg.1-7_amd64.deb
18f9d4fae97cf37d7433419d3eb9ec12 147786 doc important
install-info_4.13a.dfsg.1-7_amd64.deb
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.11 (GNU/Linux)
iD8DBQFOVDhE0r9KownFsJQRAqODAKCEzVfH3wXO3Cc7Dpr9jwDdOdV3SQCfQtnz
pwmVTax4qjSfUAWyjOVKHOs=
=ztuA
-----END PGP SIGNATURE-----
--- End Message ---