* [Buildroot] [Bug 3703] New: Consider using /usr/bin/env bash in scripts
@ 2011-05-11 15:01 bugzilla at busybox.net
2011-05-11 16:07 ` Michael S. Zick
` (4 more replies)
0 siblings, 5 replies; 6+ messages in thread
From: bugzilla at busybox.net @ 2011-05-11 15:01 UTC (permalink / raw)
To: buildroot
https://bugs.busybox.net/show_bug.cgi?id=3703
Summary: Consider using /usr/bin/env bash in scripts
Product: buildroot
Version: unspecified
Platform: PC
OS/Version: Linux
Status: NEW
Severity: minor
Priority: P5
Component: Other
AssignedTo: unassigned at buildroot.uclibc.org
ReportedBy: holger+br at freyther.de
CC: buildroot at uclibc.org
Estimated Hours: 0.0
On FreeBSD bash will not be inside /bin/bash but will be in
/usr/local/bin/bash, by using /usr/bin/env bash one can have a script that
works well with a Linux system and FreeBSD.
--
Configure bugmail: https://bugs.busybox.net/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
^ permalink raw reply [flat|nested] 6+ messages in thread
* [Buildroot] [Bug 3703] New: Consider using /usr/bin/env bash in scripts
2011-05-11 15:01 [Buildroot] [Bug 3703] New: Consider using /usr/bin/env bash in scripts bugzilla at busybox.net
@ 2011-05-11 16:07 ` Michael S. Zick
2011-05-11 20:14 ` [Buildroot] [Bug 3703] " bugzilla at busybox.net
` (3 subsequent siblings)
4 siblings, 0 replies; 6+ messages in thread
From: Michael S. Zick @ 2011-05-11 16:07 UTC (permalink / raw)
To: buildroot
On Wed May 11 2011, bugzilla at busybox.net wrote:
> https://bugs.busybox.net/show_bug.cgi?id=3703
>
> Summary: Consider using /usr/bin/env bash in scripts
> Product: buildroot
> Version: unspecified
> Platform: PC
> OS/Version: Linux
> Status: NEW
> Severity: minor
> Priority: P5
> Component: Other
> AssignedTo: unassigned at buildroot.uclibc.org
> ReportedBy: holger+br at freyther.de
> CC: buildroot at uclibc.org
> Estimated Hours: 0.0
>
>
> On FreeBSD bash will not be inside /bin/bash but will be in
> /usr/local/bin/bash, by using /usr/bin/env bash one can have a script that
> works well with a Linux system and FreeBSD.
>
When did Build Root start building FreeBSD systems?
I must have missed that memo.
Mike
^ permalink raw reply [flat|nested] 6+ messages in thread
* [Buildroot] [Bug 3703] Consider using /usr/bin/env bash in scripts
2011-05-11 15:01 [Buildroot] [Bug 3703] New: Consider using /usr/bin/env bash in scripts bugzilla at busybox.net
2011-05-11 16:07 ` Michael S. Zick
@ 2011-05-11 20:14 ` bugzilla at busybox.net
2011-05-11 20:32 ` bugzilla at busybox.net
` (2 subsequent siblings)
4 siblings, 0 replies; 6+ messages in thread
From: bugzilla at busybox.net @ 2011-05-11 20:14 UTC (permalink / raw)
To: buildroot
https://bugs.busybox.net/show_bug.cgi?id=3703
--- Comment #1 from Peter Korsgaard <jacmet@uclibc.org> ---
Does buildroot otherwise work on freebsd? I would expect some of the host
packages to fail.
I'm not against freebsd support as such, but it needs active testers to ensure
it keeps working as all the main devs use Linux.
In general, the least troublesome option for building embedded Linux systems
with buildroot is running it on a Linux system.
--
Configure bugmail: https://bugs.busybox.net/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
^ permalink raw reply [flat|nested] 6+ messages in thread
* [Buildroot] [Bug 3703] Consider using /usr/bin/env bash in scripts
2011-05-11 15:01 [Buildroot] [Bug 3703] New: Consider using /usr/bin/env bash in scripts bugzilla at busybox.net
2011-05-11 16:07 ` Michael S. Zick
2011-05-11 20:14 ` [Buildroot] [Bug 3703] " bugzilla at busybox.net
@ 2011-05-11 20:32 ` bugzilla at busybox.net
2011-05-12 7:22 ` [Buildroot] [Bug 3703] New: " Daniel Nyström
2012-01-31 22:50 ` [Buildroot] [Bug 3703] " bugzilla at busybox.net
4 siblings, 0 replies; 6+ messages in thread
From: bugzilla at busybox.net @ 2011-05-11 20:32 UTC (permalink / raw)
To: buildroot
https://bugs.busybox.net/show_bug.cgi?id=3703
--- Comment #2 from holger+br at freyther.de ---
I am hacking my way... so here is my incomplete list
I do have symlinks to help me.. with GNU coreutils
mktemp -> gmktemp
sed -> gsed
install -> ginstall
uclibc fails to build a host utility... but on the second gmake just
continues...
HOSTCC utils/ldconfig.host
In file included from ../utils/ldconfig.c:170:
../utils/readsoname2.c: In function 'readsoname32':
../utils/readsoname2.c:3: warning: implicit declaration of function 'ElfW'
(and more pointers to Elf names)
busybox fails with a include of shadow.h (not present on FreeBSD)
so I do have a basic gcc/uclibc toolchain for mips right now with the below
hacky changes
diff --git a/Makefile b/Makefile
index 5f61b93..599e7f5 100644
--- a/Makefile
+++ b/Makefile
@@ -108,9 +108,10 @@ else
endif
# we want bash as shell
-SHELL:=$(shell if [ -x "$$BASH" ]; then echo $$BASH; \
- else if [ -x /bin/bash ]; then echo /bin/bash; \
- else echo sh; fi; fi)
+SHELL:=/usr/local/bin/bash
+#$(shell if [ -x "$$BASH" ]; then echo $$BASH; \
+ #else if [ -x /bin/bash ]; then echo /bin/bash; \
+ #else echo sh; fi; fi)
# kconfig uses CONFIG_SHELL
CONFIG_SHELL:=$(SHELL)
# Check if we can link to ncurses
diff --git a/toolchain/patch-kernel.sh b/toolchain/patch-kernel.sh
index 76cb9f7..1e64d8d 100755
--- a/toolchain/patch-kernel.sh
+++ b/toolchain/patch-kernel.sh
@@ -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
--
Configure bugmail: https://bugs.busybox.net/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
^ permalink raw reply related [flat|nested] 6+ messages in thread
* [Buildroot] [Bug 3703] New: Consider using /usr/bin/env bash in scripts
2011-05-11 15:01 [Buildroot] [Bug 3703] New: Consider using /usr/bin/env bash in scripts bugzilla at busybox.net
` (2 preceding siblings ...)
2011-05-11 20:32 ` bugzilla at busybox.net
@ 2011-05-12 7:22 ` Daniel Nyström
2012-01-31 22:50 ` [Buildroot] [Bug 3703] " bugzilla at busybox.net
4 siblings, 0 replies; 6+ messages in thread
From: Daniel Nyström @ 2011-05-12 7:22 UTC (permalink / raw)
To: buildroot
2011/5/11 <bugzilla@busybox.net>:
> https://bugs.busybox.net/show_bug.cgi?id=3703
> On FreeBSD bash will not be inside /bin/bash but will be in
> /usr/local/bin/bash, by using /usr/bin/env bash one can have a script that
> works well with a Linux system and FreeBSD.
Does Buildroot build on FreeBSD?
^ permalink raw reply [flat|nested] 6+ messages in thread
* [Buildroot] [Bug 3703] Consider using /usr/bin/env bash in scripts
2011-05-11 15:01 [Buildroot] [Bug 3703] New: Consider using /usr/bin/env bash in scripts bugzilla at busybox.net
` (3 preceding siblings ...)
2011-05-12 7:22 ` [Buildroot] [Bug 3703] New: " Daniel Nyström
@ 2012-01-31 22:50 ` bugzilla at busybox.net
4 siblings, 0 replies; 6+ messages in thread
From: bugzilla at busybox.net @ 2012-01-31 22:50 UTC (permalink / raw)
To: buildroot
https://bugs.busybox.net/show_bug.cgi?id=3703
Thomas Petazzoni <thomas.petazzoni@free-electrons.com> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution| |WONTFIX
--- Comment #3 from Thomas Petazzoni <thomas.petazzoni@free-electrons.com> 2012-01-31 22:50:47 UTC ---
Not sure what to do with those FreeBSD-specific changes. I am not sure we want
to support FreeBSD as a build host, since nobody is actively working on this.
If someone is interested, please send the corresponding patches on the mailing
list. There has been no activity on this FreeBSD topic since may 2011, so I
suspect there simply isn't enough interested people.
--
Configure bugmail: https://bugs.busybox.net/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
^ permalink raw reply [flat|nested] 6+ messages in thread
end of thread, other threads:[~2012-01-31 22:50 UTC | newest]
Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-05-11 15:01 [Buildroot] [Bug 3703] New: Consider using /usr/bin/env bash in scripts bugzilla at busybox.net
2011-05-11 16:07 ` Michael S. Zick
2011-05-11 20:14 ` [Buildroot] [Bug 3703] " bugzilla at busybox.net
2011-05-11 20:32 ` bugzilla at busybox.net
2011-05-12 7:22 ` [Buildroot] [Bug 3703] New: " Daniel Nyström
2012-01-31 22:50 ` [Buildroot] [Bug 3703] " bugzilla at busybox.net
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox