From: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
To: buildroot@busybox.net
Subject: [Buildroot] [PATCH] openresolv: new package
Date: Tue, 14 Aug 2018 16:55:31 +0200 [thread overview]
Message-ID: <20180814165531.7943c53b@windsurf> (raw)
In-Reply-To: <CANQCQpa-n4we3SnN+ZoGd+3mxufqnO5jVVAdFYZXtyjtWczneQ@mail.gmail.com>
Hello,
On Tue, 14 Aug 2018 09:37:05 -0500, Matthew Weber wrote:
> > Are you sure it needs a bash shell ? Indeed in
> > https://github.com/rsmarples/openresolv, the #1 argument for resolvconf
> > compared to its Debian variant is:
> >
> > ""
> > Works with POSIX shell and userland
> > ""
>
> This dialog should have been included in the description related to
> use of getopts vs getopt in the script.
>
> https://github.com/rsmarples/openresolv/commit/a694a49c41ffdc0e215320459af009d44482b065#commitcomment-29850615
I think Paresh got it wrong somehow. Busybox provides both getopt and
getopts. getopt is non-POSIX, while getopts is POSIX (see
https://en.wikipedia.org/wiki/Getopt#Shell and
http://pubs.opengroup.org/onlinepubs/9699919799/utilities/getopts.html).
Minimal Buildroot system with our default Busybox configuration:
# getopts
-sh: getopts: usage: getopts optstring var [arg]
# getopt
getopt: missing optstring argument
Both are provided. getopt is a separate program, getopts is a shell
built-in.
I added a comment on the Github issue.
> Missed this, looks like they are mimic'n a configure script. It is
> working as a autotools pkg, but I'll pull the commands over to a
> generic.
Please don't pull the full commands from autotools-package with all the
environment variables and options that only make sense for
real-autotools based packages: only include the minimal set of
variables/options.
Thanks!
Thomas
--
Thomas Petazzoni, CTO, Bootlin (formerly Free Electrons)
Embedded Linux and Kernel engineering
https://bootlin.com
prev parent reply other threads:[~2018-08-14 14:55 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-08-07 13:29 [Buildroot] [PATCH] openresolv: new package Matt Weber
2018-08-14 14:12 ` Thomas Petazzoni
2018-08-14 14:37 ` Matthew Weber
2018-08-14 14:55 ` Thomas Petazzoni [this message]
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=20180814165531.7943c53b@windsurf \
--to=thomas.petazzoni@bootlin.com \
--cc=buildroot@busybox.net \
/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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox