Gsoc 18 Project | Collect build statistics

Jackson Isaac ijackson at macports.org
Sun Apr 29 06:29:25 UTC 2018


Hi Vishnu,

On Sun, Apr 29, 2018 at 7:36 AM, Vishnu <vishnum1998 at gmail.com> wrote:
> Hey
>
> Thanks a lot.
> Now it works.
> I dont know why it was not working earlier.
>
> And jackson . I ran both the commands.
> root at vishnupc:/# /opt/local/bin/port-tclsh /opt/local/libexec/mpstats show
> Would submit the following data to
> http://stats.macports.neverpanic.de/submissions:
> {
>   "id": "cc545acb-3f3b-4a93-afbd-8a72ef5e50b9",
>   "os": {
>     "macports_version": "2.4.99",
>     "osx_version": "",
>     "os_arch": "i386",
>     "os_platform": "linux",
>     "build_arch": "",
>     "gcc_version": "5.4.0",
>     "xcode_version": "none"
>   },
>   "active_ports": [
>     {"name": "ncurses", "version": "6.1_0"},
>     {"name": "libedit", "version": "20170329-3.1_2"},
>     {"name": "mpstats", "version": "0.1.7_0", "requested": "true"}
>   ],
>   "inactive_ports": []
> }
> root at vishnupc:/# /opt/local/bin/port-tclsh /opt/local/libexec/mpstats submit
> Submitting data to http://stats.macports.neverpanic.de/submissions ...
> Success.
>

That's great :) But looks like the mpstats page [1] didn't add Linux
to the statistics.

This is most likely due to the reason that mpstats only checks for mac
OS version ?
Try to find a way to read Linux version if the installed os is not darwin based.

Though 'os_platform' does say 'linux'. Probably the statistics code
[2] doesn't recognize
linux as a platform ?


[1] http://stats.macports.neverpanic.de/os_statistics
[2] https://github.com/macports/macports-base/tree/gsoc11-statistics

-- 
Jackson Isaac


More information about the macports-dev mailing list