Opened 15 years ago

Closed 15 years ago

#23922 closed defect (fixed)

archcheck portgroup explodes if "port" prints a generic error

Reported by: ryandesign (Ryan Carsten Schmidt) Owned by: ryandesign (Ryan Carsten Schmidt)
Priority: Normal Milestone:
Component: ports Version: 1.8.2
Keywords: Cc: gwright@…
Port: archcheck

Description

If the "port" command would print an error regardless what command you use (e.g. "Warning: More than one default port source is defined." or "Warning: port definitions are more than two weeks old, consider using selfupdate"), the archcheck portgroup's error display fails, e.g.:

--->  Configuring ghc
DEBUG: Using compiler 'Mac OS X gcc 4.2'
DEBUG: Executing proc-pre-org.macports.configure-configure-0
Error: Target org.macports.configure returned: /opt/local/lib/libgmp.dylib is provided by: gmp
Warning: More than one default port source is defined.
DEBUG: Backtrace: /opt/local/lib/libgmp.dylib is provided by: gmp
Warning: More than one default port source is defined.
    while executing
"$pre $targetname"
Warning: the following items did not execute (for ghc): org.macports.configure
Error: Status 1 encountered during processing.
To report a bug, see <http://guide.macports.org/#project.tickets>

Change History (2)

comment:1 Changed 15 years ago by jmroot (Joshua Root)

ui_warn goes to stderr so you should be able to separate warnings from the actual output.

comment:2 Changed 15 years ago by ryandesign (Ryan Carsten Schmidt)

Resolution: fixed
Status: newclosed

Yes indeed, just throwing away the stderr fixes it. r64361.

Note: See TracTickets for help on using tickets.