Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 923240

Summary: dev-python/tpm2-pytss-2.1.0-r1 fails tests: TypeError: type cryptography.hazmat.primitives.asymmetric.rsa.RSAPrivateNumbers is not an acceptable base type
Product: Gentoo Linux Reporter: Agostino Sarubbo <ago>
Component: Current packagesAssignee: Christopher Byrne <salah.coronya>
Status: RESOLVED FIXED    
Severity: normal CC: proxy-maint, salah.coronya
Priority: Normal Keywords: PullRequest, TESTFAILURE
Version: unspecified   
Hardware: All   
OS: Linux   
See Also: https://github.com/tpm2-software/tpm2-pytss/pull/562
https://github.com/gentoo/gentoo/pull/35024
Whiteboard:
Package list:
Runtime testing required: ---
Bug Depends on:    
Bug Blocks: 922900    
Attachments: build.log

Description Agostino Sarubbo gentoo-dev 2024-01-29 08:18:42 UTC
https://blogs.gentoo.org/ago/2020/07/04/gentoo-tinderbox/

Issue: dev-python/tpm2-pytss-2.1.0-r1 fails tests.
Discovered on: amd64 (internal ref: tinderbox_musl)
System: MUSL-SYSTEM
Info about the system: https://wiki.gentoo.org/wiki/Project:Tinderbox/Common_Issues_Helper#MUSL

Info about the issue:
https://wiki.gentoo.org/wiki/Project:Tinderbox/Common_Issues_Helper#CF0015
Comment 1 Agostino Sarubbo gentoo-dev 2024-01-29 08:18:44 UTC
Created attachment 883536 [details]
build.log

build log and emerge --info
Comment 2 Agostino Sarubbo gentoo-dev 2024-01-29 08:18:45 UTC
Error(s) that match a know pattern in addition to what has been reported in the summary:


E   TypeError: type 'cryptography.hazmat.primitives.asymmetric.rsa.RSAPrivateNumbers' is not an acceptable base type
ERROR test/test_crypto.py - TypeError: type 'cryptography.hazmat.primitives.asymmetric.rsa.RSAPrivateNu...
ERROR test/test_encoding.py - TypeError: type 'cryptography.hazmat.primitives.asymmetric.rsa.RSAPrivateNu...
ERROR test/test_esapi.py - TypeError: type 'cryptography.hazmat.primitives.asymmetric.rsa.RSAPrivateNu...
ERROR test/test_exception.py - TypeError: type 'cryptography.hazmat.primitives.asymmetric.rsa.RSAPrivateNu...
ERROR test/test_fapi.py - TypeError: type 'cryptography.hazmat.primitives.asymmetric.rsa.RSAPrivateNu...
ERROR test/test_policy.py - TypeError: type 'cryptography.hazmat.primitives.asymmetric.rsa.RSAPrivateNu...
ERROR test/test_tcti.py - TypeError: type 'cryptography.hazmat.primitives.asymmetric.rsa.RSAPrivateNu...
ERROR test/test_tcti_spi_helper.py - TypeError: type 'cryptography.hazmat.primitives.asymmetric.rsa.RSAPrivateNu...
ERROR test/test_tsskey.py - TypeError: type 'cryptography.hazmat.primitives.asymmetric.rsa.RSAPrivateNu...
ERROR test/test_types.py - TypeError: type 'cryptography.hazmat.primitives.asymmetric.rsa.RSAPrivateNu...
ERROR test/test_utils.py - TypeError: type 'cryptography.hazmat.primitives.asymmetric.rsa.RSAPrivateNu...
Comment 3 Larry the Git Cow gentoo-dev 2024-03-04 14:54:28 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=dedba7f86ed4bbce0dd5c750cecaec5d0c3a1acf

commit dedba7f86ed4bbce0dd5c750cecaec5d0c3a1acf
Author:     Christopher Byrne <salah.coronya@gmail.com>
AuthorDate: 2024-01-26 02:27:08 +0000
Commit:     Joonas Niilola <juippis@gentoo.org>
CommitDate: 2024-03-04 14:53:40 +0000

    dev-python/tpm2-pytss: support Python 3.12, dev-python/cryptography >= 42
    
    Closes: https://bugs.gentoo.org/922900
    Closes: https://bugs.gentoo.org/923240
    
    Signed-off-by: Christopher Byrne <salah.coronya@gmail.com>
    Signed-off-by: Joonas Niilola <juippis@gentoo.org>

 ...ypto-fix-_MyRSAPrivateNumbers-with-crypto.patch | 73 ++++++++++++++++++++++
 ...e-pcr_set_auth_value-and-pcr_set_auth_pol.patch | 40 ++++++++++++
 dev-python/tpm2-pytss/tpm2-pytss-2.1.0-r2.ebuild   | 48 ++++++++++++++
 3 files changed, 161 insertions(+)