|
From: Merle R. <rei...@st...> - 2023-09-22 12:50:02
|
Thanks! I appreciate the response.
With this macOS patch, there was one security fix in the kernel. Apple did bump the xnu minor version by 1 (from 8020.240.18.702.13 to 8020.240.18.703.5) so I suspect that the code changemay have been in the micro-kernel and no code was changed in the outer kernel, thus why the kernel version didn’t get bumped. But just a theory and only Apple knows why they do what they do.
Anyway, a curiosity and thanks again for your response!
Merle
> On Sep 22, 2023, at 7:27 AM, Hanspeter Niederstrasser <fi...@sn...> wrote:
>
> External Email - Use Caution
>
> On 9/22/23 6:22 AM, Merle Reinhart wrote:
>> Yes, that works for me and I agree it is a better fix.
>>
>> However I have to ask if we always will be overriding the check is the check even useful?
>>
>> Thanks!!!
>>
>> Merlr
>>
>> Sent from my iPad
>>
>>> On Sep 22, 2023, at 6:20 AM, Hanspeter Niederstrasser <fi...@sn...> wrote:
>>>
>>> External Email - Use Caution
>>>
>>>> On 9/21/23 8:02 PM, Merle Reinhart wrote:
>>>> I just noticed the same thing. I edited Services.pm and removed the -1 from line number 1535. This fixes Apple Silicon.
>>>>
>>>> This is likely not a good general fix (ie, I see different breakage with Intel Monterey [12.7 vs 12.5] and I don’t have an Intel machine running Ventura handy). But, it should get you going on Apple Silicon Macs running Venture for now.
>>>>
>>>> Merle
>>>>
>>>>
>>>>
>>>>>> On Sep 21, 2023, at 7:27 PM, Sean Case <sea...@tp...> wrote:
>>>>>
>>>>> External Email - Use Caution
>>>>>
>>>>> I'm using the dpkg1.16 branch, on an M1 mini.
>>>>>
>>>>> Just updated to macOS 13.6, and trying to do "fink selfupdate" gives:
>>>>>
>>>>>> 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.
>>>>>
>>>>> As this error occurred while doing "fink selfupdate", the suggestion to run "fink selfupdate" was not very helpful.
>>>>>
>>>>> Looking at the specified code, it looks like there are special cases to handle 11.6/11.5 and 12.6/12.5. I guess 13.6/13.5 could be handled similarly...
>>>>>
>>>>> Is there a way of fixing this - ideally, without reinstalling fink from scratch?
>>>
>>> A better fix than changing Services.pm::get_darwin_equiv() is to expand
>>> the list of exceptions further down in get_osx_vers() (around line 1447)
>>>
>>> Changing it to this (long single line) should work:
>>>
>>> if (($sw_vers == 11.6 && $darwin_osx == 11.5) || ($sw_vers == 11.7 &&
>>> $darwin_osx == 11.5) || ($sw_vers == 12.6 && $darwin_osx == 12.5) ||
>>> ($sw_vers == 12.7 && $darwin_osx == 12.5) || ($sw_vers == 13.6 &&
>>> $darwin_osx == 13.5)) {
>>>
>>> If you undo the removing of -1 from Line#1535 and edit L#1447 instead,
>>> can you selfupdate?
>>>
>>> This is the list of the various systems where Apple decided to not
>>> increase the darwin version when bumping the macOS version.
>
> To be honest, I don't know the exact reason for the darwin < - > macOS
> comparison in the code besides a sanity check. We went over 12 years
> without having to deal with versioning problems, then Apple changed OS
> naming from 10.x to 1X.Y, which introduced one problem, but the
> kernel/OS relationship stayed constant. Then since 11.6 they've messed
> with that as well, but at least only towards the end of the release's
> life cycle.
>
> Hanspeter
>
> --
> I'm not a robot like you. I don't like having disks crammed into me...
> unless they're Oreos, and then only in the mouth. -- Fry
|