Your message dated Thu, 11 Nov 2021 15:03:43 +0000
with message-id <[email protected]>
and subject line Bug#904849: fixed in maxima 5.45.1-3
has caused the Debian Bug report #904849,
regarding maxima: stderr is sent to stdout
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 [email protected]
immediately.)


-- 
904849: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=904849
Debian Bug Tracking System
Contact [email protected] with problems
--- Begin Message ---
Package: maxima
Version: 5.41.0-3
Severity: normal

While writing a script for Maxima, I wanted to print output to stdout while
simultaneously printing debug output to stderr. I am reporting this as a debian
bug first because console I/O likely ties in to the underlying libraries and
build configuration.



In the documentation for the Maxima "printf" function it states:

> If dest is a stream or true, then printf returns false. Otherwise, printf
> returns a string containing the output. By default the streams stdin, stdout
> and stderr are defined.

However, the output I expected to go to stderr actually went to stdout instead.



Here is a one-liner to show the behaviour:

> maxima --very-quiet -r >maxima-stdout 2>maxima-stderr \
>    'printf(stdout,"stdout~%")$ printf(stderr,"stderr~%")$'

I expect two files: maxima-stdout should contain "stdout" and maxima-stderr
should contan "stderr". Instead, maxima-stdout contains both lines and
maxima-stderr is empty.



Starting up a Maxima session, stdout and stderr does not seem to mean anything
until using them with printf(). After doing that, I can print what stdout and
stderr are connected to:

> Maxima 5.41.0 http://maxima.sourceforge.net
> using Lisp GNU Common Lisp (GCL) GCL 2.6.12
> Distributed under the GNU Public License. See the file COPYING.
> Dedicated to the memory of William Schelter.
> The function bug_report() provides bug reporting information.
> (%i1) stdout;
> (%o1)                               stdout
> (%i2) stderr;
> (%o2)                               stderr
> (%i3) printf(stdout,"Hello")$
> Hello
> (%i4) printf(stderr,"World")$
> World
> (%i5) stdout;
> (%o5)                 #<synonym stream to *TERMINAL-IO*>
> (%i6) stderr;
> (%o6)                 #<synonym stream to *TERMINAL-IO*>



My Maxima bug_report() says this:

-------------------------------------------------------------
Maxima version: "5.41.0"
Maxima build date: "2018-03-29 16:06:55"
Host type: "x86_64-pc-linux-gnu"
Lisp implementation type: "GNU Common Lisp (GCL)"
Lisp implementation version: "GCL 2.6.12"
-------------------------------------------------------------



-- System Information:
Debian Release: buster/sid
  APT prefers testing
  APT policy: (500, 'testing')
Architecture: amd64 (x86_64)
Foreign Architectures: i386

Kernel: Linux 4.17.0-1-amd64 (SMP w/4 CPU cores)
Locale: LANG=en_US.utf8, LC_CTYPE=en_US.utf8 (charmap=UTF-8), 
LANGUAGE=en_US.utf8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled

Versions of packages maxima depends on:
ii  libc6         2.27-5
ii  libgmp10      2:6.1.2+dfsg-3
ii  libreadline7  7.0-5
ii  libx11-6      2:1.6.5-1

Versions of packages maxima recommends:
ii  gnuplot-x11   5.2.2+dfsg1-2
ii  maxima-share  5.41.0-3

Versions of packages maxima suggests:
ii  maxima-doc    5.41.0-3
pn  maxima-emacs  <none>
pn  texmacs       <none>
ii  tk [wish]     8.6.0+9
pn  xmaxima       <none>

-- no debconf information

--- End Message ---
--- Begin Message ---
Source: maxima
Source-Version: 5.45.1-3
Done: Camm Maguire <[email protected]>

We believe that the bug you reported is fixed in the latest version of
maxima, 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 [email protected],
and the maintainer will reopen the bug report if appropriate.

Debian distribution maintenance software
pp.
Camm Maguire <[email protected]> (supplier of updated maxima 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 [email protected])


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

Format: 1.8
Date: Wed, 10 Nov 2021 19:32:51 +0000
Source: maxima
Architecture: source
Version: 5.45.1-3
Distribution: unstable
Urgency: medium
Maintainer: Camm Maguire <[email protected]>
Changed-By: Camm Maguire <[email protected]>
Closes: 898853 904849 953862
Changes:
 maxima (5.45.1-3) unstable; urgency=medium
 .
   * remove readline from build-depends
   * Bug fix: "imaxima always gives &quot;LaTeX error in:&quot;", thanks to
     Kumar Appaiah (Closes: #953862).
   * build-depend latest gcl
   * Bug fix: "stderr is sent to stdout", thanks to Anders Andersson
     (Closes: #904849).
   * Bug fix: "bug in draw with terminal=epslatex_standalone", thanks to
     b606 (Closes: #898853).  The original hang is fixed.  I will leave it
     to upstream to consider your helpful annotations patches.
Checksums-Sha1:
 b7476aab4f2ee925870505dd48d3d3e89a607bcc 2146 maxima_5.45.1-3.dsc
 2c26b4e6b9291869c11658b68389bfd3498dbe60 1761044 maxima_5.45.1-3.debian.tar.xz
 086f99b08fb6f6b490761a0a82cd7103c5ec5ecf 8768 maxima_5.45.1-3_source.buildinfo
Checksums-Sha256:
 773330070619aa78308d658ad26ed125d1643a788a8edc748b2ce9daac04891b 2146 
maxima_5.45.1-3.dsc
 a84da3a8a69dfa3298049c43c8957657c53c06c532680bd2e04fca1b2b962294 1761044 
maxima_5.45.1-3.debian.tar.xz
 393ec130826577468a34f82cf73307ea0e02a024ca889362464c4646765cc271 8768 
maxima_5.45.1-3_source.buildinfo
Files:
 af37bb4c5b53fcfab4f905ad86ae8919 2146 math optional maxima_5.45.1-3.dsc
 8c909e27b4cf13779c1489c5fc80ca7c 1761044 math optional 
maxima_5.45.1-3.debian.tar.xz
 76558d1c4393d1b4b93be31111e8a33a 8768 math optional 
maxima_5.45.1-3_source.buildinfo

-----BEGIN PGP SIGNATURE-----

iQIzBAEBCAAdFiEE/iFPNjaXdzJC6BbsuEXOUQ+bcU0FAmGNLLcACgkQuEXOUQ+b
cU1sgw/9FBKD491k60DHnRya0dqKktfYuWTNwsoxywzbYO75h2dZ0wsJz3IUuaD7
iMmY0spWqJ1zL+JpMMvKuhcNeYOcVibXGE7FnVtcm92x/0hOCnjhtelWQdunznma
Rs9EQ6e9zwhGCqqV81JYE9G/FM2Q1+oO8lu8Ga1rGFMLymtDFHmmKwIYuMr7ZjfC
PShF+mLwmkvDJeQ486vNSnzGWy3MR+G9yvc5RHqiQww+zvLQsrk1tKeqnC3o7V/1
nl1tNnjhL0LrDjr6zpsyw8zc0WeMA56cIPwWfChZ15mR4PfrpYiGBc5R188Dfr1I
LEB0COoMld8JDPRKk5rkVkXaWvs/xWZOHWSidMFrfh2KAiUQJbW46oISKwheN5D0
o5dVsOnuaL7m4ylJEwVdwjaAZTSnt5SczzC0m5aj/TH0BvvnsbytegIk4s1cf6Oh
yzcntopEgv3+xrxeIr8YhpLdrMRGyjELG7g0MpC9QpR9jprriE2bhrHbC16HzEj5
faU/2fpeTEoQwM0EfqoGQ9VCflV4g5+odV2zu/Wup9VFtGj/gRxaFtezgYqJpkfE
GdPwg7JE6nrZCVjdO88uqJNkhIqleQYYiwuIXMHPpxz4D7Z00gXx9JaBI98ophDE
2ueVAZeEv5p3DotRRxN5U1YT3Thi/1JAyLFMvW/OCRG+hgUQqDA=
=qrnk
-----END PGP SIGNATURE-----

--- End Message ---

Reply via email to