Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 648446 - dev-python/pyopenssl-17.5.0: Fails tests on FreeBSD (TestContext.test_set_verify_callback_exception)
Summary: dev-python/pyopenssl-17.5.0: Fails tests on FreeBSD (TestContext.test_set_ver...
Status: RESOLVED OBSOLETE
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Python Gentoo Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2018-02-21 22:08 UTC by Michał Górny
Modified: 2019-11-10 20:38 UTC (History)
0 users

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


Attachments
build.log (build.log,43.07 KB, text/x-log)
2018-02-21 22:20 UTC, Michał Górny
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Michał Górny archtester Gentoo Infrastructure gentoo-dev Security 2018-02-21 22:08:03 UTC
==================================================================== FAILURES =====================================================================
_________________________________________________ TestContext.test_set_verify_callback_exception __________________________________________________

self = <tests.test_ssl.TestContext object at 0x80a120a90>

    def test_set_verify_callback_exception(self):
        """
            If the verify callback passed to `Context.set_verify` raises an
            exception, verification fails and the exception is propagated to the
            caller of `Connection.do_handshake`.
            """
        serverContext = Context(TLSv1_METHOD)
        serverContext.use_privatekey(
            load_privatekey(FILETYPE_PEM, cleartextPrivateKeyPEM))
        serverContext.use_certificate(
            load_certificate(FILETYPE_PEM, cleartextCertificatePEM))
    
        clientContext = Context(TLSv1_METHOD)
    
        def verify_callback(*args):
            raise Exception("silly verify failure")
        clientContext.set_verify(VERIFY_PEER, verify_callback)
    
        with pytest.raises(Exception) as exc:
>           self._handshake_test(serverContext, clientContext)
E           Failed: DID NOT RAISE <type 'exceptions.Exception'>
Comment 1 Michał Górny archtester Gentoo Infrastructure gentoo-dev Security 2018-02-21 22:20:31 UTC
Created attachment 520494 [details]
build.log
Comment 2 Michał Górny archtester Gentoo Infrastructure gentoo-dev Security 2018-02-21 22:21:36 UTC
Portage 2.3.24 (python 3.5.4-final-0, default/bsd/fbsd/amd64/11.1, gcc-6.4.0, freebsd-lib-11.1, 11.1-RELEASE amd64)
=================================================================
                         System Settings
=================================================================
System uname: FreeBSD-11.1-RELEASE-amd64-64bit-ELF
KiB Mem:     8355628 total
KiB Swap:    1048576 total
Timestamp of repository gentoo: Wed, 21 Feb 2018 20:07:02 +0000
Head commit of repository gentoo: 77e17410ea8e52cc3d34c6d24d2bf38dd0e4defc

sh sh
ld GNU ld (Gentoo 2.27 p1.1) 2.27
app-shells/bash:         4.4_p19::gentoo
dev-lang/perl:           5.26.1::gentoo
dev-lang/python:         2.7.14-r1::gentoo, 3.4.6-r1::gentoo, 3.5.4-r1::gentoo, 3.6.4::gentoo
dev-util/cmake:          3.10.2::gentoo
dev-util/pkgconfig:      0.29.2::gentoo
sys-apps/baselayout:     2.4.1-r2::gentoo
sys-apps/openrc:         0.33::gentoo
sys-devel/autoconf:      2.69-r4::gentoo
sys-devel/automake:      1.15.1-r1::gentoo
sys-devel/binutils:      2.27-r1::gentoo
sys-devel/gcc:           6.4.0::gentoo, 7.2.0-r1::gentoo, 7.3.0::gentoo
sys-devel/gcc-config:    1.9.1::gentoo
sys-devel/libtool:       2.4.6-r4::gentoo
sys-devel/make:          4.2.1-r2::gentoo
sys-freebsd/freebsd-lib: 11.1::gentoo (virtual/os-headers)
Repositories:

gentoo
    location: /var/db/repos/gentoo
    sync-type: git
    sync-uri: https://anongit.gentoo.org/git/repo/sync/gentoo.git
    priority: -1000

ACCEPT_KEYWORDS="amd64-fbsd ~amd64-fbsd"
ACCEPT_LICENSE="* -@EULA"
CBUILD="x86_64-gentoo-freebsd11.0"
CFLAGS="-O2 -pipe -mtune=generic"
CHOST="x86_64-gentoo-freebsd11.0"
CONFIG_PROTECT="/boot/device.hints /etc /usr/share/gnupg/qualified.txt"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/terminfo"
CXXFLAGS="-O2 -pipe -mtune=generic"
DISTDIR="/var/cache/portage/distfiles"
EMERGE_DEFAULT_OPTS="--autounmask-wr y"
FCFLAGS="-O2 -pipe"
FEATURES="assume-digests binpkg-logs buildpkg chflags config-protect-if-modified distlocks ebuild-locks fixlafiles merge-sync multilib-strict news parallel-fetch preserve-libs protect-owned sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersync"
FFLAGS="-O2 -pipe"
GENTOO_MIRRORS="http://distfiles.gentoo.org"
INSTALL_MASK="/usr/lib/systemd"
LDFLAGS=""
MAKEOPTS="-j4"
PKGDIR="/var/cache/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 amd64-fbsd berkdb bindist crypt cxx dri gdbm iconv ipv6 mmx modules multilib ncurses nls oss pam pcre readline sse sse2 ssl tcpd unicode xattr zlib" ABI_X86="64" 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="kexi words flow plan sheets stage tables krita karbon braindump author" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" CPU_FLAGS_X86="mmx mmxext sse sse2" ELIBC="FreeBSD" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock isync itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf skytraq superstar2 timing tsip tripmate tnt ublox ubx" INPUT_DEVICES="keyboard mouse" KERNEL="FreeBSD" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php5-6 php7-0" POSTGRES_TARGETS="postgres9_5" PYTHON_SINGLE_TARGET="python3_5" PYTHON_TARGETS="python2_7 python3_5 *" RUBY_TARGETS="ruby22 ruby23" USERLAND="BSD" VIDEO_CARDS="apm ark chips cirrus cyrix dummy i128 mach64 mga nv r128 radeon rendition s3 s3virge savage sis sisusb tga trident tseng fbdev" 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:  CC, CPPFLAGS, CTARGET, CXX, LANG, LC_ALL, LINGUAS, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS

=================================================================
                        Package Settings
=================================================================

dev-libs/openssl-1.0.2n::gentoo was built with the following:
USE="asm sslv3 tls-heartbeat zlib -bindist -gmp (-kerberos) -rfc3779 (-sctp) -sslv2 -static-libs -test -vanilla" ABI_X86="(64) -32 (-x32)" CPU_FLAGS_X86="sse2"
CFLAGS="-O2 -pipe -mtune=generic -fno-strict-aliasing -Wa,--noexecstack"
CXXFLAGS="-O2 -pipe -mtune=generic -fno-strict-aliasing -Wa,--noexecstack"
Comment 3 Larry the Git Cow gentoo-dev 2018-02-22 06:22:27 UTC
The bug has been referenced in the following commit(s):

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

commit 15adb898b6cf33eff0256f08c4dcd55fe5d74835
Author:     Michał Górny <mgorny@gentoo.org>
AuthorDate: 2018-02-22 06:10:25 +0000
Commit:     Michał Górny <mgorny@gentoo.org>
CommitDate: 2018-02-22 06:22:18 +0000

    dev-python/pyopenssl: Tested on ~amd64-fbsd
    
    Add ~amd64-fbsd keywords. There is one minor test failure and lot more
    revdeps.
    
    Bug: https://bugs.gentoo.org/648446

 dev-python/pyopenssl/pyopenssl-17.5.0.ebuild | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)}
Comment 4 Michał Górny archtester Gentoo Infrastructure gentoo-dev Security 2019-11-10 20:38:06 UTC
G/FBSD is gone.