> On October 11, 2013 at 4:45 AM Paul Davey <plmdvy@xxxxxxxxx> wrote: > Upstream wont accept patches to change the shebang lines because they > have to be /usr/bin/env on other systems. The real problem here is > actually that unix shebang line handling is broken and the only nearly > portable hack that helps fix it lives in /usr/bin not /bin. If we can > make the runtime loader accept /usr/bin/env and use /bin/env this will > likely go away pretty quickly. Exactly. And it's pretty much two lines of code in the runtime loader to make this happen. Like: if (!strcmp(path, "/usr/bin/env")) path = "/bin/env"; The shebang handling is broken, and deserves to be fixed. The runtime loader could also go one step further, and always filter out /usr from the path, but maybe that would be too much magic. To Fredrik: if it would just be "configure", I'd agree with you, but lots of ported software is using shell scripts they do install in /bin, and that is the actual problem. "/usr/bin/env" is a good idea in principle, just badly implemented. Just take it as a paradigm the runtime loader has to support. Bye, Axel.