From nobody Fri Mar 1 07:45:18 2024 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 4TmKrH2T9Tz5C71Z for ; Fri, 1 Mar 2024 07:45:19 +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 4TmKrH05jfz4nc8 for ; Fri, 1 Mar 2024 07:45:19 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1709279119; a=rsa-sha256; cv=none; b=ZPMep6DW9nasFJ3+PkNefZoxSehpc/FBN4HNx7y8jPPuTI+imsmtibneC6fvdPHeoNN0pB KVGQTUOk080daGyaJm3RGEWTDOyIu+BUDDi3I4JrZ6E2I5LhyqI0iLCxqBe855kXnbGRBD iWAKxPcl39dynlUGbhn3j0IVQKzGartYoZGUFwj9ZuX4s1KxTaqeRADOqyzjacnKcGipXL GB72uANrOidxbIpCz5Jz7zQf+i4VzuhZ3ZYm86095/acr52OPEhR9Bbgup8F4UHZNQTq/7 IMgQUr4e0iO3kKoIMQA0/cyR8VEmZAnSolBLJHN2DEHWMSuSpTvpYltTftZgcQ== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1709279119; 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: in-reply-to:in-reply-to:references:references; bh=HT8q5FqKY2c/CC898yVq/0dDfZpdbLdFpDCIGsyf8Fk=; b=plng3wIzyGjp6p/ZZjQLVFWhs27F8mpO0l0HlvvA3wan3uuSGRCOl3Sc7vMTiWimivc59W DDRYTKLgY3nCOPVxNiaMy59vniUiKE05lexG0n7Vcov90OVk+D8kXrX9FRLi1N7iWjoHU1 X717Udajqq0SjayVv0m4YuSytcotTRqSLNsasmEonZ8xdeaV2c5uJIdcI8IvFTJg/JG5tO CasX4CTADRyY5ESOQRIepMEpXFD5qkSRdlOeso8whF0PQg1lOGhf7H24e1+YHxAfM0u9+4 L6msbcFmxSPzxd9jWxhO35sSEJjP4QaykEv0zHEk0ZOpPcdQ/p86u/yLeTZUzw== 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 4TmKrG6qDWzGwB for ; Fri, 1 Mar 2024 07:45:18 +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 4217jI9x076663 for ; Fri, 1 Mar 2024 07:45:18 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 4217jI39076661 for ports-bugs@FreeBSD.org; Fri, 1 Mar 2024 07:45:18 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 277410] After upgrading ruby31 to ruby32, portupgrade broke. Date: Fri, 01 Mar 2024 07:45:18 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: changed 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: stas@FreeBSD.org 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: cc Message-ID: In-Reply-To: References: 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 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D277410 Stanislav Sedov changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |stas@FreeBSD.org --- Comment #3 from Stanislav Sedov --- It looks like File::exists? method got deprecated. Wonder if you can try the following patch to see if that works for you? You can patch the installed files in /usr/local/bin/portsclean and /usr/local/lib/ruby/site_ruby/3.2/pkgtools/pkgtools.rb if that's easier. --------------------------------------------------------------------------- diff --git a/bin/portsclean b/bin/portsclean index 322fdb9..dbf2c11 100755 --- a/bin/portsclean +++ b/bin/portsclean @@ -282,7 +282,7 @@ def ldconfig_m(*dirs) msg =3D " --> Running ldconfig -m" dirs.each do |d| - dirs.delete(d) if ! (File.exists?(d) && File.stat(d).directory?) + dirs.delete(d) if ! (File.exist?(d) && File.stat(d).directory?) end case dirs.size diff --git a/lib/pkgtools/pkgtools.rb b/lib/pkgtools/pkgtools.rb index 97e156b..8300e6a 100644 --- a/lib/pkgtools/pkgtools.rb +++ b/lib/pkgtools/pkgtools.rb @@ -524,7 +524,7 @@ def script_path # If a fixed/custom script(1) is installed by the port, use that version. # See #8 custom_script =3D "#{PREFIX}/libexec/pkgtools/script" - if File.exists?(custom_script) + if File.exist?(custom_script) $script_path =3D custom_script else $script_path =3D '/usr/bin/script' --=20 You are receiving this mail because: You are the assignee for the bug.=