Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 27 Apr 2021 05:43:24 +0300
From:      Rozhuk Ivan <rozhuk.im@gmail.com>
To:        AN <andy@neu.net>
Cc:        kai@FreeBSD.org, freebsd-ports@freebsd.org
Subject:   Re: Python update 3.7->3.8
Message-ID:  <20210427054324.14930117@rimwks.local>
In-Reply-To: <alpine.BSF.2.21.9999.2104261152340.88466@mail.neu.net>
References:  <20210426163443.28a63547@rimwks.local> <alpine.BSF.2.21.9999.2104261152340.88466@mail.neu.net>

next in thread | previous in thread | raw e-mail | index | archive | help
On Mon, 26 Apr 2021 11:55:07 -0400 (EDT)
AN <andy@neu.net> wrote:

> > After doing all manipulations for rebuild and reinstall with
> > pkg+portmaster some files not affected, I suspect that files after
> > shebang fix:
> >
> > # grep -rsp "python3\.7" /usr/local/
> > Binary file /usr/local/bin/youtube-dl matches
> > /usr/local/bin/gsettings-schema-convert:#!/usr/local/bin/python3.7
> > /usr/local/bin/gtk-builder-convert:#!/usr/local/bin/python3.7
> > /usr/local/bin/event_rpcgen.py:#!/usr/local/bin/python3.7
> > /usr/local/bin/vigra-config:#!/usr/local/bin/python3.7
> > /usr/local/bin/retroarch-cg2glsl:#!/usr/local/bin/python3.7
> > /usr/local/lib/python3.8/site-packages/certifi-2020.12.5-py3.8.egg-info/PKG-INFO:
> >            '/usr/local/lib/python3.7/site-packages/certifi/cacert.pem'
> > /usr/local/lib/python3.8/site-packages/certifi-2020.12.5-py3.8.egg-info/PKG-INFO:
> >            /usr/local/lib/python3.7/site-packages/certifi/cacert.pem
> > /usr/local/lib/qt5/mkspecs/features/uikit/devices.py:#!/usr/local/bin/python3.7
> > /usr/local/lib/xfce4/xfce4-compose-mail:#!/usr/local/bin/python3.7
> > /usr/local/libexec/dbusmenu-bench:#!/usr/local/bin/python3.7 Binary
> > file /usr/local/man/mandoc.db matches
> > /usr/local/share/claws-mail/eud2gc.py:#!/usr/local/bin/python3.7
> > /usr/local/share/claws-mail/tbird2claws.py:#!/usr/local/bin/python3.7
> > /usr/local/share/claws-mail/vcard2xml.py:#!/usr/local/bin/python3.7
> > /usr/local/share/subversion/backup/hot-backup.py:#!/usr/local/bin/python3.7
> >
> > Is any way to way to fix it by scripts?
> >

This long command hanle files that requires shebang:
portmaster -BvD -y --no-confirm --delete-build-only `grep -rsp "\/python3\.7" /usr/local/ | grep -v '/usr/local/man/' | grep -v '/usr/local/lib/python3' | sed -e 's|:.*||' -e 's|Binary file ||' -e 's| matches||' | xargs pkg which -oq | sort -u`

Also I found that this can be used instead all other commands:
portmaster -BvD -y `pkg query %ro python38`

but if it fail, then no recovery, only start from beginning and redo all work again.



> --->  Uninstallation of py27-setuptools-44.0.0 started at: Mon, 26
> Apr 2021 11:49:52 -0400
> --->  Fixing up dependencies before creating a package
> --->  Backing up the old version
> --->  Uninstalling the old version  
> [Reading data from pkg(8) ... - 945 packages found - done]
> --->  Deinstalling 'py27-setuptools-44.0.0'  
> Updating database digests format: 100%
> Checking integrity... done (0 conflicting)
> Deinstallation has been requested for the following 1 packages (of 0
> packages in the universe):
> 
> Installed packages to be REMOVED:
> 	py27-setuptools: 44.0.0
> 
> Number of packages to be removed: 1
> 
> The operation will free 4 MiB.
> [1/1] Deinstalling py27-setuptools-44.0.0...
> [1/1] Deleting files for py27-setuptools-44.0.0: 100%
> [Reading data from pkg(8) ... - 944 packages found - done]
> --->  Uninstallation of py27-setuptools-44.0.0 ended at: Mon, 26 Apr
> 2021 11:49:55 -0400 (consumed 00:00:02)
> --->  Installation of devel/py-setuptools started at: Mon, 26 Apr
> 2021 11:49:55 -0400
> --->  Installing the new version via the port
> ===>  Deinstalling for py38-setuptools
> ===>   py38-setuptools not installed, skipping
> ===>  Installing for py38-setuptools-44.0.0_1
> ===>  Checking if py38-setuptools is already installed
> ===>   Registering installation for py38-setuptools-44.0.0_1 as
> automatic Installing py38-setuptools-44.0.0_1...
> pkg-static: py38-setuptools-44.0.0_1 conflicts with
> py37-setuptools-44.0.0 (installs files into the same place).
> Problematic file: /usr/local/bin/easy_install
> *** Error code 1
> 
> Stop.
> make[1]: stopped in /usr/ports/devel/py-setuptools
> *** Error code 1
> 
> Stop.
> make: stopped in /usr/ports/devel/py-setuptools
> ** Command failed [exit code 1]: /usr/bin/script -qa
> /tmp/portupgrade20210426-16971-13n0qvl env UPGRADE_TOOL=portupgrade
> UPGRADE_PORT=py27-setuptools-44.0.0 UPGRADE_PORT_VER=44.0.0 make
> -DINSTALLS_DEPENDS reinstall
> --->  Updating dependency info
> --->  Restoring the old version  
> Installing py27-setuptools-44.0.0...
> Extracting py27-setuptools-44.0.0: 100%
> =====
> 

IMHO you miss something.
Only py37 must be affected, but some how you are trying to replace py27.




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