Re: Fink selfupdate not working

James Kolata via Fink-beginners <[email protected]> Sun, 24 Sep 2023 10:17:46 -0500
Newsgroups gmane.os.apple.fink.beginners
Message-ID <[email protected]>
Unfortunately, something went wrong and this didn’ t work.  Since I already had the src directory, I skipped the first command.  Here is what
this directory looked like afterwards:

ls
dpkg1.16.zip  fink-dpkg1.16 fink-upstream

I then went to the fink-upstream directory and executed the inject command:

cd fink-upstream
sudo ./inject.pl
Password:
Creating fink tarball...

After many lines, here was the error message:

Modifying package description...
/bin/chmod 644 /opt/sw/fink/dists/local/injected/finkinfo/*.*
Installing package...

/opt/sw/bin/fink install fink-0.45.99.git-20230924.1504
13.6 does not match the expected value of 13.5. Please run `fink selfupdate` to download a newer version of fink at /opt/sw/lib/perl5/Fink/Services.pm line 1449.
### execution of /opt/sw/bin/fink failed, exit code 29

Installing the new fink package failed. The description and the tarball were
installed, though. You can retry at a later time by issuing the appropriate
fink commands.

What do I do now?

JJK





> On Sep 24, 2023, at 8:17 AM, Hanspeter Niederstrasser <[email protected]> wrote:
> 
> On 9/22/23 9:57 AM, James Kolata via Fink-beginners wrote:
>> I just updated to MacOS 13.6.  Here is the message I received when I tried to update fink:
>> jkolata1% fink selfupdate
>> 13.6 does not match the expected value of 13.5. Please run `fink selfupdate` to download a newer version of fink at /opt/sw/lib/perl5/Fink/Services.pm line 1449
>> I don’t understand this message.  What am I supposed to do?  Here is the code around line 1449:
>> sub get_osx_vers {
>> 	my $sw_vers = get_osx_vers_long();
>> 	my $darwin_osx = get_darwin_equiv();
>> 	$sw_vers =~ s/^(\d+\.\d+).*$/$1/;
>> 	if ($sw_vers != $darwin_osx) {
>> 		if (($sw_vers == 11.6 && $darwin_osx == 11.5) || ($sw_vers == 12.6 && $darwin_osx == 12.5)) {
>> 			# special cases in Big Sur and Monterey where it's OK to have a mismatch
>> 		} else {
>> 			die "$sw_vers does not match the expected value of $darwin_osx. Please run `fink selfupdate` to download a newer version of fink";
>> 		}
>> 	}
>> 	return $sw_vers;
>> }
>> Am I supposed to edit some of this code?  If so, what do I need to do, exactly?  Nowhere does this code refer to 13.5.
> 
> You need to fetch an updated Fink that knows about 13.6.
> 
> See the Sept 23 news item at https://www.google.com/url?q=https://www.finkproject.org/&source=gmail-imap&ust=1696166251000000&usg=AOvVaw2se6FPXbHzxeEczKJQSnBT for the necessary git commands.
> 
> Once you have the code, run `./inject.pl` to update your Fink installation, and then you should be able to run `fink selfupdate`.
> 
> Hanspeter
> 
> -- 
> There three ways to get things done: Do it yourself,
> hire someone else to do it, or forbid your kids to do it
>

_______________________________________________
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