Re: dill-py310 does not install

[email protected] Thu, 26 Sep 2024 12:02:50 -0500
Newsgroups gmane.os.apple.fink.general
Message-ID <[email protected]>
On 2024-09-26 07:18, Scott Hannahs via Fink-users wrote:
>> On Sep 26, 2024, at 6:15 AM, Hanspeter Niederstrasser 
>> <[email protected]> wrote:
>> 
>> On 9/25/24 1:29 PM, Scott Hannahs via Fink-users wrote:
>>>> On Sep 25, 2024, at 1:13 PM, Scott Hannahs via Fink-users 
>>>> <[email protected]> wrote:
>>>> 
>>>> 
>>>> 
>>>>> On Sep 25, 2024, at 05:14, Hanspeter Niederstrasser 
>>>>> <[email protected] <mailto:[email protected]>> wrote:
>>>>> 
>>>>> On 9/23/24 9:23 PM, Scott Hannahs via Fink-users wrote:
>>>>>> It seems to build fine, but there is an install error.  Have 
>>>>>> rebuilt the package, but there is an issue with “alternatives”??  
>>>>>> I was trying to update pytlint but this is one of the 
>>>>>> dependencies.
>>>>>> Preparing to unpack .../dill-py310_0.3.8-1_darwin-x86_64.deb ...
>>>>>> Unpacking dill-py310 (0.3.8-1) over (0.3.8-1) ...
>>>>>> Setting up dill-py310 (0.3.8-1) ...
>>>>>> update-alternatives: error: alternative path 
>>>>>> /opt/sw/bin/dill-py3.10 doesn't exist
>>>>>> dpkg: error processing package dill-py310 (--install):
>>>>>> subprocess installed post-installation script returned error exit 
>>>>>> status 2
>>>>>> Errors were encountered while processing:
>>>>>> dill-py310
>>>>>> ### execution of /opt/sw/bin/dpkg-lockwait failed, exit code 1
>>>>>> Failed: can't install package dill-py310-0.3.8-1
>>>>>> I think he dot-info file creates that file so I am not sure why it 
>>>>>> does not exist.
>>>>> 
>>>>> Fixed. update-alternatives was looking for dill-pyX.YZ when it 
>>>>> should have been undill-pyX.YZ.
>>>>> 
>>>>> Hanspeter
>>>> 
>>>> Hanspeter,
>>>> Thanks, I would never have found the difference between dill and 
>>>> undill!
>>>> 
>>>> -Scott
>>> Spoke too soon, tried to update dill (dependency from pylint?)
>>> There is still a problem with the alternatives?
>>> Preparing to unpack .../dill-py310_0.3.8-2_darwin-x86_64.deb ...
>>> update-alternatives: error: no alternatives for dill
>>> dpkg: warning: subprocess old pre-removal script returned error exit 
>>> status 2
>>> dpkg: trying script from the new package instead ...
>>> update-alternatives: error: no alternatives for dill
>>> dpkg: error processing archive 
>>> /opt/sw/fink/dists/stable/main/binary-darwin-x86_64/libs/pythonmods/dill-py310_0.3.8-2_darwin-x86_64.deb 
>>> (--install):
>>>  subprocess new pre-removal script returned error exit status 2
>>> update-alternatives: error: no alternatives for dill
>>> dpkg: error while cleaning up:
>>>  subprocess installed post-installation script returned error exit 
>>> status 2
>>> Errors were encountered while processing:
>>>  
>>> /opt/sw/fink/dists/stable/main/binary-darwin-x86_64/libs/pythonmods/dill-py310_0.3.8-2_darwin-x86_64.deb
>>> ### execution of /opt/sw/bin/dpkg-lockwait failed, exit code 1
>>> Failed: can't install package dill-py310-0.3.8-2
>> 
>> Ugh. The new u-a is stricter and errors out. If you edit the file 
>> /opt/sw/fink/dists/stable/main/finkinfo/libs/pythonmods/dill-py.info 
>> so that in both PostInstScript() and PreRmScript(), the
>> `update-alternatives --auto dill` command (lines 40 and 51) is inside 
>> the `if [ -f %p/bin/dill-py ]; then` conditional, does that work? Run 
>> `fink rebuild dill-py38; fink reinstall dill-py38`
>> 
>> The conditional should now look like this (all else in those scripts 
>> stay the same:
>> 
>> if [ -f %p/bin/dill-py ]; then
>> 	update-alternatives --auto dill
>> 	update-alternatives --verbose --remove dill 
>> %p/bin/dill-py%type_raw[python]
>> fi
>> 
>> Hanspeter
> 
> Ugh indeed.  So I made those modifications but doesn’t this script now
> remove the executable dill while creating undill and undill-py310 as a
> hard linked file? It seems to only check for the un-versioned
> executable %p/bin/dill-py.
> There is no dill or dill-py310 installed.
> 
> May not be able to do more testing for awhile.  Have a hurricane
> coming in and will lose power soon.

You're right that the conditional is broken because it's looking for 
something that never existed. D'oh. I'll play with this some more.

Hanspeter


_______________________________________________
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