pkgsrc-Users archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: py38-certbot-2.6.0 - Broken for me in pkgsrc_head



On Tue, 16 May 2023 at 14:25, <yancm%sdf.org@localhost> wrote:
>
> On NetBSD 9.3_STABLE amd64, pkgsrc latest, I'm getting:
>
> # certbot
> Traceback (most recent call last):
>   File "/usr/pkg/bin/certbot", line 33, in <module>
>     sys.exit(load_entry_point('certbot==2.6.0', 'console_scripts',
> 'certbot')())
>   File "/usr/pkg/bin/certbot", line 25, in importlib_load_entry_point
>     return next(matches).load()
>   File "/usr/pkg/lib/python3.8/importlib/metadata.py", line 77, in load
>     module = import_module(match.group('module'))
>   File "/usr/pkg/lib/python3.8/importlib/__init__.py", line 127, in
> import_module
>     return _bootstrap._gcd_import(name[level:], package, level)
>   File "<frozen importlib._bootstrap>", line 1014, in _gcd_import
>   File "<frozen importlib._bootstrap>", line 991, in _find_and_load
>   File "<frozen importlib._bootstrap>", line 975, in _find_and_load_unlocked
>   File "<frozen importlib._bootstrap>", line 671, in _load_unlocked
>   File "<frozen importlib._bootstrap_external>", line 843, in exec_module
>   File "<frozen importlib._bootstrap>", line 219, in
> _call_with_frames_removed
>   File "/usr/pkg/lib/python3.8/site-packages/certbot/main.py", line 6, in
> <module>
>     from certbot._internal import main as internal_main
>   File "/usr/pkg/lib/python3.8/site-packages/certbot/_internal/main.py",
> line 21, in <module>
>     import josepy as jose
>   File "/usr/pkg/lib/python3.8/site-packages/josepy/__init__.py", line 40,
> in <module>
>     from josepy.json_util import (
>   File "/usr/pkg/lib/python3.8/site-packages/josepy/json_util.py", line
> 14, in <module>
>     from OpenSSL import crypto
>   File "/usr/pkg/lib/python3.8/site-packages/OpenSSL/__init__.py", line 8,
> in <module>
>     from OpenSSL import SSL, crypto
>   File "/usr/pkg/lib/python3.8/site-packages/OpenSSL/SSL.py", line 9, in
> <module>
>     from OpenSSL._util import (
>   File "/usr/pkg/lib/python3.8/site-packages/OpenSSL/_util.py", line 6, in
> <module>
>     from cryptography.hazmat.bindings.openssl.binding import Binding
>   File
> "/usr/pkg/lib/python3.8/site-packages/cryptography/hazmat/bindings/openssl/binding.py",
> line 15, in <module>
>     from cryptography.hazmat.bindings._rust import _openssl, openssl
> ImportError:
> /usr/pkg/lib/python3.8/site-packages/cryptography/hazmat/bindings/_rust.abi3.so:
> Shared object "libssl.so.1.1" not found
>
> I tried rebuilding certbot and testing, but apparently there are no tests
> for certbot?
>

I managed to build it working for -current pkgsrc and -current NetBSD.


Updates are required for py-requests (to 2.30), py-acme (to 2.6) and
to py-certbot (to 2.6).

The pkgsrc patches are trivial:
---- py-certbot ------

cvs diff: Diffing .
Index: Makefile.common
===================================================================
RCS file: /cvsroot/pkgsrc/security/py-certbot/Makefile.common,v
retrieving revision 1.76
diff -u -r1.76 Makefile.common
--- Makefile.common     17 Apr 2023 09:22:04 -0000      1.76
+++ Makefile.common     17 May 2023 11:25:24 -0000
@@ -16,7 +16,7 @@
 # used by security/py-certbot-dns-sakuracloud/Makefile
 # used by security/py-certbot-nginx/Makefile

-CERTBOT_VERSION=       2.5.0
+CERTBOT_VERSION=       2.6.0

 PKGNAME=       ${PYPKGPREFIX}-${DISTNAME}
 CATEGORIES?=   security python
Index: distinfo
===================================================================
RCS file: /cvsroot/pkgsrc/security/py-certbot/distinfo,v
retrieving revision 1.79
diff -u -r1.79 distinfo
--- distinfo    17 Apr 2023 09:22:04 -0000      1.79
+++ distinfo    17 May 2023 11:25:24 -0000
@@ -1,5 +1,5 @@
 $NetBSD: distinfo,v 1.79 2023/04/17 09:22:04 adam Exp $

-BLAKE2s (certbot-2.5.0.tar.gz) =
57cd11390f4300238da8d0fd5a4860d37df1a2358af15a33010c32ffd4844d7c
-SHA512 (certbot-2.5.0.tar.gz) =
0e26e64ad9fab67b36c9e481bdc2d56749999d5a66bde48dda719968b0eb216284eb737dff4ce46707c09da97702ab01f44adfb945215a0ec36f7b9779109669
-Size (certbot-2.5.0.tar.gz) = 419372 bytes
+BLAKE2s (certbot-2.6.0.tar.gz) =
02c3bab95fc971bdadff2fa8ba07c8d7b079e7d6e95deae75c35269603bf3fad
+SHA512 (certbot-2.6.0.tar.gz) =
a9eb1489c9a6deb2a8db3d1a6cbb52f8fa1ab38a43a2d493db50aedd846df189c3d0ff75b9653de92a0f8dd2e1aa44241323cb27f804d7b22e3e89fb9ee3d117
+Size (certbot-2.6.0.tar.gz) = 428303 bytes


-----   py-acme -----

cvs diff: Diffing .
Index: distinfo
===================================================================
RCS file: /cvsroot/pkgsrc/security/py-acme/distinfo,v
retrieving revision 1.51
diff -u -r1.51 distinfo
--- distinfo    17 Apr 2023 09:22:04 -0000      1.51
+++ distinfo    17 May 2023 11:26:24 -0000
@@ -1,5 +1,5 @@
 $NetBSD: distinfo,v 1.51 2023/04/17 09:22:04 adam Exp $

-BLAKE2s (acme-2.5.0.tar.gz) =
0b6d3770fb621e23727dc91848c7871990ce309c925569da916aac43883d378e
-SHA512 (acme-2.5.0.tar.gz) =
b7afadc8c08660c18bf6f93e5f9b1eb75c91b1345cda778072b53277995cb80b190b774151fad31eec709ad30ef0b337f164cf9e3cd9a8b48fff91e09360bd98-Size
(acme-2.5.0.tar.gz) = 88639 bytes
+BLAKE2s (acme-2.6.0.tar.gz) =
70af8cd7dbbf86d3cc75bef661a968b0cc3d7764f66fa0820bd2b2d8d06ac2c9
+SHA512 (acme-2.6.0.tar.gz) =
025634d476d723660eabc0fdb5e0b18be3635ceaf37f73790826e7d92488885af6c87e4f2a22559431f34f904d0cbd8df1fb073b1f109dcfea957103f7c04deb+Size
(acme-2.6.0.tar.gz) = 91257 bytes

----- py-requests ------

cvs diff: Diffing .
cvs diff: Diffing patches
Index: Makefile
===================================================================
RCS file: /cvsroot/pkgsrc/devel/py-requests/Makefile,v
retrieving revision 1.59
diff -u -r1.59 Makefile
--- Makefile    30 Apr 2023 18:02:03 -0000      1.59
+++ Makefile    17 May 2023 11:27:21 -0000
@@ -1,6 +1,6 @@
 # $NetBSD: Makefile,v 1.59 2023/04/30 18:02:03 wiz Exp $

-DISTNAME=      requests-2.29.0
+DISTNAME=      requests-2.30.0
 PKGNAME=       ${PYPKGPREFIX}-${DISTNAME}
 CATEGORIES=    devel www python
 MASTER_SITES=  ${MASTER_SITE_PYPI:=r/requests/}
Index: distinfo
===================================================================
RCS file: /cvsroot/pkgsrc/devel/py-requests/distinfo,v
retrieving revision 1.47
diff -u -r1.47 distinfo
--- distinfo    30 Apr 2023 18:02:03 -0000      1.47
+++ distinfo    17 May 2023 11:27:21 -0000
@@ -1,6 +1,6 @@
 $NetBSD: distinfo,v 1.47 2023/04/30 18:02:03 wiz Exp $

-BLAKE2s (requests-2.29.0.tar.gz) =
d958002d6d132a52df94e8290d25cd3c861a3abc368df65d19c752649a35c766
-SHA512 (requests-2.29.0.tar.gz) =
22c7c9e6ae44abe60cf7cc2108d42d9a0952ae317936995f379155d24013c24a2c654469a781a61b2ae6488429e337d31b565a91f1266eb1c038a4c8a9069642
-Size (requests-2.29.0.tar.gz) = 108279 bytes
+BLAKE2s (requests-2.30.0.tar.gz) =
52d01eb3b24b67d4f98038fd5115d898860eaa2f77cf6ce21c10d607d75f0d37
+SHA512 (requests-2.30.0.tar.gz) =
a950a156ac78e5e315b95619f8753f7ba837c63198e256ea69a53f9492f7be1cecb295fcacbf091f3d5ae077ea02c67056d753f99c2b95cc9d233c3ca77f2905
+Size (requests-2.30.0.tar.gz) = 108411 bytes
 SHA1 (patch-setup.py) = 9344db9f4ce311a59564f89f35538bab4aa2ad7e

......
# uname -a
NetBSD ymir.lorien.lan 10.99.4 NetBSD 10.99.4 (GENERIC) #0: Sat May 13
23:09:24 BST 2023
sysbuild%ymir.lorien.lan@localhost:/dumps/sysbuild/amd64/obj/home/sysbuild/src/sys/arch/amd64/compile/GENERIC
amd64
# certbot
Saving debug log to /var/letsencrypt/log/letsencrypt.log
Certbot doesn't know how to automatically configure the web server on
this system. However, it can still get a certificate for you. Please
run "certbot certonly" to do so. You'll need to manually configure
your web server to use the resulting certificate.



> any help appreciated!
> --gene
>
>

Chavdar


-- 
----


Home | Main Index | Thread Index | Old Index