Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 16 Jun 2015 16:54:44 +0000
From:      bugzilla-noreply@freebsd.org
To:        freebsd-ports-bugs@FreeBSD.org
Subject:   [Bug 200245] comms/owfs: Update to 3.1p0
Message-ID:  <bug-200245-13-eWyW56eRTI@https.bugs.freebsd.org/bugzilla/>
In-Reply-To: <bug-200245-13@https.bugs.freebsd.org/bugzilla/>
References:  <bug-200245-13@https.bugs.freebsd.org/bugzilla/>

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

--- Comment #20 from johan@stromnet.se ---
Okay. If I understand correct, the same compilation is done later in
post-install anyway, since we have to build with the specific hack from
https://www.freebsd.org/doc/en_US.ISO8859-1/books/porters-handbook/using-python.html.

I did some testing. The optimized files (-O) are not actually built at all,
maybe erased somehow? If I add the following...

    (cd ${STAGEDIR}${PREFIX} \
         && ${PYTHON_CMD} -O ${PYTHON_LIBDIR}/compileall.py \
        -d ${PYTHONPREFIX_SITELIBDIR} -f
${PYTHONPREFIX_SITELIBDIR:S;${PREFIX}/;;})

..I get the following errors:

Error: Orphaned: %%PYTHON_SITELIBDIR%%/ow/__init__.pyo
Error: Orphaned: %%PYTHON_SITELIBDIR%%/ownet/__init__.pyo
Error: Orphaned: %%PYTHON_SITELIBDIR%%/ownet/connection.pyo

Without the above change (only having @${PYTHON_CMD} -O -m compileall
${WRKSRC}), the .pyo files are never installed and thus never orphaned.


My vote is to do the following:

* Remove the do-build section python calls
* Add the above compileall with the -O flag to post-install
* Add .pyo files for each .pyc file in pkg-plist

With those changes, it builds fine here, with .pyo files installed.

To admin@lissyara.su, could you add those minor changes to the patch you've
already created please? Then I think we're good for maintainer-approval.

-- 
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-200245-13-eWyW56eRTI>