Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
macros: Use /bin/bash instead of /bin/sh by default
RPM spec files (and %build/%install sections) assume certain bashisms, such as pushd, brace'd globs (i.e mkdir {bin,lib}), etc. Currently, rpm macros as upstream enforce /bin/sh as the shebang for the rpmbuild generated .sh. This works okay as long as /bin/sh points to bash, however this is not necessarily the case, and plenty of distros have/are switching to other shells such as dash by default for /bin/sh scripts. Since we aren't going to fix all spec files any time soon, use /bin/bash as the default %{_buildshell} value. This makes sure rpmbuild works without a hitch on such systems. Signed-off-by: Pedro Falcato <[email protected]>
- Loading branch information