From nobody Fri Oct 4 13:12:15 2024 X-Original-To: ports-bugs@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4XKpqM5ThZz5Xl0t for ; Fri, 04 Oct 2024 13:12:15 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R11" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4XKpqM39qRz4q2s for ; Fri, 4 Oct 2024 13:12:15 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1728047535; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=MDIWfRNWlwgGJuy8+c0wpmcpzoXNs3POlJz0hRGVq4s=; b=dP2NsHr8Rl+9/Z1wB/2EgHnCshPJeeYp0HQorC7gcMu0ubquWzj+x2j+AuwmO5MqqdxbSl fRnvwlSMCkfNxZEoGJWF0iBh+fBftgXMtLhqbbnlS8aBe7RKhAi68ttiUYHK8jtN/bq2wE VPlxkmPC7cYl35xeRTh00TnS0XHLEzRa4xnzqT51KOOysuOXtCoxfccldOgow0S67MAsO2 Ktv/CNfz0JCQ887ySRMRXRf20RBydAC4XOETTFLUg3aS9mEZyIkq+oR9BKkZ8Hn2s8pRjQ ZRHFsXlKVzf7jPzfitI4+CNL240+QGy0aYZEYsfuJ8hUwgRPuRDT769y1qbEFg== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1728047535; a=rsa-sha256; cv=none; b=k20egwPoyjVSV++ry9vecgeYs+AnVstloGLsAFceRzPVFsNO185XJfJZ8b3E+uVafubcmu skPXPPhzkZR0bxGSbpPzW1CkReBYqrQcQvalZJRBfSOVUkREj9/4AB5XT+4lRxv/egULuX mG7xlk76QXSOExghy6VuOQsngTOIXJl173HBWVkfxBmlvAZaRPYBYK1wb+YYAsuCYAvTSp GcK6AQ+GBcSf2MStYK48OI8drQlfgTUfKM1ARm0DpwNjwyZALEJzd206RzOShGSlW8l74g hvySg7N2Q91r8yRWaCdSJfacCdcgzCxb1oyXmNnNQov4N6mXBmMvelLYkxOImw== Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2610:1c1:1:606c::50:1d]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 4XKpqM2nW1zbwq for ; Fri, 4 Oct 2024 13:12:15 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org ([127.0.1.5]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id 494DCF21066782 for ; Fri, 4 Oct 2024 13:12:15 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 494DCFw3066781 for ports-bugs@FreeBSD.org; Fri, 4 Oct 2024 13:12:15 GMT (envelope-from bugzilla-noreply@freebsd.org) X-Authentication-Warning: kenobi.freebsd.org: www set sender to bugzilla-noreply@freebsd.org using -f From: bugzilla-noreply@freebsd.org To: ports-bugs@FreeBSD.org Subject: [Bug 281848] mail/py-spf-engine Date: Fri, 04 Oct 2024 13:12:15 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Ports & Packages X-Bugzilla-Component: Individual Port(s) X-Bugzilla-Version: Latest X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Only Me X-Bugzilla-Who: gessel@blackrosetech.com X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: ports-bugs@FreeBSD.org X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_id short_desc product version rep_platform op_sys bug_status bug_severity priority component assigned_to reporter Message-ID: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated List-Id: Ports bug reports List-Archive: https://lists.freebsd.org/archives/freebsd-ports-bugs List-Help: List-Post: List-Subscribe: List-Unsubscribe: X-BeenThere: freebsd-ports-bugs@freebsd.org Sender: owner-freebsd-ports-bugs@FreeBSD.org MIME-Version: 1.0 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D281848 Bug ID: 281848 Summary: mail/py-spf-engine Product: Ports & Packages Version: Latest Hardware: Any OS: Any Status: New Severity: Affects Only Me Priority: --- Component: Individual Port(s) Assignee: ports-bugs@FreeBSD.org Reporter: gessel@blackrosetech.com mail/py311-spf-engine-3.0.4 doesn't start with security/openssl32-3.2.3 (and likely other openssl3x variants). Running "/usr/sbin/daemon -c /usr/local/bin/pyspf-milter /usr/local/etc/pyspf-milter/pyspf-milter.conf" = to get stdio errors yields ... File "/usr/local/lib/python3.11/site-packages/cryptography/x509/certificate_tran= sparency.py", line 11, in from cryptography.hazmat.bindings._rust import x509 as rust_x509 RuntimeError: OpenSSL 3.0's legacy provider failed to load. This is a fatal error by default, but cryptography supports running without legacy algorith= ms by setting the environment variable CRYPTOGRAPHY_OPENSSL_NO_LEGACY. If you = did not expect this error, you have likely made a mistake with your OpenSSL configuration. .... executing "export CRYPTOGRAPHY_OPENSSL_NO_LEGACY=3D1" and then repeating, t= he service runs and stays up.=20=20 The following patch sets the value before each execution. The problem appe= ars to be inherited from py-cryptography and also impacts certbot. Other options would include exporting the variable from .profile until the issue is resol= ved upstream. *** /usr/local/bin/pyspf-milter Thu Oct 3 23:10:03 2024 --- /usr/local/bin/pyspf-milter.mod Fri Oct 4 05:34:09 2024 *************** *** 1,8 **** --- 1,10 ---- #!/usr/local/bin/python3.11 # -*- coding: utf-8 -*- import re import sys + import os + os.environ['CRYPTOGRAPHY_OPENSSL_NO_LEGACY'] =3D '1' from spf_engine.milter_spf import main if __name__ =3D=3D "__main__": sys.argv[0] =3D re.sub(r"(-script\.pyw|\.exe)?$", "", sys.argv[0]) sys.exit(main()) --=20 You are receiving this mail because: You are the assignee for the bug.=