Summary: | devel/glib20: Fails to package with DEFAULT_VERSIONS=python=3.7 | ||
---|---|---|---|
Product: | Ports & Packages | Reporter: | Tobias Kortkamp <tobik> |
Component: | Individual Port(s) | Assignee: | Antoine Brodin <antoine> |
Status: | Closed FIXED | ||
Severity: | Affects Only Me | CC: | python, raivo, vishwin, yasu |
Priority: | --- | Flags: | bugzilla:
maintainer-feedback?
(gnome) |
Version: | Latest | ||
Hardware: | Any | ||
OS: | Any |
Description
Tobias Kortkamp
2018-09-30 14:40:41 UTC
Same behaviour with DEFAULT_VERSIONS=python=3.6. This port's plist conflicts with Mk/Uses/python.mk in how PYTHON_PYOEXTENSION is defined. Currently, for the cases of Python 3.5 and later (which this bug applies to), PYTHON_PYOEXTENSION is just opt-1.pyc. But in this plist, the opt-1 part comes before the .cpython-%%PYTHON_SUFFIX%%.pyc, with the ending becoming opt-1.cpython-%%PYTHON_SUFFIX%%.pyc, which results in this build failure when python>=3.5. CCing python@ for more input. (In reply to Charlie Li from comment #2) The offending line seems to be https://svnweb.freebsd.org/ports/head/Mk/Uses/python.mk?view=markup#l621 The .cpython-%%PYTHON_SUFFIX%% bit is placed between opt-1 and .pyc (resulting in opt1-cpython-%%PYTHON_SUFFIX%%.pyc), where instead should be before opt-1.pyc. The stage process for this port results in the correct locations and filenames, but the script that converts PYTHON_PYOEXTENSION for python >= 3.5 needs fixing. Unfortunately, my awk-fu is nearly nonexistent so it may take a while for me to prepare a patch (if it ends up being the case). Looks like antoine@ fixed the plist. This can probably be closed now. See: ports r480998 |