Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 20 Aug 2021 12:40:23 +0900
From:      Tatsuki Makino <tatsuki_makino@hotmail.com>
To:        koobs@FreeBSD.org
Cc:        freebsd-ports@freebsd.org, python <python@FreeBSD.org>
Subject:   Re: How do I depend on a python port without caring about flavor
Message-ID:  <PSAPR03MB56396C1542D5AF638E1E21E7FAC19@PSAPR03MB5639.apcprd03.prod.outlook.com>
In-Reply-To: <d7c8c457-78ac-5311-91ab-a77059261999@FreeBSD.org>
References:  <891c5f92-0859-dafc-3356-2d2a08fcfc3c@bluerosetech.com> <PSAPR03MB5639BC487FD2BCAC763BA057FAC09@PSAPR03MB5639.apcprd03.prod.outlook.com> <d7c8c457-78ac-5311-91ab-a77059261999@FreeBSD.org>

next in thread | previous in thread | raw e-mail | index | archive | help
Thank you for the reply.

However, for the ports listed below...

> On 20/08/2021 7:07 am, Tatsuki Makino wrote:
>> devel/llvm{-devel,12,11,10,90,80,70}
>> databases/rrdtool
>> graphics/opencv
>> and astro/geographiclib (which IS maintained by me :) )

... strange things seem to occur.

For example, in the following dependency graph, the FLAVOR will be unbreakable?

# PYTHON_DEFAULT==3.8
${PYTHON_PKGNAMEPREFIX}sphinx>=0:textproc/py-sphinx@${PY_FLAVOR}
↑(up arrow)
geographiclib>0:astro/geographiclib
↑(up arrow)
py37-examplefoobar>0:portorigin/py-examplefoobar@py37

I don't know if anyone else uses geographiclib :), but do the ports that are sandwiched by dependencies always have to support flavor?
geographiclib has not yet supported FLAVOR.
If it tries to be built with a command like the following, the build will stop for the reason "FLAVOR is defined (to py37) while this port does not have FLAVORS".

make -C /usr/ports/astro/geographiclib/ build FLAVOR=py37
poudriere bulk -j jail -C astro/geographiclib@py37

And... can ports that switch files to be installed in PYTHON_SITELIBDIR (e.g. llvm*, rrdtool and opencv) be prefixed with PYTHON_PKGNAMEPREFIX in package name?
If the package name changes in the middle of the history, the users of the package may not be able to follow it. (e.g. libopenshot-0.2.3.595_2 -> py37-libopenshot-0.2.4.29)

I'm a little confused as I write :), but I have some questions about that.

Sorry for starting to stray from the original question.
Regards.




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