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

Bug#342781: marked as done (tex-common: postinst fails when shell is /bin/ksh)



Your message dated Sun, 11 Dec 2005 07:47:23 -0800
with message-id <E1ElTQ3-00027T-Eq@spohr.debian.org>
and subject line Bug#342781: fixed in tex-common 0.13
has caused the attached Bug report 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 I am
talking about this indicates a serious mail system misconfiguration
somewhere.  Please contact me immediately.)

Debian bug tracking system administrator
(administrator, Debian Bugs database)

--------------------------------------
Received: (at submit) by bugs.debian.org; 10 Dec 2005 11:44:59 +0000
>From robert@debian.org Sat Dec 10 03:44:59 2005
Return-path: <robert@debian.org>
Received: from pingu.ii.uj.edu.pl ([149.156.65.40] ident=postfix)
	by spohr.debian.org with esmtp (Exim 4.50)
	id 1El39v-0002Np-BN
	for submit@bugs.debian.org; Sat, 10 Dec 2005 03:44:59 -0800
Received: by pingu.ii.uj.edu.pl (Postfix, from userid 99)
	id 5A4991BE47; Sat, 10 Dec 2005 12:44:57 +0100 (CET)
Received: from vox.robbo.home (pingu [127.0.0.1])
	by pingu.ii.uj.edu.pl (Postfix) with ESMTP id D13E61BCBD
	for <submit@bugs.debian.org>; Sat, 10 Dec 2005 12:44:56 +0100 (CET)
Received: by vox.robbo.home (Postfix, from userid 1000)
	id A50EAE35EE; Sat, 10 Dec 2005 12:44:22 +0100 (CET)
Date: Sat, 10 Dec 2005 12:44:22 +0100
From: Robert Luberda <robert@debian.org>
To: Debian Bug Tracking System <submit@bugs.debian.org>
Subject: tex-common: postinst fails when shell is /bin/ksh
Message-ID: <[🔎] 20051210114422.GA10816@vox.robbo.home>
MIME-Version: 1.0
Content-Type: multipart/mixed; boundary="SUOF0GtieIMvvwua"
Content-Disposition: inline
X-Reportbug-Version: 3.18
X-Operating-System: Linux
X-Best-Team: Mutt & Vim
Organization: Debian
User-Agent: Mutt/1.5.11
Delivered-To: submit@bugs.debian.org
X-Spam-Checker-Version: SpamAssassin 2.60-bugs.debian.org_2005_01_02 
	(1.212-2003-09-23-exp) on spohr.debian.org
X-Spam-Level: 
X-Spam-Status: No, hits=-8.0 required=4.0 tests=BAYES_00,HAS_PACKAGE 
	autolearn=no version=2.60-bugs.debian.org_2005_01_02


--SUOF0GtieIMvvwua
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline

Package: tex-common
Version: 0.12
Severity: normal
Tags: patch

Hi,
when /bin/sh points to pdksh, postinst fails with the error:
	An essential entry is wrong in /etc/texmf/texmf.d/55Fonts.cnf:
	TEXFONTMAPS does not contain
	{fonts/map,}/{$progname,pdftex,dvips,}//

However, the file contains the above entry. The problem is caused by the
ksh's brace expansion mechanism causing the following line to fail:
    if ! echo $line | grep -q '{fonts/map,}/{\$progname,pdftex,dvips,}//';

The $line is not quoted causing ksh to expand the expression in braces:

[141]/home/robert> echo $SHELL                                      
/bin/ksh
[142]/home/robert> line='{fonts/map,}/{$progname,pdftex,dvips,}//' 
[143]/home/robert> echo $line
fonts/map/$progname// fonts/map/pdftex// fonts/map/dvips// fonts/map///
/$progname// /pdftex// /dvips// ///


Attached patch fixes the problem.


Best Regards
robert

-- System Information:
Debian Release: testing/unstable
  APT prefers unstable
  APT policy: (100, 'unstable')
Architecture: i386 (i686)
Shell:  /bin/sh linked to /bin/pdksh
Kernel: Linux 2.6.14
Locale: LANG=pl_PL, LC_CTYPE=pl_PL (charmap=ISO-8859-2)

Versions of packages tex-common depends on:
ii  debconf [debconf-2.0]         1.4.62     Debian configuration management sy
ii  ucf                           2.004      Update Configuration File: preserv

tex-common recommends no packages.

-- debconf information excluded

--SUOF0GtieIMvvwua
Content-Type: text/plain; charset=us-ascii
Content-Disposition: attachment; filename="tex-common.postinst.patch"

--- tex-common.postinst.old	2005-12-10 12:26:27.000000000 +0100
+++ tex-common.postinst	2005-12-10 12:27:24.000000000 +0100
@@ -175,7 +175,7 @@
     echo "Exiting."
     failed=true
   else
-    if ! echo $line | grep -q '{fonts/map,}/{\$progname,pdftex,dvips,}//'; then
+    if ! echo "$line" | grep -q '{fonts/map,}/{\$progname,pdftex,dvips,}//'; then
       echo
       echo "An essential entry is wrong in $file:"
       echo "TEXFONTMAPS does not contain"
@@ -188,7 +188,7 @@
     fi
     # the following is for backwards compatibility; must be dropped once all 
     # font packages follow TDS 1.1
-    if ! echo $line | grep -q '/dvips//'; then
+    if ! echo "$line" | grep -q '/dvips//'; then
       echo
       echo "An essential entry is wrong in $file:"
       echo "TEXFONTMAPS does not contain"

--SUOF0GtieIMvvwua--

---------------------------------------
Received: (at 342781-close) by bugs.debian.org; 11 Dec 2005 15:51:05 +0000
>From katie@ftp-master.debian.org Sun Dec 11 07:51:05 2005
Return-path: <katie@ftp-master.debian.org>
Received: from katie by spohr.debian.org with local (Exim 4.50)
	id 1ElTQ3-00027T-Eq; Sun, 11 Dec 2005 07:47:23 -0800
From: =?utf-8?q?Frank_K=C3=BCster?= <frank@debian.org>
To: 342781-close@bugs.debian.org
X-Katie: $Revision: 1.60 $
Subject: Bug#342781: fixed in tex-common 0.13
Message-Id: <E1ElTQ3-00027T-Eq@spohr.debian.org>
Sender: Archive Administrator <katie@ftp-master.debian.org>
Date: Sun, 11 Dec 2005 07:47:23 -0800
X-Spam-Checker-Version: SpamAssassin 2.60-bugs.debian.org_2005_01_02 
	(1.212-2003-09-23-exp) on spohr.debian.org
X-Spam-Level: 
X-Spam-Status: No, hits=-6.0 required=4.0 tests=BAYES_00,HAS_BUG_NUMBER 
	autolearn=no version=2.60-bugs.debian.org_2005_01_02

Source: tex-common
Source-Version: 0.13

We believe that the bug you reported is fixed in the latest version of
tex-common, which is due to be installed in the Debian FTP archive:

tex-common_0.13.dsc
  to pool/main/t/tex-common/tex-common_0.13.dsc
tex-common_0.13.tar.gz
  to pool/main/t/tex-common/tex-common_0.13.tar.gz
tex-common_0.13_all.deb
  to pool/main/t/tex-common/tex-common_0.13_all.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 342781@bugs.debian.org,
and the maintainer will reopen the bug report if appropriate.

Debian distribution maintenance software
pp.
Frank Küster <frank@debian.org> (supplier of updated tex-common 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@debian.org)


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Format: 1.7
Date: Sun, 11 Dec 2005 14:53:05 +0100
Source: tex-common
Binary: tex-common
Architecture: source all
Version: 0.13
Distribution: unstable
Urgency: low
Maintainer: teTeX maintainers <debian-tetex-maint@lists.debian.org>
Changed-By: Frank Küster <frank@debian.org>
Description: 
 tex-common - Common infrastructure for using and building TeX in Debian
Closes: 340031 341941 342781
Changes: 
 tex-common (0.13) unstable; urgency=low
 .
   * tex-common now provides the symlink /usr/share/texmf/doc -->
     ../doc/texmf, because tetex-doc now puts its files into TEXMFDIST
     [frank].
   * Do no longer install teTeX's common.* files and dsf-patch.mk, they are
     no longer used.
   * Implement --flavor for dh_installtexfonts, first flavors are only
     for generating config files for maps [preining].
   * Fix brace expansion in pdksh, patch from Robert Luberda
     (closes: #342781) [preining]
   * Add fonts/hbf to the search path for T1 fonts, this is needed by
     cjk-latex. [frank]
   * Translations:
     - Update Czech debconf translation, thanks to Miroslav Kure
       <kurem@upcase.inf.upol.cz> (closes: #341941) [frank]
     - Fix italian translation file, this really closes: #340031 [frank]
Files: 
 17dc79d357c3ddce58b85395bb9f1286 734 tex optional tex-common_0.13.dsc
 c6a2169f490ea3ecf3be788496af6356 238033 tex optional tex-common_0.13.tar.gz
 8edcfd0a6aead33e400dfce3bf3df3ed 230696 tex optional tex-common_0.13_all.deb

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.1 (GNU/Linux)

iD8DBQFDnEeH+xs9YyJS+hoRAgNxAJ9Nv7EiVxs/aJkOfseiaFxO4aHCzQCeKmSB
PXQNhyi1V/yST5atZve2f5g=
=ExhW
-----END PGP SIGNATURE-----



Reply to: