Bruce Dubbs wrote:
I just ran into a minor problem on a new install. I was installing the
Java runtime and the included script had:
tail +122 ...
I had to change it to tail -n +122 ...
I thought this POSIX behavior was reverted in the current coreutils, but
apparently not. Do we need to add a patch?
FWIW, I haven't built chapter 6 yet, but chapter 5 coreutils exhibits
the same failure to accept 'tail +2 [filename]'. From the info page
(see Standards Conformance):
"For example, if you have a newer system but are running
software that assumes an older version of POSIX and uses `sort +1' or
`tail +10', you can work around any compatibility problems by setting
`_POSIX2_VERSION=199209' in your environment."
_POSIX2_VERSION comes from unistd.h, unless overridden in the
environment, and in our version of that file, which comes from
glibc-2.3.6, it is #defined to 200112, hence the behaviour we get is
what is expected by upstream.
So, in answer to your question, one can either patch the JAI library or
you can temporarily set _POSIX2_VERSION to 199209, but I won't accept
any patches to LFS :-)
Regards,
Matt.
--
http://linuxfromscratch.org/mailman/listinfo/lfs-dev
FAQ: http://www.linuxfromscratch.org/faq/
Unsubscribe: See the above information page