From owner-freebsd-ruby@FreeBSD.ORG Mon Aug 27 11:09:06 2012 Return-Path: Delivered-To: ruby@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id AC5CA1065675 for ; Mon, 27 Aug 2012 11:09:06 +0000 (UTC) (envelope-from owner-bugmaster@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:4f8:fff6::28]) by mx1.freebsd.org (Postfix) with ESMTP id 7DC968FC28 for ; Mon, 27 Aug 2012 11:09:06 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.5/8.14.5) with ESMTP id q7RB96sk087355 for ; Mon, 27 Aug 2012 11:09:06 GMT (envelope-from owner-bugmaster@FreeBSD.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.5/8.14.5/Submit) id q7RB95w0087352 for ruby@FreeBSD.org; Mon, 27 Aug 2012 11:09:05 GMT (envelope-from owner-bugmaster@FreeBSD.org) Date: Mon, 27 Aug 2012 11:09:05 GMT Message-Id: <201208271109.q7RB95w0087352@freefall.freebsd.org> X-Authentication-Warning: freefall.freebsd.org: gnats set sender to owner-bugmaster@FreeBSD.org using -f From: FreeBSD bugmaster To: ruby@FreeBSD.org Cc: Subject: Current problem reports assigned to ruby@FreeBSD.org X-BeenThere: freebsd-ruby@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: FreeBSD-specific Ruby discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 27 Aug 2012 11:09:06 -0000 Note: to view an individual PR, use: http://www.freebsd.org/cgi/query-pr.cgi?pr=(number). The following is a listing of current problems submitted by FreeBSD users. These represent problem reports covering all versions including experimental development code and obsolete releases. S Tracker Resp. Description -------------------------------------------------------------------------------- o ports/170916 ruby Mk/bsd.ruby.mk: setting RUBY variable fails to set RUB 1 problem total. From owner-freebsd-ruby@FreeBSD.ORG Wed Aug 29 19:28:46 2012 Return-Path: Delivered-To: ruby@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 6ED5F106566B; Wed, 29 Aug 2012 19:28:46 +0000 (UTC) (envelope-from swills@FreeBSD.org) Received: from mouf.net (mouf.net [IPv6:2607:fc50:0:4400:216:3eff:fe69:33b3]) by mx1.freebsd.org (Postfix) with ESMTP id EC30A8FC1C; Wed, 29 Aug 2012 19:28:39 +0000 (UTC) Received: from meatwad.mouf.net (cpe-024-162-230-236.nc.res.rr.com [24.162.230.236]) (authenticated bits=0) by mouf.net (8.14.5/8.14.5) with ESMTP id q7TJR5B9002156 (version=TLSv1/SSLv3 cipher=DHE-RSA-CAMELLIA256-SHA bits=256 verify=NOT); Wed, 29 Aug 2012 15:27:06 -0400 (EDT) (envelope-from swills@FreeBSD.org) Message-ID: <503E6D62.3000101@FreeBSD.org> Date: Wed, 29 Aug 2012 15:28:34 -0400 From: Steve Wills User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:12.0) Gecko/20120604 Thunderbird/12.0.1 MIME-Version: 1.0 To: freebsd-rc@FreeBSD.org, ruby@FreeBSD.org X-Enigmail-Version: 1.4.2 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Greylist: Sender succeeded SMTP AUTH, not delayed by milter-greylist-4.2.7 (mouf.net [199.48.129.64]); Wed, 29 Aug 2012 15:27:06 -0400 (EDT) X-Spam-Status: No, score=0.0 required=4.5 tests=none autolearn=unavailable version=3.3.2 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on mouf.net X-Virus-Scanned: clamav-milter 0.97.5 at mouf.net X-Virus-Status: Clean Cc: Subject: procname when ruby is used X-BeenThere: freebsd-ruby@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: FreeBSD-specific Ruby discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 29 Aug 2012 19:28:46 -0000 Hi, I've encountered a situation with an rc script that I'm not sure how to solve. The issue is summarized well in this PR: http://www.freebsd.org/cgi/query-pr.cgi?pr=ports/170980 Basically, the "ruby" that's in use can vary because ruby 1.8 or ruby 1.9 may be used. There may be "ruby", "ruby18" or "ruby19" or perhaps other things. There is a function in the bsd.ruby.mk that replaces the shebang lines of ruby scripts, causing the issue in the PR (which I've verified). I'm not sure how I can change the rc script to accommodate the variance. Any suggestions? Thanks, Steve From owner-freebsd-ruby@FreeBSD.ORG Wed Aug 29 19:39:41 2012 Return-Path: Delivered-To: ruby@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 06665106564A; Wed, 29 Aug 2012 19:39:41 +0000 (UTC) (envelope-from swills@FreeBSD.org) Received: from mouf.net (mouf.net [IPv6:2607:fc50:0:4400:216:3eff:fe69:33b3]) by mx1.freebsd.org (Postfix) with ESMTP id B50158FC12; Wed, 29 Aug 2012 19:39:40 +0000 (UTC) Received: from meatwad.mouf.net (cpe-024-162-230-236.nc.res.rr.com [24.162.230.236]) (authenticated bits=0) by mouf.net (8.14.5/8.14.5) with ESMTP id q7TJc6Cf002369 (version=TLSv1/SSLv3 cipher=DHE-RSA-CAMELLIA256-SHA bits=256 verify=NOT); Wed, 29 Aug 2012 15:38:07 -0400 (EDT) (envelope-from swills@FreeBSD.org) Message-ID: <503E6FF8.60706@FreeBSD.org> Date: Wed, 29 Aug 2012 15:39:36 -0400 From: Steve Wills User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:12.0) Gecko/20120604 Thunderbird/12.0.1 MIME-Version: 1.0 To: freebsd-rc@FreeBSD.org References: <503E6D62.3000101@FreeBSD.org> In-Reply-To: <503E6D62.3000101@FreeBSD.org> X-Enigmail-Version: 1.4.2 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Greylist: Sender succeeded SMTP AUTH, not delayed by milter-greylist-4.2.7 (mouf.net [199.48.129.64]); Wed, 29 Aug 2012 15:38:07 -0400 (EDT) X-Spam-Status: No, score=0.0 required=4.5 tests=none autolearn=unavailable version=3.3.2 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on mouf.net X-Virus-Scanned: clamav-milter 0.97.5 at mouf.net X-Virus-Status: Clean Cc: ruby@FreeBSD.org Subject: Re: procname when ruby is used X-BeenThere: freebsd-ruby@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: FreeBSD-specific Ruby discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 29 Aug 2012 19:39:41 -0000 On 08/29/12 15:28, Steve Wills wrote: > Hi, > > I've encountered a situation with an rc script that I'm not sure how to > solve. The issue is summarized well in this PR: > > http://www.freebsd.org/cgi/query-pr.cgi?pr=ports/170980 > > Basically, the "ruby" that's in use can vary because ruby 1.8 or ruby > 1.9 may be used. There may be "ruby", "ruby18" or "ruby19" or perhaps > other things. There is a function in the bsd.ruby.mk that replaces the > shebang lines of ruby scripts, causing the issue in the PR (which I've > verified). I'm not sure how I can change the rc script to accommodate > the variance. Any suggestions? > Naturally I come up with a workaround just after sending... name="mcollectived" command="%%PREFIX%%/sbin/${name}" procname="%%PREFIX%%/bin/`head -n1 ${command} | sed -e 's,.*/,,'`" rc people, is this too ugly? :) Thanks, Steve From owner-freebsd-ruby@FreeBSD.ORG Wed Aug 29 19:57:38 2012 Return-Path: Delivered-To: ruby@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 80C71106566C; Wed, 29 Aug 2012 19:57:38 +0000 (UTC) (envelope-from swills@FreeBSD.org) Received: from mouf.net (mouf.net [IPv6:2607:fc50:0:4400:216:3eff:fe69:33b3]) by mx1.freebsd.org (Postfix) with ESMTP id 3B3A88FC08; Wed, 29 Aug 2012 19:57:38 +0000 (UTC) Received: from meatwad.mouf.net (cpe-024-162-230-236.nc.res.rr.com [24.162.230.236]) (authenticated bits=0) by mouf.net (8.14.5/8.14.5) with ESMTP id q7TJu4cx002722 (version=TLSv1/SSLv3 cipher=DHE-RSA-CAMELLIA256-SHA bits=256 verify=NOT); Wed, 29 Aug 2012 15:56:04 -0400 (EDT) (envelope-from swills@FreeBSD.org) Message-ID: <503E742D.3030801@FreeBSD.org> Date: Wed, 29 Aug 2012 15:57:33 -0400 From: Steve Wills User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:12.0) Gecko/20120604 Thunderbird/12.0.1 MIME-Version: 1.0 To: freebsd-rc@FreeBSD.org References: <503E6D62.3000101@FreeBSD.org> <503E6FF8.60706@FreeBSD.org> In-Reply-To: <503E6FF8.60706@FreeBSD.org> X-Enigmail-Version: 1.4.2 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Greylist: Sender succeeded SMTP AUTH, not delayed by milter-greylist-4.2.7 (mouf.net [199.48.129.64]); Wed, 29 Aug 2012 15:56:04 -0400 (EDT) X-Spam-Status: No, score=0.0 required=4.5 tests=none autolearn=unavailable version=3.3.2 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on mouf.net X-Virus-Scanned: clamav-milter 0.97.5 at mouf.net X-Virus-Status: Clean Cc: ruby@FreeBSD.org Subject: Re: procname when ruby is used X-BeenThere: freebsd-ruby@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: FreeBSD-specific Ruby discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 29 Aug 2012 19:57:38 -0000 On 08/29/12 15:39, Steve Wills wrote: > On 08/29/12 15:28, Steve Wills wrote: >> Hi, >> >> I've encountered a situation with an rc script that I'm not sure how to >> solve. The issue is summarized well in this PR: >> >> http://www.freebsd.org/cgi/query-pr.cgi?pr=ports/170980 >> >> Basically, the "ruby" that's in use can vary because ruby 1.8 or ruby >> 1.9 may be used. There may be "ruby", "ruby18" or "ruby19" or perhaps >> other things. There is a function in the bsd.ruby.mk that replaces the >> shebang lines of ruby scripts, causing the issue in the PR (which I've >> verified). I'm not sure how I can change the rc script to accommodate >> the variance. Any suggestions? >> > > Naturally I come up with a workaround just after sending... > > name="mcollectived" > command="%%PREFIX%%/sbin/${name}" > procname="%%PREFIX%%/bin/`head -n1 ${command} | sed -e 's,.*/,,'`" > > rc people, is this too ugly? :) > Sorry for the spam. Someone on IRC suggested a cleaner way: name="mcollectived" command="%%PREFIX%%/sbin/${name}" read procname <"${command}" procname="%%PREFIX%%/bin/${procname##*/}" Opinions? Steve From owner-freebsd-ruby@FreeBSD.ORG Wed Aug 29 22:33:18 2012 Return-Path: Delivered-To: ruby@FreeBSD.org Received: by hub.freebsd.org (Postfix, from userid 664) id 6949C1065759; Wed, 29 Aug 2012 22:33:18 +0000 (UTC) Date: Wed, 29 Aug 2012 22:33:18 +0000 From: David O'Brien To: Steve Wills Message-ID: <20120829223318.GA32596@hub.freebsd.org> References: <503E6D62.3000101@FreeBSD.org> <503E6FF8.60706@FreeBSD.org> <503E742D.3030801@FreeBSD.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <503E742D.3030801@FreeBSD.org> User-Agent: Mutt/1.4.2.1i X-Operating-System: FreeBSD 7.4-STABLE Organization: The NUXI BSD group X-Pgp-Rsa-Fingerprint: B7 4D 3E E9 11 39 5F A3 90 76 5D 69 58 D9 98 7A X-Pgp-Rsa-Keyid: 1024/34F9F9D5 Cc: ruby@FreeBSD.org, freebsd-rc@FreeBSD.org Subject: Re: procname when ruby is used X-BeenThere: freebsd-ruby@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: obrien@freebsd.org List-Id: FreeBSD-specific Ruby discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 29 Aug 2012 22:33:18 -0000 On Wed, Aug 29, 2012 at 03:57:33PM -0400, Steve Wills wrote: > name="mcollectived" > command="%%PREFIX%%/sbin/${name}" > read procname <"${command}" > procname="%%PREFIX%%/bin/${procname##*/}" Wouldn't this work? name="mcollectived" command="%%PREFIX%%/sbin/${name}" procname="%%PREFIX%%/bin/${command##*/}" (For example, "${0##*/}" is basename of a shell script's full path name) -- -- David (obrien@FreeBSD.org) From owner-freebsd-ruby@FreeBSD.ORG Thu Aug 30 01:30:42 2012 Return-Path: Delivered-To: ruby@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 0C7CA1065670; Thu, 30 Aug 2012 01:30:41 +0000 (UTC) (envelope-from swills@FreeBSD.org) Received: from mouf.net (mouf.net [IPv6:2607:fc50:0:4400:216:3eff:fe69:33b3]) by mx1.freebsd.org (Postfix) with ESMTP id 7EC948FC08; Thu, 30 Aug 2012 01:30:41 +0000 (UTC) Received: from meatwad.mouf.net (cpe-024-162-230-236.nc.res.rr.com [24.162.230.236]) (authenticated bits=0) by mouf.net (8.14.5/8.14.5) with ESMTP id q7U1T5ar008260 (version=TLSv1/SSLv3 cipher=DHE-RSA-CAMELLIA256-SHA bits=256 verify=NOT); Wed, 29 Aug 2012 21:29:06 -0400 (EDT) (envelope-from swills@FreeBSD.org) Message-ID: <503EC23C.30601@FreeBSD.org> Date: Wed, 29 Aug 2012 21:30:36 -0400 From: Steve Wills User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:12.0) Gecko/20120604 Thunderbird/12.0.1 MIME-Version: 1.0 To: obrien@FreeBSD.org References: <503E6D62.3000101@FreeBSD.org> <503E6FF8.60706@FreeBSD.org> <503E742D.3030801@FreeBSD.org> <20120829223318.GA32596@hub.freebsd.org> In-Reply-To: <20120829223318.GA32596@hub.freebsd.org> X-Enigmail-Version: 1.4.2 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Greylist: Sender succeeded SMTP AUTH, not delayed by milter-greylist-4.2.7 (mouf.net [199.48.129.64]); Wed, 29 Aug 2012 21:29:06 -0400 (EDT) X-Spam-Status: No, score=0.0 required=4.5 tests=none autolearn=unavailable version=3.3.2 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on mouf.net X-Virus-Scanned: clamav-milter 0.97.5 at mouf.net X-Virus-Status: Clean Cc: ruby@FreeBSD.org, freebsd-rc@FreeBSD.org Subject: Re: procname when ruby is used X-BeenThere: freebsd-ruby@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: FreeBSD-specific Ruby discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 30 Aug 2012 01:30:42 -0000 On 08/29/12 18:33, David O'Brien wrote: > On Wed, Aug 29, 2012 at 03:57:33PM -0400, Steve Wills wrote: >> name="mcollectived" >> command="%%PREFIX%%/sbin/${name}" >> read procname <"${command}" >> procname="%%PREFIX%%/bin/${procname##*/}" > > Wouldn't this work? > > name="mcollectived" > command="%%PREFIX%%/sbin/${name}" > procname="%%PREFIX%%/bin/${command##*/}" > > (For example, "${0##*/}" is basename of a shell script's full path name) > No, the process looks like this: /usr/local/bin/ruby19 /usr/local/sbin/mcollectived -p /var/run/mcollectived.pid But depending on what version of ruby is used or what ${RUBY} is set to, the "ruby19" part could be something different such as "ruby18", "jruby" or "rbx" (rubinius). Steve From owner-freebsd-ruby@FreeBSD.ORG Thu Aug 30 01:38:54 2012 Return-Path: Delivered-To: ruby@FreeBSD.org Received: from mx2.freebsd.org (mx2.freebsd.org [IPv6:2001:4f8:fff6::35]) by hub.freebsd.org (Postfix) with ESMTP id E9A16106564A; Thu, 30 Aug 2012 01:38:54 +0000 (UTC) (envelope-from dougb@FreeBSD.org) Received: from [127.0.0.1] (hub.freebsd.org [IPv6:2001:4f8:fff6::36]) by mx2.freebsd.org (Postfix) with ESMTP id 681D214D802; Thu, 30 Aug 2012 01:38:52 +0000 (UTC) Message-ID: <503EC42B.6000302@FreeBSD.org> Date: Wed, 29 Aug 2012 15:38:51 -1000 From: Doug Barton Organization: http://www.FreeBSD.org/ User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:14.0) Gecko/20120714 Thunderbird/14.0 MIME-Version: 1.0 To: Steve Wills References: <503E6D62.3000101@FreeBSD.org> In-Reply-To: <503E6D62.3000101@FreeBSD.org> X-Enigmail-Version: 1.4.3 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Cc: ruby@FreeBSD.org, freebsd-rc@FreeBSD.org Subject: Re: procname when ruby is used X-BeenThere: freebsd-ruby@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: FreeBSD-specific Ruby discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 30 Aug 2012 01:38:55 -0000 On 08/29/2012 09:28 AM, Steve Wills wrote: > Hi, > > I've encountered a situation with an rc script that I'm not sure how to > solve. The issue is summarized well in this PR: > > http://www.freebsd.org/cgi/query-pr.cgi?pr=ports/170980 > > Basically, the "ruby" that's in use can vary because ruby 1.8 or ruby > 1.9 may be used. There may be "ruby", "ruby18" or "ruby19" or perhaps > other things. There is a function in the bsd.ruby.mk that replaces the > shebang lines of ruby scripts, causing the issue in the PR (which I've > verified). I'm not sure how I can change the rc script to accommodate > the variance. Any suggestions? I'm pretty sure you actually want to use command_interpreter instead of procname. It should actually be very rare to use procname directly in an rc.d script. That said, I understand the problem you are dealing with, and I agree that we don't have a clean solution for it. I dealt with something similar in net-mgmt/hawk, you might want to take a look at that. Basically I brute-forced the shebang line in the installed script and the value of command_interpreter in the rc.d script to both match ${PERL}. Not sure if that exact solution will work for you, but hopefully it gives you some ideas. Doug From owner-freebsd-ruby@FreeBSD.ORG Thu Aug 30 03:06:51 2012 Return-Path: Delivered-To: ruby@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 340061065670; Thu, 30 Aug 2012 03:06:51 +0000 (UTC) (envelope-from swills@FreeBSD.org) Received: from mouf.net (mouf.net [IPv6:2607:fc50:0:4400:216:3eff:fe69:33b3]) by mx1.freebsd.org (Postfix) with ESMTP id E0D988FC17; Thu, 30 Aug 2012 03:06:50 +0000 (UTC) Received: from meatwad.mouf.net (cpe-024-162-230-236.nc.res.rr.com [24.162.230.236]) (authenticated bits=0) by mouf.net (8.14.5/8.14.5) with ESMTP id q7U35EHv010105 (version=TLSv1/SSLv3 cipher=DHE-RSA-CAMELLIA256-SHA bits=256 verify=NOT); Wed, 29 Aug 2012 23:05:14 -0400 (EDT) (envelope-from swills@FreeBSD.org) Message-ID: <503ED8C5.2010203@FreeBSD.org> Date: Wed, 29 Aug 2012 23:06:45 -0400 From: Steve Wills User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:12.0) Gecko/20120604 Thunderbird/12.0.1 MIME-Version: 1.0 To: Doug Barton References: <503E6D62.3000101@FreeBSD.org> <503EC42B.6000302@FreeBSD.org> In-Reply-To: <503EC42B.6000302@FreeBSD.org> X-Enigmail-Version: 1.4.2 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Greylist: Sender succeeded SMTP AUTH, not delayed by milter-greylist-4.2.7 (mouf.net [199.48.129.64]); Wed, 29 Aug 2012 23:05:15 -0400 (EDT) X-Spam-Status: No, score=0.0 required=4.5 tests=none autolearn=unavailable version=3.3.2 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on mouf.net X-Virus-Scanned: clamav-milter 0.97.5 at mouf.net X-Virus-Status: Clean Cc: ruby@FreeBSD.org, freebsd-rc@FreeBSD.org Subject: Re: procname when ruby is used X-BeenThere: freebsd-ruby@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: FreeBSD-specific Ruby discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 30 Aug 2012 03:06:51 -0000 On 08/29/12 21:38, Doug Barton wrote: > > I'm pretty sure you actually want to use command_interpreter instead of > procname. It should actually be very rare to use procname directly in an > rc.d script. Got it, although that means picking the value at build time, but that seems OK. > That said, I understand the problem you are dealing with, and I agree > that we don't have a clean solution for it. I dealt with something > similar in net-mgmt/hawk, you might want to take a look at that. > Basically I brute-forced the shebang line in the installed script and > the value of command_interpreter in the rc.d script to both match > ${PERL}. Not sure if that exact solution will work for you, but > hopefully it gives you some ideas. > Yeah, it works... Thanks, Steve From owner-freebsd-ruby@FreeBSD.ORG Thu Aug 30 03:37:18 2012 Return-Path: Delivered-To: ruby@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 18D76106566B; Thu, 30 Aug 2012 03:37:18 +0000 (UTC) (envelope-from stas@FreeBSD.org) Received: from mx0.deglitch.com (cl-414.sto-01.se.sixxs.net [IPv6:2001:16d8:ff00:19d::2]) by mx1.freebsd.org (Postfix) with ESMTP id B5BB78FC19; Thu, 30 Aug 2012 03:37:17 +0000 (UTC) Received: from orion.swifttest.com (unknown [74.3.97.61]) by mx0.deglitch.com (Postfix) with ESMTPSA id 6278D8FC27; Thu, 30 Aug 2012 07:37:13 +0400 (MSK) Received: from orion.swifttest.com (localhost [127.0.0.1]) by orion.swifttest.com (Postfix) with SMTP id 34A9C5C3C; Wed, 29 Aug 2012 20:36:14 -0700 (PDT) Date: Wed, 29 Aug 2012 20:36:14 -0700 From: Stanislav Sedov To: Steve Wills Message-Id: <20120829203614.5f51db26061ea094f122379f@FreeBSD.org> In-Reply-To: <503ED8C5.2010203@FreeBSD.org> References: <503E6D62.3000101@FreeBSD.org> <503EC42B.6000302@FreeBSD.org> <503ED8C5.2010203@FreeBSD.org> Organization: The FreeBSD Project X-Mailer: carrier-pigeon Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Cc: ruby@FreeBSD.org, Doug Barton , freebsd-rc@FreeBSD.org Subject: Re: procname when ruby is used X-BeenThere: freebsd-ruby@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: FreeBSD-specific Ruby discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 30 Aug 2012 03:37:18 -0000 On Wed, 29 Aug 2012 23:06:45 -0400 Steve Wills mentioned: > On 08/29/12 21:38, Doug Barton wrote: > > > > I'm pretty sure you actually want to use command_interpreter instead of > > procname. It should actually be very rare to use procname directly in an > > rc.d script. > > Got it, although that means picking the value at build time, but that > seems OK. > We actually already have a practice of doing that with RUBY_SHEBANG, so it seems reasonable. -- Stanislav Sedov ST4096-RIPE () ascii ribbon campaign - against html e-mail /\ www.asciiribbon.org - against proprietary attachments From owner-freebsd-ruby@FreeBSD.ORG Thu Aug 30 08:39:45 2012 Return-Path: Delivered-To: ruby@FreeBSD.org Received: from mx2.freebsd.org (mx2.freebsd.org [69.147.83.53]) by hub.freebsd.org (Postfix) with ESMTP id 9E4A6106566B; Thu, 30 Aug 2012 08:39:45 +0000 (UTC) (envelope-from dougb@FreeBSD.org) Received: from [127.0.0.1] (hub.freebsd.org [IPv6:2001:4f8:fff6::36]) by mx2.freebsd.org (Postfix) with ESMTP id 05EDC14E27F; Thu, 30 Aug 2012 08:39:44 +0000 (UTC) Message-ID: <503F26D0.1050109@FreeBSD.org> Date: Wed, 29 Aug 2012 22:39:44 -1000 From: Doug Barton Organization: http://www.FreeBSD.org/ User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:14.0) Gecko/20120714 Thunderbird/14.0 MIME-Version: 1.0 To: Stanislav Sedov References: <503E6D62.3000101@FreeBSD.org> <503EC42B.6000302@FreeBSD.org> <503ED8C5.2010203@FreeBSD.org> <20120829203614.5f51db26061ea094f122379f@FreeBSD.org> In-Reply-To: <20120829203614.5f51db26061ea094f122379f@FreeBSD.org> X-Enigmail-Version: 1.4.3 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Cc: Steve Wills , freebsd-rc@FreeBSD.org, ruby@FreeBSD.org Subject: Re: procname when ruby is used X-BeenThere: freebsd-ruby@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: FreeBSD-specific Ruby discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 30 Aug 2012 08:39:45 -0000 On 08/29/2012 05:36 PM, Stanislav Sedov wrote: > On Wed, 29 Aug 2012 23:06:45 -0400 > Steve Wills mentioned: > >> On 08/29/12 21:38, Doug Barton wrote: >>> >>> I'm pretty sure you actually want to use command_interpreter instead of >>> procname. It should actually be very rare to use procname directly in an >>> rc.d script. >> >> Got it, although that means picking the value at build time, but that >> seems OK. >> > > We actually already have a practice of doing that with RUBY_SHEBANG, so it > seems reasonable. GMTA. :) I'm sensitive to the issue of this being build time reliant which means that if the user upgrades their ruby version the rc.d script could become outdated. I think that this could be ameliorated by forcing the shebang line to be just /usr/local/bin/ruby, but I'm not sure how ruby handles that. One way we could improve the situation would be to support a glob pattern for command_interpreter. Haven't thought through the implications of that though. Doug