[Bug 266680] security/py-openssl: Update to 23.2.0

2023-08-31 Thread bugzilla-noreply
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=266680

--- Comment #16 from Li-Wen Hsu  ---
(In reply to Charlie Li from comment #15)
I think it's not hurry now, as currently there is no consumer of
py-cryptography-legacy or the direct consumer of legacy py-openssl (which uses
py-cryptography-legacy) so we can update py-openssl to let its consumers
working first. We can add py-openssl-legacy when needed.

-- 
You are receiving this mail because:
You are on the CC list for the bug.


[Bug 266680] security/py-openssl: Update to 23.2.0

2023-08-31 Thread bugzilla-noreply
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=266680

bagas  changed:

   What|Removed |Added

 CC||bagas1...@mail.ru

--- Comment #17 from bagas  ---
Hello.

py39-certbot-2.6.0,1   =   up-to-date with index
py39-josepy-1.13.0 =   up-to-date with index
py39-openssl-21.0.0,1  =   up-to-date with index
python39-3.9.17=   up-to-date with index
py39-cryptography-41.0.3,1 =   up-to-date with index

 # certbot -q renew --allow-subset-of-names
Traceback (most recent call last):
  File "/usr/local/bin/certbot", line 33, in 
sys.exit(load_entry_point('certbot==2.6.0', 'console_scripts',
'certbot')())
  File "/usr/local/bin/certbot", line 25, in importlib_load_entry_point
return next(matches).load()
  File "/usr/local/lib/python3.9/importlib/metadata.py", line 86, in load
module = import_module(match.group('module'))
  File "/usr/local/lib/python3.9/importlib/__init__.py", line 127, in
import_module
return _bootstrap._gcd_import(name[level:], package, level)
  File "", line 1030, in _gcd_import
  File "", line 1007, in _find_and_load
  File "", line 986, in _find_and_load_unlocked
  File "", line 680, in _load_unlocked
  File "", line 850, in exec_module
  File "", line 228, in _call_with_frames_removed
  File "/usr/local/lib/python3.9/site-packages/certbot/main.py", line 6, in

from certbot._internal import main as internal_main
  File "/usr/local/lib/python3.9/site-packages/certbot/_internal/main.py", line
21, in 
import josepy as jose
  File "/usr/local/lib/python3.9/site-packages/josepy/__init__.py", line 40, in

from josepy.json_util import (
  File "/usr/local/lib/python3.9/site-packages/josepy/json_util.py", line 14,
in 
from OpenSSL import crypto
  File "/usr/local/lib/python3.9/site-packages/OpenSSL/__init__.py", line 8, in

from OpenSSL import crypto, SSL
  File "/usr/local/lib/python3.9/site-packages/OpenSSL/crypto.py", line 3279,
in 
_lib.OpenSSL_add_all_algorithms()
AttributeError: module 'lib' has no attribute 'OpenSSL_add_all_algorithms'

How to fix?

-- 
You are receiving this mail because:
You are on the CC list for the bug.


[Bug 266680] security/py-openssl: Update to 23.2.0

2023-08-31 Thread bugzilla-noreply
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=266680

Li-Wen Hsu  changed:

   What|Removed |Added

 Blocks||273473


Referenced Bugs:

https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=273473
[Bug 273473] py-certbot AttributeError: module 'lib' has no attribute
'OpenSSL_add_all_algorithms'
-- 
You are receiving this mail because:
You are on the CC list for the bug.


[Bug 266680] security/py-openssl: Update to 23.2.0

2023-08-31 Thread bugzilla-noreply
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=266680

Li-Wen Hsu  changed:

   What|Removed |Added

   Assignee|ports-b...@freebsd.org  |lw...@freebsd.org
 Status|Open|In Progress

--- Comment #18 from Li-Wen Hsu  ---
Created attachment 244518
  --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=244518&action=edit
integrated patch

-- 
You are receiving this mail because:
You are on the CC list for the bug.


[Bug 273474] security/py-certbot

2023-08-31 Thread bugzilla-noreply
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=273474

Bug ID: 273474
   Summary: security/py-certbot
   Product: Ports & Packages
   Version: Latest
  Hardware: Any
OS: Any
Status: New
  Severity: Affects Many People
  Priority: ---
 Component: Individual Port(s)
  Assignee: python@FreeBSD.org
  Reporter: dwei...@dweimer.net
 Flags: maintainer-feedback?(python@FreeBSD.org)
  Assignee: python@FreeBSD.org

Broken after py-cryptography-41.0.3,1 update.

CertBot Renew
Traceback (most recent call last):
  File "/usr/local/bin/certbot", line 33, in 
sys.exit(load_entry_point('certbot==2.6.0', 'console_scripts',
'certbot')())
 
  File "/usr/local/bin/certbot", line 25, in importlib_load_entry_point
return next(matches).load()
   
  File "/usr/local/lib/python3.11/importlib/metadata/__init__.py", line 202, in
load
module = import_module(match.group('module'))
 
  File "/usr/local/lib/python3.11/importlib/__init__.py", line 126, in
import_module
return _bootstrap._gcd_import(name[level:], package, level)
   
  File "", line 1204, in _gcd_import
  File "", line 1176, in _find_and_load
  File "", line 1147, in _find_and_load_unlocked
  File "", line 690, in _load_unlocked
  File "", line 940, in exec_module
  File "", line 241, in _call_with_frames_removed
  File "/usr/local/lib/python3.11/site-packages/certbot/main.py", line 6, in

from certbot._internal import main as internal_main
  File "/usr/local/lib/python3.11/site-packages/certbot/_internal/main.py",
line 21, in 
import josepy as jose
  File "/usr/local/lib/python3.11/site-packages/josepy/__init__.py", line 40,
in 
from josepy.json_util import (
  File "/usr/local/lib/python3.11/site-packages/josepy/json_util.py", line 14,
in 
from OpenSSL import crypto
  File "/usr/local/lib/python3.11/site-packages/OpenSSL/__init__.py", line 8,
in 
from OpenSSL import crypto, SSL
  File "/usr/local/lib/python3.11/site-packages/OpenSSL/crypto.py", line 3279,
in 
_lib.OpenSSL_add_all_algorithms()
^^^
AttributeError: module 'lib' has no attribute 'OpenSSL_add_all_algorithms'

-- 
You are receiving this mail because:
You are the assignee for the bug.


maintainer-feedback requested: [Bug 273474] security/py-certbot

2023-08-31 Thread bugzilla-noreply
Bugzilla Automation  has asked freebsd-python (Nobody)
 for maintainer-feedback:
Bug 273474: security/py-certbot
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=273474



--- Description ---
Broken after py-cryptography-41.0.3,1 update.

CertBot Renew
Traceback (most recent call last):
  File "/usr/local/bin/certbot", line 33, in 
sys.exit(load_entry_point('certbot==2.6.0', 'console_scripts',
'certbot')())
 
  File "/usr/local/bin/certbot", line 25, in importlib_load_entry_point
return next(matches).load()
   
  File "/usr/local/lib/python3.11/importlib/metadata/__init__.py", line 202, in
load
module = import_module(match.group('module'))
 
  File "/usr/local/lib/python3.11/importlib/__init__.py", line 126, in
import_module
return _bootstrap._gcd_import(name[level:], package, level)
   
  File "", line 1204, in _gcd_import
  File "", line 1176, in _find_and_load
  File "", line 1147, in _find_and_load_unlocked
  File "", line 690, in _load_unlocked
  File "", line 940, in exec_module
  File "", line 241, in _call_with_frames_removed
  File "/usr/local/lib/python3.11/site-packages/certbot/main.py", line 6, in

from certbot._internal import main as internal_main
  File "/usr/local/lib/python3.11/site-packages/certbot/_internal/main.py",
line 21, in 
import josepy as jose
  File "/usr/local/lib/python3.11/site-packages/josepy/__init__.py", line 40,
in 
from josepy.json_util import (
  File "/usr/local/lib/python3.11/site-packages/josepy/json_util.py", line 14,
in 
from OpenSSL import crypto
  File "/usr/local/lib/python3.11/site-packages/OpenSSL/__init__.py", line 8,
in 
from OpenSSL import crypto, SSL
  File "/usr/local/lib/python3.11/site-packages/OpenSSL/crypto.py", line 3279,
in 
_lib.OpenSSL_add_all_algorithms()
^^^
AttributeError: module 'lib' has no attribute 'OpenSSL_add_all_algorithms'



[Bug 273474] security/py-certbot

2023-08-31 Thread bugzilla-noreply
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=273474

Li-Wen Hsu  changed:

   What|Removed |Added

 Status|New |Closed
 CC||lw...@freebsd.org
 Resolution|--- |DUPLICATE

--- Comment #1 from Li-Wen Hsu  ---


*** This bug has been marked as a duplicate of bug 273473 ***

-- 
You are receiving this mail because:
You are the assignee for the bug.


[Bug 266680] security/py-openssl: Update to 23.2.0

2023-08-31 Thread bugzilla-noreply
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=266680

--- Comment #19 from commit-h...@freebsd.org ---
A commit in branch main references this bug:

URL:
https://cgit.FreeBSD.org/ports/commit/?id=11e8f3c89438ceef19d425937a4e9de5085f9002

commit 11e8f3c89438ceef19d425937a4e9de5085f9002
Author: Li-Wen Hsu 
AuthorDate: 2023-08-31 13:27:26 +
Commit: Li-Wen Hsu 
CommitDate: 2023-08-31 13:27:26 +

security/py-openssl: Update to 23.2.0

This patch combines the efforts from the people invloved in the PR.
I just do the integrating and testing.

PR: 266680
Approved by:sbz (earlier version)
Sponsored by:   The FreeBSD Foundation
Differential Revision:  https://reviews.freebsd.org/D39037

 security/py-openssl/Makefile | 24 +---
 security/py-openssl/distinfo |  6 +++---
 2 files changed, 12 insertions(+), 18 deletions(-)

-- 
You are receiving this mail because:
You are on the CC list for the bug.


[Bug 266680] security/py-openssl: Update to 23.2.0

2023-08-31 Thread bugzilla-noreply
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=266680

--- Comment #20 from László Károlyi  ---
(In reply to commit-hook from comment #19)

Can confirm this patch/update works, it fixed my policyd-spf (that uses
py-openssl) problem.

Cheers,
László

-- 
You are receiving this mail because:
You are on the CC list for the bug.


[Bug 256885] [NEW PORT] www/py-homeassistant: Open-source home automation platform

2023-08-31 Thread bugzilla-noreply
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=256885
Bug 256885 depends on bug 254853, which changed state.

Bug 254853 Summary: security/py-cryptography: Update to 41.0.3
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=254853

   What|Removed |Added

 Status|In Progress |Closed
 Resolution|--- |FIXED

-- 
You are receiving this mail because:
You are on the CC list for the bug.


[Bug 264993] www/mitmproxy: Update to 9.0.1

2023-08-31 Thread bugzilla-noreply
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=264993
Bug 264993 depends on bug 254853, which changed state.

Bug 254853 Summary: security/py-cryptography: Update to 41.0.3
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=254853

   What|Removed |Added

 Status|In Progress |Closed
 Resolution|--- |FIXED

-- 
You are receiving this mail because:
You are on the CC list for the bug.


[Bug 272885] security/py-certbot builds but won't run on -current (has OpenSSL 3.0.9 30 May 2023 in base)

2023-08-31 Thread bugzilla-noreply
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=272885
Bug 272885 depends on bug 254853, which changed state.

Bug 254853 Summary: security/py-cryptography: Update to 41.0.3
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=254853

   What|Removed |Added

 Status|In Progress |Closed
 Resolution|--- |FIXED

-- 
You are receiving this mail because:
You are on the CC list for the bug.
You are the assignee for the bug.


[Bug 266680] security/py-openssl: Update to 23.2.0

2023-08-31 Thread bugzilla-noreply
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=266680
Bug 266680 depends on bug 254853, which changed state.

Bug 254853 Summary: security/py-cryptography: Update to 41.0.3
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=254853

   What|Removed |Added

 Status|In Progress |Closed
 Resolution|--- |FIXED

-- 
You are receiving this mail because:
You are on the CC list for the bug.


[Bug 272885] security/py-certbot builds but won't run on -current (has OpenSSL 3.0.9 30 May 2023 in base)

2023-08-31 Thread bugzilla-noreply
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=272885

Li-Wen Hsu  changed:

   What|Removed |Added

 Status|New |Closed
 CC||lw...@freebsd.org
 Resolution|--- |FIXED

-- 
You are receiving this mail because:
You are the assignee for the bug.
You are on the CC list for the bug.


[Bug 266680] security/py-openssl: Update to 23.2.0

2023-08-31 Thread bugzilla-noreply
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=266680

Li-Wen Hsu  changed:

   What|Removed |Added

 Resolution|--- |FIXED
 Status|In Progress |Closed

-- 
You are receiving this mail because:
You are on the CC list for the bug.


[Bug 266680] security/py-openssl: Update to 23.2.0

2023-08-31 Thread bugzilla-noreply
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=266680

--- Comment #21 from Enji Cooper  ---
(In reply to Li-Wen Hsu from comment #16)

We will need to come up with a story around these -legacy vs non-legacy
consumers: the -legacy ones will need to be marked broken on >=3.x and the
non-legacy ones need to be marked broken on <3.x--otherwise the package
builders are going to complain because of OpenSSL in base in 12.x/13.x.

It's a bit of a tricky pickle too because of upstream ports deprecating support
for OpenSSL 1.1--for good reason since it's EOL in another month--but that's a
side-discussion for a different forum.

-- 
You are receiving this mail because:
You are on the CC list for the bug.


[Bug 266680] security/py-openssl: Update to 23.2.0

2023-08-31 Thread bugzilla-noreply
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=266680

--- Comment #22 from Charlie Li  ---
(In reply to Li-Wen Hsu from comment #16)
Anyone who sets legacy for the cryptography DEFAULT_VERSIONS is a consumer.
While not visible on say FreshPorts or anything that tracks the default
DEFAULT_VERSIONS, you still have to account for those cases.

A separate PyOpenSSL-legacy port is not feasible or in users' best interest in
any case, since it would involve not only a new port, but possibly even an
additional DEFAULT_VERSIONS knob. Such would only cause more confusion for
users, who should not need to closely track cryptography and PyOpenSSL's
development, to figure out which combination works with what. There is no API
compatibility guarantee between different versions of the two packages, and
because the two packages do not sync development or releases between
themselves, some contention in this area has and will continue to happen. Hence
why the best approach is to provide both 21.0.0 and whatever the current
version is/becomes in the same port, gated on the DEFAULT_VERSIONS setting.

-- 
You are receiving this mail because:
You are on the CC list for the bug.