From nobody Fri Jan 21 02:34:19 2022 X-Original-To: python@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 DE6DB196F3CF for ; Fri, 21 Jan 2022 02:34:25 +0000 (UTC) (envelope-from koobs.freebsd@gmail.com) Received: from mail-pl1-x634.google.com (mail-pl1-x634.google.com [IPv6:2607:f8b0:4864:20::634]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (2048 bits) client-digest SHA256) (Client CN "smtp.gmail.com", Issuer "GTS CA 1D4" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4Jg3Nw2h1Zz4tf2; Fri, 21 Jan 2022 02:34:24 +0000 (UTC) (envelope-from koobs.freebsd@gmail.com) Received: by mail-pl1-x634.google.com with SMTP id h13so6553949plf.2; Thu, 20 Jan 2022 18:34:24 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=sender:message-id:date:mime-version:user-agent:reply-to:subject :content-language:to:cc:references:from:in-reply-to :content-transfer-encoding; bh=ekhlwoPzvJoskXTpDgTuPgEtY6ea+ueHsvF/CekOqAg=; b=jh0bOqb7LTVutKY47QJWBApyVoUSL62m7CWjBwvf21CLRA428/331YpMldV1nJlepc PIueGJvFZiwc0MiIM+owA5Ze1ZIswhwdwcRVi+wIviRJwUQuGsnZ3t1k93G9Fhfw7ECw pPqQcUf41JFtbkHouCT5HEfT1lt2Cp2raNu/2bdJTwi1zXmuZU6WisO1EdtoHgCxQdra B20ieuadmkpaPI86Jemg4hu9SCe64vHNvALXgGZsUqREquAhTvnKL5INaTpcmMGU+sxU P97b8E8bZGCHUrdvqL4uZjgxWWHzic0mJ9MRpSlXBPTXMAJ5JbZ7VaQl2avqh/iz10RE xl8Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:sender:message-id:date:mime-version:user-agent :reply-to:subject:content-language:to:cc:references:from:in-reply-to :content-transfer-encoding; bh=ekhlwoPzvJoskXTpDgTuPgEtY6ea+ueHsvF/CekOqAg=; b=B+WLOjTl0fbfDXqgBh/mM0fratlLZDFtx0KNF00BoMNRGe1D9L+w+QyLe6Iy+Y60Uc Rdq6+HN56EPc0g/v3bmjd4OtE3qiw4wfj4JDSIC8gXCerZGa52JAgzfDu6bpjFjM8pMH jYT+nMx+FSVtOy2pmTw2mLaOTyRUPFnX2VHTVO1DaPsMHtcrjc5VZt+BEeoKEeo4Fto8 +Wux0QSWst1CxG9oqIwh94csgi+UpTDZqUNdSzOnvSW6bLxP7BzV3g1mGE/L67MUwrWo MNU3yFi4Jn4vAqdnPKm3cVq0429u3UXvDM0Hng4qdhR4M2U7o7bqA4/tjmsNCL86Zjfq pKKw== X-Gm-Message-State: AOAM533kyxcmorX+67yojfuZHHnUtSGRcmmzu5WbD7ZLMxzy3S46P6pS C7dyUDtu/nZah2VLpTHRStXcpTBY/yQ= X-Google-Smtp-Source: ABdhPJx3Uz+oWroqkV8c7rqWIGfz577lNDytTdvI1muLiChgBC4CDL2uRHaDEgcv1lv6bC+gBvGM4g== X-Received: by 2002:a17:90b:3810:: with SMTP id mq16mr14249315pjb.193.1642732463278; Thu, 20 Jan 2022 18:34:23 -0800 (PST) Received: from ?IPV6:2403:5807:1b:1:11c0:627c:7a74:7cf1? (2403-5807-1b-1-11c0-627c-7a74-7cf1.ip6.aussiebb.net. [2403:5807:1b:1:11c0:627c:7a74:7cf1]) by smtp.gmail.com with ESMTPSA id d16sm4829766pfu.9.2022.01.20.18.34.21 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Thu, 20 Jan 2022 18:34:22 -0800 (PST) Message-ID: Date: Fri, 21 Jan 2022 13:34:19 +1100 List-Id: FreeBSD-specific Python issues List-Archive: https://lists.freebsd.org/archives/freebsd-python List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-python@freebsd.org X-BeenThere: freebsd-python@freebsd.org MIME-Version: 1.0 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:97.0) Gecko/20100101 Thunderbird/97.0a1 Reply-To: koobs@FreeBSD.org Subject: Re: PLIST issues in more ports? Content-Language: en-US To: loader , Stefan Esser Cc: python@freebsd.org References: <20220116152934.D2BEC10CD2@freefall.freebsd.org> From: Kubilay Kocak In-Reply-To: <20220116152934.D2BEC10CD2@freefall.freebsd.org> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Rspamd-Queue-Id: 4Jg3Nw2h1Zz4tf2 X-Spamd-Bar: / Authentication-Results: mx1.freebsd.org; dkim=pass header.d=gmail.com header.s=20210112 header.b=jh0bOqb7; dmarc=none; spf=pass (mx1.freebsd.org: domain of koobsfreebsd@gmail.com designates 2607:f8b0:4864:20::634 as permitted sender) smtp.mailfrom=koobsfreebsd@gmail.com X-Spamd-Result: default: False [0.10 / 15.00]; HAS_REPLYTO(0.00)[koobs@FreeBSD.org]; RCVD_VIA_SMTP_AUTH(0.00)[]; TO_DN_SOME(0.00)[]; R_SPF_ALLOW(-0.20)[+ip6:2607:f8b0:4000::/36]; REPLYTO_ADDR_EQ_FROM(0.00)[]; RCVD_COUNT_THREE(0.00)[3]; DKIM_TRACE(0.00)[gmail.com:+]; FORGED_SENDER(0.30)[koobs@FreeBSD.org,koobsfreebsd@gmail.com]; SUBJECT_ENDS_QUESTION(1.00)[]; MIME_TRACE(0.00)[0:+]; FREEMAIL_ENVFROM(0.00)[gmail.com]; MID_RHS_MATCH_FROM(0.00)[]; TAGGED_FROM(0.00)[]; ASN(0.00)[asn:15169, ipnet:2607:f8b0::/32, country:US]; ARC_NA(0.00)[]; NEURAL_HAM_MEDIUM(-0.98)[-0.980]; R_DKIM_ALLOW(-0.20)[gmail.com:s=20210112]; FROM_NEQ_ENVFROM(0.00)[koobs@FreeBSD.org,koobsfreebsd@gmail.com]; FROM_HAS_DN(0.00)[]; RCPT_COUNT_THREE(0.00)[3]; TO_MATCH_ENVRCPT_ALL(0.00)[]; NEURAL_HAM_LONG(-0.72)[-0.718]; MIME_GOOD(-0.10)[text/plain]; DWL_DNSWL_NONE(0.00)[gmail.com:dkim]; DMARC_NA(0.00)[FreeBSD.org]; NEURAL_SPAM_SHORT(1.00)[1.000]; RCVD_IN_DNSWL_NONE(0.00)[2607:f8b0:4864:20::634:from]; MLMMJ_DEST(0.00)[python]; RCVD_TLS_ALL(0.00)[] X-ThisMailContainsUnwantedMimeParts: N On 17/01/2022 2:29 am, loader wrote: > On Sat, 15 Jan 2022 01:28:09 +0100, Stefan Esser wrote: > >> Hi Python Maintainers, >> >> the following packages conflict with each other since they install >> files that do not depend on the package: >> >> py38-scikit-bio >> py38-ddtrace >> >> They contain files like >> >> lib/python3.8/site-packages/benchmarks/__pycache__/__init__.cpython-38.pyc >> >> which probably should be excluded from the PLIST. >> >> Similarily: >> >> py38-mycli >> py38-beziers >> py38-grizzled >> py38-gtfslib >> py38-habanero >> py38-molecule >> py38-onnx-tf >> py38-ont-fast5-api >> py38-puppetboard >> py38-pysmartdl >> py38-pysodium >> py38-pyzipper >> py38-streamparse >> >> which all contain: >> >> lib/python3.8/site-packages/test/__init__.py >> lib/python3.8/site-packages/test/conftest.py >> lib/python3.8/site-packages/test/__pycache__/__init__.cpython-38.pyc >> lib/python3.8/site-packages/test/__pycache__/conftest.cpython-38.pyc >> >> I have not checked for individual maintainers, but this is IMHO a >> framework issue that should have a generic solution ... >> >> Should I create a PR for this issue? >> >> Regards, STefan > > Just a thought, maybe site-packages/test/ could be removed during > autoplist, but not sure whether there's a port really needs be to > installed into this directory. > > diff --git a/Mk/Uses/python.mk b/Mk/Uses/python.mk > index 6c5d11dc9d08..37aa53759698 100644 > --- a/Mk/Uses/python.mk > +++ b/Mk/Uses/python.mk > @@ -616,6 +616,7 @@ _RELLIBDIR= ${PYTHONPREFIX_LIBDIR:S;${PREFIX}/;;} > _USES_stage+= 934:add-plist-pymod > add-plist-pymod: > @${SED} -e 's|^"\(.*\)"$$|\1|' \ > + -e '\|^${PYTHON_SITELIBDIR}/test/|d' \ > -e 's|^${STAGEDIR}${PREFIX}/||' \ > -e 's|^${PREFIX}/||' \ > -e 's|^\(man/.*man[0-9]\)/\(.*\.[0-9]\)$$|\1/\2.gz|' \ > > Cheers, > loader Ideally and if possible, these issues should be (1) detected (sanity.mk python.mk or similar: fatal error) and (2) reported upstream so that they can be resolved permanently. Happy to discuss any time. #freebsd-python @ Libera Chat IRC