On Sun, Mar 01, 2020 at 10:05:40PM +0000, Stuart Henderson wrote:
> On 2020/02/29 00:57, Theo Buehler wrote:
> > CVSROOT:    /cvs
> > Module name:        ports
> > Changes by: t...@cvs.openbsd.org    2020/02/29 00:57:47
> > 
> > Log message:
> >     import py-tlsfuzzer
> >     
> >     ok kmos
> >     
> >     Fuzzer and test suite for TLS implementations (SSLv2-TLSv1.3).  Provides
> >     ready-to-use scripts testing for many vulnerabilities (ROBOT, DROWN, 
> > etc.)
> >     and general standards conformity (RFC 5246, RFC 7627, RFC 7905, etc.)
> >     Early alpha version - no API stability guarantees.
> >     
> >     Status:
> >     
> >     Vendor Tag:     tb
> >     Release Tags:   tb_20200229
> >     
> >     N ports/security/py-tlsfuzzer/Makefile
> >     N ports/security/py-tlsfuzzer/distinfo
> >     N ports/security/py-tlsfuzzer/pkg/DESCR
> >     N ports/security/py-tlsfuzzer/pkg/PLIST
> >     
> >     No conflicts created by this import
> > 
> 
> Broken here:
> 
> Compiling 
> '/pobj/py-tlsfuzzer-20200215-python3/fake-i386-python3/usr/local/share/tlsfuzzer/scripts/test-zero-length-data.py'...
> Listing '/usr/local/lib/python37.zip'...
> Can't list '/usr/local/lib/python37.zip'
> Listing '/usr/local/lib/python3.7'...
> Listing '/usr/local/lib/python3.7/lib-dynload'...
> Listing '/usr/local/lib/python3.7/site-packages'...
> Compiling '/usr/local/lib/python3.7/site-packages/libproxy.py'...
> *** PermissionError: [Errno 13] Permission denied: 
> '/usr/local/lib/python3.7/site-packages/__pycache__/libproxy.cpython-37.pyc.1149386640'
> 
> Full log attached.
> 

Sorry about that. Patch below makes sure that the byte-code compilation
doesn't descend into the site-packages. Unless I hear objections, I'm
going to commit it in a few hours.

Index: Makefile
===================================================================
RCS file: /var/cvs/ports/security/py-tlsfuzzer/Makefile,v
retrieving revision 1.1.1.1
diff -u -p -r1.1.1.1 Makefile
--- Makefile    29 Feb 2020 07:57:47 -0000      1.1.1.1
+++ Makefile    2 Mar 2020 04:30:38 -0000
@@ -39,6 +39,6 @@ SCRIPTS_DIR = ${PREFIX}/share/tlsfuzzer/
 post-install:
        ${INSTALL_DATA_DIR} ${SCRIPTS_DIR}
        cd ${WRKSRC}/scripts && pax -rw . ${SCRIPTS_DIR}
-       cd ${SCRIPTS_DIR} && ${MODPY_BIN} -m compileall
+       ${MODPY_BIN} -m compileall ${SCRIPTS_DIR}
 
 .include <bsd.port.mk>

Reply via email to