From owner-freebsd-python@freebsd.org Fri Feb 2 18:52:21 2018 Return-Path: Delivered-To: freebsd-python@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id D374AEE9481 for ; Fri, 2 Feb 2018 18:52:20 +0000 (UTC) (envelope-from rsmith@xs4all.nl) Received: from lb2-smtp-cloud8.xs4all.net (lb2-smtp-cloud8.xs4all.net [194.109.24.25]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "*.xs4all.net", Issuer "RapidSSL SHA256 CA - G3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 64CD87A6FD for ; Fri, 2 Feb 2018 18:52:20 +0000 (UTC) (envelope-from rsmith@xs4all.nl) Received: from slackbox.erewhon.home ([83.162.243.5]) by smtp-cloud8.xs4all.net with ESMTPA id hgQZet5Bgar0whgQaeTQXT; Fri, 02 Feb 2018 19:51:12 +0100 Received: from rsmith (uid 1001) (envelope-from rsmith@xs4all.nl) id 12352 by slackbox.erewhon.home (DragonFly Mail Agent v0.11+); Fri, 02 Feb 2018 19:51:11 +0100 Date: Fri, 2 Feb 2018 19:51:11 +0100 From: Roland Smith To: Gerhard Schmidt Cc: FreeBSD Python Subject: Re: Installing a port to a specific python version Message-ID: <20180202185111.GA61808@slackbox.erewhon.home> Mail-Followup-To: Gerhard Schmidt , FreeBSD Python References: <6825a87e-60ec-f3bd-3368-2a6a519667bb@ze.tum.de> <20180201151021.GA52705@slackbox.erewhon.home> <799f50a9-4cb5-7e71-a3fb-bb030d80d864@ze.tum.de> <20180201215959.GB56934@slackbox.erewhon.home> <2d3a9040-4a0c-0210-f734-e71515320821@ze.tum.de> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <2d3a9040-4a0c-0210-f734-e71515320821@ze.tum.de> User-Agent: Mutt/1.9.2 (2017-12-15) X-CMAE-Envelope: MS4wfJxkkTf2sRdN/ClcDn+NHQEwhB47jyWPj8FrrWvkMmsDGpOw6LFmJaCpSNvVTobDtTcATZOSbVo+gVodw2KHvuHnZvpfb769dMVcPQ2AwB3BwDgEabfh vY8R80g8NNNl5kZP9klipU7trdhH01A7tW0RjTcB2icNUQO6SghjvA6k6oGjbvEXNRNAN4DSMhOFPQ== X-BeenThere: freebsd-python@freebsd.org X-Mailman-Version: 2.1.25 Precedence: list List-Id: FreeBSD-specific Python issues List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 02 Feb 2018 18:52:21 -0000 On Fri, Feb 02, 2018 at 07:35:36AM +0100, Gerhard Schmidt wrote: > Am 01.02.2018 um 22:59 schrieb Roland Smith: > > If you look at pkg.freebsd.org you'll see that e.g. python packages are now > > built for each supported version of python. So you can now do things like:: > > > > # pkg install py36-aniso8601 > > > > and that will find and install the python 3.6 version of the package even > > though the default python is still 2.7. This is a huge win, IMHO. > > # pkg install py36-aniso8601 > > reports on my system > > Installed packages to be REMOVED: > xmlto-0.0.28 > w3m-0.5.3.20170102_1 > > New packages to be INSTALLED: > py36-aniso8601: 1.3.0 [FreeBSD] > py36-dateutil: 2.6.1 [FreeBSD] > py36-six: 1.11.0 [FreeBSD] > > Installed packages to be DOWNGRADED: > boehm-gc: 7.6.2 -> 7.6.0 [FreeBSD] > > Number of packages to be removed: 2 > Number of packages to be installed: 3 > Number of packages to be downgraded: 1 > > The operation will free 1 MiB. > 254 KiB to be downloaded. > > Why removing anything while installing new packages. Downgrading i could > understand if binaries are involved, but removing? The only explanation I can find is that currently, w3m is listed as vulnerable. That might target it for removal. Since it requires xmlto, that might also be removed if there are no other consumers. If this is the case, I'm in agreement that it is not a good thing. At the very least removing vulnerable packages should be an option. And IMO it should be *off* by default. > Sorry but pkg is only usable to install or update things if you only use > pkg. Installing packages via port kills pkg. I tend to use it for huge applications like firefox that I don't feel like building myself. > And BTW the same command has installed the correct package since pkg > exists. So flavors haven't improved anything here. Before flavors, the package building cluster only built packages for the default version of Python. > As said I'm doing this since mid 1990s and rely heavily on pkg when > installing new systems. Worked like charm since it arrived but only for > fresh install. After some month of updating and installing via ports the > problems shown above start to appear. An (unavoidable) problem is that the package building machines always lag behind ports. It takes time to build packages for all supported versions and architectures. My main gripe with pkg is that the command names are somewhat ambiguous. Like update/upgrade and add/install. > So i hope the portupgrade guys are fixing this soon. What I'm looking for is a way to only build a port if I've changed the options from the defaults, or if no package is available yet. If the options are not changed, and a package is available, that should be used to upgrade. I've already written a small Python script that compares the list of installed packages with the relevant (architecture/version) on pkg.freebsd.org. -- R.F.Smith http://rsmith.home.xs4all.nl/ [plain text email much appreciated]