verbose output in shell mode

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

verbose output in shell mode

db
Is there any way to enable verbose output _after_ entering shell mode with `port`? I'd rather not use `port -v`, then I get it unnecessarily for all commands.
Reply | Threaded
Open this post in threaded view
|

Re: verbose output in shell mode

Ryan Schmidt-24

> On Mar 6, 2017, at 03:46, db <[hidden email]> wrote:
>
> Is there any way to enable verbose output _after_ entering shell mode with `port`? I'd rather not use `port -v`, then I get it unnecessarily for all commands.

Not that I know of.


db
Reply | Threaded
Open this post in threaded view
|

Re: verbose output in shell mode

db
Do you know of any means that I'm not aware of to make livecheck output its result without -v?

On 6 Mar 2017, at 13:45, Ryan Schmidt <[hidden email]> wrote:

>
>> On Mar 6, 2017, at 03:46, db <[hidden email]> wrote:
>>
>> Is there any way to enable verbose output _after_ entering shell mode with `port`? I'd rather not use `port -v`, then I get it unnecessarily for all commands.
>
> Not that I know of.
>
>

Reply | Threaded
Open this post in threaded view
|

Re: verbose output in shell mode

Ryan Schmidt-24
On Mar 6, 2017, at 07:44, db wrote:

> Do you know of any means that I'm not aware of to make livecheck output its result without -v?


There doesn't seem to be any difference in livecheck output when using the verbose flag:


$ port livecheck gcc7
gcc7 seems to have been updated (port version: 7-20170226, new version: 7-20170305)
$ port -v livecheck gcc7
gcc7 seems to have been updated (port version: 7-20170226, new version: 7-20170305)


Debug output of course has more to say:


$ port -d livecheck gcc7
DEBUG: Copying /Users/rschmidt/Library/Preferences/com.apple.dt.Xcode.plist to /opt/local/var/macports/home/Library/Preferences
DEBUG: Changing to port directory: /Users/rschmidt/macports/macports-ports/lang/gcc7
DEBUG: OS darwin/16.4.0 (Mac OS X 10.12) arch i386
DEBUG: Sourcing PortGroup select 1.0 from /Users/rschmidt/macports/macports-ports/_resources/port1.0/group/select-1.0.tcl
DEBUG: Sourcing PortGroup compiler_blacklist_versions 1.0 from /Users/rschmidt/macports/macports-ports/_resources/port1.0/group/compiler_blacklist_versions-1.0.tcl
DEBUG: compiler llvm-gcc-4.2 2336.11 not blacklisted because it doesn't match {llvm-gcc-4.2 < 2336.1}
DEBUG: compiler clang 800.0.42.1 not blacklisted because it doesn't match {clang < 300}
DEBUG: Reading variant descriptions from /Users/rschmidt/macports/macports-ports/_resources/port1.0/variant_descriptions.conf
DEBUG: universal variant already exists, so not adding the default one
DEBUG: Requested variant -atlas is not provided by port gcc7.
DEBUG: Requested variant +accelerate is not provided by port gcc7.
DEBUG: Requested variant +bash_completion is not provided by port gcc7.
DEBUG: Executing variant universal provides universal
DEBUG: Running callback portconfigure::add_automatic_compiler_dependencies
DEBUG: Finished running callback portconfigure::add_automatic_compiler_dependencies
DEBUG: Running callback portbuild::add_automatic_buildsystem_dependencies
DEBUG: Finished running callback portbuild::add_automatic_buildsystem_dependencies
DEBUG: Starting logging for gcc7
DEBUG: Executing org.macports.main (gcc7)
DEBUG: livecheck phase started at Mon Mar  6 07:46:35 CST 2017
DEBUG: Executing org.macports.livecheck (gcc7)
DEBUG: Port (livecheck) version is 7-20170226
DEBUG: Fetching ftp://gcc.gnu.org/pub/gcc/snapshots/
DEBUG: The regex is "LATEST-7 -> (7-[0-9]+)"
DEBUG: The regex matched "LATEST-7 -> 7-20170305", extracted "7-20170305"
gcc7 seems to have been updated (port version: 7-20170226, new version: 7-20170305)



db
Reply | Threaded
Open this post in threaded view
|

Re: verbose output in shell mode

db
Try with emacs.

On 6 Mar 2017, at 14:47, Ryan Schmidt <[hidden email]> wrote:

> On Mar 6, 2017, at 07:44, db wrote:
>
>> Do you know of any means that I'm not aware of to make livecheck output its result without -v?
>
>
> There doesn't seem to be any difference in livecheck output when using the verbose flag:
>
>
> $ port livecheck gcc7
> gcc7 seems to have been updated (port version: 7-20170226, new version: 7-20170305)
> $ port -v livecheck gcc7
> gcc7 seems to have been updated (port version: 7-20170226, new version: 7-20170305)
>
>
> Debug output of course has more to say:
>
>
> $ port -d livecheck gcc7
> DEBUG: Copying /Users/rschmidt/Library/Preferences/com.apple.dt.Xcode.plist to /opt/local/var/macports/home/Library/Preferences
> DEBUG: Changing to port directory: /Users/rschmidt/macports/macports-ports/lang/gcc7
> DEBUG: OS darwin/16.4.0 (Mac OS X 10.12) arch i386
> DEBUG: Sourcing PortGroup select 1.0 from /Users/rschmidt/macports/macports-ports/_resources/port1.0/group/select-1.0.tcl
> DEBUG: Sourcing PortGroup compiler_blacklist_versions 1.0 from /Users/rschmidt/macports/macports-ports/_resources/port1.0/group/compiler_blacklist_versions-1.0.tcl
> DEBUG: compiler llvm-gcc-4.2 2336.11 not blacklisted because it doesn't match {llvm-gcc-4.2 < 2336.1}
> DEBUG: compiler clang 800.0.42.1 not blacklisted because it doesn't match {clang < 300}
> DEBUG: Reading variant descriptions from /Users/rschmidt/macports/macports-ports/_resources/port1.0/variant_descriptions.conf
> DEBUG: universal variant already exists, so not adding the default one
> DEBUG: Requested variant -atlas is not provided by port gcc7.
> DEBUG: Requested variant +accelerate is not provided by port gcc7.
> DEBUG: Requested variant +bash_completion is not provided by port gcc7.
> DEBUG: Executing variant universal provides universal
> DEBUG: Running callback portconfigure::add_automatic_compiler_dependencies
> DEBUG: Finished running callback portconfigure::add_automatic_compiler_dependencies
> DEBUG: Running callback portbuild::add_automatic_buildsystem_dependencies
> DEBUG: Finished running callback portbuild::add_automatic_buildsystem_dependencies
> DEBUG: Starting logging for gcc7
> DEBUG: Executing org.macports.main (gcc7)
> DEBUG: livecheck phase started at Mon Mar  6 07:46:35 CST 2017
> DEBUG: Executing org.macports.livecheck (gcc7)
> DEBUG: Port (livecheck) version is 7-20170226
> DEBUG: Fetching ftp://gcc.gnu.org/pub/gcc/snapshots/
> DEBUG: The regex is "LATEST-7 -> (7-[0-9]+)"
> DEBUG: The regex matched "LATEST-7 -> 7-20170305", extracted "7-20170305"
> gcc7 seems to have been updated (port version: 7-20170226, new version: 7-20170305)
>
>
>

Reply | Threaded
Open this post in threaded view
|

Re: verbose output in shell mode

Ryan Schmidt-24
On Mar 6, 2017, at 07:53, db wrote:

> Try with emacs.

Sorry, I've never used emacs.

db
Reply | Threaded
Open this post in threaded view
|

Re: verbose output in shell mode

db
I meant try with other ports, e.g., emacs

$ port livecheck emacs
$
$ port -v livecheck emacs
emacs seems to be up to date

Not all ports give the same output with livecheck without -v.

On 6 Mar 2017, at 14:54, Ryan Schmidt <[hidden email]> wrote:

> On Mar 6, 2017, at 07:53, db wrote:
>
>> Try with emacs.
>
> Sorry, I've never used emacs.
>

Reply | Threaded
Open this post in threaded view
|

Re: verbose output in shell mode

Ryan Schmidt-24
On Mar 6, 2017, at 08:03, db <[hidden email]> wrote:
>
> I meant try with other ports, e.g., emacs
>
> $ port livecheck emacs
> $
> $ port -v livecheck emacs
> emacs seems to be up to date
>
> Not all ports give the same output with livecheck without -v.

Ah, I see. Yes, when non-verbose output is empty, it's meant to indicate that no update is believed to be available. The reasons for that might vary, and verbose output might be more specific.

db
Reply | Threaded
Open this post in threaded view
|

Re: verbose output in shell mode

db
I would expect some output without verbose flag like

$ port livecheck [port]
[port] seems to be up to date

Not worth a feature request, I guess.

On 6 Mar 2017, at 15:05, Ryan Schmidt <[hidden email]> wrote:

> On Mar 6, 2017, at 08:03, db <[hidden email]> wrote:
>>
>> I meant try with other ports, e.g., emacs
>>
>> $ port livecheck emacs
>> $
>> $ port -v livecheck emacs
>> emacs seems to be up to date
>>
>> Not all ports give the same output with livecheck without -v.
>
> Ah, I see. Yes, when non-verbose output is empty, it's meant to indicate that no update is believed to be available. The reasons for that might vary, and verbose output might be more specific.
>

Reply | Threaded
Open this post in threaded view
|

Re: verbose output in shell mode

Ryan Schmidt-24
On Mar 6, 2017, at 09:33, db wrote:
>
> I would expect some output without verbose flag like
>
> $ port livecheck [port]
> [port] seems to be up to date
>
> Not worth a feature request, I guess.

I'm pretty sure it's intentional that, like many other unix commands, no output is meant to signify success.