Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 19 Jan 2017 12:32:57 +0000
From:      bugzilla-noreply@freebsd.org
To:        freebsd-ports-bugs@FreeBSD.org
Subject:   [Bug 216257] security/py-m2crypt: swig is not used and py-typing seems needed
Message-ID:  <bug-216257-13@https.bugs.freebsd.org/bugzilla/>

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

            Bug ID: 216257
           Summary: security/py-m2crypt: swig is not used and py-typing
                    seems needed
           Product: Ports & Packages
           Version: Latest
          Hardware: Any
                OS: Any
            Status: New
          Severity: Affects Only Me
          Priority: ---
         Component: Individual Port(s)
          Assignee: freebsd-ports-bugs@FreeBSD.org
          Reporter: luca.pizzamiglio@gmail.com
 Attachment #179068 maintainer-approval?
             Flags:
             Flags: maintainer-feedback?

Created attachment 179068
  --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=3D179068&action=
=3Dedit
The proposed patch

I discovered the problem using openssl without SSLv3 support.

If swig is not used, the wrapper's C code is not recreated, but the provided
one (generated by the developer) is used to build the _m2crypto.so, that
includes the SSLv3_method() function.
At compile time, only a couple of warning about automatic function definiti=
on
(the SSLv3_method()) are shown; the error is fatal at run-time, python is n=
ot
able to solve the symbol and crash loading the m2crypto module.

the setup.py has an extra function (swig_version, outside build_ext) that s=
pawn
a "swig -version" to check if swig is new enough, but it should spawn swig3=
.0,
on FreeBSD.

Moreover, it looks like that to use M2Crypto with python >=3D 2.7, the py-t=
yping
module is need.
As example, the util.py imports the typing module.

The attached patch fix both problems:
- patch the setup.py to call swig3.0 instead of swig
- add py-typing as run-time dependency

portlint is still happy ad poudriere as well.

--=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-216257-13>