Bug 205848 - textproc/py-genshi: Limit use to python2.7
Summary: textproc/py-genshi: Limit use to python2.7
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: --- Affects Some People
Assignee: Nicola Vitale
URL: http://genshi.edgewall.org/wiki/Gensh...
Keywords: easy, patch, patch-ready
Depends on:
Blocks:
 
Reported: 2016-01-03 17:51 UTC by VK
Modified: 2017-03-25 23:26 UTC (History)
2 users (show)

See Also:
bugzilla: maintainer-feedback? (nivit)


Attachments
Make Genshi use python2.7 explicitly (395 bytes, patch)
2016-01-03 17:51 UTC, VK
vlad-fbsd: maintainer-approval? (nivit)
Details | Diff
workaround from upstream r1247 (614 bytes, patch)
2017-03-25 23:26 UTC, Viktor Štujber
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description VK 2016-01-03 17:51:39 UTC
Created attachment 165014 [details]
Make Genshi use python2.7 explicitly

Genshi does not yet have a released version supporting Python 3.x, and it doesn't build with Python 3 (tested against 3.5), so it should be set to use Python 2.7 explicitly.

* Portlint: OK
* Poudriere: 10.2 (amd64) OK, 9.3 (amd64) OK
Comment 1 commit-hook freebsd_committer freebsd_triage 2016-04-25 14:15:20 UTC
A commit references this bug:

Author: nivit
Date: Mon Apr 25 14:14:39 UTC 2016
New revision: 414006
URL: https://svnweb.freebsd.org/changeset/ports/414006

Log:
  - Genshi does not yet have a released version supporting Python 3.x,
    and it doesn't build with Python 3. So build it with Python 2 only. [1]
  - Add NO_ARCH

  PR:	205848
  Submitted by:	Vladimir Krstulja <vlad-fbsd@acheronmedia.com> [1]

Changes:
  head/textproc/py-genshi/Makefile
Comment 2 Viktor Štujber 2017-03-25 23:26:03 UTC
Created attachment 181198 [details]
workaround from upstream r1247

https://genshi.edgewall.org/changeset/1247
Comment 3 Viktor Štujber 2017-03-25 23:26:45 UTC
Cpython fails to build _speedups.so, prints "WARNING: An optional C extension could not be compiled, speedups will not be available", and continues. The actual failure happens when pkg-static tries to bundle the skipped .so file.
The problem was reported in https://genshi.edgewall.org/ticket/555 and a workaround was added in https://genshi.edgewall.org/changeset/1247 however there were no further releases and development has stalled.

Suggested alternative:
- include attached patch which mimics that genshi commit
- revert ports r414006