From nobody Wed Sep 20 08:18:20 2023 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 4RrBHc3Z2Dz4tJVH for ; Wed, 20 Sep 2023 08:18:20 +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 "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4RrBHc2Yl0z4GSB for ; Wed, 20 Sep 2023 08:18:20 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1695197900; a=rsa-sha256; cv=none; b=r6mxl6W8pAhF/QflW7UANp1es2j28jShBdGqp1OwDv1lXbSqEtbt7gpnKrG9gZQcvmwfw+ 13y3QTaMdTyp60xg3FixJwW8r3A8gTNkS+FSr+94rNecbuzxEassI+UYrUfHjcH8XfyDEl KRVNEWIK2xZOGXz9+v0bHEi0Hipy3U6Oij8xZpM2S1DtFC+Aemn66h8aa6xC28qhL8nmpA uvRgmG6y/02jh/ixLraBXRtISjut1dFcPf8Vd5kidPYVWPVj0JnVTVXGbuSlBZtpTn5JQk jUG+jUs1hXC21UWWK3jNaqOgjjxc4m/+8C3zFmh4fEVQJ+JGjXTlF7vbeG7XBQ== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1695197900; 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=FRP9G1n6R/MuXFdzQcBgsTTN5Ge386tNLcXaHrQ2oEs=; b=t8BlRDKdISTBVgutCuiXymTyCongHp2HbNnCwDGi/l9bvbp76jlw85jrzDmaVbP/XIdY+u L/MopXdnh07zgJipalX58mVTnXm4Cc48eP7lz610Zmk9LNxfH/0bry63H8T8q0B+RhPo/N UJ7WgydLmaJS/8+1p+A+1DqUgguzhGjcem5SSca8sY3pCH0RdrE42BkSy6uZU3sebIpc+o 1UrRM0SbYsn8e21iuZdnqjzBffeaAdizSm6qTAR0HBkD5FTNqjTtNfrIkZZ8RWWqQSEseT 2pURjPuzcZYWBFh/gFpcbQ8xjeYJL/rqWxwUD5jmkbhBKMdHJenn+x2eh24n3w== 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 4RrBHc1Y4tznyX for ; Wed, 20 Sep 2023 08:18:20 +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 38K8IKI4038988 for ; Wed, 20 Sep 2023 08:18:20 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 38K8IKs7038987 for ports-bugs@FreeBSD.org; Wed, 20 Sep 2023 08:18:20 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 273960] security/py-cryptography: `make test` fails with 'DEFAULT_VERSIONS+=ssl=openssl30' Date: Wed, 20 Sep 2023 08:18:20 +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: yasu@freebsd.org X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: sunpoet@FreeBSD.org X-Bugzilla-Flags: maintainer-feedback? X-Bugzilla-Changed-Fields: bug_id short_desc product version rep_platform op_sys bug_status bug_severity priority component assigned_to reporter flagtypes.name 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: Sender: owner-freebsd-ports-bugs@freebsd.org X-BeenThere: freebsd-ports-bugs@freebsd.org MIME-Version: 1.0 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D273960 Bug ID: 273960 Summary: security/py-cryptography: `make test` fails with 'DEFAULT_VERSIONS+=3Dssl=3Dopenssl30' Product: Ports & Packages Version: Latest Hardware: Any OS: Any Status: New Severity: Affects Only Me Priority: --- Component: Individual Port(s) Assignee: sunpoet@FreeBSD.org Reporter: yasu@freebsd.org Flags: maintainer-feedback?(sunpoet@FreeBSD.org) Assignee: sunpoet@FreeBSD.org On 13.2-RELEASE amd64 I add 'DEFAULT_VERSIONS+=3Dssl=3Dopenssl30' to /etc/m= ake.conf and do `cd /usr/ports/security/py-cryptography; make test`. Then it fails as following. ---------------------------------------------------------------------- cd /usr0/freebsd/ports/work/usr/ports/security/py-cryptography/work-py39/crypt= ography-41.0.3 && /usr/bin/env PYTHONPATH=3D/usr0/freebsd/ports/work/usr/ports/security/py-cryptography/wo= rk-py39/stage/usr/local/lib/python3.9/site-packages /usr/local/bin/python3.9 -m pytest -k '' -rs -v -o addopts=3D=20 ImportError while loading conftest '/usr0/freebsd/ports/work/usr/ports/security/py-cryptography/work-py39/cryp= tography-41.0.3/tests/conftest.py'. tests/conftest.py:9: in from cryptography.hazmat.backends.openssl import backend as openssl_bac= kend ../stage/usr/local/lib/python3.9/site-packages/cryptography/hazmat/backends= /openssl/__init__.py:7: in from cryptography.hazmat.backends.openssl.backend import backend ../stage/usr/local/lib/python3.9/site-packages/cryptography/hazmat/backends= /openssl/backend.py:13: in from cryptography import utils, x509 ../stage/usr/local/lib/python3.9/site-packages/cryptography/x509/__init__.p= y:7: in from cryptography.x509 import certificate_transparency ../stage/usr/local/lib/python3.9/site-packages/cryptography/x509/certificat= e_transparency.py:11: in from cryptography.hazmat.bindings._rust import x509 as rust_x509 E ImportError: /usr0/freebsd/ports/work/usr/ports/security/py-cryptography/work-py39/stage= /usr/local/lib/python3.9/site-packages/cryptography/hazmat/bindings/_rust.a= bi3.so: Undefined symbol "EVP_default_properties_is_fips_enabled" *** Error code 4 Stop. make: stopped in /usr/ports/security/py-cryptography ---------------------------------------------------------------------- I check shared libraies liked to _rust.abi3.so and get following result. ---------------------------------------------------------------------- root@rolling-vm-freebsd5[93]# ldd /usr0/freebsd/ports/work/usr/ports/security/py-cryptography/work-py39/stage= /usr/local/lib/python3.9/site-packages/cryptography/hazmat/bindings/_rust.a= bi3.so=20 /usr0/freebsd/ports/work/usr/ports/security/py-cryptography/work-py39/stage= /usr/local/lib/python3.9/site-packages/cryptography/hazmat/bindings/_rust.a= bi3.so: libssl.so.111 =3D> /usr/lib/libssl.so.111 (0x22a9a2f7f000) libcrypto.so.111 =3D> /lib/libcrypto.so.111 (0x22a9a42f5000) libthr.so.3 =3D> /lib/libthr.so.3 (0x22a9a55c6000) libgcc_s.so.1 =3D> /lib/libgcc_s.so.1 (0x22a9a5719000) libc.so.7 =3D> /lib/libc.so.7 (0x22a99f91d000) root@rolling-vm-freebsd5[94]# ---------------------------------------------------------------------- Since 'DEFAULT_VERSIONS+=3Dssl=3Dopenssl30' is added to /etc/make.conf, libcrypto.so and libssl.so from openssl30 package should be linked. As you = can see, however, what are really linked are ones in base system. And probably = this is the cause of the runtime error. I'm far from familiar with Rust. But I guess options to specify header files path (${OPENSSLINC}) and libraries path (${OPENSSLLIB}) need to be passed to Rust compiler. --=20 You are receiving this mail because: You are the assignee for the bug.=