From nobody Tue Apr 26 14:59:45 2022 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 A8888199AC1A for ; Tue, 26 Apr 2022 14:59:46 +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 4KnlR613VNz3Q8r for ; Tue, 26 Apr 2022 14:59:46 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) 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 0458C11444 for ; Tue, 26 Apr 2022 14:59:46 +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 23QExjVP050279 for ; Tue, 26 Apr 2022 14:59:45 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 23QExj7G050278 for ports-bugs@FreeBSD.org; Tue, 26 Apr 2022 14:59:45 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 263585] security/py-keyrings.alt: tests failing, update needed Date: Tue, 26 Apr 2022 14:59:45 +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: amdmi3@FreeBSD.org X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: ports-bugs@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 cc 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 ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1650985186; 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=rdvdTbGLhM7bloCSiw68/mFNEgp6o0UZe8idPCeMTAY=; b=UuAtqD7w65pvUwVhSQDcIgBOzYSz8icbKTK+hV2rFymabuwYVYDEVAADH3i41ZU+VavpQh cn2rsKK1zK1LPeVK1bJbQNZ+a6j79NAAHVZegzpxpmjasYVLDRMyikJUgU4wZlEa5Sd4nI MD6h36j0HsNSKbNVHtSYeEwsBps6NOnXgHEyL5DczBDx2YsAdu9vf9IxutKxlaBgxsDL6N MrXcM1MyWmqS4B/XXQ3eXdY572KI7kP62jTAoihcVkvklIZFGPkkcUHLTwmt08aY93v3Mx bW/sLCzJvYjOipOsOkScxigjythrkB8WwGJhVnR5y9x1xlB2IeZR1shzmTghtw== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1650985186; a=rsa-sha256; cv=none; b=CWhPO51BYXxaKIGF0ZJEdLjYGwf3ShtBLTgPS6bkp4S6MF9Dzr16Gz4NI8bQPnozhF0Hvc rZ+SqvfKA2WkpzX/NQkkUq3qFXoV4vro47cejjbF91sfaWU03BMQwcYysessACmyh04fkU qihcU3uRaQaQo+9MaYSJAgWQ92tYNMhx5fp7D0QtVnUHsEezeI5c1uIiZh4t6WTWFefjbs dwjBBaLc99NPhDHLqUU6/19QF2pjfpBpRJfX6MyVfz8RmeJX97GG4KaMyhnBT2H9RPC9eE 6US47ilSO6S2NlHlfNVutUlWD9r3XK1GNp9n46CoqcTBWZlIB3z4+XVoR67kiw== ARC-Authentication-Results: i=1; mx1.freebsd.org; none X-ThisMailContainsUnwantedMimeParts: N https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D263585 Bug ID: 263585 Summary: security/py-keyrings.alt: tests failing, update needed 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: amdmi3@FreeBSD.org CC: douglas@douglasthrift.net CC: douglas@douglasthrift.net Flags: maintainer-feedback?(douglas@douglasthrift.net) security/py-keyrings.alt needs to be updated to the latest 4.1.0. Most tests currently fail because ancient pycrypto is used which is not compatible with our current python 3.8. __________________ CryptedFileKeyringTestCase.test_credential __________________ self =3D def test_credential(self): keyring =3D self.keyring cred =3D keyring.get_credential('service', None) assert cred is None > self.set_password('service1', 'user1', 'password1') /usr/local/lib/python3.8/site-packages/keyring/tests/test_backend.py:144:=20 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _= _ _=20 /usr/local/lib/python3.8/site-packages/keyring/tests/test_backend.py:53: in set_password self.keyring.set_password(service, username, password) keyrings/alt/file_base.py:135: in set_password password_encrypted =3D self.encrypt(password.encode('utf-8'), assoc) keyrings/alt/file.py:203: in encrypt salt =3D get_random_bytes(self.block_size) /usr/local/lib/python3.8/site-packages/Crypto/Random/__init__.py:41: in get_random_bytes return _UserFriendlyRNG.get_random_bytes(n) /usr/local/lib/python3.8/site-packages/Crypto/Random/_UserFriendlyRNG.py:22= 8: in get_random_bytes return _get_singleton().read(n) /usr/local/lib/python3.8/site-packages/Crypto/Random/_UserFriendlyRNG.py:17= 8: in read return _UserFriendlyRNG.read(self, bytes) /usr/local/lib/python3.8/site-packages/Crypto/Random/_UserFriendlyRNG.py:12= 9: in read self._ec.collect() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _= _ _=20 self =3D def collect(self): # Collect 64 bits of entropy from the operating system and feed it = to Fortuna. self._osrng_es.feed(self._osrng.read(8)) # Add the fractional part of time.time() t =3D time.time() self._time_es.feed(struct.pack("@I", int(2**30 * (t - floor(t))))) # Add the fractional part of time.clock() > t =3D time.clock() E AttributeError: module 'time' has no attribute 'clock' /usr/local/lib/python3.8/site-packages/Crypto/Random/_UserFriendlyRNG.py:77: AttributeError --=20 You are receiving this mail because: You are the assignee for the bug.=