From nobody Fri Dec 31 02:11:13 2021 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 3E983192E36F for ; Fri, 31 Dec 2021 02:11:14 +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 4JQ7ss63pyz3H3w for ; Fri, 31 Dec 2021 02:11:13 +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 B02C023446 for ; Fri, 31 Dec 2021 02:11:13 +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 1BV2BDwV057899 for ; Fri, 31 Dec 2021 02:11:13 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 1BV2BDHK057898 for ports-bugs@FreeBSD.org; Fri, 31 Dec 2021 02:11:13 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 260831] lang/ruby26, lang/ruby27, lang/ruby3[01]: patch for making dtrace an optional feature Date: Fri, 31 Dec 2021 02:11:13 +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: lab+bsd@thinkum.space X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: ruby@FreeBSD.org X-Bugzilla-Flags: maintainer-feedback? X-Bugzilla-Changed-Fields: bug_id short_desc product version rep_platform op_sys bug_status bug_severity priority component assigned_to reporter flagtypes.name attachments.created 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=1640916673; 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=3G5vnMe0i04u+SbtSsWoRQPoAHQ2cE8nZZhlXv3lkdY=; b=NPk+H47y7GU7NhvxRh7NJ9Mzs8K8YjXSsPS2G28kXtb7K5abMa+K1fWi3Hkr8U/wptO20l AR34lAADGSsR6kK6ih+cXV5086PVhU+dd3aTEZS0/YGJz41UWUDomK7ZuBGPRXUVBOWS+n 7qTQNtbQJiAxyJhgGr1ZvxkL17y+1pccr53o4GDIXHTFZbXkBiBdVqu3ur4/VeUOZvr1Ax PLNBvN0m5jbWH/8cb3/PlAVohYGg/xGDWllFASRCH6GTRKOiR2dnSddNTY2RyoQl9m6FIE iUuh6NDPjrpK1TBCIAym9BU1Ou/1I7fEe9JNpPQLBJIii6Q4zvbCQK64m4GJ6A== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1640916673; a=rsa-sha256; cv=none; b=u1gbkbSiX9F3jDupNBNGcmNSMY2hXNBUlm+UVGlTXV84S3zd8TPvQzd594NaaPgbEzWOZc YHdHC66vTG8V0huGt2smDpaE3qHQtOsBdx8PrKKR327Mxw9r1Tz5IVlgjwicu+GuaXnlUU lfD+4TMCglXegmccG1FVV74MKgS+mGr8gpZBLgGI662L2Ag+QlveJ64ddAnftrH88MiVf7 IS+YqsxkybqjmD0Oto/zPk7B5A6sYPY8bJNTwW/ZaTBS3HUWT1f/Ch0bmWta3OYVqx6y2X u70QChkBdfzKw+Nj+2Gh0Z7DqPsmmZXaAKwTrLxK/SZ29bBsiqzrCqsuXpQZeA== ARC-Authentication-Results: i=1; mx1.freebsd.org; none X-ThisMailContainsUnwantedMimeParts: N https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D260831 Bug ID: 260831 Summary: lang/ruby26, lang/ruby27, lang/ruby3[01]: patch for making dtrace an optional feature Product: Ports & Packages Version: Latest Hardware: Any OS: Any Status: New Severity: Affects Only Me Priority: --- Component: Individual Port(s) Assignee: ruby@FreeBSD.org Reporter: lab+bsd@thinkum.space Flags: maintainer-feedback?(ruby@FreeBSD.org) Assignee: ruby@FreeBSD.org Created attachment 230577 --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=3D230577&action= =3Dedit Patch for providing a dtrace option for lang/ruby* ports The lang/ruby2[67] port builds will automatically enable dtrace support if dtrace is installed.=20 The lang/ruby3[01] builds - extending of a changeset upstream - will not provide any dtrace support for these Ruby versions, on FreeBSD. Referring to the FreeBSD Wiki[2], DTrace support may be available for users= pace in FreeBSD, at least if the kernel is built with -fno-omit-frame-pointer in CFLAGS then installed as unstripped bytecode. Otherwise, running dtrace on = an application may require superuser privileges. The Ruby 2.6 and Ruby 2.7 builds presently will incorporate dtrace support,= if available. The following patch (attached) makes DTrace a build option for Ruby, in all versions on FreeBSD This differs from previous port behaviors: - For Ruby 2.6 and 2.7, ensures that dtrace probes will not be added if the dtrace option is disabled, whether or not dtrace is installed - For Ruby 3.0 and 3.1, this adds functionality that may not be available w= ith upstream Ruby builds on FreeBSD, in those recent Ruby releases. This change= set includes an autoconf patch ensuring that dtrace will not be disabled on Fre= eBSD under autoconf scripting, and will be enabled if requested for the build.=20 - If the dtrace option is enabled and dtrace is not installed, the port bui= ld will fail under IGNORE semantics Corresponding to existing support for dtrace probes with Ruby 2.6 and Ruby = 2.7 on FreeBSD, the new dtrace option will be available for these Ruby language platforms on FreeBSD amd64 and i386 architectures. This patch has been tested with a rudimentary check using dtrace and a dtrace-enabled Ruby 3.1 under a local build of FreeBSD 12.1-RELEASE-p1 amd6= 4. The test was performed with the following shell command, under sudo: dtrace -l -m libruby31.so.31 -c 'ruby31 -v' [1] https://github.com/chrisa/ruby-dtrace=20 [2] https://wiki.freebsd.org/DTrace/KernelSupport --=20 You are receiving this mail because: You are the assignee for the bug.=