From nobody Wed Sep 28 21:01:26 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 4Md87801Qjz4V4CC for ; Wed, 28 Sep 2022 21:01:40 +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 4Md87713Jgz3Btb for ; Wed, 28 Sep 2022 21:01:39 +0000 (UTC) (envelope-from freebsd@gushi.org) Received: from smtpclient.apple ([IPv6:2601:602:87f:b05d:3824:9804:bf42:a1b9]) (authenticated bits=0) by prime.gushi.org (8.16.1/8.16.1) with ESMTPSA id 28SL1X2S062795 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NO); Wed, 28 Sep 2022 14:01:35 -0700 (PDT) (envelope-from freebsd@gushi.org) DKIM-Filter: OpenDKIM Filter v2.10.3 prime.gushi.org 28SL1X2S062795 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gushi.org; s=prime2014; t=1664398895; bh=ZAtN8B5J/kQ1LaPIgUgkAhOjLu7pvzmpVXqNr5YDa9M=; h=From:Subject:Date:In-Reply-To:Cc:To:References; z=From:=20Dan=20Mahoney=20|Subject:=20Re:=20Pyth on=20version=20dependencies=20in=20pkg|Date:=20Wed,=2028=20Sep=202 022=2014:01:26=20-0700|In-Reply-To:=20|Cc:=20"ports@FreeBSD.org" =20|To:=20Kevin=20Oberman=20|References:=20<8B490359-27A3-410C-AE98-C1362D4FA9F0@gushi.org>= 0D=0A=20=0D=0A=20=0D=0A=20; b=NiBH+NI5EErpp+SRB8hL6btj57cDeC9Y33rFW6bV3mYQATkQorVAhsGxdeuJF1XVq ARQS84f+QPIGs3J4/ZeFjE2NSldTlHffydi4zzK+yDgbxeQybR2CwDGKf1GvI8eueU 9tReTwGWqqmRGJ3PErMXMoPBnao4Kf21FX8QZkPF6MY77SouUWpRYM8i5kr+D2pokm xN6yDvmOJlu5vOoLHBKigkONVaUYue2JHTXY4Q+aWez9G5jQURxWdU1cUrhwq53iu8 Ao7duvuxJA2mTHF70AWv3JMar8IPcVVWQm7Yv9iAY8ecGEqI4fNzNXjbBhHPY52lsL iTLV53CSUfLkQ== X-Authentication-Warning: prime.gushi.org: Host [IPv6:2601:602:87f:b05d:3824:9804:bf42:a1b9] claimed to be smtpclient.apple From: Dan Mahoney Message-Id: <89D2B2D7-FA3D-46F5-A93B-4846950A157C@gushi.org> Content-Type: multipart/alternative; boundary="Apple-Mail=_6D02FE00-5A6C-4657-B2DA-D34F28033B09" 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 Date: Wed, 28 Sep 2022 14:01:26 -0700 In-Reply-To: Cc: "ports@FreeBSD.org" To: Kevin Oberman References: <8B490359-27A3-410C-AE98-C1362D4FA9F0@gushi.org> X-Mailer: Apple Mail (2.3696.120.41.1.1) X-Rspamd-Queue-Id: 4Md87713Jgz3Btb X-Spamd-Bar: ------ Authentication-Results: mx1.freebsd.org; dkim=pass header.d=gushi.org header.s=prime2014 header.b=NiBH+NI5; 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]; RCVD_DKIM_ARC_DNSWL_MED(-0.50)[]; DMARC_POLICY_ALLOW(-0.50)[gushi.org,none]; MV_CASE(0.50)[]; 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)[multipart/alternative,text/plain]; FROM_HAS_DN(0.00)[]; TO_DN_EQ_ADDR_SOME(0.00)[]; TO_MATCH_ENVRCPT_SOME(0.00)[]; ARC_NA(0.00)[]; MLMMJ_DEST(0.00)[ports@freebsd.org]; MID_RHS_MATCH_FROM(0.00)[]; MIME_TRACE(0.00)[0:+,1:+,2:~]; RCVD_COUNT_TWO(0.00)[2]; HAS_XAW(0.00)[]; TO_DN_SOME(0.00)[]; RCVD_VIA_SMTP_AUTH(0.00)[]; ASN(0.00)[asn:393507, ipnet:2620:137:6000::/44, country:US]; RCPT_COUNT_TWO(0.00)[2]; FREEMAIL_TO(0.00)[gmail.com]; DKIM_TRACE(0.00)[gushi.org:+]; FROM_EQ_ENVFROM(0.00)[]; RCVD_TLS_ALL(0.00)[] X-ThisMailContainsUnwantedMimeParts: N --Apple-Mail=_6D02FE00-5A6C-4657-B2DA-D34F28033B09 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=us-ascii > On Sep 26, 2022, at 20:22, Kevin Oberman wrote: >=20 > On Mon, Sep 26, 2022, 18:13 Dan Mahoney > wrote: >=20 >=20 >> On Sep 26, 2022, at 09:27, Kevin Oberman > wrote: >>=20 >> On Mon, Sep 26, 2022 at 2:58 AM Dan Mahoney > wrote: >> All, >>=20 >> A quick question: >>=20 >> If a pkg depends on python, but not a specific version, it will = simply pick a version to install (I guess, whatever version was the = default when the pkg was built, 3.8 right now), correct? >>=20 >> If you have 3.9 installed, that will satifsfy dependencies, and it = won't install python3.8, correct? Or are the dependent versions for = interpretec languages in pkg locked to whatever the default is? >>=20 >> Assuming "any python will work", If you have 3.8 installed, and later = install 3.9 -- is there any easy way to point your package at the new = version as the new dependency, without deinstalling/reinstalling it? >>=20 >> -Dan >>=20 >> It will use the version specified as default in = /usr/ports/Mk/bsd.default-versions.mk . >=20 > To be clear, I'm talking about pkg install, not port building. >=20 > So I understand -- that value is somehow baked in to the package tree = somewhere? Because pkg alone doesn't look at the ports tree on the = installing machine (you do not need to have ports extracted to install = packages), nor do I believe it looks at make.conf, >=20 > If so, where in pkg do I find the default version? Is it somewhere in = the repository that's fetched before I install any packages? >=20 > -Dan >=20 > You are correct. But the packages are built using the same Makefile = and the same defaults as when built from ports for the specified version = of FreeBSD as if it was built from ports. The Mk files are updated with = ports, so all packages change when the change is committed to the = defaults file, though they will only take effect when the quarter = changes unless you're using LATEST packages. Okay, so in either the package file, or the repo file, is there a bit = that says "whatever is the default" or that explicitly says "if there's = not a python, install 3.8"? =20 I realize I'm asking weird minute questions, but I'm noticing that = across our fleet we have some blend of machines that are 3.7, 3.8, and = 3.9, and trying to just remove 3.7 attempts to deinstall packages that = would work with 3.8. -Dan= --Apple-Mail=_6D02FE00-5A6C-4657-B2DA-D34F28033B09 Content-Transfer-Encoding: quoted-printable Content-Type: text/html; charset=us-ascii

On Sep 26, 2022, at 20:22, Kevin Oberman <rkoberman@gmail.com>= wrote:

On = Mon, Sep 26, 2022, 18:13 Dan Mahoney <freebsd@gushi.org> wrote:

On Sep 26, 2022, at 09:27, Kevin Oberman = <rkoberman@gmail.com> wrote:

On Mon, Sep 26, = 2022 at 2:58 AM Dan Mahoney <freebsd@gushi.org> = wrote:
All,

A quick question:

If a pkg depends on python, but not a specific version, it will simply = pick a version to install (I guess, whatever version was the default = when the pkg was built, 3.8 right now), correct?

If you have 3.9 installed, that will satifsfy dependencies, and it won't = install python3.8, correct? Or are the dependent versions for = interpretec languages in pkg locked to whatever the default is?

Assuming "any python will work", If you have 3.8 installed, and later = install 3.9 -- is there any easy way to point your package at the new = version as the new dependency, without deinstalling/reinstalling it?

-Dan

It will use the version specified as default in = /usr/ports/Mk/bsd.default-versions.mk.

To be clear, I'm = talking about pkg install, not port building.

So I understand -- that value is = somehow baked in to the package tree somewhere?  Because pkg alone = doesn't look at the ports tree on the installing machine (you do not need to = have ports extracted to install packages), nor do I believe it = looks at make.conf,

If so, where in pkg do I find the default version?  Is = it somewhere in the repository that's fetched before I install any = packages?

-Dan

You are correct.  But the packages are built using the same Makefile = and=20 the same defaults as when built from ports for the specified version of = FreeBSD as if it was built from ports. The Mk files are updated with ports, so all = packages change when the change is committed to the defaults file, = though they will only take effect when the quarter changes unless you're = using LATEST packages.

Okay, so in = either the package file, or the repo file, is there a bit that says = "whatever is the default" or that explicitly says "if there's not a = python, install 3.8"?  

I realize I'm asking weird minute = questions, but I'm noticing that across our fleet we have some blend of = machines that are 3.7, 3.8, and 3.9, and trying to just remove 3.7 = attempts to deinstall packages that would work with 3.8.

-Dan
= --Apple-Mail=_6D02FE00-5A6C-4657-B2DA-D34F28033B09--