From nobody Fri Feb 10 16:31:33 2023 X-Original-To: dev-commits-ports-all@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4PCzl93tthz3pGNS; Fri, 10 Feb 2023 16:31:33 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4PCzl93NSWz4Z7G; Fri, 10 Feb 2023 16:31:33 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1676046693; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=iFaTL/xKrun19BCNj7qSF7dlcgPcK6jdhMVwOGVIATI=; b=cdlzMpW++UbW76VMMvs0tIbN9vLzWoBjjpGK5B/lsUsurPUwpxbjDAAZJsd7yJv8xVZpNx av53dh4vuzeuvHb6vgAmjWc6pI3wnHkAmZPkqaWWG8L42VWoK1AWVmo271et5ZpqQ1F5tD CkZTRejUw85xFI9KGFUXSmkiovMwFfPtfbAXmqiFaywjPHBUU81IHs80dZqQ13eoDAR8oF dGpy65Fc2JsB5lu6BsKq4iB/MWFVzVZQBJ1VJaK76UHMyv85JGONyKdCiXEgYtRRng8BLU FpiONICsM9w6hFFQC2iu5aLa1S+msM3XNOVva6onsRAFfdIs/4Xiq57bC9ursg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1676046693; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=iFaTL/xKrun19BCNj7qSF7dlcgPcK6jdhMVwOGVIATI=; b=g6gX6ggWDxy2QmMJa2cmdH+HV7quvDRMlPAoSPBwYF5oHo7GDSHhbjrPRP+/0O6rtf8sUk n7AGX2oEU3YK22ifTMSduHD5lMz+Z4ff3k0n3R7zgztaZLZ3rZeYTT43yr8U7y07RBzDg+ ixZKwKHyTUIqwPCGVGxxiMqQ7uXqGGBtsTfb600ylD0jJwQruILD9qlD5yLm7d3Ca1PL14 C4mNIhEP8wrqIIBNIm4f0mlhZzqUzVMlscRAjUKWr+8ZhpSeLPb+M/5QvIwZFeLN0p6c8D mwjN2N7nX2l7Sdlng6QCOY3bYnt33Y4cIxfEmutg8S8MmNWtUXjqCZkUP9zjeA== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1676046693; a=rsa-sha256; cv=none; b=g0+/mXVa8af8bm1s3Xa0MGBIb/ScTJZUmWcm4XeRdys8FInpdcw2CcLxaqbXSzKU0jjVGM okUwHs677G8cPa/mDjqsUTnUU+sT7+Nxk5653JDC0o79drTB/BtSGLQgxnhbwzYiSkpMCc 5l8jb4cSxHW76yGOhttkM9l1qQ89dSvNfZIPRQiitBJRKxJqrFYMZ8sk1cCA5+0LyWfWlh lvidxFvkz/i7XEvj6yCmtzQjpYROzh98vBTleixKnzr36uWdqb4+GM5Zg0XHyFEU2dzKXM RNkZ9UwnrRRKIIIK36ZsTY5dvZ3KLlP+mGEUi4SOPPwRgCkbz//S41gD18aubA== Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 4PCzl92Rt8zQ2f; Fri, 10 Feb 2023 16:31:33 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.16.1/8.16.1) with ESMTP id 31AGVX5Y098397; Fri, 10 Feb 2023 16:31:33 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 31AGVXtY098396; Fri, 10 Feb 2023 16:31:33 GMT (envelope-from git) Date: Fri, 10 Feb 2023 16:31:33 GMT Message-Id: <202302101631.31AGVXtY098396@gitrepo.freebsd.org> To: ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org From: Nicola Vitale Subject: git: a4431f26f3a6 - main - devel/py-virtualenv: Fix build when a previous version is installed List-Id: Commit messages for all branches of the ports repository List-Archive: https://lists.freebsd.org/archives/dev-commits-ports-all List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-dev-commits-ports-all@freebsd.org X-BeenThere: dev-commits-ports-all@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: nivit X-Git-Repository: ports X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: a4431f26f3a69c55d0785aeb349f070c8bea1321 Auto-Submitted: auto-generated X-ThisMailContainsUnwantedMimeParts: N The branch main has been updated by nivit: URL: https://cgit.FreeBSD.org/ports/commit/?id=a4431f26f3a69c55d0785aeb349f070c8bea1321 commit a4431f26f3a69c55d0785aeb349f070c8bea1321 Author: Nicola Vitale AuthorDate: 2023-02-10 16:25:04 +0000 Commit: Nicola Vitale CommitDate: 2023-02-10 16:31:02 +0000 devel/py-virtualenv: Fix build when a previous version is installed - Pass the option --ignore-installed to pip(1), because it tries to deinstall the previous version when installing the new one. This is safe because we install it in the stage dir. [1] - Fix build with Python < 3.9. Replace the switch -s (strip) with -d (destination dir), passed to module compileall.py, because the first is available only with Python 3.9+. [2] Reported error: ===> Staging for py38-virtualenv-20.18.0 ===> Generating temporary packing list Using pip 22.3.1 from /usr/local/lib/python3.8/site-packages/pip (python 3.8) Processing ./dist/virtualenv-20.18.0-py3-none-any.whl Installing collected packages: virtualenv changing mode of /wrkdirs/usr/ports/devel/py-virtualenv/work-py38/stage/usr/local/bin/virtualenv to 755 Successfully installed virtualenv-20.18.0 WARNING: There was an error checking the latest version of pip. /usr/local/bin/python3.8 /usr/local/lib/python3.8/compileall.py -s /wrkdirs/usr/ports/devel/py-virtualenv/work-py38/stage -f /wrkdirs/usr/ports/devel/py-virtualenv/work-py38/stage/usr/local/lib/python3.8/site -packages usage: compileall.py [-h] [-l] [-r RECURSION] [-f] [-q] [-b] [-d DESTDIR] [-x REGEXP] [-i FILE] [-j WORKERS] [--invalidation-mode {checked-hash,timestamp,unchecked-hash}] [FILE|DIR [FILE|DIR ...]] compileall.py: error: unrecognized arguments: -s /wrkdirs/usr/ports/devel/py-virtualenv/work-py38/stage/usr/local/lib/python3.8/site-packages *** Error code 2 PR: 269458 [1] Reported by: John Hein [1] Reported by: Кирилл Варнаков (via email) [2] --- devel/py-virtualenv/Makefile | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/devel/py-virtualenv/Makefile b/devel/py-virtualenv/Makefile index 1e3d9b54aefb..e5467b93f08e 100644 --- a/devel/py-virtualenv/Makefile +++ b/devel/py-virtualenv/Makefile @@ -33,9 +33,9 @@ PEP517_BUILD_DEPEND= ${PYTHON_PKGNAMEPREFIX}hatch-vcs>=0.3:devel/py-hatch-vcs@${ PEP517_BUILD_CMD= ${PYTHON_CMD} -m hatchling build --target wheel PEP517_INSTALL_DEPEND= ${PKGNAMEPREFIX}pip>=22.3.1:devel/py-pip@${PY_FLAVOR} PEP517_INSTALL_CMD= ${PYTHON_CMD} -m pip install --no-color --compile \ - --no-deps --no-warn-script-location --prefix ${PREFIX} \ - --progress-bar off --root ${STAGEDIR} \ - --root-user-action ignore --verbose \ + --ignore-installed --no-deps --no-warn-script-location \ + --prefix ${PREFIX} --progress-bar off --root \ + ${STAGEDIR} --root-user-action ignore --verbose \ ${BUILD_WRKSRC}/dist/${PORTNAME:C/[-_]+/_/g}-${PORTVERSION}-*.whl # Fix the LookupError: setuptools-scm was unable to detect version (build target) @@ -77,7 +77,7 @@ post-patch: @${SED} -i.bak -e 's,%%VIRTUALENV_WHEEL%%,${VIRTUALENV_WHEEL},1' ${WRKSRC}/docs/conf.py post-install: - ${PYTHON_CMD} ${PYTHON_LIBDIR}/compileall.py -s ${STAGEDIR} -f ${STAGEDIR}${PYTHONPREFIX_SITELIBDIR} + ${PYTHON_CMD} ${PYTHON_LIBDIR}/compileall.py -d ${PYTHONPREFIX_SITELIBDIR} -f ${STAGEDIR}${PYTHONPREFIX_SITELIBDIR} post-install-DOCS-on: ${LOCALBASE}/bin/sphinx-build-${PYTHON_VER} -d ${WRKDIR} -b html -n ${WRKSRC}/docs ${STAGEDIR}${DOCSDIR}