[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: grub-core/osdep/unix/hostdisk.c: remove support for ancient glibc
From: |
Felix Janda |
Subject: |
Re: grub-core/osdep/unix/hostdisk.c: remove support for ancient glibc |
Date: |
Thu, 4 Dec 2014 23:21:09 +0100 |
User-agent: |
Mutt/1.5.22 (2013-10-16) |
On 28.11.2014, Vladimir 'φ-coder/phcoder' Serbinenko wrote:
> On 21.11.2014 22:00, Felix Janda wrote:
> > Hello,
> >
> > the file grub-core/osdep/unix/hostdisk.c has special code for glibc<2.1,
> > which gets also pulled in for other libcs (such as musl libc) and makes
> > compilation fail for them because the code uses glibc internals. The
> > easiest way to fix is just to remove the code as the below patch does.
> >
> Don't assume that nobody will try to compile with ancient glibc. If you
> want to raise the supported version for glibc you need to add a
> configure check for presence of long offsets to configure and fail it if
> it's not available. It should also be documented in INSTALL.
Before messing around with configure.ac, I'd like know whether a patch
(correctly) implementing what you suggest would be accepted.
Another solution I would be happy with, is to change the conditions
# if !defined(__GLIBC__) || \
((__GLIBC__ < 2) || ((__GLIBC__ == 2) && (__GLIBC_MINOR__ < 1)))
to
# ((__GLIBC__ < 2) || ((__GLIBC__ == 2) && (__GLIBC_MINOR__ < 1)))
Felix
- Re: grub-core/osdep/unix/hostdisk.c: remove support for ancient glibc,
Felix Janda <=