bug-autoconf
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Starting /bin/sh in output configure file


From: Mohammad Akhlaghi
Subject: Re: Starting /bin/sh in output configure file
Date: Fri, 14 Jul 2017 13:41:58 +0200
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.2.1

Thank you very much everyone for the great comments.

I can confirm that on this Android phone there is no `/usr' directory either (it also doesn't have any `/bin' directory)! So a `#!/usr/bin/env sh' first line would have a similar fate.

I do all my serious work with my GNU/Linux systems on my desktop and laptop computers. But I have always been bothered by the fact that we have such physically-portable and powerful devices (smartphones) with us every where, but I can't use it as a simple command-line tool (with my own programs as I do on my GNU/Linux system). It is a real shame!

In short, this is more like a hobby for me to have my most commonly used command-line programs running natively on my phone to use in occasions when I don't have my (physically) larger GNU/Linux systems nearby.

So I searched for a terminal emulator app for my smartphone and found Termux (https://termux.com/). It uses the apt (Debian) package manager to download and install pre-compiled most necessary low-level command-line programs like a compiler and Make and etc (installed in `/data/datacom.termux/files/usr'). However, I couldn't get the configure script for my programs running until yesterday that I randomly started playing with it again and found the cause and reported it to you.

I understand why Shebangs ( https://en.wikipedia.org/wiki/Shebang_%28Unix%29 ) would be necessary for non-shell interpretters (like a Python script having a `#! /bin/python' as its first line). But we are already running the configure script within the shell and don't pass any other options with the `#! /bin/sh' shebang.

So just out of curiosity, what is the necessity of `#! /bin/sh' in a configure script? I am sure there must be things I am not aware of, but I am curious to know.

Maybe I can use a simple script to remove such shebangs from all the files in the tar-ball of a program before configuring and building it on my phone.

Thank you very much,
Mohammad



reply via email to

[Prev in Thread] Current Thread [Next in Thread]