Re: Installing Python2.7 in 14-RELEASE

From: Herbert J. Skuhra <herbert_at_gojira.at>
Date: Mon, 13 May 2024 13:13:18 UTC
On Mon, 13 May 2024 14:31:16 +0200, Odhiambo Washington wrote:
> 
> Hi
> 
> I need to install Python27 from /usr/ports/lang/python27 to test something,
> but it fails:
> 
> ```
> root@gw:/usr/ports/lang/python27 # make reinstall clean
> ===>  Deinstalling for python27
> ===>   python27 not installed, skipping
> ===>  Installing for python27-2.7.18
> ===>  Checking if python27 is already installed
> ===>   Registering installation for python27-2.7.18
> pkg-static: Unable to access file
> /usr/ports/lang/python27/work/stage//lib/python2.7/lib-dynload/_hashlib.so:No
> such file or directory
> *** Error code 1
> 
> Stop.
> make[1]: stopped in /usr/ports/lang/python27
> *** Error code 1
> 
> Stop.
> make: stopped in /usr/ports/lang/python27
> ```
> 
> The files missing are actually
> in /usr/ports/lang/python27/work/stage/usr/local/lib/python2.7/lib-dynload/.
> 
> How can I solve this problem?

Works for me on stable/14 (amd64) and main(arm64):

% find work/stage -name "_hashlib.so"
work/stage/usr/local/lib/python2.7/lib-dynload/_hashlib.so

Do you use openssl/libressl from ports? Can you check the build log
for more information?