Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 2 Jan 2021 14:49:07 -0500
From:      Ray Cote <rgacote@appropriatesolutions.com>
To:        Valeri Galtsev <galtsev@kicp.uchicago.edu>
Cc:        freebsd-questions@freebsd.org
Subject:   Re: pkg with dependency on Python 3.8 tries to install Python 3.7.3
Message-ID:  <CAG5tnzom_Ke_hQ0VTzbxTBTjw4XN-Hu2AgE8WacWJSt6V2sYJQ@mail.gmail.com>
In-Reply-To: <AA0B8173-BAFF-4BB9-83C2-BBBAB3B814C2@kicp.uchicago.edu>
References:  <CAG5tnzqdgHTFnvzM6DQ5GAefkqs0Tg=k1%2ByjQZ4O8ABxaUcQ9Q@mail.gmail.com> <AA0B8173-BAFF-4BB9-83C2-BBBAB3B814C2@kicp.uchicago.edu>

next in thread | previous in thread | raw e-mail | index | archive | help
On Sat, Jan 2, 2021 at 1:36 PM Valeri Galtsev <galtsev@kicp.uchicago.edu>
wrote:

>
>
> > On Jan 2, 2021, at 11:42 AM, Ray Cote <rgacote@appropriatesolutions.com=
>
> wrote:
> >
> > Hello:
> >
> > I'm building and installing on FreeBSD 12.2.
> > My package has the following two dependencies:
> >
> > deps =3D {
> >  bash =3D {
> >    version =3D "5.0.18,2";
> >    origin =3D "shells/bash";
> >    },
> >  python =3D {
> >    version =3D "3.8_6,0";
> >    origin =3D "lang/python";
> >    },
> >  },
> >
>
> What happens if in deps you use
>
> origin =3D =E2=80=9Clang/python38=E2=80=9D
>
> instead of =E2=80=9Clang/python=E2=80=9D ? The truth is that /usr/ports/l=
ang/python
> resembles version 3.7, that=E2=80=99s why that version gets installed too=
.
>
> Valeri


Hi Valeri:
Although that did not solve the problem, it made me consider an additional
change.
Switching 'python =3D'  to 'python3.8 =3D' fixes the problem.
Also clarifies for me the x =3D is not a random label but the name of an
actual package.

The dependency now looks like:

  python3.8 =3D {
    version =3D "3.8_6,0";
    origin =3D "lang/python38";
    },


Thanks for the help.
--Ray


>
>
>
> > After building the package, those are the dependencies I see:
> >
> > # pkg info -d -F pkg/app-2.0.0.txz
> > app-2.0.0:
> >
> > bash-5.0.18,2
> >
> > python-3.8_6,0
> >
> >
> > When I install it, it tries to install Python TBD
> >
> > # pkg install -U pkg/app-2.0.0.txz
> > The following 3 package(s) will be affected (of 0 checked):
> >
> > New packages to be INSTALLED:
> >
> > python: 3.7_3,2
> >
> > python3: 3_3
> >
> > app: 2.0.0
> >
> >
> > Number of packages to be installed: 3
> >
> > 2 KiB to be downloaded.
> >
> > I already have Python 3.8.6 and 3.7.9 installed:
> >
> > # pkg info python*
> > python37-3.7.9
> > python38-3.8.6
> >
> >
> > Any hints as to why I'm being prompted for an older (and older than
> > installed) Python 3.7?
> >
> > I've searched the Manifest and the only place Python appears is in the
> > dependencies listed above.
> >
> > This is my first attempt at packaging one of our custom applications, s=
o
> > perhaps I've missed something obvious.
> >
> > Thanks
> > --Ray
> > _______________________________________________
> > freebsd-questions@freebsd.org mailing list
> > https://lists.freebsd.org/mailman/listinfo/freebsd-questions
> > To unsubscribe, send any mail to "
> freebsd-questions-unsubscribe@freebsd.org"
>
>

--=20
Raymond Cote, CTO
voice: +1.603.924.6079 email: rgacote@AppropriateSolutions.com skype:
ray.cote
Schedule a meeting: https://calendly.com/ray_cote/60min/



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CAG5tnzom_Ke_hQ0VTzbxTBTjw4XN-Hu2AgE8WacWJSt6V2sYJQ>