Opened 5 months ago

Closed 5 months ago

Last modified 5 months ago

#70237 closed defect (fixed)

fastfetch: Wrong OS Version Shown

Reported by: TopHatProductions115new (TopHatProductions115) Owned by: herbygillot (Herby Gillot)
Priority: Normal Milestone:
Component: ports Version: 2.9.3
Keywords: Cc:
Port: fastfetch

Description

Whenever I run fast fetch, it now reports the OS version incorrectly. Instead of showing "macOS Monterey 12.7.5 x86_64", It shows "Mac OS X Big Sur 10.16 x86_64".

I'm mainly concerned about the version number and name, since macOS 10.16 never existed. Apple went from 10.15 to 11 when they released Big Sur.

I'm running macOS 12.7.5 in a VM. Please let me know if you want more information attached to this ticket.

Change History (4)

comment:1 Changed 5 months ago by jmroot (Joshua Root)

Cc: herbygillot removed
Owner: set to herbygillot
Status: newassigned
Summary: Wrong OS Version Shownfastfetch: Wrong OS Version Shown

10.16 is what macOS 11 (and I think also later versions) reports its version as when SYSTEM_VERSION_COMPAT is set.

comment:2 in reply to:  1 Changed 5 months ago by TopHatProductions115new (TopHatProductions115)

Replying to jmroot:

10.16 is what macOS 11 (and I think also later versions) reports its version as when SYSTEM_VERSION_COMPAT is set.

Thank you for letting me know. Is this something that I can resolve by editing a config file (misconfiguration on my part) ?

comment:3 Changed 5 months ago by ryandesign (Ryan Carsten Schmidt)

I get the same thing. If I build from source with sudo port -ns upgrade --force fastfetch that fixes it.

The portfile sets platforms any, meaning the portfile author believes the port installs identical files regardless of OS or OS version. As a result, only one of our build machines (whichever one is available first) will build it and you will receive that archive, even if its OS or OS version does not match yours.

You can see at https://ports.macports.org/port/fastfetch/builds/ that the last build on June 7 occurred on a macOS 11 machine; that's the archive that is being served from our servers and the one you received. As for why fastfetch is identifying macOS 11 as 10.16, you'd have to discuss that with the developers of fastfetch. I recommend filing an issue about that.

Since this port's installed files contain information about the macOS version used to build it, platforms any is not accurate and should be removed, along with increasing the revision. (We already know this was wrong from #70107 where we learned that the port installs compiled files, which always differ on every macOS version.) Then MacPorts will return to its usual mode, wherein every one of our build machines will build the port and archives will be kept separately for each OS and OS version and you will receive the archive that matches your OS and OS version.

Last edited 5 months ago by ryandesign (Ryan Carsten Schmidt) (previous) (diff)

comment:4 Changed 5 months ago by ryandesign (Ryan Carsten Schmidt)

Resolution: fixed
Status: assignedclosed

In dcc8afbc6daeb322d0a0f1fdd84d6a13b96979cc/macports-ports (master):

fastfetch: Not platforms any

Closes: #70107
Closes: #70237

Note: See TracTickets for help on using tickets.