|
Re: patch to allow extra perl args on #! lines: msg#00010db.rddtool.munin.general
Bennett Todd wrote: ... > We require this for production use. We don't insist that you deliver > it for us, by any means:-); while it'd remove a really negligible > bit of customizing if this patch were accepted upstream, applying it > locally when we need to upgrade isn't painful at all. So if it's > distasteful and nobody else has any use for it, I quite understand. It's kludgy for sure. >> You will have to change all Perl programs for installation anyway. > > Sure do. Any perl program that depends on modules outside the perl > core distro ends up having to be modified when we install it. Having had to create such customized environments myself I sympathize, but I would be happier if you would do roughly this yourself (which is portable and easier to read than -I tricks IMHO): $ cat bar.pl #!/usr/bin/perl -Tw # foo! print "bar\n"; $ sed '1 s~^\(#!.*perl.*\)$~\1\nuse lib "/custom/perl/lib";~' *.pl #!/usr/bin/perl -Tw use lib "/custom/perl/lib"; # foo! print "bar\n"; You should be able to work that expression into the transformation in the Munin install procedure. ... It has been said that perl is the swiss army chainsaw of Unix. Sed is the swiss army knife at least. Nicolai ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV |
|
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| Previous by Date: | Re: munin node proxy?: 00010, Nicolai Langfeldt |
|---|---|
| Next by Date: | Re: patch to allow extra perl args on #! lines: 00010, Bennett Todd |
| Previous by Thread: | Re: patch to allow extra perl args on #! linesi: 00010, Bennett Todd |
| Next by Thread: | Re: patch to allow extra perl args on #! lines: 00010, Bennett Todd |
| Indexes: | [Date] [Thread] [Top] [All Lists] |
| News | FAQ | advertise |