Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 05 Feb 2017 13:59:23 +0000
From:      bugzilla-noreply@freebsd.org
To:        freebsd-ports-bugs@FreeBSD.org
Subject:   [Bug 216825] security/py-cryptography: update to 1.7.2, fix build with libressl-devel
Message-ID:  <bug-216825-13@https.bugs.freebsd.org/bugzilla/>

next in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D216825

            Bug ID: 216825
           Summary: security/py-cryptography: update to 1.7.2, fix build
                    with libressl-devel
           Product: Ports & Packages
           Version: Latest
          Hardware: Any
                OS: Any
            Status: New
          Severity: Affects Only Me
          Priority: ---
         Component: Individual Port(s)
          Assignee: koobs@FreeBSD.org
          Reporter: pkubaj@anongoth.pl
             Flags: maintainer-feedback?(koobs@FreeBSD.org)
          Assignee: koobs@FreeBSD.org

Created attachment 179645
  --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=3D179645&action=
=3Dedit
patch

The port currently fails with:
cc -DNDEBUG -O2 -pipe -I/usr/local/include -fstack-protector
-fno-strict-aliasing -fPIC -I/usr/local/include/python2.7 -c
build/temp.freebsd-10.3-RELEASE-p7-amd64-2.7/_openssl.c -o
build/temp.freebsd-10.3-RELEASE-p7-amd64-2.7/build/temp.freebsd-10.3-RELEAS=
E-p7-amd64-2.7/_openssl.o
build/temp.freebsd-10.3-RELEASE-p7-amd64-2.7/_openssl.c:3413:19: error:
expected identifier or '('
static const long X509_V_ERR_HOSTNAME_MISMATCH =3D 0;
                  ^
/usr/local/include/openssl/x509_vfy.h:357:41: note: expanded from macro
'X509_V_ERR_HOSTNAME_MISMATCH'
#define         X509_V_ERR_HOSTNAME_MISMATCH                    62
                                                                ^
build/temp.freebsd-10.3-RELEASE-p7-amd64-2.7/_openssl.c:3414:19: error:
expected identifier or '('
static const long X509_V_ERR_EMAIL_MISMATCH =3D 0;
                  ^
/usr/local/include/openssl/x509_vfy.h:358:38: note: expanded from macro
'X509_V_ERR_EMAIL_MISMATCH'
#define         X509_V_ERR_EMAIL_MISMATCH                       63
                                                                ^
build/temp.freebsd-10.3-RELEASE-p7-amd64-2.7/_openssl.c:3415:19: error:
expected identifier or '('
static const long X509_V_ERR_IP_ADDRESS_MISMATCH =3D 0;
                  ^
/usr/local/include/openssl/x509_vfy.h:359:43: note: expanded from macro
'X509_V_ERR_IP_ADDRESS_MISMATCH'
#define         X509_V_ERR_IP_ADDRESS_MISMATCH                  64
                                                                ^
3 errors generated.
error: command 'cc' failed with exit status 1
*** Error code 1


The attached patch fixes those errors, allowing the port to build properly.
This patch is from
https://github.com/openbsd/ports/blob/master/security/py-cryptography/patch=
es/patch-src__cffi_src_openssl_x509_vfy_py

Since it removes some code, it's only applied when libressl-devel is the
default library.

It builds fine on Poudriere on 11.0.

--=20
You are receiving this mail because:
You are the assignee for the bug.=



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-216825-13>