From nobody Sun Nov 28 12:57:00 2021 X-Original-To: ports@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 D3A4618ADF26 for ; Sun, 28 Nov 2021 12:57:33 +0000 (UTC) (envelope-from pvoigt@uos.de) Received: from mta-out-1-1.rz.uni-osnabrueck.de (mta-out-1-1.rz.uni-osnabrueck.de [131.173.18.148]) (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 4J27mr43dvz3Pv0 for ; Sun, 28 Nov 2021 12:57:32 +0000 (UTC) (envelope-from pvoigt@uos.de) Received: from vm412.rz.uni-osnabrueck.de (smtp-auth-2.serv.uni-osnabrueck.de [131.173.17.0]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mta-out-1-1.rz.uni-osnabrueck.de (Postfix) with ESMTPS id 469626E8737 for ; Sun, 28 Nov 2021 13:57:24 +0100 (CET) Received: from spock.drpetervoigt.eu (spock.drpetervoigt.eu [217.91.107.36]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) (Authenticated sender: pvoigt) by vm412.rz.uni-osnabrueck.de (Postfix) with ESMTPSA id 186031725090 for ; Sun, 28 Nov 2021 13:57:03 +0100 (CET) Received: from kirk.drpetervoigt.private (kirk.drpetervoigt.private [192.168.1.60]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (P-256) server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) (Authenticated sender: pvoigt) by spock.drpetervoigt.eu (Postfix) with ESMTPSA id 9FB851062F4 for ; Sun, 28 Nov 2021 13:57:01 +0100 (CET) Message-ID: <8978a64921090e7b4df8c18cee129d7cdb94a62e.camel@uos.de> Subject: Re: Unable to build Python38 ports like devel/py38-pycparser and even py38-setuptools From: "Dr. Peter Voigt" To: ports@freebsd.org Date: Sun, 28 Nov 2021 13:57:00 +0100 In-Reply-To: <4aabecf116ce10431b21aba202a47a48004f252e.camel@uos.de> References: <4aabecf116ce10431b21aba202a47a48004f252e.camel@uos.de> Content-Type: text/plain; charset="UTF-8" User-Agent: Evolution 3.38.3-1 List-Id: Porting software to FreeBSD List-Archive: https://lists.freebsd.org/archives/freebsd-ports List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-ports@freebsd.org X-BeenThere: freebsd-ports@freebsd.org MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-PMX-Version: vm412.rz.uni-osnabrueck.de (Univ. Osnabrueck) with PMX 6.4.6.2792898, Antispam-Engine: 2.7.2.2107409, Antispam-Data: 2021.11.28.123916, AntiVirus-Engine: 5.87.0, AntiVirus-Data: 2021.11.28.5870000 X-PMX-Spam: Gauge=X, Probability=10%, Report= TO_IN_SUBJECT 0.5, HTML_00_01 0.05, HTML_00_10 0.05, BODY_SIZE_4000_4999 0, BODY_SIZE_5000_LESS 0, BODY_SIZE_7000_LESS 0, CT_TEXT_PLAIN_UTF8_CAPS 0, FROM_NAME_PHRASE 0, IN_REP_TO 0, MSG_THREAD 0, NO_CTA_FOUND 0, NO_CTA_URI_FOUND 0, NO_FUR_HEADER 0, NO_URI_HTTPS 0, REFERENCES 0, __ANY_URI 0, __BANNER_TRUSTED_SENDER 0, __BODY_NO_MAILTO 0, __BOUNCE_CHALLENGE_SUBJ 0, __BOUNCE_NDR_SUBJ_EXEMPT 0, __COURIER_PHRASE 0, __CT 0, __CTE 0, __CT_TEXT_PLAIN 0, __FORWARDED_MSG 0, __FROM_DOMAIN_NOT_IN_BODY 0, __HAS_FROM 0, __HAS_MSGID 0, __HAS_REFERENCES 0, __HEADER_ORDER_FROM 0, __HIGHBITS 0, __IN_REP_TO 0, __MAIL_CHAIN 0, __MIME_TEXT_ONLY 0, __MIME_TEXT_P 0, __MIME_TEXT_P1 0, __MIME_VERSION 0, __PHISH_SPEAR_SUBJ_PREDICATE 0, __REFERENCES 0, __SANE_MSGID 0, __SUBJ_ALPHA_END 0, __SUBJ_ALPHA_NEGATE 0, __SUBJ_REPLY 0, __TO_IN_SUBJECT 0, __TO_MALFORMED_2 0, __TO_NO_NAME 0, __URI_NO_MAILTO 0, __URI_NO_WWW 0, __USER_AGENT 0 X-PMX-Spam-Level: X X-Rspamd-Queue-Id: 4J27mr43dvz3Pv0 X-Spamd-Bar: / Authentication-Results: mx1.freebsd.org; dkim=none; dmarc=none; spf=pass (mx1.freebsd.org: domain of pvoigt@uos.de designates 131.173.18.148 as permitted sender) smtp.mailfrom=pvoigt@uos.de X-Spamd-Result: default: False [-0.13 / 15.00]; RCVD_VIA_SMTP_AUTH(0.00)[]; ARC_NA(0.00)[]; NEURAL_HAM_MEDIUM(-0.97)[-0.974]; FROM_HAS_DN(0.00)[]; TO_MATCH_ENVRCPT_ALL(0.00)[]; R_SPF_ALLOW(-0.20)[+ip4:131.173.16.0/22]; MIME_GOOD(-0.10)[text/plain]; PREVIOUSLY_DELIVERED(0.00)[ports@freebsd.org]; TO_DN_NONE(0.00)[]; RCPT_COUNT_ONE(0.00)[1]; RCVD_COUNT_THREE(0.00)[4]; DMARC_NA(0.00)[uos.de]; RCVD_IN_DNSWL_MED(-0.40)[131.173.18.148:from,131.173.17.0:received]; NEURAL_SPAM_LONG(0.82)[0.815]; FROM_NAME_HAS_TITLE(1.00)[dr]; NEURAL_HAM_SHORT(-0.28)[-0.275]; FROM_EQ_ENVFROM(0.00)[]; R_DKIM_NA(0.00)[]; MIME_TRACE(0.00)[0:+]; ASN(0.00)[asn:680, ipnet:131.173.0.0/16, country:DE]; RCVD_TLS_ALL(0.00)[]; MID_RHS_MATCH_FROM(0.00)[] X-ThisMailContainsUnwantedMimeParts: N I could finally solve the issue. Obvously, py38-packaging was missing. Unfortunately, portmaster did not detect the dependency I devel/py- packaging could not even be installed using portmaster. But a "make install" helped. Subsequently I could upgrade the initially mentioned ports. I am not sure, if it is a portmaster or a whatever dependency problem. On Sat, 2021-11-27 at 21:03 +0100, Dr. Peter Voigt wrote: > I am currently facing a strange problem when tryping to upgrade > following ports: > > # pkg version -vIL=           > py38-pycparser-2.20                <   needs updating (index has > 2.21) > py38-pyparsing-3.0.4               <   needs updating (index has > 3.0.6) > py38-snowballstemmer-2.1.0         <   needs updating (index has > 2.2.0) > > All mentioned ports cannot be upgraded from ports source tree. For > e.g. > py38-pycparser I get: > > ===>>> Starting build for devel/py-pycparser@py38 <<<=== > > ===>>> All dependencies are up to date > > ===>  Cleaning for py38-pycparser-2.21 > ===>  License BSD3CLAUSE accepted by the user > ===>   py38-pycparser-2.21 depends on file: /usr/local/sbin/pkg - > found > ===> Fetching all distfiles required by py38-pycparser-2.21 for > building > ===>  Extracting for py38-pycparser-2.21 > => SHA256 Checksum OK for pycparser-2.21.tar.gz. > ===>  Patching for py38-pycparser-2.21 > ===>   py38-pycparser-2.21 depends on package: py38-setuptools>0 - > found > ===>   py38-pycparser-2.21 depends on file: /usr/local/bin/python3.8 > - > found > ===>  Configuring for py38-pycparser-2.21 > Traceback (most recent call last): >   File "", line 1, in >   File "setup.py", line 35, in >     setup( >   File "/usr/local/lib/python3.8/site- > packages/setuptools/__init__.py", > line 153, in setup >     return distutils.core.setup(**attrs) >   File "/usr/local/lib/python3.8/distutils/core.py", line 108, in > setup >     _setup_distribution = dist = klass(attrs) >   File "/usr/local/lib/python3.8/site-packages/setuptools/dist.py", > line 455, in __init__ >     _Distribution.__init__(self, { >   File "/usr/local/lib/python3.8/distutils/dist.py", line 292, in > __init__ >     self.finalize_options() >   File "/usr/local/lib/python3.8/site-packages/setuptools/dist.py", > line 800, in finalize_options >     for ep in sorted(eps, key=by_order): >   File "/usr/local/lib/python3.8/site-packages/setuptools/dist.py", > line 799, in >     eps = map(lambda e: e.load(), > pkg_resources.iter_entry_points(group)) >   File "/usr/local/lib/python3.8/site- > packages/pkg_resources/__init__.py", line 2449, in load >     self.require(*args, **kwargs) >   File "/usr/local/lib/python3.8/site- > packages/pkg_resources/__init__.py", line 2472, in require >     items = working_set.resolve(reqs, env, installer, > extras=self.extras) >   File "/usr/local/lib/python3.8/site- > packages/pkg_resources/__init__.py", line 772, in resolve >     raise DistributionNotFound(req, requirers) > pkg_resources.DistributionNotFound: The 'packaging>=20.0' > distribution > was not found and is required by the application > *** Error code 1 > > Stop. > make: stopped in /usr/ports/devel/py-pycparser > > ===>>> make build failed for devel/py-pycparser@py38 > ===>>> Aborting update > > > ===>>> You can restart from the point of failure with this command > line: >        portmaster devel/py-pycparser@py38 > > This command has been saved to ~/portmasterfail.txt > > The error is the same for the remaining two other ports. > > And even if I tryp to reinstall py38-setuptools I get the same error. > > I am out of ideas and during my attempts to narrow down the error I > reinstalled python38 - which at least works without problems. > > My Python and PIP versions are: > # pkg version |grep -iE "pip|python38" > py38-pip-20.3.4                    = > python38-3.8.12_1                  = > > >