From nobody Fri Sep 30 19:43:33 2022 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 4MfLJK4Nm1z4YG90 for ; Fri, 30 Sep 2022 19:43:45 +0000 (UTC) (envelope-from freebsd@gushi.org) Received: from prime.gushi.org (prime.gushi.org [IPv6:2620:137:6000:10::142]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "prime.gushi.org", Issuer "RapidSSL TLS DV RSA Mixed SHA256 2020 CA-1" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4MfLJJ3z6mz3LsG; Fri, 30 Sep 2022 19:43:44 +0000 (UTC) (envelope-from freebsd@gushi.org) Received: from smtpclient.apple ([IPv6:2601:602:87f:b05d:ac60:244b:6cdc:5ecb]) (authenticated bits=0) by prime.gushi.org (8.16.1/8.16.1) with ESMTPSA id 28UJhd7k070261 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NO); Fri, 30 Sep 2022 12:43:41 -0700 (PDT) (envelope-from freebsd@gushi.org) DKIM-Filter: OpenDKIM Filter v2.10.3 prime.gushi.org 28UJhd7k070261 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gushi.org; s=prime2014; t=1664567022; bh=Y4o3pfPHnKN2VZVxDYU5baqTvkDU5bjqm5RnFL5Fhpc=; h=Subject:From:In-Reply-To:Date:Cc:References:To; z=Subject:=20Re:=20Python=20version=20dependencies=20in=20pkg|From: =20Dan=20Mahoney=20|In-Reply-To:=20<2c373ee2-78 5b-d31f-23d3-bc0856c7bf5e@FreeBSD.org>|Date:=20Fri,=2030=20Sep=202 022=2012:43:33=20-0700|Cc:=20ports@freebsd.org,=0D=0A=20Alexander= 20Leidinger=20|References:=20<8B490359-27 A3-410C-AE98-C1362D4FA9F0@gushi.org>=0D=0A=20=0D=0A=20=0D=0A=20=0D=0A=20<89D2B2D 7-FA3D-46F5-A93B-4846950A157C@gushi.org>=0D=0A=20<65597c37-813b-d0 ed-ea9f-8591b68cf097@gwdg.de>=0D=0A=20<20220929083939.Horde.Viq2uL BgUctcrsgmaJxN_1u@webmail.leidinger.net>=0D=0A=20=0D=0A=20<2c373ee2-785b-d31f-23d3-b c0856c7bf5e@FreeBSD.org>|To:=20Stefan=20Esser=20; b=sIKmjbr00ty4jSnt5YabXMb5kZKs0/suU5r0wskyNqf5Hxrj4sqVcdDV9MyXVYviR bd/spyCIh03pYIIvERXBZdn9KAhMYTlXv7+2LpAp+B7zLIqZcSOnkgtMW9GlV/QIds 0qLCrOss+BwEe6KAR2ux3RlU1P0LBLukUobsEFSAC+9mIcGTyFksKZ88zg430daw4/ zxysiEj/xlzom0gXLeSDZXYPA98fumm31fY1euxnOc5IvFaPzy7BmLWxdwAynMeLbt K0Pxx4RjG0sEsltJu25mG48+2sZye1f7iocJ1eEn+kid5cfrMWNxbn4q2nA39Ovw3N zxhRsq5LQv2UQ== X-Authentication-Warning: prime.gushi.org: Host [IPv6:2601:602:87f:b05d:ac60:244b:6cdc:5ecb] claimed to be smtpclient.apple Content-Type: text/plain; charset=us-ascii 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 (Mac OS X Mail 16.0 \(3696.120.41.1.1\)) Subject: Re: Python version dependencies in pkg From: Dan Mahoney In-Reply-To: <2c373ee2-785b-d31f-23d3-bc0856c7bf5e@FreeBSD.org> Date: Fri, 30 Sep 2022 12:43:33 -0700 Cc: ports@freebsd.org, Alexander Leidinger Content-Transfer-Encoding: quoted-printable Message-Id: <5CDB69DD-4DD9-4276-BF80-71DB63403458@gushi.org> References: <8B490359-27A3-410C-AE98-C1362D4FA9F0@gushi.org> <89D2B2D7-FA3D-46F5-A93B-4846950A157C@gushi.org> <65597c37-813b-d0ed-ea9f-8591b68cf097@gwdg.de> <20220929083939.Horde.Viq2uLBgUctcrsgmaJxN_1u@webmail.leidinger.net> <2c373ee2-785b-d31f-23d3-bc0856c7bf5e@FreeBSD.org> To: Stefan Esser X-Mailer: Apple Mail (2.3696.120.41.1.1) X-Rspamd-Queue-Id: 4MfLJJ3z6mz3LsG X-Spamd-Bar: ------ Authentication-Results: mx1.freebsd.org; dkim=pass header.d=gushi.org header.s=prime2014 header.b=sIKmjbr0; dmarc=pass (policy=none) header.from=gushi.org; spf=pass (mx1.freebsd.org: domain of freebsd@gushi.org designates 2620:137:6000:10::142 as permitted sender) smtp.mailfrom=freebsd@gushi.org X-Spamd-Result: default: False [-6.20 / 15.00]; DWL_DNSWL_MED(-2.00)[gushi.org:dkim]; NEURAL_HAM_MEDIUM(-1.00)[-1.000]; NEURAL_HAM_LONG(-1.00)[-1.000]; NEURAL_HAM_SHORT(-1.00)[-1.000]; MV_CASE(0.50)[]; RCVD_DKIM_ARC_DNSWL_MED(-0.50)[]; DMARC_POLICY_ALLOW(-0.50)[gushi.org,none]; R_DKIM_ALLOW(-0.20)[gushi.org:s=prime2014]; RCVD_IN_DNSWL_MED(-0.20)[2620:137:6000:10::142:from]; R_SPF_ALLOW(-0.20)[+mx]; MIME_GOOD(-0.10)[text/plain]; MLMMJ_DEST(0.00)[ports@freebsd.org]; TO_MATCH_ENVRCPT_SOME(0.00)[]; FROM_HAS_DN(0.00)[]; RCPT_COUNT_THREE(0.00)[3]; RCVD_VIA_SMTP_AUTH(0.00)[]; ASN(0.00)[asn:393507, ipnet:2620:137:6000::/44, country:US]; MID_RHS_MATCH_FROM(0.00)[]; HAS_XAW(0.00)[]; TO_DN_SOME(0.00)[]; ARC_NA(0.00)[]; DKIM_TRACE(0.00)[gushi.org:+]; MIME_TRACE(0.00)[0:+]; FROM_EQ_ENVFROM(0.00)[]; RCVD_COUNT_TWO(0.00)[2]; RCVD_TLS_ALL(0.00)[] X-ThisMailContainsUnwantedMimeParts: N > On Sep 29, 2022, at 14:21, Stefan Esser wrote: >=20 >=20 >> But trying to do a pkg delete python3.8 attempted to delete = bind-tools, and I was looking for the magic incantation that says = "without reinstalling bind-tools, how can I re-point it at the python39 = variants of that package". On a box without a ports tree. Only using = pkg. >=20 > As you say, bind-tools does no longer depend on Python and therefore = is > not a good example. You're correct, but it was the [most recent] one that sent us down this = rabbit hole, so I'm using it. > But you can use the above command to query the python dependency for = any > pre-built package. >=20 > And no, you cannot "re-point" a package. "Re-pointing" is done by = building > the package with different default versions, and you can do it = yourself, > if the official version do not match your requirements. That goes against the whole recommendation of "don't mix ports and = packages", which means I'd be building everything from gcc on up to = solve this. We have a large enough install base and we're familiar with = poudriere that yes, we could do these things if we have to, but it would = be a pain point. Ah well. At this point I can count three times in recent history (with = three different packages) where a changing default has burned us, and I = have some suggestions for improvement that I'm trying to organize, but = now that I understand how defaults are baked in to packages, I have a = greater understanding of the problem to be solved/worked around/just = accepted. Thanks to everyone who responded. Best, -Dan