From nobody Mon Oct 10 03:04:47 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 4Mm3gG31rJz4fFG3 for ; Mon, 10 Oct 2022 03:04:58 +0000 (UTC) (envelope-from FreeBSD@shaneware.biz) Received: from ipmail03.adl6.internode.on.net (ipmail03.adl6.internode.on.net [150.101.137.143]) by mx1.freebsd.org (Postfix) with ESMTP id 4Mm3gD6JHqz48v3 for ; Mon, 10 Oct 2022 03:04:56 +0000 (UTC) (envelope-from FreeBSD@shaneware.biz) X-SMTP-MATCH: 0 IronPort-Data: =?us-ascii?q?A9a23=3AwHDWmqydPhRP4D1VJNp6t+fixCrEfRIJ4+Muj?= =?us-ascii?q?C+fZmUNrF6WrkUOnGAYXGvQPv6JM2amLohwad++/RkEup/QzN4wHAVlrX81E?= =?us-ascii?q?34W85fICdjAc0qsNnnOdZSSFRxr45lOMIfKc8s4Z3KN/R3F3prJ9Ckkj/vUL?= =?us-ascii?q?lbf5E8oAs3CLONdYH9JZS9LwobVvKY42bBVPCvV0T/Ci5W31G6Ng1aYAEpNg?= =?us-ascii?q?06wgEsHUMDJhd8tlgdWicanHbPpvyJ94Jo3fcldJpZjK2VeNrbSq+3rlNlV8?= =?us-ascii?q?o5FlirBBO9Jkp6jGqELarrfNASDkDxSXKOrhnCupARoiv19baBGLx0M03PQx?= =?us-ascii?q?ridy/0U3XC0YSkzM6Dmo8g1SBlRFSxhNLdLvrXGMxBTtOTJnhefKye2mq0G4?= =?us-ascii?q?EYebdBCo7gf7Xt13eQfMiwWRh6Ziu+82779TfNj7uw/JdXwIYAejXRpzjDfC?= =?us-ascii?q?t4mRozGSqTOo9Rf2V8NampmdRrFT9IBcWA0NFGZOltUJl4LCZl4neG0i2P5d?= =?us-ascii?q?DFV7lWT46w6/wDuIMVK+OCFGLLolhaiHK25Rnqlm18=3D?= IronPort-HdrOrdr: =?us-ascii?q?A9a23=3AE0RK4KA3GH0ESCnlHemt55DYdb4zR+YMi2?= =?us-ascii?q?TDGXoddfUnSL39qynIpoV96faUskd1ZJhOo7G90cW7Lk80sKQFg7X5Xo3SPz?= =?us-ascii?q?UO2lHHEGgK1+KL/9SjIUHDH4VmvpuIHZIVNDS9NzhHsfo=3D?= X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: =?us-ascii?q?A2ALAwD8ikNj/wvmestaHAEBAQEBAQc?= =?us-ascii?q?BARIBAQQEAQFAgU+DJYFYhE6QZwgmA4QommkLAUoJBAEBghKCcwKEdSY4EwE?= =?us-ascii?q?CBBUBAQYBAQEBAQcEgRyFOwYnDYZDAQEBAgEjVgULCxoCJgICVwYNCAEBgnk?= =?us-ascii?q?Bgn0jE6xugTKBAYRwhQ0GgREskDCBA4FNgRUnDIJ3PoJiBBiFHYJmBJowJgQ?= =?us-ascii?q?OAxkrHUACAQtCNhgDFAMFIQcDGQ8jDQ0EFgcMAwMFJQMCAhsHAgIDAgYTBQI?= =?us-ascii?q?CTTQIBAgEKyQPBQIHLwUELwIeBAUGEQgCFgIGBAQEBBUCEAgCCCYXBxMYGxk?= =?us-ascii?q?BBVkOCSEcCgQaDQUGEwMgbwUKOA8oL2krHRsHgQwqKBUDBAQDAgYTAyACDSk?= =?us-ascii?q?xFAQpEg8tBylxCQIDImUFAwMEKCwDCSEfBygkPAdYOgEEAwIQIj0GAwkDAiR?= =?us-ascii?q?ZdzERFQUDDRkmCAU3GgQIPAIFBlMTAgoSAxIPBidJD0o+PZoGghQVgSQEgT8?= =?us-ascii?q?7UKJDn0uCToEaiz6NdYZ0BkGEP6RHlxCNQJwngX4zGiFSgmhQGQ+HRY9hhV1?= =?us-ascii?q?iAgkwAgYLAQEDCYsVAQE?= Received: from ppp230-11.static.internode.on.net (HELO leader.local) ([203.122.230.11]) by ipmail03.adl6.internode.on.net with ESMTP; 10 Oct 2022 13:34:51 +1030 Subject: Re: Python version dependencies in pkg To: Tatsuki Makino Cc: ports@freebsd.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> <1fdde4e6-fa80-720f-7c85-8417d2a3b642@ShaneWare.Biz> From: Shane Ambler Message-ID: <98a53c30-92bc-8119-0043-eb51be740233@ShaneWare.Biz> Date: Mon, 10 Oct 2022 13:34:47 +1030 User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:78.0) Gecko/20100101 Thunderbird/78.10.1 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 In-Reply-To: Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit X-Rspamd-Queue-Id: 4Mm3gD6JHqz48v3 X-Spamd-Bar: -- Authentication-Results: mx1.freebsd.org; dkim=none; dmarc=none; spf=none (mx1.freebsd.org: domain of FreeBSD@shaneware.biz has no SPF policy when checking 150.101.137.143) smtp.mailfrom=FreeBSD@shaneware.biz X-Spamd-Result: default: False [-2.20 / 15.00]; AUTH_NA(1.00)[]; NEURAL_HAM_LONG(-1.00)[-1.000]; NEURAL_HAM_MEDIUM(-1.00)[-1.000]; NEURAL_HAM_SHORT(-1.00)[-1.000]; MIME_GOOD(-0.10)[text/plain]; RCVD_NO_TLS_LAST(0.10)[]; RCVD_IN_DNSWL_LOW(-0.10)[150.101.137.143:from]; RWL_MAILSPIKE_GOOD(-0.10)[150.101.137.143:from]; R_DKIM_NA(0.00)[]; FROM_EQ_ENVFROM(0.00)[]; ARC_NA(0.00)[]; MIME_TRACE(0.00)[0:+]; RCVD_COUNT_TWO(0.00)[2]; ASN(0.00)[asn:4739, ipnet:150.101.0.0/16, country:AU]; TO_DN_SOME(0.00)[]; FREEMAIL_TO(0.00)[hotmail.com]; RCPT_COUNT_TWO(0.00)[2]; DMARC_NA(0.00)[shaneware.biz]; MLMMJ_DEST(0.00)[ports@freebsd.org]; FROM_HAS_DN(0.00)[]; MID_RHS_MATCH_FROM(0.00)[]; TO_MATCH_ENVRCPT_SOME(0.00)[]; R_SPF_NA(0.00)[no SPF record] X-ThisMailContainsUnwantedMimeParts: N On 8/10/22 3:06 pm, Tatsuki Makino wrote: > This is the behavior that causes the difference between USE_PYTHON=allflavors and -D BUILD_ALL_PYTHON_FLAVORS, which I am relentlessly :) repeating. > Specifically here: https://cgit.freebsd.org/ports/tree/Mk/Uses/python.mk?id=7d48381cbd686ee8d77871bc25cf1e926a314f85#n414 > If the above variables are not defined here, FLAVORS will be narrowed down to only the PYTHON{,[23]}_DEFAULT flavors. > Currently _PYTHON_ARGS defaults to 3.7+, so only py39 remains. > If FLAVOR that does not exist in FLAVORS is specified, IGNORE is defined here. > https://cgit.freebsd.org/ports/tree/Mk/bsd.port.mk?id=b74ed0f79d32e7564969faac41a2e1083bbc49f4#n1474 Notice that valid python versions vary per port - % cd /usr/ports/math/py-numpy % make -V _PYTHON_VERSIONS -V _PYTHON_VERSION_MINIMUM -V _PYTHON_VERSION_MAXIMUM -V _VALID_PYTHON_VERSIONS -V FLAVORS 3.9 3.8 3.7 3.10 3.11 2.7 3.8 3.10 3.8 3.9 3.10 py38 py39 py310 py-numpy has USES=python:3.8-3.10 which matches that valid list While - % cd /usr/ports/devel/py-six % make -V _PYTHON_VERSIONS -V _PYTHON_VERSION_MINIMUM -V _PYTHON_VERSION_MAXIMUM -V _VALID_PYTHON_VERSIONS -V FLAVORS 3.9 3.8 3.7 3.10 3.11 2.7 2.7 3.8 2.7 3.9 3.7 3.10 3.11 py38 py27 py39 py37 py310 py311 py-six has USES=python:2.7+ so all versions are valid If your FLAVORS list is shorter than that, maybe you have another setting in make.conf causing that. Try removing your make.conf and see if you get different values. Also check that you have a complete up-to-date ports tree, a local modification can prevent git checkouts. -- FreeBSD - the place to B...Software Developing Shane Ambler