Re: Packages : perl5-5.30 outdated but forced for any package

From: Xavier Humbert <xavier_at_groumpf.org>
Date: Mon, 18 Oct 2021 10:51:05 UTC
On 10/18/21 10:47, Herbert J. Skuhra wrote:
> On Mon, 18 Oct 2021 10:13:26 +0200, Xavier Humbert wrote:
>>
>> On 10/16/21 17:47, Herbert J. Skuhra wrote:
>>> On Sat, 16 Oct 2021 16:35:08 +0200, Xavier Humbert wrote:
>>>
>>>> I should definiteldy check, but what, I dunno
>>>>
>>>> [xavier@numenor ports]$ grep DEFAULT_VERSIONS /etc/make.conf
>>>> DEFAULT_VERSIONS+=ssl=openssl
>>>> DEFAULT_VERSIONS+=python=3.8
>>>> DEFAULT_VERSIONS+=php=7.3
>>>> DEFAULT_VERSIONS+=perl5=5.34
>>>> [xavier@numenor ports]$ pkg info perl5
>>>> perl5-5.34.0
>>>> Name           : perl5
>>>> Version        : 5.34.0
>>>> Installed on   : Wed Aug 11 20:46:45 2021 CEST
>>>>
>>>> As you can see, my version and DEFAULT_VERSIONS are in sync
>>> - Have you updated perl from perl 5.30 and have you followed the
>>>     instructions in UPDATING (entry from 20161103)?
>> Yes, I did
>>> - Are there any files in /usr/local/lib/perl5/5.30/ or
>>>     /usr/local/lib/perl5/site_perl/mach/5.30/? Can you run 'pkg which' on
>>>     them?
>> Err, yes there are files.
>>
>> I thought I found the culprit :
>>
>> [root@numenor ~]# pkg which
>> /usr/local/lib/perl5/site_perl/mach/5.30/ModPerl/BuildMM.pm
>> /usr/local/lib/perl5/site_perl/mach/5.30/ModPerl/BuildMM.pm was
>> installed by package ap24-mod_perl2-2.0.11,3
>>
>> ap24-mod_perl2 does not compile actually, see my previous posts, left
>> unanswered
>>
>> But if I remove ap24-mod_perl2, still wants to downgrade Perl
>>
>>> - What happens if you run 'pkg upgrade'?
>> [root@numenor ~]# pkg upgrade
>> Updating FreeBSD repository catalogue...
>> [...]
>> Checking for upgrades (1903 candidates): 100%Processing candidates
>> (1903 candidates): 100%
>>
>> The following 678 package(s) will be affected (of 0 checked):
>>
>> [...mainly perl dependencies. Not astonished...]
>>
>> But :
>> Installed packages to be DOWNGRADED:
>> perl5: 5.34.0 -> 5.32.1_1
> This is expected. Perl 5.32 is the default version for packages.
>
> 1. Is the original problem resolved (pkg install py38-platformdirs)?
It's fixed now, dunno what happened :-)
> Or does it still try to install perl 5.30? What error do you get when
> you try to compile the port?
[root@numenor ~]# cd /usr/ports/devel/py-platformdirs/
[root@numenor py-platformdirs]# make
===>   py38-platformdirs-2.4.0 depends on package: py38-setuptools>0 - 
found
===>   py38-platformdirs-2.4.0 depends on file: /usr/local/bin/python3.8 
- found
===>  Configuring for py38-platformdirs-2.4.0
Traceback (most recent call last):
File "<string>", line 1, in <module>
File "setup.py", line 3, in <module>
setup()
File "/usr/local/lib/python3.8/site-packages/setuptools/__init__.py", 
line 153, in setup
return distutils.core.setup(**attrs)
File "/usr/local/lib/python3.8/distutils/core.py", line 108, in setup
_setup_distribution = dist = klass(attrs)
File "/usr/local/lib/python3.8/site-packages/setuptools/dist.py", line 
455, in __init__
_Distribution.__init__(self, {
File "/usr/local/lib/python3.8/distutils/dist.py", line 292, in __init__
self.finalize_options()
File "/usr/local/lib/python3.8/site-packages/setuptools/dist.py", line 
801, in finalize_options
ep(self)
File 
"/usr/local/lib/python3.8/site-packages/setuptools_scm/integration.py", 
line 48, in infer_version
dist.metadata.version = _get_version(config)
File 
"/usr/local/lib/python3.8/site-packages/setuptools_scm/__init__.py", 
line 156, in _get_version
dump_version(
File 
"/usr/local/lib/python3.8/site-packages/setuptools_scm/__init__.py", 
line 84, in dump_version
fp.write(template.format(version=version))
KeyError: 'version_tuple'
> 2. mod_perl2 obviously needs a patch for perl 5.34:
> https://svn.apache.org/viewvc?view=revision&revision=1889014
Thanks, I'll take a look

-- 
Xavier HUMBERT - Unix/Win/MacOSX Sysadmin/Network Senior Engineer
https://www.amdh.fr