From owner-freebsd-questions@freebsd.org Sun May 24 17:01:27 2020 Return-Path: Delivered-To: freebsd-questions@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id 6E76B2CAFF3 for ; Sun, 24 May 2020 17:01:27 +0000 (UTC) (envelope-from freebsd@dreamchaser.org) Received: from nightmare.dreamchaser.org (ns.dreamchaser.org [66.109.141.57]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "dreamchaser.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 49VRMV3GvZz4Kmv for ; Sun, 24 May 2020 17:01:26 +0000 (UTC) (envelope-from freebsd@dreamchaser.org) Received: from breakaway.dreamchaser.org (breakaway [192.168.151.122]) by nightmare.dreamchaser.org (8.15.2/8.15.2) with ESMTP id 04OH1OAp081912 for ; Sun, 24 May 2020 11:01:25 -0600 (MDT) (envelope-from freebsd@dreamchaser.org) Subject: Re: python version issue To: freebsd-questions@freebsd.org References: <449558a7-a457-48e5-a282-39e130f09853@dreamchaser.org> <20200524165108.GA26184@graf.pompo.net> Reply-To: freebsd@dreamchaser.org From: Gary Aitken Message-ID: <42701269-4225-cb3c-f6eb-4ab245e50d97@dreamchaser.org> Date: Sun, 24 May 2020 10:59:33 -0600 User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:68.0) Gecko/20100101 Thunderbird/68.6.0 MIME-Version: 1.0 In-Reply-To: <20200524165108.GA26184@graf.pompo.net> Content-Type: text/plain; charset=windows-1252; format=flowed Content-Language: en-US Content-Transfer-Encoding: 8bit X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.6.2 (nightmare.dreamchaser.org [192.168.151.101]); Sun, 24 May 2020 11:01:25 -0600 (MDT) X-Rspamd-Queue-Id: 49VRMV3GvZz4Kmv X-Spamd-Bar: / Authentication-Results: mx1.freebsd.org; dkim=none; dmarc=none; spf=pass (mx1.freebsd.org: domain of freebsd@dreamchaser.org designates 66.109.141.57 as permitted sender) smtp.mailfrom=freebsd@dreamchaser.org X-Spamd-Result: default: False [-0.42 / 15.00]; ARC_NA(0.00)[]; HAS_REPLYTO(0.00)[freebsd@dreamchaser.org]; NEURAL_HAM_MEDIUM(-0.61)[-0.608]; FROM_HAS_DN(0.00)[]; R_SPF_ALLOW(-0.20)[+mx:c]; TO_MATCH_ENVRCPT_ALL(0.00)[]; MIME_GOOD(-0.10)[text/plain]; PREVIOUSLY_DELIVERED(0.00)[freebsd-questions@freebsd.org]; REPLYTO_ADDR_EQ_FROM(0.00)[]; RCPT_COUNT_ONE(0.00)[1]; NEURAL_HAM_LONG(-0.09)[-0.094]; TO_DN_NONE(0.00)[]; NEURAL_SPAM_SHORT(0.58)[0.578]; DMARC_NA(0.00)[dreamchaser.org]; RCVD_TLS_LAST(0.00)[]; FROM_EQ_ENVFROM(0.00)[]; R_DKIM_NA(0.00)[]; MIME_TRACE(0.00)[0:+]; ASN(0.00)[asn:21947, ipnet:66.109.128.0/19, country:US]; RCVD_COUNT_TWO(0.00)[2]; MID_RHS_MATCH_FROM(0.00)[] X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.33 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 24 May 2020 17:01:27 -0000 On 5/24/20 10:51 AM, Thierry Thomas wrote: > Le dim. 24 mai 20 à 18:33:12 +0200, Gary Aitken > écrivait : > >> The Makefile for the standard freecad port (cad/freecad) >> specifies: USES= ... python:3.6 ... BUILD_DEPENDS= >> ${PYTHON_PKGNAMEPREFIX}pyside2-tools>0:devel/pyside2-tools@${PY_FLAVOR} >> It's my understanding that a 3.6 usage should be upward compatible >> with a 3.7 version, so I changed the USES statement to python:3.7. >> Unfortunately, the BUILD_DEPENDS causes problems: > > Set USES=python:3.6+ > I tried that, but then it looks like it is using python 3.6 and trying to install older versions of already-installed packages? # make DISABLE_VULNERABILITIES=yes build ===> FreeCAD-8.d821.f5.f depends on package: py36-pyside2-tools>0 - not found ===> License BSD3CLAUSE GPLv2 accepted by the user ===> py36-pyside2-tools-5.12.1 depends on file: /usr/local/sbin/pkg - found ===> Fetching all distfiles required by py36-pyside2-tools-5.12.1 for building ===> Extracting for py36-pyside2-tools-5.12.1 => SHA256 Checksum OK for pyside-setup-everywhere-src-5.12.1.tar.xz. ===> Patching for py36-pyside2-tools-5.12.1 ===> Applying FreeBSD patches for py36-pyside2-tools-5.12.1 ===> py36-pyside2-tools-5.12.1 depends on package: py36-setuptools_scm>0 - not found ===> py36-setuptools_scm-3.1.0 depends on package: py36-setuptools>0 - not found ===> py36-setuptools-40.8.0 depends on file: /usr/local/bin/python3.6 - not found ===> python36-3.6.8_1 depends on package: pkgconf>=1.3.0_1 - found ===> python36-3.6.8_1 depends on executable: msgfmt - found ===> python36-3.6.8_1 depends on shared library: libffi.so - found (/usr/local/lib/libffi.so) ===> python36-3.6.8_1 depends on shared library: libreadline.so.7 - not found ===> Installing for readline-7.0.5 ===> Checking if readline is already installed ===> readline-7.0.5 is already installed You may wish to ``make deinstall'' and install this port again by ``make reinstall'' to upgrade it properly. If you really wish to overwrite the old port of readline without deleting it first, set the variable "FORCE_PKG_REGISTER" in your environment or the "make install" command line. *** Error code 1 Despite the "readline-7.0.5 is already installed, it is not: $ pkg info | grep readline readline-8.0.1 Library for editing command lines as they are typed It seems like it needs to be using/generating py37 versions, to be compatible with higher-numbered versions such as readline-8.0.1 instead of 7.0.5? confused...