Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 13 Feb 2025 15:07:31 +0000
From:      Yusuf Yaman <nxjoseph@protonmail.com>
To:        Yasuhiro Kimura <yasu@FreeBSD.org>, freebsd-ports@freebsd.org
Subject:   Re: Download failure of distfile from PyPI
Message-ID:  <3e6dea8f-418d-4fa4-b580-fa3ebcfe8297@protonmail.com>
In-Reply-To: <8ba8967a-efaf-4adc-99f2-f1f87769f718@protonmail.com>
References:  <20250214.000109.1921651909032065719.yasu@FreeBSD.org> <8ba8967a-efaf-4adc-99f2-f1f87769f718@protonmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help
I looked at the older versions and distname is pyOpenSSL, so in newer=20
version they changed it to all lowercase.

On 2/13/25 18:05, Yusuf Yaman wrote:
> Hi,
>
> I changed distname to all lowercase and it worked for me.
>
> -DISTNAME=3D=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 pyOpenSSL-${PORTVERSION}
> +DISTNAME=3D=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 pyopenssl-${PORTVERSION}
>
>
> see pypi page and download files section, there is showing the distfile
> name.
>
> On 2/13/25 18:01, Yasuhiro Kimura wrote:
>> Hello,
>>
>> New version of certbot 3.2.0 is released. I tried to update related
>> ports and found 3.20 requires pyOpenSSL 25.0.0 or later. Since current
>> version of security/py-openssl is 24.1.0, I decided to update it
>> first. I changed DISTVERSION to 25.0.0 in security/py-openssl/Makefile
>> and tried to update distinfo with `make makesum`. But it fails because
>> of download failure of distfile as following.
>>
>> % pwd
>> /usr/ports/security/py-openssl
>> % git diff
>> diff --git a/security/py-openssl/Makefile b/security/py-openssl/Makefile
>> index 19e354cf6b4a..7cefad155281 100644
>> --- a/security/py-openssl/Makefile
>> +++ b/security/py-openssl/Makefile
>> @@ -1,5 +1,5 @@
>>    PORTNAME=3D      openssl
>> -PORTVERSION=3D   24.1.0
>> +PORTVERSION=3D   25.0.0
>>    PORTEPOCH=3D     1
>>    CATEGORIES=3D    security python
>>    MASTER_SITES=3D  PYPI
>> % make makesum
>> =3D=3D=3D>  License APACHE20 accepted by the user
>> =3D=3D=3D>  License APACHE20 accepted by the user
>> =3D=3D=3D>   py311-openssl-25.0.0,1 depends on file: /usr/local/sbin/pkg=
 - found
>> =3D> pyOpenSSL-25.0.0.tar.gz doesn't seem to exist in /net/freebsd/ports=
/distfiles/.
>> =3D> Attempting to fetch https://files.pythonhosted.org/packages/source/=
p/pyOpenSSL/pyOpenSSL-25.0.0.tar.gz
>> fetch: https://files.pythonhosted.org/packages/source/p/pyOpenSSL/pyOpen=
SSL-25.0.0.tar.gz: Not Found
>> =3D> Attempting to fetch https://pypi.org/packages/source/p/pyOpenSSL/py=
OpenSSL-25.0.0.tar.gz
>> fetch: https://pypi.org/packages/source/p/pyOpenSSL/pyOpenSSL-25.0.0.tar=
.gz: Not Found
>> =3D> Attempting to fetch http://distcache.FreeBSD.org/ports-distfiles/py=
OpenSSL-25.0.0.tar.gz
>> fetch: http://distcache.FreeBSD.org/ports-distfiles/pyOpenSSL-25.0.0.tar=
.gz: Not Found
>> =3D> Couldn't fetch it - please try to retrieve this
>> =3D> port manually into /net/freebsd/ports/distfiles/ and try again.
>> *** Error code 1
>>
>> Stop.
>> make[1]: stopped in /usr/ports/security/py-openssl
>> *** Error code 1
>>
>> Stop.
>> make: stopped in /usr/ports/security/py-openssl
>> %
>>
>> IIRC such download failure also happened when I tried to update
>> certbot ports before. So this might be something that happens from
>> time to time.
>>
>> Then what should I do to fix it? Should I report it upstream (author)
>> or PyPI? Please let me know if soneone knows.
>>
>> Regards.
>>
>> ---
>> Yasuhiro Kimura
>>




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?3e6dea8f-418d-4fa4-b580-fa3ebcfe8297>