From patchwork Sat Apr 1 19:10:23 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Aaro Koskinen X-Patchwork-Id: 9658199 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id DC2C7602BC for ; Sat, 1 Apr 2017 19:18:40 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id DCB122855E for ; Sat, 1 Apr 2017 19:18:40 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id CD52E2857C; Sat, 1 Apr 2017 19:18:40 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-6.9 required=2.0 tests=BAYES_00,RCVD_IN_DNSWL_HI autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 6E3402855E for ; Sat, 1 Apr 2017 19:18:40 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751972AbdDATSe (ORCPT ); Sat, 1 Apr 2017 15:18:34 -0400 Received: from emh06.mail.saunalahti.fi ([62.142.5.116]:33186 "EHLO emh06.mail.saunalahti.fi" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751958AbdDATSe (ORCPT ); Sat, 1 Apr 2017 15:18:34 -0400 X-Greylist: delayed 488 seconds by postgrey-1.27 at vger.kernel.org; Sat, 01 Apr 2017 15:18:34 EDT Received: from raspberrypi-3.musicnaut.iki.fi (85-76-64-217-nat.elisa-mobile.fi [85.76.64.217]) by emh06.mail.saunalahti.fi (Postfix) with ESMTP id 6611E69B33; Sat, 1 Apr 2017 22:10:23 +0300 (EEST) Date: Sat, 1 Apr 2017 22:10:23 +0300 From: Aaro Koskinen To: Rolf Eike Beer Cc: John David Anglin , Meelis Roos , linux-parisc@vger.kernel.org Subject: Re: mmap problem in localedef Message-ID: <20170401191023.xpf32zopaecd7dzy@raspberrypi-3.musicnaut.iki.fi> References: <9B251251-04AB-4D78-ADD7-F0D429DEB761@bell.net> <20170401183717.jpvilw2u4lgiceuv@raspberrypi-3.musicnaut.iki.fi> <2241815.7QkIsKQeSs@daneel.sf-tec.de> MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: <2241815.7QkIsKQeSs@daneel.sf-tec.de> User-Agent: NeoMutt/20170113 (1.7.2) Sender: linux-parisc-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-parisc@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP Hi, On Sat, Apr 01, 2017 at 08:41:05PM +0200, Rolf Eike Beer wrote: > Aaro Koskinen wrote: > > On Mon, Dec 05, 2016 at 06:50:57PM -0500, John David Anglin wrote: > > > On 2016-12-05, at 4:17 PM, John David Anglin wrote: > > > > I'll post the current Debian patch set for hppa tonight and maybe we can > > > > consolidate. > > > > [...] > > > > > We still have a change to SHMLBA which affects non standard page sizes. > > > > FWIW, this is the one (local-shmlba.diff) that is needed to get localedef > > working on PA-RISC. I just tested with glibc 2.25 and Linux 4.10 with 4 KB > > page size. > > Missing attachment? It was attached to Dave's original mail. Inlined below: A. --- To unsubscribe from this list: send the line "unsubscribe linux-parisc" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Index: eglibc-2.18/sysdeps/unix/sysv/linux/hppa/bits/shm.h =================================================================== --- eglibc-2.18.orig/sysdeps/unix/sysv/linux/hppa/bits/shm.h 2013-01-09 19:28:48.000000000 -0500 +++ eglibc-2.18/sysdeps/unix/sysv/linux/hppa/bits/shm.h 2014-04-09 21:08:06.516202583 -0400 @@ -36,7 +36,7 @@ #define SHM_UNLOCK 12 /* unlock segment (root only) */ /* Segment low boundary address multiple. */ -#define SHMLBA 0x00400000 /* address needs to be 4 Mb aligned */ +#define SHMLBA (__getpagesize ()) /* Type to count number of attaches. */ typedef unsigned long int shmatt_t;