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

Bug#165436: marked as done (tetex-bin: Declaring a shell rule for including graphics causes latex to report that the command failed)



Your message dated Mon, 18 Nov 2002 23:20:33 -0500
with message-id <E18DzsH-0000mq-00@auric.debian.org>
and subject line Bug#165436: fixed in tetex-bin 1.0.7+20021025-1
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; 19 Oct 2002 02:53:30 +0000
>From anderse@harp.hpl.hp.com Fri Oct 18 21:53:29 2002
Return-path: <anderse@harp.hpl.hp.com>
Received: from deimos.hpl.hp.com [192.6.19.190] 
	by master.debian.org with esmtp (Exim 3.12 1 (Debian))
	id 182jk1-0006Dc-00; Fri, 18 Oct 2002 21:53:29 -0500
Received: from harp.hpl.hp.com (harp.hpl.hp.com [15.4.90.214])
	by deimos.hpl.hp.com (8.9.3 (PHNE_24419)/HPL-PA Relay) with ESMTP id TAA09415
	for <submit@bugs.debian.org>; Fri, 18 Oct 2002 19:53:18 -0700 (PDT)
Received: (from anderse@localhost)
	by harp.hpl.hp.com (8.9.3 (PHNE_24419)/8.9.3 HPLabs Workstation) id TAA04298;
	Fri, 18 Oct 2002 19:53:17 -0700 (PDT)
X-Authentication-Warning: harp.hpl.hp.com: anderse set sender to anderse@harp.hpl.hp.com using -f
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
Message-ID: <15792.51485.154009.7389@harp.hpl.hp.com>
Date: Fri, 18 Oct 2002 19:53:17 -0700
From: Eric Anderson <anderse@hpl.hp.com>
To: submit@bugs.debian.org
Subject: tetex-bin: Declaring a shell rule for including graphics causes latex to report that the command failed
X-Mailer: VM 7.03 under Emacs 20.7.1
Delivered-To: submit@bugs.debian.org
X-Spam-Status: No, hits=-0.3 required=5.0
	tests=SPAM_PHRASE_00_01,X_AUTH_WARNING
	version=2.41
X-Spam-Level: 

Package: tetex-bin
Version: 1.0.7+20011202-8.1
Severity: normal
Tags: patch

If you declare a graphics rule in latex, such as:
\DeclareGraphicsRule{.jpg}{eps}{.jpg.bb}{`/home/anderse/public_html/convert-ps #1 }

latex the file, and then try to run dvips on the .dvi file, you will
get messages of the form:
Execution of  </home/anderse/public_html/convert-ps tiny/img-3861.jpg > failed

Further inspection indicates that the problem is that dvips is using
popen(command,"rb"); and with the testing libc (2.2.5-14.3) popen will
always return NULL and claim EINVAL, as can be verified using the following
two-line c program:

#include <stdio.h>
int main() {  FILE *f = popen("echo","rb");printf("%x\n",f); }

Changing the "rb" to "r" will make the popen work.

Inspection of the source code found two locations where popen was used
in "rb" mode.  The following patch fixes both of those.  It is unclear
to me from the popen man page whether popen() is supposed to accept
"rb", fopen() does.  If you belive that popen should be working in
this case, then a bug should be filed against glibc, although I would
imagine it would have a similarly simple fix.  The version -8.1 is for
the install of my patch on the -8 debian version of the package.
	-Eric

*** texk/dvipsk/finclude.c-orig	2002-10-18 19:19:35.000000000 -0700
--- texk/dvipsk/finclude.c	2002-10-18 19:20:11.000000000 -0700
***************
*** 410,416 ****
  /*
   *   Allow scanning of ` commands.  Better return same results both times.
   */
!       f = popen(filename+1, FOPEN_RBIN_MODE) ;
        to_close = USE_PCLOSE ;
     } else {
        f = search(figpath, filename, READ) ;
--- 410,416 ----
  /*
   *   Allow scanning of ` commands.  Better return same results both times.
   */
!       f = popen(filename+1, FOPEN_R_MODE) ;
        to_close = USE_PCLOSE ;
     } else {
        f = search(figpath, filename, READ) ;
*** texk/dvipsk/output.c-orig	2002-10-18 19:19:41.000000000 -0700
--- texk/dvipsk/output.c	2002-10-18 19:20:40.000000000 -0700
***************
*** 174,180 ****
  #endif
        if (secure == 0) {
           (void)sprintf(errbuf, "Execution of  <%s> failed ", s) ;
!          f = popen(s, FOPEN_RBIN_MODE) ;
  	}
  	else {
        (void)sprintf(errbuf,"Secure mode is %d so execute <%s> will not run", secure,s) ;
--- 174,180 ----
  #endif
        if (secure == 0) {
           (void)sprintf(errbuf, "Execution of  <%s> failed ", s) ;
!          f = popen(s, FOPEN_R_MODE) ;
  	}
  	else {
        (void)sprintf(errbuf,"Secure mode is %d so execute <%s> will not run", secure,s) ;


-- System Information
Debian Release: testing/unstable
Architecture: i386
Kernel: Linux eric-6100 2.4.18 #1 Sat May 18 21:33:38 PDT 2002 i686
Locale: LANG=en_US, LC_CTYPE=en_US

Versions of packages tetex-bin depends on:
ii  debianutils             1.16.3           Miscellaneous utilities specific t
ii  dpkg                    1.10.4           Package maintenance system for Deb
ii  ed                      0.2-19           The classic unix line editor
ii  libc6                   2.2.5-14.3       GNU C Library: Shared libraries an
ii  libkpathsea3            1.0.7+20011202-8 shared libkpathsea for teTeX
ii  libpng3                 1.2.1-4          PNG library - runtime
ii  libstdc++2.10-glibc2.2  1:2.95.4-11      The GNU stdc++ library
ii  libtiff3g               3.5.5-6          Tag Image File Format library
ii  libxaw7                 4.1.0-17         X Athena widget set library
ii  tetex-base              1.0.2+20011202-3 basic teTeX library files
ii  xlibs                   4.1.0-17         X Window System client libraries
ii  zlib1g                  1:1.1.4-4        compression library - runtime

---------------------------------------
Received: (at 165436-close) by bugs.debian.org; 19 Nov 2002 04:23:35 +0000
>From katie@auric.debian.org Mon Nov 18 22:23:34 2002
Return-path: <katie@auric.debian.org>
Received: from auric.debian.org [206.246.226.45] (mail)
	by master.debian.org with esmtp (Exim 3.12 1 (Debian))
	id 18DzvA-00006p-00; Mon, 18 Nov 2002 22:23:32 -0600
Received: from katie by auric.debian.org with local (Exim 3.35 1 (Debian))
	id 18DzsH-0000mq-00; Mon, 18 Nov 2002 23:20:33 -0500
From: Atsuhito KOHDA <kohda@debian.org>
To: 165436-close@bugs.debian.org
X-Katie: $Revision: 1.28 $
Subject: Bug#165436: fixed in tetex-bin 1.0.7+20021025-1
Message-Id: <E18DzsH-0000mq-00@auric.debian.org>
Sender: Archive Administrator <katie@auric.debian.org>
Date: Mon, 18 Nov 2002 23:20:33 -0500
Delivered-To: 165436-close@bugs.debian.org

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

libkpathsea-dev_1.0.7+20021025-1_i386.deb
  to pool/main/t/tetex-bin/libkpathsea-dev_1.0.7+20021025-1_i386.deb
libkpathsea3_1.0.7+20021025-1_i386.deb
  to pool/main/t/tetex-bin/libkpathsea3_1.0.7+20021025-1_i386.deb
tetex-bin_1.0.7+20021025-1.diff.gz
  to pool/main/t/tetex-bin/tetex-bin_1.0.7+20021025-1.diff.gz
tetex-bin_1.0.7+20021025-1.dsc
  to pool/main/t/tetex-bin/tetex-bin_1.0.7+20021025-1.dsc
tetex-bin_1.0.7+20021025-1_i386.deb
  to pool/main/t/tetex-bin/tetex-bin_1.0.7+20021025-1_i386.deb
tetex-bin_1.0.7+20021025.orig.tar.gz
  to pool/main/t/tetex-bin/tetex-bin_1.0.7+20021025.orig.tar.gz



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 165436@bugs.debian.org,
and the maintainer will reopen the bug report if appropriate.

Debian distribution maintenance software
pp.
Atsuhito KOHDA <kohda@debian.org> (supplier of updated tetex-bin 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: Mon, 18 Nov 2002 11:45:33 +0900
Source: tetex-bin
Binary: libkpathsea3 tetex-bin libkpathsea-dev
Architecture: source i386
Version: 1.0.7+20021025-1
Distribution: unstable
Urgency: low
Maintainer: teTeX maintainers <debian-tetex-maint@lists.debian.org>
Changed-By: Atsuhito KOHDA <kohda@debian.org>
Description: 
 libkpathsea-dev - kpathsea.a and include files for teTeX
 libkpathsea3 - shared libkpathsea for teTeX
 tetex-bin  - teTeX binary files
Closes: 69609 73670 148171 159372 161516 165436 167058 167185
Changes: 
 tetex-bin (1.0.7+20021025-1) unstable; urgency=low
 .
   * New Upstream Release (20021025 beta version)
    - web2c 7.3.9 in 20021025 version.
    - now could be built with the new bison.  (Closes: #167058)
    - dvipsk/finclude.c was fixed in upstream. (Closes: #165436)
    - context would now work fine.  (Closes: #161516, #148171)
   * Added README.Debian but yet very brief one.  [kohda]
   * Added menu support and Depends: perl-tk for texdoctk.  [kohda]
   * Used the original tarball and applied necesary patches explicitly
     to clarify our modifications.  [kohda]
    - Fixed patch for texmf.in; we didn't use this file or generated texmf.cnf
      directly but I hoped that the fix would clarify our changed for files
      in texmf.d
    - Along with the above, we updated 45TeXinputs, 95NonPath
    - patch for texk/klibtool seems crucial (patch-deb)!!!
    - patch for texk/web2c/pdftexdir/pdfcrypt-full.c, writefont.c, writet1.c
      and texk/web2c/web2c/convert was done (patch-src).
      patch for texk/dvipsk/protos.h seemed unnecessary now.
    - patch for texk/makeindexk/Makefile.in, texk/tetex/Makefile.in and
      texk/web2c/mpware/Makefile.in seems adopted in original.
    - changes of perl scripts in texk/tetex seems not necessary (not sure).
    - Applied a patch for texdoctk and also a patch for texdoc but this was
      experimental yet.
   * Added experimental debconf support, thanks to Adam C Powell IV
     <hazelsct@mit.edu>  [kohda]  (Closes: #69609, #73670)
   * Changed dependency on tetex-base precisely.  [kohda]
   * Fixed postrm.  [kohda] (Closes: #167185)
   * Built with t1lib, libpng3 and libwww.  [kohda]  (Closes: #159372)
   * Note:
    - modified debian/restore-symlinks a bit because upstream source tree
      was changed.  Also I added removing symlinks because cvs-upgrade expected
      there was no symlinks and this was for *.orig.tar.gz  [kohda]
Files: 
 1e9b38078222234c41de76ae2977c018 959 tex optional tetex-bin_1.0.7+20021025-1.dsc
 880bc00ac66a2df6976653253559d543 10359183 tex optional tetex-bin_1.0.7+20021025.orig.tar.gz
 a36286614a2a0e680a64f5808141d66d 42053 tex optional tetex-bin_1.0.7+20021025-1.diff.gz
 4032f4936d8ef36ac980279c53c232f4 2770986 tex optional tetex-bin_1.0.7+20021025-1_i386.deb
 bb248ebda5b95f9aa8dd6b8fce301b5c 42516 libs optional libkpathsea3_1.0.7+20021025-1_i386.deb
 9828151a40fe46a58bf83898182c9d18 62656 devel optional libkpathsea-dev_1.0.7+20021025-1_i386.deb

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

iD8DBQE92a8o1IXdL1v6kOwRAi+SAKCEUAJvcNPkuPCRLiVodOxwiYygqwCePnki
ziN85eaKz98bvTp1Z0GctMQ=
=Gudz
-----END PGP SIGNATURE-----



Reply to: