From nobody Sun Sep 11 13:24:33 2022 X-Original-To: ports-bugs@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 4MQVnY3PfBz4bpwp for ; Sun, 11 Sep 2022 13:24:33 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4MQVnY0sb8z3nkq for ; Sun, 11 Sep 2022 13:24:33 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2610:1c1:1:606c::50:1d]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 4MQVnX71Lrzfhx for ; Sun, 11 Sep 2022 13:24:32 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org ([127.0.1.5]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id 28BDOWpK039724 for ; Sun, 11 Sep 2022 13:24:32 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 28BDOWh5039722 for ports-bugs@FreeBSD.org; Sun, 11 Sep 2022 13:24:32 GMT (envelope-from bugzilla-noreply@freebsd.org) X-Authentication-Warning: kenobi.freebsd.org: www set sender to bugzilla-noreply@freebsd.org using -f From: bugzilla-noreply@freebsd.org To: ports-bugs@FreeBSD.org Subject: [Bug 266362] ports-mgmt/portupgrade-devel hangs at "Uninstalling the old version" phase Date: Sun, 11 Sep 2022 13:24:33 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Ports & Packages X-Bugzilla-Component: Individual Port(s) X-Bugzilla-Version: Latest X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Only Me X-Bugzilla-Who: junchoon@dec.sakura.ne.jp X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: ports-bugs@FreeBSD.org X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_id short_desc product version rep_platform op_sys bug_status bug_severity priority component assigned_to reporter Message-ID: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated List-Id: Ports bug reports List-Archive: https://lists.freebsd.org/archives/freebsd-ports-bugs List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-ports-bugs@freebsd.org X-BeenThere: freebsd-ports-bugs@freebsd.org MIME-Version: 1.0 ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1662902673; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=mOKOUYf2ZbfEsWGmGOvQG0oBjwqfMamTmb0gqH4/pI8=; b=oz5wKZL/5KWvb0MdE5dZ+xXm2uNwGnKLehT2eLt3+m3fU0PyAuPweKejyjfVOhA259pP56 ubW8yKkDWgqBeHRvNa1ralkzPhinC34AFaH7npQD1l4ZWeMFnd/necbmwhH7Hp7IrJ7Vkm smbKUrjNdefpBAoJEQYhEHHrxvSXX1z6cbTi8NJxAhsbZK0RuKnZLstrn8/rDxZSkRMe+R SPLauVCOXqqX3c4CoLmj7L7uWkm51/KaC5jpzyG767+6bW3kGe7XRnK5xhEV0B196Sr0hE 7hkSjqt/PCy43JsuYIDyAACToTvCUFifTaZNdkxRuSV3dhI1aPwGXS/fnCAb/w== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1662902673; a=rsa-sha256; cv=none; b=ZcHq9r3l51KtrUldVBVObLOIrduozv9Lt/EjgK9/pxReUd4HH40I3UTkHTUmGpr/EsK1zP 5z8SysbrvVJtpYbKWmM3MZ8ovkwR7cGh35jHNH0iww0oUQmFS8gC1e5SO/bRs53cJo+4ST e5g0jI3S9ZJUk1sIcZqp016/WzuyUXTMF+eUlFmzhgMoOqWAy9eiDMMe91DBIy5m5XxN+Z Z7XuGZgfwLVyiOj1JjotShlEPrrnZTcVW3KOdo0CFiEyfQrmFJWFW5L80b64+a95c1iHym bYHwfvkd7eAnT5MuaB4cytJTYJmGHQR3hEE7XRlp6lJfM+COli82OBvMN3Pppw== ARC-Authentication-Results: i=1; mx1.freebsd.org; none X-ThisMailContainsUnwantedMimeParts: N https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D266362 Bug ID: 266362 Summary: ports-mgmt/portupgrade-devel hangs at "Uninstalling the old version" phase Product: Ports & Packages Version: Latest Hardware: Any OS: Any Status: New Severity: Affects Only Me Priority: --- Component: Individual Port(s) Assignee: ports-bugs@FreeBSD.org Reporter: junchoon@dec.sakura.ne.jp ports-mgmt/portupgrade-devel (maybe ports-mgmt/portupgrade, too) hangs at "Uninstalling the old version" phase on base main after git bced4d8b3e99efd46b5496c83e11755b25913c90. Manually reverting the commit fixed the issue. Not all ports seems to hang on upgrade, but at least graphics/libdrm, net/gupnp, graphics/vulkan-loader, graphics/sane-backends and graphics/popp= ler were affected. /usr/local/sbin/pkg_deinstall, installed as a part of ports-mgmt/portupgrade[-devel] and used by /usr/local/sbin/portupgrade on "Uninstalling the old version", hangs waiting for `IO.popen("/usr/bin/file -bnf-", "r+") do |pipe|` to finish, maybe. As the problematic commit seems to be cherry-picked (MFV) to fix something else, I'm not sure which should be fixed, base file or ports-mgmt/portupgrade[-devel]. For the record: Output of `grep -n "file " /usr/local/sbin/pkg_deinstall` was as below. 105: opts.def_option("-d", "--rmdir", "Remove empty directories created = by file cleanup [*]") { 190: PKGTOOLS_CONF configuration file [$PREFIX/etc/pkgtools.c= onf] 341: raise PkgDB::DBError, "The file #{path} is not properly recorded = as installed" 344: raise PkgDB::DBError, "The file #{path} is not properly recorded = as installed by #{pkgname}" 380: IO.popen("/usr/bin/file -bnf-", "r+") do |pipe| 382: %r"^[^@\s]\S*/([^/\s]+\.so(?:\.\d+)+)$" =3D~ file or next --=20 You are receiving this mail because: You are the assignee for the bug.=