Closed barracuda156 closed 1 year ago
Confirming this from the Homebrew side as well: https://github.com/Homebrew/homebrew-core/actions/runs/3849686797/jobs/6559040414
It so happens that I updated the MacPorts Portfile under Monterey on an M1 machine, which is one of only two builds that succeeded (arm64 under Monterey and Ventura).
It so happens that I updated the MacPorts Portfile under Monterey on an M1 machine, which is one of only two builds that succeeded (arm64 under Monterey and Ventura).
@Schamschula PPC build should be fixed with my PR https://github.com/macports/macports-ports/pull/17225 – at least on Rosetta all good:
10:Dr-Noob-cpufetch-49941b1 svacchanda$ port -v installed cpufetch
The following ports are currently installed:
cpufetch @1.03_0 (active) requested_variants='' platform='darwin 10' archs='ppc' date='2023-01-06T02:45:07+0700'
I have pushed a commit to master that should fix everything. Can you test it out and confirm it builds correctly?
Confirming that applying both 22a80d817d57814fc552365ad553c0a22f065fcd and 095bbfb784f0b367558741e9b02f6278126e1c93 allows us to build on macOS.
I have pushed a commit to master that should fix everything. Can you test it out and confirm it builds correctly?
I will check it on PPC now.
UPD. Yes, with the PPC patch plus two other it builds fine on PPC.
@Dr-Noob Regarding the flag: it is okay with gcc12
, but breaks the build with gcc-4.2
. The problem is that the latter is the default one on macOS PPC, and since cpufetch
does not ask for C11, gcc-4.2
is used. For Macports this is no problem to fix: we just patch out the flag (or can blacklist gcc-4.2
otherwise). But if anyone tries to build cpufetch
from git repo directly, that will fail.
It so happens that I updated the MacPorts Portfile under Monterey on an M1 machine, which is one of only two builds that succeeded (arm64 under Monterey and Ventura).
@Schamschula I have updated the PR with patches from @Dr-Noob now and rebased. Hopefully that fixes the build across the board.
Since the build is fixed now, both PPC and Intel, closing.
So in addition to PPC being broken https://github.com/Dr-Noob/cpufetch/issues/167 macOS builds on Intel also fail:
Pretty much broken for every macOS version: https://ports.macports.org/port/cpufetch/details