From nobody Mon Sep 06 15:28:59 2021 X-Original-To: ruby@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 9A73017BA749 for ; Mon, 6 Sep 2021 15:28:59 +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 4H3C3v3nYlz4ZV5 for ; Mon, 6 Sep 2021 15:28:59 +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 5FA37212AF for ; Mon, 6 Sep 2021 15:28:59 +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 186FSxsI032599 for ; Mon, 6 Sep 2021 15:28:59 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 186FSxke032598 for ruby@FreeBSD.org; Mon, 6 Sep 2021 15:28:59 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: ruby@FreeBSD.org Subject: [Bug 257525] lang/ruby26: add DTRACE option Date: Mon, 06 Sep 2021 15:28:59 +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: patch X-Bugzilla-Severity: Affects Only Me X-Bugzilla-Who: swills@FreeBSD.org X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: ruby@FreeBSD.org X-Bugzilla-Flags: maintainer-feedback- maintainer-feedback? X-Bugzilla-Changed-Fields: 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: FreeBSD-specific Ruby discussions List-Archive: https://lists.freebsd.org/archives/freebsd-ruby List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-ruby@freebsd.org X-BeenThere: freebsd-ruby@freebsd.org MIME-Version: 1.0 X-ThisMailContainsUnwantedMimeParts: N https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D257525 --- Comment #11 from Steve Wills --- (In reply to Evgeniy Khramtsov from comment #10) > Seems that dtrace calls "ld" regardless of what is set as LD in /usr/shar= e/mk/sys.mk. LD set via env(1) is also ignored. Maybe a base issue? Thank you, yes, this is the cause of the issue and what I was trying to get= to. Indeed, dtrace expects an "ld" command: https://cgit.freebsd.org/src/tree/cddl/contrib/opensolaris/lib/libdtrace/co= mmon/dt_open.c#n789 It would be nice if it checked LD environment variable, and we can file a b= ug requesting that, but expecting an "ld" command to exist somewhere seems lik= e a pretty reasonable expectation to me. I'm not even sure where the right place to file a bug on dtrace would be. W= hat is the upstream source? Or perhaps it should be filed against FreeBSD base since this was added here: https://cgit.freebsd.org/src/commit/cddl/contrib/opensolaris/lib/libdtrace/= common/dt_open.c?id=3Dfb24b944be9a0a5c0fe8a09b28321d1ff2c245fd Seems like there are a number of ways around the issue for now. You could patch this hard coded path in your setup for now, since you've already patched so many other things. Or perhaps create a patch to dtrace to have it check LD environment variable and fall back to "ld" and add that to= a dtrace bug report. But, since we now understand the issue and disabling dtr= ace in the port avoids it and also helps with reproducibility, I'm OK with the patch to ruby to add the DTRACE option. Thanks again for the help understanding the issue. I'll try to file a bug against FreeBSD base and create a patch when I have some time. --=20 You are receiving this mail because: You are the assignee for the bug.=