MacPorts Base: Support for a lower level of debug output, like ui_trace, or ui_debug2/ui_debug3?
Christopher Nielsen
mascguy at rochester.rr.com
Wed May 26 13:38:11 UTC 2021
I’m referring to debug output like the following, in this cases taken from one of our builtbot logs. Some of these are generated by base, while others are generated by the portgroups themselves.
While I’m not necessarily advocating that we hide all of these (via output at level debug2 or debug3), we’d have the option.
Does that make sense?
DEBUG: Sourcing PortGroup legacysupport 1.1 from /opt/bblocal/var/buildworker/ports/build/ports/_resources/port1.0/group/legacysupport-1.1.tcl
DEBUG: Sourcing PortGroup compiler_wrapper 1.0 from /opt/bblocal/var/buildworker/ports/build/ports/_resources/port1.0/group/compiler_wrapper-1.0.tcl
DEBUG: Re-registering default for universal_variant
DEBUG: Re-registering default for use_configure
DEBUG: Re-registering default for dist_subdir
DEBUG: Re-registering default for worksrcdir
DEBUG: Re-registering default for build.cmd
DEBUG: Re-registering default for build.target
DEBUG: Re-registering default for test.cmd
DEBUG: Re-registering default for test.target
DEBUG: Re-registering default for configure.env
DEBUG: Sourcing PortGroup golang 1.0 from /opt/bblocal/var/buildworker/ports/build/ports/_resources/port1.0/group/golang-1.0.tcl
DEBUG: Re-registering default for legacysupport.newest_darwin_requires_legacy
DEBUG: Will append MACPORTS_LEGACY_SUPPORT_DISABLED=1 to extract.env
DEBUG: Will append MACPORTS_LEGACY_SUPPORT_DISABLED=1 to configure.env
DEBUG: Will append MACPORTS_LEGACY_SUPPORT_DISABLED=1 to build.env
DEBUG: Will append MACPORTS_LEGACY_SUPPORT_DISABLED=1 to destroot.env
DEBUG: Will append MACPORTS_LEGACY_SUPPORT_DISABLED=1 to test.env
DEBUG: Re-registering default for legacysupport.header_search
DEBUG: Re-registering default for legacysupport.library_name
DEBUG: Re-registering default for legacysupport.use_static
DEBUG: Re-registering default for legacysupport.redirect_bins
DEBUG: Sourcing PortGroup legacysupport 1.1 from /opt/bblocal/var/buildworker/ports/build/ports/_resources/port1.0/group/legacysupport-1.1.tcl
DEBUG: Sourcing PortGroup github 1.0 from /opt/bblocal/var/buildworker/ports/build/ports/_resources/port1.0/group/github-1.0.tcl
DEBUG: Re-registering default for livecheck.url
DEBUG: Re-registering default for livecheck.regex
DEBUG: universal_variant is false, so not adding the default universal variant
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: Running callback portstartupitem::add_notes
DEBUG: Finished running callback portstartupitem::add_notes
DEBUG: Running callback legacysupport::add_legacysupport
> On 2021-05-26-W, at 09:30, Ryan Schmidt <ryandesign at macports.org> wrote:
>
>> On May 26, 2021, at 06:07, Christopher Nielsen wrote:
>>
>> Great question!
>>
>> One of the key things this would allow us to do, is reduce our current Debug output, by outputting less-important details at Debug2 or Debug3. For example, if we don’t want to see some of the ui_debug messages from our various portgroups - like, say, the numerous messages related to adding port callbacks - we could modify those to output some things at ui_debug2 or ui_debug3.
>>
>> So if we needed to diagnose precisely what portgroup callbacks are added, those diagnostic messages could be enabled by setting the output level [via the port command] to Debug2 or Debug3. But at the current Debug level, they’d be hidden, making things less verbose.
>>
>> Does that make sense?
>
> I'm not familiar with "numerous messages related to adding port callbacks". Is this information MacPorts automatically prints when adding a callback, or something individual portgroups are printing - if so why?
More information about the macports-dev
mailing list