Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 923240 - dev-python/tpm2-pytss-2.1.0-r1 fails tests: TypeError: type cryptography.hazmat.primitives.asymmetric.rsa.RSAPrivateNumbers is not an acceptable base type
Summary: dev-python/tpm2-pytss-2.1.0-r1 fails tests: TypeError: type cryptography.hazm...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Christopher Byrne
URL:
Whiteboard:
Keywords: PullRequest, TESTFAILURE
Depends on:
Blocks: 922900
  Show dependency tree
 
Reported: 2024-01-29 08:18 UTC by Agostino Sarubbo
Modified: 2024-03-04 14:54 UTC (History)
2 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
build.log (build.log,220.66 KB, text/plain)
2024-01-29 08:18 UTC, Agostino Sarubbo
Details

Note You need to log in before you can comment on or make changes to this bug.
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(+)