[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#741243: [PATCH] localedef fix on hppa architecture



On Mon, Mar 10, 2014 at 12:12:11PM +0100, Helge Deller wrote:
> Package: eglibc
> Version: 2.18-4
> Severity: important
> Tags: patch
> 
> This command:
>   localedef -i de_DE -c -f ISO-8859-1 -A /usr/share/locale/locale.alias de_DE
> fails on the hppa architecture because localedef wants to remap the locale file at another location than what it was given originally.
> This fails on hppa, because each file must be mapped so that the same byte in a file is mapped at offset modulo SHMLBA-1.
> Otherwise you will get a EINVAL error from mmap().
> 
> Dear Debian maintainer,
> could you please add this patch temporarily to the debian eglibc sources?

I don't really understand why changing the alignment from 4MB to 4kB
will make the file mmapped at the same location. Anyway, in that case
instead of modifying a generic file common to all architecture, you
should create a <ports/sysdeps/hppa/libc-mmap.h> with the HPPA specific
value.

> It will take me quite some time to discuss the best approach to fix it upstream, but in the meantime it would be nice if the debian eglibc package
> will not show this problem on hppa.

Now that patch local-shmlba.diff from bug #725508 has been applied, is
this patch still needed?

-- 
Aurelien Jarno                          GPG: 4096R/1DDD8C9B
aurelien@aurel32.net                 http://www.aurel32.net


Reply to: