[MacPorts] #54388: port -q should suppress warnings

classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

[MacPorts] #54388: port -q should suppress warnings

MacPorts
#54388: port -q should suppress warnings
--------------------+--------------------
 Reporter:  mf2k    |      Owner:
     Type:  defect  |     Status:  new
 Priority:  Normal  |  Milestone:
Component:  base    |    Version:  2.4.99
 Keywords:          |       Port:
--------------------+--------------------
 Warnings should be suppressed when use using {{{port -q}}}. See below:

 {{{
 $ port info --maintainers coinor-liblemon
 Warning: All compilers are either blacklisted or unavailable; defaulting
 to first fallback option
 maintainers: [hidden email], [hidden email]
 }}}

 So let's use -q:

 {{{
 $ port -q info --maintainers coinor-liblemon
 Warning: All compilers are either blacklisted or unavailable; defaulting
 to first fallback option
 [hidden email], [hidden email]
 }}}

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

Re: [MacPorts] #54388: port -q should suppress warnings

MacPorts
#54388: port -q should suppress warnings
---------------------+--------------------
  Reporter:  mf2k    |      Owner:
      Type:  defect  |     Status:  new
  Priority:  Normal  |  Milestone:
 Component:  base    |    Version:  2.4.99
Resolution:          |   Keywords:
      Port:          |
---------------------+--------------------
Changes (by kurthindenburg):

 * cc: kurthindenburg (added)


Comment:

 It appears that is by design:

 # ui_options(ports_quiet) - If set, don't output "standard messages"

 -q only works for notice/info messages

 So, either the compiler warning would have to be change to "info" or -q
 would have to change to include "warnings"

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

Re: [MacPorts] #54388: port -q should suppress warnings

MacPorts
In reply to this post by MacPorts
#54388: port -q should suppress warnings
---------------------+--------------------
  Reporter:  mf2k    |      Owner:
      Type:  defect  |     Status:  new
  Priority:  Normal  |  Milestone:
 Component:  base    |    Version:  2.4.99
Resolution:          |   Keywords:
      Port:          |
---------------------+--------------------

Comment (by mf2k):

 IMHO warnings should be suppressed too because -q would normally be used
 for scripting.

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