Bug 213543 - security/silktools fails to package when default versions includes python=3.5
Summary: security/silktools fails to package when default versions includes python=3.5
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: --- Affects Only Me
Assignee: Antoine Brodin
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2016-10-16 18:36 UTC by Zach Leslie
Modified: 2016-11-11 21:07 UTC (History)
1 user (show)

See Also:
bugzilla: maintainer-feedback? (torres.73a)


Attachments
update to 3.13.0, py3kplist (3.21 KB, patch)
2016-10-25 20:21 UTC, Antoine Brodin
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Zach Leslie freebsd_committer freebsd_triage 2016-10-16 18:36:04 UTC
I've run into an issue when packaging silktools with python3.5.  Running poudriere testport on the given port yields the following output.


===> Checking for items in STAGEDIR missing from pkg-plist
Error: Orphaned: %%PYTHON_SITELIBDIR%%/__pycache__/netsa_silk.cpython-35.opt-1.pyc
Error: Orphaned: %%PYTHON_SITELIBDIR%%/__pycache__/netsa_silk.cpython-35.pyc
Error: Orphaned: %%PYTHON_SITELIBDIR%%/silk/__pycache__/__init__.cpython-35.opt-1.pyc
Error: Orphaned: %%PYTHON_SITELIBDIR%%/silk/__pycache__/__init__.cpython-35.pyc
Error: Orphaned: %%PYTHON_SITELIBDIR%%/silk/__pycache__/_netsa_silk.cpython-35.opt-1.pyc
Error: Orphaned: %%PYTHON_SITELIBDIR%%/silk/__pycache__/_netsa_silk.cpython-35.pyc
Error: Orphaned: %%PYTHON_SITELIBDIR%%/silk/__pycache__/fglob.cpython-35.opt-1.pyc
Error: Orphaned: %%PYTHON_SITELIBDIR%%/silk/__pycache__/fglob.cpython-35.pyc
Error: Orphaned: %%PYTHON_SITELIBDIR%%/silk/__pycache__/plugin.cpython-35.opt-1.pyc
Error: Orphaned: %%PYTHON_SITELIBDIR%%/silk/__pycache__/plugin.cpython-35.pyc
Error: Orphaned: %%PYTHON_SITELIBDIR%%/silk/__pycache__/site.cpython-35.opt-1.pyc
Error: Orphaned: %%PYTHON_SITELIBDIR%%/silk/__pycache__/site.cpython-35.pyc
===> Checking for items in pkg-plist which are not in STAGEDIR
Error: Missing: %%PYTHON_SITELIBDIR%%/netsa_silk.pyc
Error: Missing: %%PYTHON_SITELIBDIR%%/netsa_silk.pyo
Error: Missing: %%PYTHON_SITELIBDIR%%/silk/__init__.pyc
Error: Missing: %%PYTHON_SITELIBDIR%%/silk/__init__.pyo
Error: Missing: %%PYTHON_SITELIBDIR%%/silk/_netsa_silk.pyc
Error: Missing: %%PYTHON_SITELIBDIR%%/silk/_netsa_silk.pyo
Error: Missing: %%PYTHON_SITELIBDIR%%/silk/fglob.pyc
Error: Missing: %%PYTHON_SITELIBDIR%%/silk/fglob.pyo
Error: Missing: %%PYTHON_SITELIBDIR%%/silk/plugin.pyc
Error: Missing: %%PYTHON_SITELIBDIR%%/silk/plugin.pyo
Error: Missing: %%PYTHON_SITELIBDIR%%/silk/site.pyc
Error: Missing: %%PYTHON_SITELIBDIR%%/silk/site.pyo
===> Error: Plist issues found.
*** Error code 1

Stop.
make: stopped in /usr/ports/security/silktools
Comment 1 Antoine Brodin freebsd_committer freebsd_triage 2016-10-25 20:21:31 UTC
Created attachment 176159 [details]
update to 3.13.0, py3kplist

Can you test the attached patch:

- Update to version 3.13.0
- Remove STATIC from default options, it looks useless to me
- Use py3kplist to fix plist with python3
- Add a few --without to CONFIGURE_ARGS to prevent linking to stuff installed on building host
Comment 2 Zach Leslie freebsd_committer freebsd_triage 2016-10-26 20:34:27 UTC
I can confirm the supplied patch does indeed result in a complete build when using python3.  +1 for commit.  Thank you for the efforts.
Comment 3 commit-hook freebsd_committer freebsd_triage 2016-11-11 21:05:48 UTC
A commit references this bug:

Author: antoine
Date: Fri Nov 11 21:05:27 UTC 2016
New revision: 425909
URL: https://svnweb.freebsd.org/changeset/ports/425909

Log:
  - Update to 3.13.0
  - Use py3kplist to fix plist when using python 3
  - Add several options, remove STATIC from default options as it looks useless

  PR:		213543
  Approved by:	maintainer timeout (15 days)

Changes:
  head/security/silktools/Makefile
  head/security/silktools/distinfo
  head/security/silktools/pkg-plist