Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 29 May 2017 17:27:52 +0000
From:      bugzilla-noreply@freebsd.org
To:        freebsd-ports-bugs@FreeBSD.org
Subject:   [Bug 219641] devel/py-qt5-core: does not install using python3.5
Message-ID:  <bug-219641-13@https.bugs.freebsd.org/bugzilla/>

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

            Bug ID: 219641
           Summary: devel/py-qt5-core: does not install using python3.5
           Product: Ports & Packages
           Version: Latest
          Hardware: Any
                OS: Any
            Status: New
          Severity: Affects Only Me
          Priority: ---
         Component: Individual Port(s)
          Assignee: kde@FreeBSD.org
          Reporter: gdinolt@pacbell.net
          Assignee: kde@FreeBSD.org
             Flags: maintainer-feedback?(kde@FreeBSD.org)

devel/py-qt5-core builds as expected with python3.5 but does not install
because the work/.PLIST.mktmp file refers to files that don't exist in the
stage directory.=20

By default, when python3.5 compiles, for example, file Qt5.py for installat=
ion,
it generates=20

lib/python3.5/site-packages/PyQt5/__pycache__/Qt5.cpython-35.opt-1.pyc=20=
=20=20=20=20=20=20
lib/python3.5/site-packages/PyQt5/__pycache__/Qt5.cpython-35.pyc=20

in the stage directory.

When the 'add-plist-python' target from /usr/ports/Mk/Uses/python.mk is cal=
led
to modify pkg-plist it generates the wrong output:

lib/python3.5/site-packages/PyQt5/__pycache__/Qt.cpython-35.pyc
lib/python3.5/site-packages/PyQt5/__pycache__/Qt.opt-1.cpython-35.pyc

Note that '.opt-1.' appears before cpython-35.pyc rather than as shown abov=
e.

A fix is to modify the 'add-plist-python' target in python.mk.

I updated the target to:

add-plist-python:
        @${AWK} '\
                /\.py[co]$$/ && !($$0 ~ "/" pc "/") {id =3D match($$0,
/\/[^\/]+\.py[co]$$/); if (id !=3D 0) {d =3D substr($$0, 1, RSTART - 1); di=
rs[d] =3D
1}; od =3D match($$0, /opt-1/);\
                if ( od !=3D 0 ) sub(/\.opt-1\./, "." mt "&"); else \
                sub(/\.pyc$$/,  "." mt "&");  sub(/[^\/]+\.py[co]$$/, pc "/=
&");
print; next} \
                /^@dirrm / {d =3D substr($$0, 8); if (d in dirs) {print $$0=
 "/"
pc}; print $$0; next} \
                /^@dirrmtry / {d =3D substr($$0, 11); if (d in dirs) {print=
 $$0
"/" pc}; print $$0; next} \
                {print} \
                ' \
                pc=3D"__pycache__" mt=3D"$$(${PYMAGICTAG})"
pyo=3D"${PYTHON_PYOEXTENSION}" \
                ${TMPPLIST} > ${TMPPLIST}.pyc_tmp
        @${MV} ${TMPPLIST}.pyc_tmp ${TMPPLIST}

I have not tested with other versions of python.

--=20
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-219641-13>