From owner-freebsd-ports@freebsd.org Tue Apr 27 02:43:30 2021 Return-Path: Delivered-To: freebsd-ports@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 3366A5FB8A1 for ; Tue, 27 Apr 2021 02:43:30 +0000 (UTC) (envelope-from rozhuk.im@gmail.com) Received: from mail-lj1-x229.google.com (mail-lj1-x229.google.com [IPv6:2a00:1450:4864:20::229]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (2048 bits) client-digest SHA256) (Client CN "smtp.gmail.com", Issuer "GTS CA 1O1" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4FTmKY3lcgz4sfM; Tue, 27 Apr 2021 02:43:29 +0000 (UTC) (envelope-from rozhuk.im@gmail.com) Received: by mail-lj1-x229.google.com with SMTP id u20so66501935lja.13; Mon, 26 Apr 2021 19:43:29 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:date:to:cc:subject:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=/SXjK2i7g7pamHVNwnN9DANKy/HtU26aUFUGkMpArqU=; b=obsZ0JbKRi6ysmHerM9F8qTpd1Fy6NDey5dMM0Ky94U5bO5jiBg+QcJWA4fmWpb/e/ r3MCZOuwKBDvCDa2ONMCkDpyWJPvM4QR0+v2ZRPffCWroYb+/yizho9jbiK4CbWDxM5R lNP9LxKw+KBO88SqIkTUGE5M4fpSfkzv9Vjnifhl2Ybt91xXkwtI/ZQ6vnSXIsGjfRPs o2q04dyeNwKwOXu0jkFOauqhm6bTNoamG0VQUjAi2NRjXEk0gnF3pTBkg+QBvM2wLifd TDt2plkjL4UkrhZIDHYHPCfkdYuGKWejC6xonpvxAwM/DMAUcXcy7SbqL7a4ghR+4heR ahYg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:date:to:cc:subject:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=/SXjK2i7g7pamHVNwnN9DANKy/HtU26aUFUGkMpArqU=; b=KHzRSU4A6Y0wckKx+BrmM7z/+XoTuHx2Q4TAmKeegDf78xHZFtZhDo/RLYRoH1wB/T 9ZJTuTOHynzTxJnhxyXGtUDYXUzJmUs8EXpCwRlp1rD8vXX803HEnqM4+r8GUtg0xS0Y lxU6zZ8aN1I1O8jkLXwHFWMtK7T3J7ey5oBK7w7QfFP9JuuDqmcZzWzb8wblJjjR0zO5 7bjFCZ3Fl5oIAi2hAbJWRzXa+tVPSPBkV6fIJJjQ/xDjk0lNIsAsREMRTvkAbSofDnhJ SfJNd1gewGFTsWQvDUwcJ/s4YDrb3/TQ4crhuAUQDKaOZR+KzvKhsfnK6uP0kAfuKUFq i9tg== X-Gm-Message-State: AOAM533qnHpEb9eGmI2+1mi7cEygOM8mM5hatq0YdgZF5I4S/tF4hc3c iaCZtFPkXv3EZU13VXKhru+BE2PvrpgRkQ== X-Google-Smtp-Source: ABdhPJw70CftzWXUTviUzIiMsNupfptjfsT6DdYzyDU8fIP7cJS6PwOkANs3JP2HE9l+LGiKzOVn7Q== X-Received: by 2002:a2e:3310:: with SMTP id d16mr14929780ljc.173.1619491407341; Mon, 26 Apr 2021 19:43:27 -0700 (PDT) Received: from rimwks.local ([2001:470:1f15:3d8:7285:c2ff:fe37:5722]) by smtp.gmail.com with ESMTPSA id c13sm1570356lfv.267.2021.04.26.19.43.25 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 26 Apr 2021 19:43:26 -0700 (PDT) From: Rozhuk Ivan X-Google-Original-From: Rozhuk Ivan Date: Tue, 27 Apr 2021 05:43:24 +0300 To: AN 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: References: <20210426163443.28a63547@rimwks.local> X-Mailer: Claws Mail 3.17.8 (GTK+ 2.24.33; amd64-portbld-freebsd13.0) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Rspamd-Queue-Id: 4FTmKY3lcgz4sfM X-Spamd-Bar: --- Authentication-Results: mx1.freebsd.org; dkim=pass header.d=gmail.com header.s=20161025 header.b=obsZ0JbK; dmarc=pass (policy=none) header.from=gmail.com; spf=pass (mx1.freebsd.org: domain of rozhukim@gmail.com designates 2a00:1450:4864:20::229 as permitted sender) smtp.mailfrom=rozhukim@gmail.com X-Spamd-Result: default: False [-3.94 / 15.00]; RCVD_VIA_SMTP_AUTH(0.00)[]; TO_DN_SOME(0.00)[]; FREEMAIL_FROM(0.00)[gmail.com]; R_SPF_ALLOW(-0.20)[+ip6:2a00:1450:4000::/36]; RCVD_COUNT_THREE(0.00)[3]; DKIM_TRACE(0.00)[gmail.com:+]; DMARC_POLICY_ALLOW(-0.50)[gmail.com,none]; NEURAL_HAM_SHORT(-0.94)[-0.941]; FROM_EQ_ENVFROM(0.00)[]; MIME_TRACE(0.00)[0:+]; RBL_DBL_DONT_QUERY_IPS(0.00)[2a00:1450:4864:20::229:from]; FREEMAIL_ENVFROM(0.00)[gmail.com]; ASN(0.00)[asn:15169, ipnet:2a00:1450::/32, country:US]; TAGGED_FROM(0.00)[]; DWL_DNSWL_NONE(0.00)[gmail.com:dkim]; ARC_NA(0.00)[]; NEURAL_HAM_MEDIUM(-1.00)[-1.000]; R_DKIM_ALLOW(-0.20)[gmail.com:s=20161025]; FROM_HAS_DN(0.00)[]; RCPT_COUNT_THREE(0.00)[3]; NEURAL_HAM_LONG(-1.00)[-1.000]; MIME_GOOD(-0.10)[text/plain]; SPAMHAUS_ZRD(0.00)[2a00:1450:4864:20::229:from:127.0.2.255]; TO_MATCH_ENVRCPT_SOME(0.00)[]; RCVD_IN_DNSWL_NONE(0.00)[2a00:1450:4864:20::229:from]; RCVD_TLS_ALL(0.00)[]; MAILMAN_DEST(0.00)[freebsd-ports] X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 27 Apr 2021 02:43:30 -0000 On Mon, 26 Apr 2021 11:55:07 -0400 (EDT) AN 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.