|
Re: patch to allow extra perl args on #! lines: msg#00005db.rddtool.munin.general
Sorry about broken threading and awkward reply quoting, I'm pulling the replies from the web archive. > The problem is that passing more than one argument on the shebang > line isn't portable. On Linux at least, the #! parser in execve seems to pass all the args as a single one with embedded whitespace, but perl seems to cope with this gracefully. From the shebang article you linked to (thanks!) it looks like SunOS 5.x is the only place where this would break, and there just by losing the extra args. > Perhaps you should have discussed your problem on this mailing > list. I probably should subscribe to it, too:-) > We could have come up with a more portable solution. Now we don't > even know *why* you want to pass -I arguments to perl. I'm sorry, I thought the readme explained: > The purpose of this patch is to allow a packager to specify > Perl module path directories with -I. > Its definitely not a normal installation. Nope. It's an installation into a shop where the paths that the supported perl executable looks on aren't writeable directly, and the paths that perl module installers should write, that ultimately get propogated to the paths on @INC, can only be written by the perl installation maintainers, not by other folks wanting to build something like munin. And the second reply: > As Lupe says, more than one argument string is not portable (I > didn't even know it worked on _some_ platforms). Given it works on Linux, I am assuming that perl itself is offering a helping hand, so I _think_ it should work everywhere except Solaris 2 (and OpenServer but I think it's a civic duty to break code on that platform). > I might be more inclined to allow some ugly foo with perls use > lib. Seems more intrusive; this is so light-touch that we won't be fussed at all if you decline the patch, maintaining this variation ourselves will be quite painless:-). > But is this really needed? We weren't able to fire up the node without it, we were able to with it. > I don't seem to have any tainting plugins in the repository. Just from ogling the patch, munin-node.in and munin-run.in have -wT. -Bennett
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_______________________________________________ munin-users mailing list munin-users@xxxxxxxxxxxxxxxxxxxxx https://lists.sourceforge.net/lists/listinfo/munin-users |
|
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| Previous by Date: | Re: patch to allow extra perl args on #! lines: 00005, Nicolai Langfeldt |
|---|---|
| Next by Date: | Re: patch to allow extra perl args on #! lines: 00005, Lupe Christoph |
| Previous by Thread: | Re: patch to allow extra perl args on #! linesi: 00005, Nicolai Langfeldt |
| Next by Thread: | Re: patch to allow extra perl args on #! lines: 00005, Lupe Christoph |
| Indexes: | [Date] [Thread] [Top] [All Lists] |
| News | FAQ | advertise |