Change /bin/bash shebangs into /usr/bin/env bash
PATCH 1/1 Change /bin/bash shebangs into /usr/bin/env bash
Not all systems have /bin/bash (e.g. NixOS[1] doesn't). Buildroot already uses /usr/bin/env shebangs for other interpreters (perl, python), so why not bash?
This changes only the shebangs used by Buildroot itself; stuff installed to the target system is left unchanged.
With this applied I can run Buildroot unmodified on NixOS.
[1]: http://nixos.org/
--- support/download/bzr | 2 +- support/download/check-hash | 2 +- support/download/cp | 2 +- support/download/cvs | 2 +- support/download/git | 2 +- support/download/hg | 2 +- support/download/scp | 2 +- support/download/svn | 2 +- support/download/wget | 2 +- support/download/wrapper | 2 +- support/scripts/apply-patches.sh | 2 +- support/scripts/expunge-gconv-modules | 2 +- support/scripts/mkusers | 2 +- support/scripts/pkg-stats | 2 +- 14 files changed, 14 insertions(+), 14 deletions(-)
support/download/bzr +1 -1
@@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # We want to catch any unexpected failure, and exit immediately set -e
support/download/check-hash +1 -1
@@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash set -e # Helper to check a file matches its known hash
support/download/cp +1 -1
@@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # We want to catch any unexpected failure, and exit immediately set -e
support/download/cvs +1 -1
@@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # We want to catch any unexpected failure, and exit immediately set -e
support/download/git +1 -1
@@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # We want to catch any unexpected failure, and exit immediately set -e
support/download/hg +1 -1
@@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # We want to catch any unexpected failure, and exit immediately set -e
support/download/scp +1 -1
@@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # We want to catch any unexpected failure, and exit immediately set -e
support/download/svn +1 -1
@@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # We want to catch any unexpected failure, and exit immediately set -e
support/download/wget +1 -1
@@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # We want to catch any unexpected failure, and exit immediately set -e
support/download/wrapper +1 -1
@@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # This script is a wrapper to the other download helpers. # Its role is to ensure atomicity when saving downloaded files
support/scripts/apply-patches.sh +1 -1
@@ -1,4 +1,4 @@ -#! /bin/bash +#!/usr/bin/env bash # A little script I whipped up to make it easy to # patch source trees and have sane error handling # -Erik
support/scripts/expunge-gconv-modules +1 -1
@@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # This script is used to generate a gconv-modules file that takes into # account only the gconv modules installed by Buildroot. It receives
support/scripts/mkusers +1 -1
@@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash set -e myname="${0##*/}"
support/scripts/pkg-stats +1 -1
@@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copyright (C) 2009 by Thomas Petazzoni <[email protected]> #
Signature · 1 line
2.1.2
PATCH 1/1 Change /bin/bash shebangs into /usr/bin/env bash
Bj?rn, All,
On 2014-10-21 16:05 +0200, Bj?rn Forsman spake thusly:
Quoted 4 lines
Not all systems have
/bin/bash(e.g. NixOS[1] doesn't). Buildroot already uses/usr/bin/envshebangs for other interpreters (perl, python), so why not bash?
Quoted 8 lines
This changes only the shebangs used by Buildroot itself; stuff installed to the target system is left unchanged.
With this applied I can run Buildroot unmodified on NixOS.
[1]: http://nixos.org/
Signed-off-by Bj?rn Forsman <[email protected]>
Bizarely enough, all but two are scripts I wrote. :-]
Regards,
Yann E. MORIN.
Quoted 164 lines
--- support/download/bzr | 2 +- support/download/check-hash | 2 +- support/download/cp | 2 +- support/download/cvs | 2 +- support/download/git | 2 +- support/download/hg | 2 +- support/download/scp | 2 +- support/download/svn | 2 +- support/download/wget | 2 +- support/download/wrapper | 2 +- support/scripts/apply-patches.sh | 2 +- support/scripts/expunge-gconv-modules | 2 +- support/scripts/mkusers | 2 +- support/scripts/pkg-stats | 2 +- 14 files changed, 14 insertions(+), 14 deletions(-)support/download/bzr +1
-1@@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # We want to catch any unexpected failure, and exit immediately set -esupport/download/check-hash +1
-1@@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash set -e # Helper to check a file matches its known hashsupport/download/cp +1
-1@@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # We want to catch any unexpected failure, and exit immediately set -esupport/download/cvs +1
-1@@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # We want to catch any unexpected failure, and exit immediately set -esupport/download/git +1
-1@@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # We want to catch any unexpected failure, and exit immediately set -esupport/download/hg +1
-1@@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # We want to catch any unexpected failure, and exit immediately set -esupport/download/scp +1
-1@@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # We want to catch any unexpected failure, and exit immediately set -esupport/download/svn +1
-1@@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # We want to catch any unexpected failure, and exit immediately set -esupport/download/wget +1
-1@@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # We want to catch any unexpected failure, and exit immediately set -esupport/download/wrapper +1
-1@@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # This script is a wrapper to the other download helpers. # Its role is to ensure atomicity when saving downloaded filessupport/scripts/apply-patches.sh +1
-1@@ -1,4 +1,4 @@ -#! /bin/bash +#!/usr/bin/env bash # A little script I whipped up to make it easy to # patch source trees and have sane error handling # -Eriksupport/scripts/expunge-gconv-modules +1
-1@@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # This script is used to generate a gconv-modules file that takes into # account only the gconv modules installed by Buildroot. It receivessupport/scripts/mkusers +1
-1@@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash set -e myname="${0##*/}"support/scripts/pkg-stats +1
-1@@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Copyright (C) 2009 by Thomas Petazzoni <[email protected]> #Signature · 6 lines
2.1.2 _______________________________________________ buildroot mailing list buildroot at busybox.net http://lists.busybox.net/mailman/listinfo/buildroot
Signature · 6 lines
.-----------------.--------------------.------------------.--------------------. | Yann E. MORIN | Real-Time Embedded | /"\ ASCII RIBBON | Erics' conspiracy: | | +33 662 376 056 | Software Designer | \ / CAMPAIGN | ___ | | +33 223 225 172 `------------.-------: X AGAINST | \e/ There is no | | http://ymorin.is-a-geek.org/ | _/*\_ | / \ HTML MAIL | v conspiracy. | '------------------------------^-------^------------------^--------------------'
PATCH 1/1 Change /bin/bash shebangs into /usr/bin/env bash
In reply to Bjørn ForsmanQuoted 6 lines
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
"Bj?rn" == Bj?rn Forsman <[email protected]> writes:
Not all systems have
/bin/bash(e.g. NixOS[1] doesn't). Buildroot already uses/usr/bin/envshebangs for other interpreters (perl, python), so why not bash?
Quoted 8 lines
This changes only the shebangs used by Buildroot itself; stuff installed to the target system is left unchanged.
With this applied I can run Buildroot unmodified on NixOS.
[1]: http://nixos.org/
Signed-off-by Bj?rn Forsman <[email protected]>
Committed, thanks.
Signature · 1 line
Bye, Peter Korsgaard