#61357: Port does not reset red colour of its output

classic Classic list List threaded Threaded
11 messages Options
Reply | Threaded
Open this post in threaded view
|

#61357: Port does not reset red colour of its output

macports-4
#61357: Port does not reset red colour of its output
-----------------------+--------------------
 Reporter:  ballapete  |      Owner:  (none)
     Type:  defect     |     Status:  new
 Priority:  Normal     |  Milestone:
Component:  ports      |    Version:  2.6.3
 Keywords:  catalina   |       Port:  port
-----------------------+--------------------
 When running `port` on the command line inside a `*shell*` buffer inside
 GNU Emacs it happens that it outputs some text in red colour – and does
 not take this this away:

 {{{
 --->  Updating database of binaries
 --->  Scanning binaries for linking errors
 --->  No broken files found.
 --->  No broken ports found.
 root 252 /\
 }}}

 From the line `--->  No broken files found.` the terminal is in red
 (foreground colour).

--
Ticket URL: <https://trac.macports.org/ticket/61357>
MacPorts <https://www.macports.org/>
Ports system for macOS
Reply | Threaded
Open this post in threaded view
|

Re: #61357: Port does not reset red colour of its output

macports-4
#61357: Port does not reset red colour of its output
------------------------+----------------------
  Reporter:  ballapete  |      Owner:  (none)
      Type:  defect     |     Status:  new
  Priority:  Normal     |  Milestone:
 Component:  ports      |    Version:  2.6.3
Resolution:             |   Keywords:  catalina
      Port:  port       |
------------------------+----------------------

Comment (by ballapete):

 After

 {{{
 --->  Fetching archive for clang-9.0
 --->  Attempting to fetch
 clang-9.0-9.0.1_1+analyzer+libstdcxx.darwin_19.x86_64.tbz2 from
 https://packages.macports.org/clang-9.0
 }}}

 the foreground colour turned normal.

--
Ticket URL: <https://trac.macports.org/ticket/61357#comment:1>
MacPorts <https://www.macports.org/>
Ports system for macOS
Reply | Threaded
Open this post in threaded view
|

Re: #61357: Port does not reset red colour of its output

macports-4
In reply to this post by macports-4
#61357: Port does not reset red colour of its output
------------------------+----------------------
  Reporter:  ballapete  |      Owner:  (none)
      Type:  defect     |     Status:  new
  Priority:  Normal     |  Milestone:
 Component:  ports      |    Version:  2.6.3
Resolution:             |   Keywords:  catalina
      Port:  port       |
------------------------+----------------------

Comment (by jmroot):

 None of those messages try to use any colour codes or behave any
 differently depending on where the output is going. They use `ui_msg`
 which is just a wrapper for `puts` to stdout when using the `port` front
 end. This seems more likely to be an emacs bug.

--
Ticket URL: <https://trac.macports.org/ticket/61357#comment:2>
MacPorts <https://www.macports.org/>
Ports system for macOS
Reply | Threaded
Open this post in threaded view
|

Re: #61357: Port does not reset red colour of its output

macports-4
In reply to this post by macports-4
#61357: Port does not reset red colour of its output
------------------------+----------------------
  Reporter:  ballapete  |      Owner:  (none)
      Type:  defect     |     Status:  new
  Priority:  Normal     |  Milestone:
 Component:  base       |    Version:  2.6.3
Resolution:             |   Keywords:  catalina
      Port:             |
------------------------+----------------------
Changes (by ryandesign):

 * component:  ports => base
 * port:  port =>


--
Ticket URL: <https://trac.macports.org/ticket/61357#comment:3>
MacPorts <https://www.macports.org/>
Ports system for macOS
Reply | Threaded
Open this post in threaded view
|

Re: #61357: Port does not reset red colour of its output

macports-4
In reply to this post by macports-4
#61357: Port does not reset red colour of its output
------------------------+----------------------
  Reporter:  ballapete  |      Owner:  (none)
      Type:  defect     |     Status:  new
  Priority:  Normal     |  Milestone:
 Component:  base       |    Version:  2.6.3
Resolution:             |   Keywords:  catalina
      Port:             |
------------------------+----------------------

Comment (by ryandesign):

 Is this the same problem you previously reported in #53404?

--
Ticket URL: <https://trac.macports.org/ticket/61357#comment:4>
MacPorts <https://www.macports.org/>
Ports system for macOS
Reply | Threaded
Open this post in threaded view
|

Re: #61357: Port does not reset red colour of its output

macports-4
In reply to this post by macports-4
#61357: Port does not reset red colour of its output
------------------------+----------------------
  Reporter:  ballapete  |      Owner:  (none)
      Type:  defect     |     Status:  new
  Priority:  Normal     |  Milestone:
 Component:  base       |    Version:  2.6.3
Resolution:             |   Keywords:  catalina
      Port:             |
------------------------+----------------------

Comment (by ballapete):

 Replying to [comment:4 ryandesign]:
 > Is this the same problem you previously reported in #53404?

 Yes, it is. Since I cannot use X11 on Catalina (it would need to create
 font cache files in read-only areas) I have to use Terminal regularly and
 need to use GNU Emacs' terminal emulation (outside its *compilation*
 buffer). There might be a bug in GNU Emacs: The red colour starts with
 "No" which is often output by `configure` scripts – and coloured in red.
 Could be some software particle interprets `port`'s output as that of
 `configure`…

--
Ticket URL: <https://trac.macports.org/ticket/61357#comment:5>
MacPorts <https://www.macports.org/>
Ports system for macOS
Reply | Threaded
Open this post in threaded view
|

Re: #61357: Port does not reset red colour of its output

macports-4
In reply to this post by macports-4
#61357: Port does not reset red colour of its output
------------------------+----------------------
  Reporter:  ballapete  |      Owner:  (none)
      Type:  defect     |     Status:  new
  Priority:  Normal     |  Milestone:
 Component:  base       |    Version:  2.6.3
Resolution:             |   Keywords:  catalina
      Port:             |
------------------------+----------------------

Comment (by ballapete):

 It's also possible that `port`'s progress meter causes some failures. It's
 a stream of ANSI ESC sequences that are emitted. It's at least possible
 that some byte gets lost and some bits get garbled – often the system
 shows some load when installing software and then it's likely that some
 failures might happen. Is it possible to switch that progress meter off
 and nothing else?

--
Ticket URL: <https://trac.macports.org/ticket/61357#comment:6>
MacPorts <https://www.macports.org/>
Ports system for macOS
Reply | Threaded
Open this post in threaded view
|

Re: #61357: Port does not reset red colour of its output

macports-4
In reply to this post by macports-4
#61357: Port does not reset red colour of its output
------------------------+----------------------
  Reporter:  ballapete  |      Owner:  (none)
      Type:  defect     |     Status:  new
  Priority:  Normal     |  Milestone:
 Component:  base       |    Version:  2.6.3
Resolution:             |   Keywords:  catalina
      Port:             |
------------------------+----------------------
Changes (by ballapete):

 * Attachment "Foreground colour changes while installing a port.png"
 added.

 Foreground colour changes while installing a port

--
Ticket URL: <https://trac.macports.org/ticket/61357>
MacPorts <https://www.macports.org/>
Ports system for macOS
Reply | Threaded
Open this post in threaded view
|

Re: #61357: Port does not reset red colour of its output

macports-4
In reply to this post by macports-4
#61357: Port does not reset red colour of its output
------------------------+----------------------
  Reporter:  ballapete  |      Owner:  (none)
      Type:  defect     |     Status:  new
  Priority:  Normal     |  Milestone:
 Component:  base       |    Version:  2.6.3
Resolution:             |   Keywords:  catalina
      Port:             |
------------------------+----------------------
Changes (by ballapete):

 * Attachment "Foreground colour changes while finishing the installation
 of a port.png" added.

 Foreground colour changes while finishing the installation of a port

--
Ticket URL: <https://trac.macports.org/ticket/61357>
MacPorts <https://www.macports.org/>
Ports system for macOS
Reply | Threaded
Open this post in threaded view
|

Re: #61357: Port does not reset red colour of its output

macports-4
In reply to this post by macports-4
#61357: Port does not reset red colour of its output
------------------------+----------------------
  Reporter:  ballapete  |      Owner:  (none)
      Type:  defect     |     Status:  closed
  Priority:  Normal     |  Milestone:
 Component:  base       |    Version:  2.6.3
Resolution:  duplicate  |   Keywords:  catalina
      Port:             |
------------------------+----------------------
Changes (by ryandesign):

 * status:  new => closed
 * resolution:   => duplicate


Comment:

 MacPorts doesn't change text colors in the way you're showing; it must be
 emacs doing it.

 It's been a year since the release of Catalina and this is the first time
 I've heard anyone claim that X11 is not compatible with Catalina which
 makes me think it's a problem specific to your machine.

 I'm not aware of a way to turn off the MacPorts progress bar display.

--
Ticket URL: <https://trac.macports.org/ticket/61357#comment:7>
MacPorts <https://www.macports.org/>
Ports system for macOS
Reply | Threaded
Open this post in threaded view
|

Re: #61357: Port does not reset red colour of its output

macports-4
In reply to this post by macports-4
#61357: Port does not reset red colour of its output
------------------------+----------------------
  Reporter:  ballapete  |      Owner:  (none)
      Type:  defect     |     Status:  closed
  Priority:  Normal     |  Milestone:
 Component:  base       |    Version:  2.6.3
Resolution:  duplicate  |   Keywords:  catalina
      Port:             |
------------------------+----------------------

Comment (by ballapete):

 The bug in GNU Emacs 28.0.50, i.e. in `port emacs-devel` seems to have
 been fixed. I ran port -vd upgrade outdated in GNU Emacs' shell buffer and
 it did not happen that all the text became red. I could observe that text
 colour changed for different sort of output from port or other tools till
 the end. It changed forwards and backwards many times.

--
Ticket URL: <https://trac.macports.org/ticket/61357#comment:8>
MacPorts <https://www.macports.org/>
Ports system for macOS