From: Robert Millan <rmh@aybabtu.com>
To: The development of GRUB 2 <grub-devel@gnu.org>
Subject: Re: [PATCH] Reimplement 10_freebsd.in using 10_linux.in
Date: Wed, 19 Aug 2009 17:31:42 +0200 [thread overview]
Message-ID: <20090819153142.GF7859@thorin> (raw)
In-Reply-To: <d7ead6de0908170727w66c02949o64b2449b176bdaae@mail.gmail.com>
On Mon, Aug 17, 2009 at 04:27:51PM +0200, Vladimir 'phcoder' Serbinenko wrote:
> >> 1) stat and readlink are different. Does anyone have an idea how to
> >> make scripts always use right syntax?
> >
> > AFAIK a custom autoconf snippet is the only way.
> I would prefer it to be done on runtime if possible.
Why?
> > Do you know how to reliably
> > identify GNU-incompatible readlink?
> Perhaps "readlink --version | head -n 1 |grep GNU" ?
It's better to check for features, but if we have to check for vendor, there's
_AC_PATH_PROG_FLAVOR_GNU.
> > I'm not sure what "readlink -f /" will do
> > on FreeBSD.
> >
> It complains about unknown option.
Does it exit non-zero? Then the check is simple.
> >> - if path=`readlink -f $path` ; then : ; else
> >> + if path=`realpath $path` ; then : ; else
> >
> > Note that this introduces an external dependency on GNU systems (readlink is
> > part of coreutils), which better be avoided (specially since the version of
> > realpath commonly used there has a problematic license).
> >
> On FreeBSD it's a part of base system AFAIR. GNU readlink is available
> through ports but is named greadlink. Perhaps we should try in script
> first realpath and if it's not found try readlink?
I was concerned about the other realpath, usually found in GNU/Linux
distributions. Anyway, we could check greadlink, then readlink and
then realpath.
> >> 3) Version isn't detected correctly.
> >
> > Since this part is not in your patch, can you explain the problem?
> >
> I haven't looked in it but I guess the problem is that the kernel is
> named just "kernel" with no version string.
Oh, right.
--
Robert Millan
The DRM opt-in fallacy: "Your data belongs to us. We will decide when (and
how) you may access your data; but nobody's threatening your freedom: we
still allow you to remove your data and not access it at all."
prev parent reply other threads:[~2009-08-19 15:31 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-08-07 12:12 [PATCH] Reimplement 10_freebsd.in using 10_linux.in Robert Millan
2009-08-16 19:29 ` Vladimir 'phcoder' Serbinenko
2009-08-17 14:01 ` Robert Millan
2009-08-17 14:27 ` Vladimir 'phcoder' Serbinenko
2009-08-19 15:31 ` Robert Millan [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=20090819153142.GF7859@thorin \
--to=rmh@aybabtu.com \
--cc=grub-devel@gnu.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.