From: Jan Kiszka <jan.kiszka@domain.hid>
To: xenomai-core <xenomai@xenomai.org>
Subject: [Xenomai-core] [patch] fix xeno-test for busybox
Date: Tue, 12 Sep 2006 18:56:45 +0200 [thread overview]
Message-ID: <4506E6CD.5050302@domain.hid> (raw)
[-- Attachment #1.1: Type: text/plain, Size: 296 bytes --]
Hi,
I just tried to fire up xeno-test on a busybox system - without success.
Reason: missing getopts. But busybox initial test checks for something
else, namely getopt. The attached patch should fix this it, also taking
into account that getopts in a shell built-in, not an applet.
Jan
[-- Attachment #1.2: xeno-test-getopts.patch --]
[-- Type: text/plain, Size: 892 bytes --]
Index: scripts/xeno-test.in
===================================================================
--- scripts/xeno-test.in (revision 1591)
+++ scripts/xeno-test.in (working copy)
@@ -57,8 +57,8 @@ pidFile=/var/lock/`basename $0.$$`.pids
checkUtilities() {
# Check for needed helper utilities
- local neededApplets="awk basename cut date dd dirname egrep grep getopt
- head kill md5sum mount sleep test top uname zcat"
+ local neededApplets="awk basename cut date dd dirname egrep grep head
+ kill md5sum mount sleep test top uname zcat"
local foundAll=1
for _j in $neededApplets
do
@@ -67,6 +67,10 @@ checkUtilities() {
foundAll=0
fi
done
+ if ! type getopts 2>&1 >/dev/null; then
+ echo "Please build busybox's ash with support for getopts"
+ foundAll=0
+ fi
if test $foundAll -eq 0 ; then exit 3 ; fi
}
[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 250 bytes --]
next reply other threads:[~2006-09-12 16:56 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-09-12 16:56 Jan Kiszka [this message]
2006-09-12 17:00 ` [Xenomai-core] [patch] fix xeno-test for busybox Jan Kiszka
2006-09-13 5:39 ` Gilles Chanteperdrix
2006-09-13 6:35 ` Romain Lenglet
2006-09-13 6:55 ` Romain Lenglet
2006-09-13 6:59 ` Romain Lenglet
2006-09-13 6:38 ` Gilles Chanteperdrix
2006-09-12 19:05 ` Niklaus Giger
2006-09-12 19:11 ` Jan Kiszka
2006-09-12 19:47 ` Niklaus Giger
2006-09-12 20:58 ` Jan Kiszka
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=4506E6CD.5050302@domain.hid \
--to=jan.kiszka@domain.hid \
--cc=xenomai@xenomai.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.