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

Bug#159733: marked as done (tetex-bin: MetaPost `label' primitive produces faulty postscript.)



Your message dated Thu, 5 Sep 2002 16:41:03 +0100
with message-id <20020905154103.GA10847@polya>
and subject line Bug#159733: tetex-bin: MetaPost `label' primitive produces faulty postscript.
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; 5 Sep 2002 15:17:03 +0000
>From stig@brautaset.org Thu Sep 05 10:17:03 2002
Return-path: <stig@brautaset.org>
Received: from host213-122-126-4.in-addr.btopenworld.com (arwen.brautaset.org) [213.122.126.4] 
	by master.debian.org with esmtp (Exim 3.12 1 (Debian))
	id 17myNR-0004h3-00; Thu, 05 Sep 2002 10:17:02 -0500
Received: from stig by arwen.brautaset.org with local (Exim 3.35 #1 (Debian))
	id 17mml7-0002QC-00; Thu, 05 Sep 2002 03:52:41 +0100
From: Stig Brautaset <stig@arwen.brautaset.org>
Subject: tetex-bin: MetaPost `label' primitive produces faulty postscript.
To: submit@bugs.debian.org
X-Mailer: bug 3.3.10.1
Message-Id: <[🔎] E17mml7-0002QC-00@arwen.brautaset.org>
Sender: Stig Brautaset <stig@brautaset.org>
Date: Thu, 05 Sep 2002 03:52:41 +0100
Delivered-To: submit@bugs.debian.org

Package: tetex-bin
Version: 1.0.7+20011202-7
Severity: important

Using the `label' primitive in a MetaPost file makes ghostscript barf.
MetaPost files without the label primitive works fine.

To illustrate the problem, I have made two files: s.mp and t.mp, where
the first contains no labels, thus cause no trouble for gs. I include
the test files, output from MetaPost, the postscript file produced by
MetaPost, and the output from gs.

$ cat s.mp
beginfig(1);
z0=(0,0);
z1=(1in,3in);
z2=(2in,4in);
drawarrow z0..z1..z2;
endfig;
end

$ mpost s.mp
This is MetaPost, Version 0.641 (Web2C 7.3.7)
(s.mp [1] )
1 output file written: s.1
Transcript written on s.log.

$ cat s.1
%!PS
%%BoundingBox: -1 -1 145 289 
%%Creator: MetaPost
%%CreationDate: 2002.05.02:0146
%%Pages: 1
%%EndProlog
%%Page: 1 1
 0 0.5 dtransform truncate idtransform setlinewidth pop [] 0 setdash
 1 setlinecap 1 setlinejoin 10 setmiterlimit
newpath 0 0 moveto
0.10732 77.87582 25.36037 153.63495 72 216 curveto
92.43192 243.3209 116.6791 267.56808 144 288 curveto stroke
newpath 141.97652 284.54926 moveto
142.64444 285.70305 143.31894 286.85332 144 288 curveto
142.70758 287.67079 141.41727 287.3344 140.1291 286.99084 curveto
 closepath
gsave fill grestore stroke
showpage
%%EOF

$ gs s.1
GNU Ghostscript 6.53 (2002-02-13)
Copyright (C) 2002 artofcode LLC, Benicia, CA. All rights reserved.
This software comes with NO WARRANTY: see the file COPYING for details.
>>showpage, press <return> to continue<<
GS>quit

As can be seen, the above caused no trouble for gs. The below, however,
does. I have typed in other examples too, directly from the MetaPost
manual, but all the ones with labels in them fail. Does anyone else
experience this? Is there something fundamentally wrong with my system,
or should I file a bug report?

$ cat t.mp
beginfig(1);
z0=(2in,4in);
label("hello world", z0);
endfig;
end

$ mpost t.mp
This is MetaPost, Version 0.641 (Web2C 7.3.7)
(t.mp [1] )
1 output file written: t.1
Transcript written on t.log.

$ cat t.1
%!PS
%%BoundingBox: 120 284 168 292 
%%Creator: MetaPost
%%CreationDate: 2002.05.02:0146
%%Pages: 1
%*Font: cmr10 9.96265 9.96265 20:80000000000000000c8921
%%EndProlog
%%Page: 1 1
120.18643 284.54074 moveto
(hello world) cmr10 9.96265 fshow
showpage
%%EOF

$ gs t.1
GNU Ghostscript 6.53 (2002-02-13)
Copyright (C) 2002 artofcode LLC, Benicia, CA. All rights reserved.
This software comes with NO WARRANTY: see the file COPYING for details.
Error: /undefined in cmr10
Operand stack:
   (hello world)
Execution stack:
   %interp_exit   .runexec2   --nostringval--   --nostringval--   --nostringval--   2   %stopped_push   --nostringval--   --nostringval--   --nostringval--   false   1   %stopped_push   1   3   %oparray_pop   1   3   %oparray_pop   1   3   %oparray_pop   .runexec2   --nostringval--   --nostringval--   --nostringval--   2   %stopped_push   --nostringval--   --nostringval--   --nostringval--
Dictionary stack:
   --dict:1034/1476(ro)(G)--   --dict:0/20(G)--   --dict:67/200(L)--
Current allocation mode is local
Current file position is 227
GNU Ghostscript 6.53: Unrecoverable error, exit code 1

-- System Information
Debian Release: 3.0
Kernel Version: Linux arwen 2.4.19 #1 Fri Aug 30 19:35:26 BST 2002 i686 unknown

Versions of the packages tetex-bin depends on:
ii  debianutils    1.16           Miscellaneous utilities specific to Debian.
ii  dpkg           1.9.21         Package maintenance system for Debian
ii  ed             0.2-19         The classic unix line editor
ii  libc6          2.2.5-14       GNU C Library: Shared libraries and Timezone
ii  libkpathsea3   1.0.7+20011202 shared libkpathsea for teTeX
ii  libpng2        1.0.12-5       PNG library - runtime
ii  libstdc++2.10- 2.95.4-7       The GNU stdc++ library
ii  libtiff3g      3.5.5-6        Tag Image File Format library
ii  libxaw7        4.1.0-16       X Athena widget set library
ii  tetex-base     1.0.2+20011202 basic teTeX library files
ii  xlibs          4.1.0-16       X Window System client libraries
ii  zlib1g         1.1.4-1        compression library - runtime

---------------------------------------
Received: (at 159733-done) by bugs.debian.org; 5 Sep 2002 15:41:42 +0000
>From J.D.Gilbey@qmul.ac.uk Thu Sep 05 10:41:42 2002
Return-path: <J.D.Gilbey@qmul.ac.uk>
Received: from (giserver.graylab.ac.uk) [212.219.87.30] 
	by master.debian.org with esmtp (Exim 3.12 1 (Debian))
	id 17mylJ-0006Va-00; Thu, 05 Sep 2002 10:41:42 -0500
Received: from polya ([10.0.1.152]) by giserver.graylab.ac.uk
          (Netscape Messaging Server 4.15) with ESMTP id H1Z26X00.O12 for
          <159733-done@bugs.debian.org>; Thu, 5 Sep 2002 16:40:09 +0100 
Received: from jdg by polya with local (Exim 3.36 #1 (Debian))
	id 17myki-00038y-00; Thu, 05 Sep 2002 16:41:04 +0100
Date: Thu, 5 Sep 2002 16:41:03 +0100
From: Julian Gilbey <J.D.Gilbey@qmul.ac.uk>
To: 159733-done@bugs.debian.org
Subject: Re: Bug#159733: tetex-bin: MetaPost `label' primitive produces faulty postscript.
Message-ID: <20020905154103.GA10847@polya>
References: <[🔎] E17mml7-0002QC-00@arwen.brautaset.org>
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
In-Reply-To: <[🔎] E17mml7-0002QC-00@arwen.brautaset.org>
User-Agent: Mutt/1.4i
Delivered-To: 159733-done@bugs.debian.org

On Thu, Sep 05, 2002 at 03:52:41AM +0100, Stig Brautaset wrote:
> Package: tetex-bin
> Version: 1.0.7+20011202-7
> Severity: important
> 
> Using the `label' primitive in a MetaPost file makes ghostscript barf.
> MetaPost files without the label primitive works fine.

RTFM.  See pages 1 and 21--22 of the MetaPost documentation.  In your
case, you will need to pass the output through dvips via a (La)TeX
file.

   Julian

-- 
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-

      Julian Gilbey, Dept of Maths, Queen Mary, Univ. of London
              website: http://www.maths.qmul.ac.uk/~jdg/
   Debian GNU/Linux Developer, see: http://people.debian.org/~jdg/
     Visit http://www.thehungersite.com/ to help feed the hungry



Reply to: