From owner-freebsd-ports-bugs@freebsd.org Mon May 29 17:27:53 2017 Return-Path: Delivered-To: freebsd-ports-bugs@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 02300D7BE2B for ; Mon, 29 May 2017 17:27:52 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2001:1900:2254:206a::16:76]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id D9EDB82DA7 for ; Mon, 29 May 2017 17:27:52 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from bugs.freebsd.org ([127.0.1.118]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id v4THRqLL007098 for ; Mon, 29 May 2017 17:27:52 GMT (envelope-from bugzilla-noreply@freebsd.org) From: bugzilla-noreply@freebsd.org To: freebsd-ports-bugs@FreeBSD.org Subject: [Bug 219641] devel/py-qt5-core: does not install using python3.5 Date: Mon, 29 May 2017 17:27:52 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Ports & Packages X-Bugzilla-Component: Individual Port(s) X-Bugzilla-Version: Latest X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Only Me X-Bugzilla-Who: gdinolt@pacbell.net X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: kde@FreeBSD.org X-Bugzilla-Flags: maintainer-feedback? X-Bugzilla-Changed-Fields: bug_id short_desc product version rep_platform op_sys bug_status bug_severity priority component assigned_to reporter flagtypes.name Message-ID: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-BeenThere: freebsd-ports-bugs@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Ports bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 29 May 2017 17:27:53 -0000 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.=