Re: [BRAINSTORM] shebang fixing framework

2013-05-02 Thread Garance A Drosehn
On 4/30/13 6:38 AM, Baptiste Daroussin wrote: Hi all, For a while now: http://www.freebsd.org/cgi/query-pr.cgi?pr=ports/51152 we are looking for a framework/helpers to help patching scripts shebang so that they fit where the interpreters is on FreeBSD. We also want to get rid of /usr/bin/perl h

Re: [BRAINSTORM] shebang fixing framework

2013-05-02 Thread Garance A Drosehn
On 5/2/13 10:22 AM, Łukasz Wąsikowski wrote: W dniu 2013-05-01 21:18, Oliver Heesakkers pisze: Op di 30 apr 2013 12:38:21 schreef Baptiste Daroussin: In there you wrote a patch using /usr/bin/env. Why not stick with that? I'm quite fond of this technique as it's clean and portable. Portabi

Re: [BRAINSTORM] shebang fixing framework

2013-05-02 Thread Chris Rees
On 2 May 2013 21:00, Jeremy Messenger wrote: > On Thu, May 2, 2013 at 2:51 PM, Łukasz Wąsikowski > wrote: >> W dniu 2013-05-02 20:29, Oliver Heesakkers pisze: >> >>> Op do 02 mei 2013 16:22:41 schreef Łukasz Wąsikowski: >> /usr/bin/env is not good in all the situation. Look at www.free

Re: [BRAINSTORM] shebang fixing framework

2013-05-02 Thread Jeremy Messenger
On Thu, May 2, 2013 at 2:51 PM, Łukasz Wąsikowski wrote: > W dniu 2013-05-02 20:29, Oliver Heesakkers pisze: > >> Op do 02 mei 2013 16:22:41 schreef Łukasz Wąsikowski: > >>> /usr/bin/env is not good in all the situation. Look at >>> www.freebsd.org/cgi/query-pr.cgi?pr=177481 - /usr/bin/env is not

Re: [BRAINSTORM] shebang fixing framework

2013-05-02 Thread Łukasz Wąsikowski
W dniu 2013-05-02 20:29, Oliver Heesakkers pisze: > Op do 02 mei 2013 16:22:41 schreef Łukasz Wąsikowski: >> /usr/bin/env is not good in all the situation. Look at >> www.freebsd.org/cgi/query-pr.cgi?pr=177481 - /usr/bin/env is not working >> when using 'service' to start daemons. We should chang

Re: [BRAINSTORM] shebang fixing framework

2013-05-02 Thread Oliver Heesakkers
Op do 02 mei 2013 16:22:41 schreef Łukasz Wąsikowski: > W dniu 2013-05-01 21:18, Oliver Heesakkers pisze: > > Op di 30 apr 2013 12:38:21 schreef Baptiste Daroussin: > >> For a while now: http://www.freebsd.org/cgi/query-pr.cgi?pr=ports/51152 > >> we > >> are looking for a framework/helpers to help

Re: [BRAINSTORM] shebang fixing framework

2013-05-02 Thread Łukasz Wąsikowski
W dniu 2013-05-01 21:18, Oliver Heesakkers pisze: > Op di 30 apr 2013 12:38:21 schreef Baptiste Daroussin: >> For a while now: http://www.freebsd.org/cgi/query-pr.cgi?pr=ports/51152 we >> are looking for a framework/helpers to help patching scripts shebang so >> that they fit where the interprete

Re: [BRAINSTORM] shebang fixing framework

2013-05-01 Thread Chris Rees
On 1 May 2013 20:18, "Oliver Heesakkers" wrote: > > Op di 30 apr 2013 12:38:21 schreef Baptiste Daroussin: > > Hi all, > > > > For a while now: http://www.freebsd.org/cgi/query-pr.cgi?pr=ports/51152we > > are looking for a framework/helpers to help patching scripts shebang so > > that they fit whe

Re: [BRAINSTORM] shebang fixing framework

2013-05-01 Thread Oliver Heesakkers
Op di 30 apr 2013 12:38:21 schreef Baptiste Daroussin: > Hi all, > > For a while now: http://www.freebsd.org/cgi/query-pr.cgi?pr=ports/51152 we > are looking for a framework/helpers to help patching scripts shebang so > that they fit where the interpreters is on FreeBSD. > (...) In there you wro

Re: [BRAINSTORM] shebang fixing framework

2013-04-30 Thread Eitan Adler
On 30 April 2013 13:52, Chris Rees wrote: > This proposes running each regex over each file in turn. "or some variant thereof" - if that is really a big deal the regex could be modified to do all of them at once. We could even run the regex on just the first line. -- Eitan Adler _

Re: [BRAINSTORM] shebang fixing framework

2013-04-30 Thread Chris Rees
On 30 Apr 2013 18:46, "Eitan Adler" wrote: > > On 30 April 2013 13:41, Baptiste Daroussin wrote: > > On Tue, Apr 30, 2013 at 01:38:03PM -0400, Eitan Adler wrote: > >> On 30 April 2013 13:35, Baptiste Daroussin wrote: > >> > All of this will be damn slow operations, we want to keep this as fast a

Re: [BRAINSTORM] shebang fixing framework

2013-04-30 Thread Eitan Adler
On 30 April 2013 13:41, Baptiste Daroussin wrote: > On Tue, Apr 30, 2013 at 01:38:03PM -0400, Eitan Adler wrote: >> On 30 April 2013 13:35, Baptiste Daroussin wrote: >> > All of this will be damn slow operations, we want to keep this as fast as >> > possible, even if per-ports it seems quite fast

Re: [BRAINSTORM] shebang fixing framework

2013-04-30 Thread Baptiste Daroussin
On Tue, Apr 30, 2013 at 01:38:03PM -0400, Eitan Adler wrote: > On 30 April 2013 13:35, Baptiste Daroussin wrote: > > All of this will be damn slow operations, we want to keep this as fast as > > possible, even if per-ports it seems quite fast, when you are about the > > build > > the whole ports

Re: [BRAINSTORM] shebang fixing framework

2013-04-30 Thread Eitan Adler
On 30 April 2013 13:35, Baptiste Daroussin wrote: > All of this will be damn slow operations, we want to keep this as fast as > possible, even if per-ports it seems quite fast, when you are about the build > the whole ports tree few seconds there and there will become hours Yes, that is why I end

Re: [BRAINSTORM] shebang fixing framework

2013-04-30 Thread Baptiste Daroussin
On Tue, Apr 30, 2013 at 01:31:47PM -0400, Eitan Adler wrote: > On 30 April 2013 06:38, Baptiste Daroussin wrote: > > > So far what has been proposed already is: > > - replace ${lang}_FILES by FIX_${lang} > > - nuke SHEBANG_LANG in favor of USES= shebangfix:perl:python > > - nuke SHEBANG_LANG in f

Re: [BRAINSTORM] shebang fixing framework

2013-04-30 Thread Eitan Adler
On 30 April 2013 06:38, Baptiste Daroussin wrote: > So far what has been proposed already is: > - replace ${lang}_FILES by FIX_${lang} > - nuke SHEBANG_LANG in favor of USES= shebangfix:perl:python > - nuke SHEBANG_LANG in favor of USES= shebangfix:"perl python" > - nuke SHEBANG_LANG in favor of

Re: [BRAINSTORM] shebang fixing framework

2013-04-30 Thread Baptiste Daroussin
On Tue, Apr 30, 2013 at 12:59:47PM +0200, Hans F. Nordhaug wrote: > * Baptiste Daroussin [2013-04-30]: > > Hi all, > > > > For a while now: http://www.freebsd.org/cgi/query-pr.cgi?pr=ports/51152 we > > are > > looking for a framework/helpers to help patching scripts shebang so that > > they > >

Re: [BRAINSTORM] shebang fixing framework

2013-04-30 Thread Hans F. Nordhaug
* Baptiste Daroussin [2013-04-30]: > Hi all, > > For a while now: http://www.freebsd.org/cgi/query-pr.cgi?pr=ports/51152 we are > looking for a framework/helpers to help patching scripts shebang so that they > fit where the interpreters is on FreeBSD. > > We also want to get rid of /usr/bin/perl

[BRAINSTORM] shebang fixing framework

2013-04-30 Thread Baptiste Daroussin
Hi all, For a while now: http://www.freebsd.org/cgi/query-pr.cgi?pr=ports/51152 we are looking for a framework/helpers to help patching scripts shebang so that they fit where the interpreters is on FreeBSD. We also want to get rid of /usr/bin/perl http://www.freebsd.org/cgi/query-pr.cgi?pr=ports/