Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 635276 Details for
Bug 720072
dev-python/rsa fails tests
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
build.log
build.log (text/plain), 18.46 KB, created by
Agostino Sarubbo
on 2020-04-30 06:35:10 UTC
(
hide
)
Description:
build.log
Filename:
MIME Type:
Creator:
Agostino Sarubbo
Created:
2020-04-30 06:35:10 UTC
Size:
18.46 KB
patch
obsolete
> * Package: dev-python/rsa-4.0 > * Repository: gentoo > * Maintainer: python@gentoo.org > * USE: arm64 elibc_glibc kernel_linux python_targets_python3_6 test userland_GNU > * FEATURES: network-sandbox preserve-libs sandbox splitdebug test userpriv usersandbox >>>> Unpacking source... >>>> Unpacking rsa-4.0.tar.gz to /var/tmp/portage/dev-python/rsa-4.0/work >>>> Source unpacked in /var/tmp/portage/dev-python/rsa-4.0/work >>>> Preparing source in /var/tmp/portage/dev-python/rsa-4.0/work/rsa-4.0 ... >>>> Source prepared. >>>> Configuring source in /var/tmp/portage/dev-python/rsa-4.0/work/rsa-4.0 ... >>>> Source configured. >>>> Compiling source in /var/tmp/portage/dev-python/rsa-4.0/work/rsa-4.0 ... > * python3_6: running distutils-r1_run_phase distutils-r1_python_compile >python3.6 setup.py build -j 96 >running build >running build_py >creating /var/tmp/portage/dev-python/rsa-4.0/work/rsa-4.0-python3_6/lib/rsa >copying rsa/pkcs1.py -> /var/tmp/portage/dev-python/rsa-4.0/work/rsa-4.0-python3_6/lib/rsa >copying rsa/core.py -> /var/tmp/portage/dev-python/rsa-4.0/work/rsa-4.0-python3_6/lib/rsa >copying rsa/prime.py -> /var/tmp/portage/dev-python/rsa-4.0/work/rsa-4.0-python3_6/lib/rsa >copying rsa/__init__.py -> /var/tmp/portage/dev-python/rsa-4.0/work/rsa-4.0-python3_6/lib/rsa >copying rsa/parallel.py -> /var/tmp/portage/dev-python/rsa-4.0/work/rsa-4.0-python3_6/lib/rsa >copying rsa/pkcs1_v2.py -> /var/tmp/portage/dev-python/rsa-4.0/work/rsa-4.0-python3_6/lib/rsa >copying rsa/key.py -> /var/tmp/portage/dev-python/rsa-4.0/work/rsa-4.0-python3_6/lib/rsa >copying rsa/pem.py -> /var/tmp/portage/dev-python/rsa-4.0/work/rsa-4.0-python3_6/lib/rsa >copying rsa/machine_size.py -> /var/tmp/portage/dev-python/rsa-4.0/work/rsa-4.0-python3_6/lib/rsa >copying rsa/cli.py -> /var/tmp/portage/dev-python/rsa-4.0/work/rsa-4.0-python3_6/lib/rsa >copying rsa/asn1.py -> /var/tmp/portage/dev-python/rsa-4.0/work/rsa-4.0-python3_6/lib/rsa >copying rsa/common.py -> /var/tmp/portage/dev-python/rsa-4.0/work/rsa-4.0-python3_6/lib/rsa >copying rsa/_compat.py -> /var/tmp/portage/dev-python/rsa-4.0/work/rsa-4.0-python3_6/lib/rsa >copying rsa/util.py -> /var/tmp/portage/dev-python/rsa-4.0/work/rsa-4.0-python3_6/lib/rsa >copying rsa/randnum.py -> /var/tmp/portage/dev-python/rsa-4.0/work/rsa-4.0-python3_6/lib/rsa >copying rsa/transform.py -> /var/tmp/portage/dev-python/rsa-4.0/work/rsa-4.0-python3_6/lib/rsa >warning: build_py: byte-compiling is disabled, skipping. > >>>> Source compiled. >>>> Test phase: dev-python/rsa-4.0 > * python3_6: running distutils-r1_run_phase python_test >test_empty_decrypt (tests.test_cli.EncryptDecryptTest) ... ok >test_empty_encrypt (tests.test_cli.EncryptDecryptTest) ... ok >test_encrypt_decrypt (tests.test_cli.EncryptDecryptTest) ... ok >test_encrypt_decrypt_unhappy (tests.test_cli.EncryptDecryptTest) ... ok >test_keygen_no_args (tests.test_cli.KeygenTest) ... ok >test_keygen_priv_out_der (tests.test_cli.KeygenTest) ... ok >test_keygen_priv_out_pem (tests.test_cli.KeygenTest) ... ok >test_keygen_priv_stdout (tests.test_cli.KeygenTest) ... ok >test_keygen_pub_out_pem (tests.test_cli.KeygenTest) ... ok >test_private_to_public (tests.test_cli.PrivatePublicTest) ... ok >test_empty_sign (tests.test_cli.SignVerifyTest) ... ok >test_empty_verify (tests.test_cli.SignVerifyTest) ... ok >test_sign_verify (tests.test_cli.SignVerifyTest) ... ok >test_sign_verify_unhappy (tests.test_cli.SignVerifyTest) ... ok >test_bad_type (tests.test_common.TestBitSize) ... ok >test_negative_values (tests.test_common.TestBitSize) ... ok >test_values (tests.test_common.TestBitSize) ... ok >test_zero (tests.test_common.TestBitSize) ... ok >test_struct_error_when_out_of_bounds (tests.test_common.TestByte) ... ok >test_values (tests.test_common.TestByte) ... ok >test_bad_type (tests.test_common.TestByteSize) ... ok >test_values (tests.test_common.TestByteSize) ... ok >test_zero (tests.test_common.TestByteSize) ... ok >test_normal (tests.test_common.TestInverse) ... ok >test_not_relprime (tests.test_common.TestInverse) ... ok >test_byte (tests.test_compat.TestByte) ... ok >test_byte_literal (tests.test_compat.TestByte) ... ok >test_raises_StructError_on_overflow (tests.test_compat.TestByte) ... ok >test_xor_bytes (tests.test_compat.TestBytes) ... ok >test_xor_bytes_commutative (tests.test_compat.TestBytes) ... ok >test_xor_bytes_length (tests.test_compat.TestBytes) ... ok >test_enc_dec (tests.test_integers.IntegerTest) ... ok >test_sign_verify (tests.test_integers.IntegerTest) ... ok >test_blinding (tests.test_key.BlindingTest) >Test blinding and unblinding. ... ok >test_hash_possible (tests.test_key.HashTest) ... ok >test_custom_exponent (tests.test_key.KeyGenTest) ... ok >test_custom_getprime_func (tests.test_key.KeyGenTest) ... ok >test_default_exponent (tests.test_key.KeyGenTest) ... ok >test_exponents_coefficient_calculation (tests.test_key.KeyGenTest) ... ok >tests.test_load_save_keys (unittest.loader._FailedTest) ... ERROR >test_parallel_primegen (tests.test_parallel.ParallelTest) ... Usage: python3.6 -m unittest [options] private_key > >Decrypts a file. The original file must be shorter than the key length in >order to have been encrypted. > >Options: > -h, --help show this help message and exit > -i INPUT, --input=INPUT > Name of the file to decrypt. Reads from stdin if not > specified. > -o OUTPUT, --output=OUTPUT > Name of the file to write the decrypted file to. > Written to stdout if this option is not present. > --keyform=KEYFORM Key format of the private key - default PEM >Usage: python3.6 -m unittest [options] public_key > >Encrypts a file. The file must be shorter than the key length in order to be >encrypted. > >Options: > -h, --help show this help message and exit > -i INPUT, --input=INPUT > Name of the file to encrypt. Reads from stdin if not > specified. > -o OUTPUT, --output=OUTPUT > Name of the file to write the encrypted file to. > Written to stdout if this option is not present. > --keyform=KEYFORM Key format of the public key - default PEM >Usage: python3.6 -m unittest [options] keysize > >Generates a new RSA keypair of "keysize" bits. > >Options: > -h, --help show this help message and exit > --pubout=PUBOUT Output filename for the public key. The public key is not > saved if this option is not present. You can use pyrsa- > priv2pub to create the public key file later. > -o OUT, --out=OUT Output filename for the private key. The key is written > to stdout if this option is not present. > --form=FORM key format of the private and public keys - default PEM >Usage: python3.6 -m unittest [options] private_key hash_method > >Signs a file, outputs the signature. Choose the hash method from MD5, SHA-1, >SHA-224, SHA-256, SHA-384, SHA-512 > >Options: > -h, --help show this help message and exit > -i INPUT, --input=INPUT > Name of the file to sign. Reads from stdin if not > specified. > -o OUTPUT, --output=OUTPUT > Name of the file to write the signature to. Written to > stdout if this option is not present. > --keyform=KEYFORM Key format of the private key - default PEM >Usage: python3.6 -m unittest [options] public_key signature_file > >Verifies a signature, exits with status 0 upon success, prints an error >message and exits with status 1 upon error. > >Options: > -h, --help show this help message and exit > -i INPUT, --input=INPUT > Name of the file to verify. Reads from stdin if not > specified. > --keyform=KEYFORM Key format of the public key - default PEM > Message: 42 > Encrypted: 5505611718847996645 > Decrypted: 42 > Signed: 9368578566641361560 > Verified: 42 >ok >test_bytes_private (tests.test_pem.TestByteInput) ... ok >test_bytes_public (tests.test_pem.TestByteInput) ... ok >test_bytes_private (tests.test_pem.TestByteOutput) ... ok >test_bytes_public (tests.test_pem.TestByteOutput) ... ok >test_bytes_private (tests.test_pem.TestBytesAndStrings) ... ok >test_bytes_public (tests.test_pem.TestBytesAndStrings) ... ok >test_unicode_private (tests.test_pem.TestBytesAndStrings) ... ok >test_unicode_public (tests.test_pem.TestBytesAndStrings) ... ok >test_values (tests.test_pem.TestMarkers) ... ok >test_decoding_failure (tests.test_pkcs1.BinaryTest) ... ok >test_enc_dec (tests.test_pkcs1.BinaryTest) ... ok >test_randomness (tests.test_pkcs1.BinaryTest) >Encrypting the same message twice should result in different ... ok >test_alter_message (tests.test_pkcs1.SignatureTest) >Altering the message should let the verification fail. ... ok >test_find_signature_hash (tests.test_pkcs1.SignatureTest) >Test happy flow of sign and find_signature_hash ... ok >test_hash_sign_verify (tests.test_pkcs1.SignatureTest) >Test happy flow of hash, sign, and verify ... ok >test_multiple_signings (tests.test_pkcs1.SignatureTest) >Signing the same message twice should return the same signatures. ... ok >test_sign_different_key (tests.test_pkcs1.SignatureTest) >Signing with another key should let the verification fail. ... ok >test_sign_verify (tests.test_pkcs1.SignatureTest) >Test happy flow of sign and verify ... ok >test_split_hash_sign (tests.test_pkcs1.SignatureTest) >Hashing and then signing should match with directly signing the message. ... ok >test_invalid_hasher (tests.test_pkcs1_v2.MGFTest) >Tests an invalid hasher generates an exception ... ok >test_invalid_length (tests.test_pkcs1_v2.MGFTest) ... ok >test_oaep_int_db_mask (tests.test_pkcs1_v2.MGFTest) ... ok >test_get_primality_testing_rounds (tests.test_prime.PrimeTest) >Test round calculation for primality testing. ... ok >test_is_prime (tests.test_prime.PrimeTest) >Test some common primes. ... ok >test_mersenne_primes (tests.test_prime.PrimeTest) >Tests first known Mersenne primes. ... ok >test_miller_rabin_primality_testing (tests.test_prime.PrimeTest) >Uses monkeypatching to ensure certain random numbers. ... ok >test_enc_dec (tests.test_strings.StringTest) ... ok >test_accuracy (tests.test_transform.Test_int2bytes) ... ok >test_chunk_size (tests.test_transform.Test_int2bytes) ... ok >test_codec_identity (tests.test_transform.Test_int2bytes) ... ok >test_correctness_against_base_implementation (tests.test_transform.Test_int2bytes) ... ok >test_raises_OverflowError_when_chunk_size_is_insufficient (tests.test_transform.Test_int2bytes) ... ok >test_raises_TypeError_when_not_integer (tests.test_transform.Test_int2bytes) ... ok >test_raises_ValueError_when_negative_integer (tests.test_transform.Test_int2bytes) ... ok >test_zero (tests.test_transform.Test_int2bytes) ... ok > >====================================================================== >ERROR: tests.test_load_save_keys (unittest.loader._FailedTest) >---------------------------------------------------------------------- >ImportError: Failed to import test module: tests.test_load_save_keys >Traceback (most recent call last): > File "/usr/lib64/python3.6/unittest/loader.py", line 428, in _find_test_path > module = self._get_module_from_name(name) > File "/usr/lib64/python3.6/unittest/loader.py", line 369, in _get_module_from_name > __import__(name) > File "/var/tmp/portage/dev-python/rsa-4.0/work/rsa-4.0/tests/test_load_save_keys.py", line 20, in <module> > import mock >ModuleNotFoundError: No module named 'mock' > > >---------------------------------------------------------------------- >Ran 76 tests in 10.116s > >FAILED (errors=1) > Message: b'\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x01' > Encrypted: b'\x05\xde\xb2,\xf8\x11\xe0O\xf3\xe8\xd2\x7fS\x965\xeb\xd7\xf0-4\\\xe8\x96\xd4\xbdV#\xdfp\xabZ1' > Decrypted: b'\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x01' > Message: b'Euro=\xe2\x82\xac ABCDEFGHIJKLMNOPQRSTUVWXYZ' > Encrypted: b'\x8a\x17}Ju\xb8\x1cC\xd1\t\xdb\xd8\x02\x14\x1c9a\x99E\xa5dq\x01n\x93@\x91Q\t^\xf2\xf3\xe2\xa6\xcfE\xff\x025rU\x98\x81\xe4N\xd0\x94\x8b' > Decrypted: b'Euro=\xe2\x82\xac ABCDEFGHIJKLMNOPQRSTUVWXYZ' > * ERROR: dev-python/rsa-4.0::gentoo failed (test phase): > * Tests fail with python3.6 > * > * Call stack: > * ebuild.sh, line 125: Called src_test > * environment, line 2886: Called distutils-r1_src_test > * environment, line 1232: Called _distutils-r1_run_foreach_impl 'python_test' > * environment, line 429: Called python_foreach_impl 'distutils-r1_run_phase' 'python_test' > * environment, line 2501: Called multibuild_foreach_variant '_python_multibuild_wrapper' 'distutils-r1_run_phase' 'python_test' > * environment, line 2014: Called _multibuild_run '_python_multibuild_wrapper' 'distutils-r1_run_phase' 'python_test' > * environment, line 2012: Called _python_multibuild_wrapper 'distutils-r1_run_phase' 'python_test' > * environment, line 820: Called distutils-r1_run_phase 'python_test' > * environment, line 1169: Called python_test > * environment, line 2846: Called die > * The specific snippet of code: > * "${EPYTHON}" -m unittest discover -v || die "Tests fail with ${EPYTHON}" > * > * If you need support, post the output of `emerge --info '=dev-python/rsa-4.0::gentoo'`, > * the complete build log and the output of `emerge -pqv '=dev-python/rsa-4.0::gentoo'`. > * The complete build log is located at '/var/log/emerge-log/build/dev-python/rsa-4.0:20200429-170302.log'. > * For convenience, a symlink to the build log is located at '/var/tmp/portage/dev-python/rsa-4.0/temp/build.log'. > * The ebuild environment file is located at '/var/tmp/portage/dev-python/rsa-4.0/temp/environment'. > * Working directory: '/var/tmp/portage/dev-python/rsa-4.0/work/rsa-4.0' > * S: '/var/tmp/portage/dev-python/rsa-4.0/work/rsa-4.0' > > > >emerge --info: >Portage 2.3.99 (python 3.6.10-final-0, default/linux/arm64/17.0, gcc-9.3.0, glibc-2.31-r2, 4.9.0-4-arm64 aarch64) >================================================================= >System uname: Linux-4.9.0-4-arm64-aarch64-with-gentoo-2.7 >KiB Mem: 131544964 total, 66606832 free >KiB Swap: 3321056 total, 2838024 free >Timestamp of repository gentoo: Thu, 30 Apr 2020 05:27:43 +0000 >sh bash 5.0_p17 >ld GNU ld (Gentoo 2.34 p1) 2.34.0 >app-shells/bash: 5.0_p17::gentoo >dev-lang/perl: 5.30.2::gentoo >dev-lang/python: 2.7.18::gentoo, 3.6.10-r2::gentoo, 3.8.2-r2::gentoo >sys-apps/baselayout: 2.7::gentoo >sys-apps/openrc: 0.42.1::gentoo >sys-apps/sandbox: 2.18::gentoo >sys-devel/autoconf: 2.69-r5::gentoo >sys-devel/automake: 1.16.2::gentoo >sys-devel/binutils: 2.34::gentoo >sys-devel/gcc: 9.3.0::gentoo >sys-devel/gcc-config: 2.2.1::gentoo >sys-devel/libtool: 2.4.6-r6::gentoo >sys-devel/make: 4.3::gentoo >sys-kernel/linux-headers: 5.6::gentoo (virtual/os-headers) >sys-libs/glibc: 2.31-r2::gentoo >Repositories: > >gentoo > location: /usr/portage > sync-type: rsync > sync-uri: rsync://rsync.gentoo.org/gentoo-portage > priority: -1000 > sync-rsync-verify-max-age: 24 > sync-rsync-extra-opts: > sync-rsync-verify-metamanifest: yes > sync-rsync-verify-jobs: 1 > >ACCEPT_KEYWORDS="arm64 ~arm64" >ACCEPT_LICENSE="*" >CBUILD="aarch64-unknown-linux-gnu" >CC="aarch64-unknown-linux-gnu-gcc" >CFLAGS="-O2 -pipe -march=native -g -ggdb -frecord-gcc-switches" >CHOST="aarch64-unknown-linux-gnu" >CONFIG_PROTECT="/etc /usr/share/gnupg/qualified.txt" >CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo" >CXX="aarch64-unknown-linux-gnu-g++" >CXXFLAGS="-O2 -pipe -march=native -g -ggdb -frecord-gcc-switches" >DISTDIR="/usr/portage/distfiles" >EMERGE_DEFAULT_OPTS="--with-bdeps=y -1" >ENV_UNSET="DBUS_SESSION_BUS_ADDRESS DISPLAY GOBIN PERL5LIB PERL5OPT PERLPREFIX PERL_CORE PERL_MB_OPT PERL_MM_OPT XAUTHORITY XDG_CACHE_HOME XDG_CONFIG_HOME XDG_DATA_HOME XDG_RUNTIME_DIR" >FCFLAGS="-O2 -pipe -march=native -g -ggdb -frecord-gcc-switches" >FEATURES="assume-digests binpkg-docompress binpkg-dostrip binpkg-logs collision-protect config-protect-if-modified distlocks ebuild-locks fixlafiles ipc-sandbox merge-sync multilib-strict network-sandbox news parallel-fetch pid-sandbox preserve-libs protect-owned qa-unresolved-soname-deps sandbox sfperms sign split-log splitdebug strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync xattr" >FFLAGS="-O2 -pipe -march=native -g -ggdb -frecord-gcc-switches" >GENTOO_MIRRORS="http://distfiles.gentoo.org" >LANG="en_US.UTF-8" >LDFLAGS="-Wl,-O1 -Wl,--as-needed -Wl,--defsym=__gentoo_check_ldflags__=0" >MAKEOPTS="-j96" >PKGDIR="/usr/portage/packages" >PORTAGE_CONFIGROOT="/" >PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --omit-dir-times --compress --force --whole-file --delete --stats --human-readable --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages --exclude=/.git" >PORTAGE_TMPDIR="/var/tmp" >USE="acl arm64 berkdb bzip2 cli crypt dri fortran gdbm iconv ipv6 libtirpc ncurses nls nptl openmp pam pcre readline seccomp split-usr ssl tcpd unicode xattr zlib" ADA_TARGET="gnat_2018" APACHE2_MODULES="authn_core authz_core socache_shmcb unixd actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache cgi cgid dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" CALLIGRA_FEATURES="karbon sheets words" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" CPU_FLAGS_ARM="edsp thumb thumb2 v4 v5 v6 v7 v8 vfp vfp-d32 vfpv3 vfpv4" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock greis isync itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf skytraq superstar2 timing tsip tripmate tnt ublox ubx" INPUT_DEVICES="libinput keyboard mouse" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php7-2" POSTGRES_TARGETS="postgres10 postgres11" PYTHON_SINGLE_TARGET="python3_6" PYTHON_TARGETS="python2_7 python3_6" RUBY_TARGETS="ruby24 ruby25" USERLAND="GNU" VIDEO_CARDS="fbdev dummy v4l" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipset ipp2p iface geoip fuzzy condition tee tarpit sysrq steal rawnat logmark ipmark dhcpmac delude chaos account" >Unset: CPPFLAGS, CTARGET, INSTALL_MASK, LC_ALL, LINGUAS, PORTAGE_BINHOST, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS >
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Raw
Actions:
View
Attachments on
bug 720072
: 635276