Opened 8 years ago
Last modified 7 years ago
#52575 new enhancement
Report Xcode version and other useful information in main.log
Reported by: | mojca (Mojca Miklavec) | Owned by: | macports-tickets@… |
---|---|---|---|
Priority: | Normal | Milestone: | |
Component: | base | Version: | 2.3.4 |
Keywords: | Cc: | raimue (Rainer Müller), ryandesign (Ryan Carsten Schmidt), larryv (Lawrence Velázquez), mkae (Marko Käning) | |
Port: |
Description
I would find it useful if main.log listed the version of Xcode (and version of the corresponding Command Line Tools when applicable) as well as compiler version.
Other pieces of information might be useful as well, perhaps:
- the file always lists
i386
, it would be more useful to list the actual platform - list of default variants (some users might perhaps have
+quartz -x11
being set) - settings like
prefix
, whether the user has switched tolibc++
, which compiler is default in case oflibc++
, ...
(It's nearly impossible to search for a ticket like this one, so I'm sorry if this is a duplicate.)
Change History (10)
comment:1 Changed 8 years ago by ryandesign (Ryan Carsten Schmidt)
comment:3 follow-up: 4 Changed 8 years ago by mojca (Mojca Miklavec)
It might be useful to log the MacPorts version as well.
comment:4 Changed 8 years ago by mkae (Marko Käning)
Cc: | mkae added |
---|
comment:5 Changed 7 years ago by raimue (Rainer Müller)
comment:6 Changed 7 years ago by raimue (Rainer Müller)
I added some basic information in above commit. Feel free to extend macports::_log_sysinfo
with more information you want to see in the log file.
comment:8 Changed 7 years ago by ryandesign (Ryan Carsten Schmidt)
I'd like the full macOS version in the log, but it's not this code's fault that macosx_version
doesn't provide that.
Ideally I'd also like the macOS build number in the log. After Apple releases a new major version of macOS, they don't release further version numbers of the previous major version, but they do still release security updates for it, which change the build number. Should we add a new variable macosx_build
?
comment:9 Changed 7 years ago by raimue (Rainer Müller)
I would prefer if we had the build information available for both macOS and Xcode. We currently also instruct to run a custom command to get this information for pull requests, but it would be a lot simpler if this could be returned by the 'port platform' action.
comment:10 Changed 7 years ago by neverpanic (Clemens Lang)
Cc: | neverpanic removed |
---|
Yes. The log has hundreds or thousands of lines of what to me is rather useless information, but doesn't have a prominent display of basic info like the macOS version, Xcode version, command line tools version, which compiler is selected and its version, the Mac model, the amount of RAM, the CPU model, number of cores and speed, amount of free disk space, disk format... That's just off the top of my head.