Re: Fink for Monterey?
Derek Homeier <[email protected]>
| Newsgroups | gmane.os.apple.fink.general |
|---|---|
| Message-ID | <[email protected]> |
On 10 Nov 2022, at 8:00 pm, Scott Hannahs via Fink-users <[email protected]> wrote: > > So we have been building on different OS etc. with the 10.9-libcxx tree for awhile. So if I interpret you state then that tree should build for Apple Silicon in the future if I can get the bootstrap to work. I forget exactly why the bootstrap fails. > > Personally I had few problems with the “fat binaries” for the PPC/Intel transition and few issues with the “universal binaries” for the Intel/AS transition. I think the 68XXX/PPC transition was a bit more abrupt and fink wasn’t around then. IIRC, for the PPC/Intel transition you had to build two binaries and then put them together with lipo. I think Xcode/tools will build them together now? > > Thanks for the update. > -Scott > >> On Nov 10, 2022, at 1:49 PM, Alex Hansen <[email protected]> wrote: >> >> Hello, folks. >> >> There’s no user-accessible build architecture variable because that goes against Fink’s core principle of having all builds have identical content for a given OS/architecture. A config file option seems like it might be workable, as this would tend to generate an entire Fink distribution built in a particular way, so one could have a universal, single-architecture, or Rosettafied distribution. >> >> I recall that back in the days of transitioning from PowerPC to Intel building universal binaries was unreliable enough that we decided not to pursue it as an option. This seems to work much better now. The older dpkg was also limited in its ability to handle mixed architectures, so maybe a current one will require less patching and mucking around to function. >> >> Check the mailing list archives about using the dpkg 1.16 branch. I don’t really have that information ready at hand because I’m out of the loop. > The best collection of instructions may still be found in the comments at https://github.com/fink/fink/pull/66#issuecomment-1069568545 and following; there is also a link to my fink branch as used to install natively on M1. As far as I recall there is still no straightforward bootstrap available, as I needed to edit some files like Services.pm manually during installation. One issue is that `arm` or `arm64` are not registered as official Fink `Architecture`, and either choice require patching a number of (mostly) perl scripts in various Fink packages. The other is that the `Triggers` field in the new dpkg/fink created a circular dependency on the initial install. > Installation on Big Sur > mkdir ~/src > cd ~/src > git clone https://github.com/TheSin-/fink > cd fink > git checkout dpkg1.16 > ./bootstrap > That should probably work for 11.x/12. (no idea about Ventura yet), but some problems keep popping up as Apple is apparently no more keeping the system versions in `sw_vers` and kernel versions from `uname -r` in sync. > To run on M1 CPUs: > Copy Terminal.app to ~/Applications and rename Terminal-Rosetta.app > Get info on Terminal-Rosetta > Check box to “Open with Rosetta” > Use this version of Terminal to install and run Fink and installed files. > You can also do this in a custom profile of the standard Terminal by setting the shell to run e.g. to `arch -x86_64 zsh -l` Once I built a Fink distribution under Rosetta, I could also directy pick one of its shells and everything from there would run under arch=x86_64. But for performance I’d always recommend the arm64 builds for any package that can be built natively (a number have hardware customisations that just cannot be ported to arm without significant effort). You can give that branch a try by running > git pull [email protected]:dhomeier/fink.git dpkg1.16 before ./bootstrap, but as I mentioned, it may still require some manual fixes during bootstrap. For a starting point on Fink packages on M1 I just pushed the gcc12 port (largely copied from Homebrew) to https://github.com/fink/fink-distributions/pull/928 HTH Derek _______________________________________________ Fink-users mailing list [email protected] List archive: https://sourceforge.net/p/fink/mailman/fink-users/ Subscription management: https://lists.sourceforge.net/lists/listinfo/fink-users