Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 26 Sep 2022 20:22:15 -0700
From:      Kevin Oberman <rkoberman@gmail.com>
To:        Dan Mahoney <freebsd@gushi.org>
Cc:        "ports@FreeBSD.org" <ports@freebsd.org>
Subject:   Re: Python version dependencies in pkg
Message-ID:  <CAN6yY1ujCH9Xnv3QN-GF8hN75v%2BxGkOTHrsr25jzxGNGdYW2vQ@mail.gmail.com>
In-Reply-To: <B2A3A400-F21A-4E92-8116-41E7945E4E5C@gushi.org>
References:  <8B490359-27A3-410C-AE98-C1362D4FA9F0@gushi.org> <CAN6yY1sGnDF-oReRMFeVz78oGoTfUvsvwUOQwoBZWN9ibjTw3A@mail.gmail.com> <B2A3A400-F21A-4E92-8116-41E7945E4E5C@gushi.org>

next in thread | previous in thread | raw e-mail | index | archive | help
--00000000000020942e05e9a02803
Content-Type: text/plain; charset="UTF-8"

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
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.

--00000000000020942e05e9a02803
Content-Type: text/html; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable

<div dir=3D"ltr"><div dir=3D"auto"><div><span class=3D"gmail_default" style=
=3D"font-family:tahoma,sans-serif;font-size:small"><span class=3D"gmail_def=
ault" style=3D"font-family:tahoma,sans-serif;font-size:small"></span></span=
>On Mon, Sep 26, 2022, 18:13 Dan Mahoney &lt;<a href=3D"mailto:freebsd@gush=
i.org" target=3D"_blank">freebsd@gushi.org</a>&gt; wrote:<br><div class=3D"=
gmail_quote"><blockquote class=3D"gmail_quote" style=3D"margin:0 0 0 .8ex;b=
order-left:1px #ccc solid;padding-left:1ex"><div style=3D"word-wrap:break-w=
ord;line-break:after-white-space"><br><div><br><blockquote type=3D"cite"><d=
iv>On Sep 26, 2022, at 09:27, Kevin Oberman &lt;<a href=3D"mailto:rkoberman=
@gmail.com" rel=3D"noreferrer" target=3D"_blank">rkoberman@gmail.com</a>&gt=
; wrote:</div><br><div><div dir=3D"ltr"><div dir=3D"ltr"><div class=3D"gmai=
l_default" style=3D"font-family:tahoma,sans-serif;font-size:small">On Mon, =
Sep 26, 2022 at 2:58 AM Dan Mahoney &lt;<a href=3D"mailto:freebsd@gushi.org=
" rel=3D"noreferrer" target=3D"_blank">freebsd@gushi.org</a>&gt; wrote:<br>=
</div></div><div class=3D"gmail_quote"><blockquote class=3D"gmail_quote" st=
yle=3D"margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padd=
ing-left:1ex">All,<br>
<br>
A quick question:<br>
<br>
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 p=
kg was built, 3.8 right now), correct?<br>
<br>
If you have 3.9 installed, that will satifsfy dependencies, and it won&#39;=
t install python3.8, correct? Or are the dependent versions for interpretec=
 languages in pkg locked to whatever the default is?<br>
<br>
Assuming &quot;any python will work&quot;, If you have 3.8 installed, and l=
ater install 3.9 -- is there any easy way to point your package at the new =
version as the new dependency, without deinstalling/reinstalling it?<br>
<br>
-Dan<br>
</blockquote></div><br clear=3D"all"><div style=3D"font-family:tahoma,sans-=
serif;font-size:small" class=3D"gmail_default">It will use the version spec=
ified as default in /usr/ports/Mk/<a href=3D"http://bsd.default-versions.mk=
/" rel=3D"noreferrer" target=3D"_blank">bsd.default-versions.mk</a>.</div><=
/div></div></blockquote><div><br></div><div>To be clear, I&#39;m talking ab=
out pkg install, not port building.</div><div><br></div><div>So I understan=
d -- that value is somehow baked in to the package tree somewhere?=C2=A0 Be=
cause pkg alone doesn&#39;t look at the ports tree on the installing machin=
e<span style=3D"color:rgb(0,0,0)">=C2=A0</span><span style=3D"color:rgb(0,0=
,0)">(you do not need to have ports extracted to install packages)</span>, =
nor do I believe it looks at make.conf,</div><div><br></div><div>If so, whe=
re in pkg do I find the default version?=C2=A0 Is it somewhere in the repos=
itory that&#39;s fetched before I install any packages?</div><div><br></div=
><div>-Dan</div></div></div></blockquote><div><br></div><div style=3D"font-=
family:tahoma,sans-serif;font-size:small" class=3D"gmail_default"><span cla=
ss=3D"gmail_default" style=3D"font-family:tahoma,sans-serif;font-size:small=
">You
 are correct.=C2=A0 But the packages are built using the same Makefile and=
=20
the same defaults as when built from ports for the specified version of Fre=
eBSD as
 if it was built from ports. The Mk files are updated with ports, so all pa=
ckages change when the change is committed to the defaults file, though the=
y will only take effect when the quarter changes unless you&#39;re using LA=
TEST packages.<br></span></div></div></div></div>
</div>

--00000000000020942e05e9a02803--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CAN6yY1ujCH9Xnv3QN-GF8hN75v%2BxGkOTHrsr25jzxGNGdYW2vQ>