Re: Big Sur on an M1 - any ideas?

Debbie Fligor <[email protected]>
Newsgroups gmane.os.apple.fink.beginners
Message-ID <[email protected]>

> On Feb 20, 2021, at 11:35, Hanspeter Niederstrasser <[email protected]> wrote:
> 
> On 2/19/21 11:26 PM, Debbie Fligor wrote:
>>> On Feb 19, 2021, at 17:34, Alexander Hansen <[email protected]> wrote:
>>> 
>>> 
>>>> Checking package... looks good (fink-0.45.99.git).
>>>> Checking system... arm-apple-darwin20.2.0
>>>> Use of uninitialized value $gcc in regexp compilation at /Users/admin/src/fink/perlmod/Fink/Services.pm line 1343.
>>>> Use of uninitialized value $gcc in concatenation (.) or string at /Users/admin/src/fink/perlmod/Fink/Bootstrap.pm line 164.
>>>> This system is unrecognized and not supported by Fink.
>>>> admin@yfandes-wired fink %
>>> 
>>> Fink's bootstrap is set up to be conservative, so arm-apple-darwin20.x needs to be added to the the allowed list. $gcc is uninitialized because of that failure. fink/perlmod/Fink/Bootstrap.pm is the place where this happens, so you might try editing to experiment.   I don't recall for sure if that suffices to set the architecture for everything, or if there are other code adjustments that need to be made, however.
>> that was enough to get fink to install, thanks!
>> I’m working through the packages on selfupdate now (it’s having trouble pulling down sensible-utils-0.0.7.tar.gz, which seems like it’s probably not related to the ARM part of things). It doesn’t seem to matter which mirror I have it try, including sourceforge:
>> curl --connect-timeout 30 -f -L -A 'fink/0.45.99.git' -O http://downloads.sourceforge.net/fink/sensible-utils-0.0.7.tar.gz
>>   % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
>>                                  Dload  Upload   Total   Spent    Left  Speed
>>   0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0
>> curl: (22) The requested URL returned error: 404 Not Found
>> ### execution of curl failed, exit code 22
>> Downloading the file "sensible-utils-0.0.7.tar.gz" failed.
>>> 
>>> Unfortunately, nobody on the development team has an M1.  I'd like a new computer, true, but that's not really in my budget.
>>> 
>>> We appreciate any help that our user community is able to provide.
>> I’ve never learned how to provide updates back as patches, either in the old-school diff way or the newer git-based world. I have more of a hack and slash until something works approach to compiling than an actual programmer or software engineer does. but if it helps to know what I changed, I could probably learn with some pointers to the right set of docs.
>> I added the middle section:
>>   	} elsif ($host =~ /^i386-apple-darwin2(\d+)\./) {
>>                 &print_breaking("This system was not released at the time " .
>>                         "this Fink release was made.  Prerelease versions " .
>>                         "of macOS might work with Fink, but there are no " .
>>                         "guarantees.");
>>                 $distribution = "11." . ($1-1);
>>         } elsif ($host =~ /^arm-apple-darwin20\./) {
>>                 &print_breaking("This system was not released at the time " .
>>                         "this Fink release was made.  Prerelease versions " .
>>                         "of macOS might work with Fink, but there are no " .
>>                         "guarantees.");
>>                 $distribution = "11.0";
>>         } elsif ($host =~ /^i386-apple-darwin(\d+)\./) {
>>                 &print_breaking("This system was not released at the time " .
>>                         "this Fink release was made.  Prerelease versions " .
>>                         "of macOS might work with Fink, but there are no " .
>>                         "guarantees.");
>>                 $distribution = "10." . ($1-4);
>>                     $distribution = "11.0”;
> 
> 
> Thanks for testing this. We're currently trying to push a major dpkg update out (one issue left AFAIK), and doing ARM will be the next thing to tackle afterwards.
> 
> A simple way to show changes is to make a copy of the original file your editing (Bootstrap.pm to Bootstrap.pm.orig, edit your changes, then run `diff -u Bootstrap.pm.orig Bootstrap.pm` to get the difference.

Thanks, I’ll do that next time.

> 
> Out of curiousity, what's the output of this command on your M1 with your patched Fink?
> 
> fink —version

% fink --version
Package manager version: 0.45.99.git
Distribution version: selfupdate-rsync Fri Feb 19 22:50:12 2021, 11.0, arm
Trees: local/main stable/main

Copyright (c) 2001 Christoph Pfisterer
Copyright (c) 2001-2019 The Fink Package Manager Team
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
GNU General Public License for more details.




-- 
-debbie
Debbie Fligor (she/hers), n9dn      
email: [email protected]






_______________________________________________
Fink-beginners mailing list
[email protected]
List archive:
https://sourceforge.net/p/fink/mailman/fink-users/
Subscription management:
https://lists.sourceforge.net/lists/listinfo/fink-beginners
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.