From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.1 (2015-04-28) on sa.local.altlinux.org X-Spam-Level: X-Spam-Status: No, score=-1.0 required=5.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED, FREEMAIL_FROM,NML_ADSP_CUSTOM_MED autolearn=no autolearn_force=no version=3.4.1 Date: Mon, 8 Jun 2020 12:55:51 +0200 From: Alexey Gladkov To: Linux console tools development discussion Message-ID: <20200608105551.y65vjqub3eolw3j4@comp-core-i7-2640m-0182e6> References: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: Subject: Re: [kbd] kbd binaries unable to find locale files when 'datadir' is passed to configure X-BeenThere: kbd@lists.altlinux.org X-Mailman-Version: 2.1.12 Precedence: list Reply-To: Linux console tools development discussion List-Id: Linux console tools development discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 08 Jun 2020 10:55:58 -0000 Archived-At: List-Archive: On Wed, Jun 03, 2020 at 10:37:32AM -0300, Rafael Fontenelle wrote: > Hello, > > The locale files are currently being installed in '${datadir}/locale' > regardless of 'localedir' being set to different path. This causes kbd > binaries to not find locale files when the 'datadir' argument is > passed to ./configure even if combined with 'localedir' argument. (see > steps to reproduce 1) > > I noticed that running kbd's ./autogen.sh creates 'po/Makefile.in.in' > file with "localedir=$(datadir)/localedir" set. This is a problem > because running './configure' passing "--localedir=/usr/share" will > not work with the current 'po/Makefile.in.in', and 'po/Makefile' will > be created with "localedir=$(datadir)/localedir" set. (see steps to > reproduce 2) > > Steps to reproduce 1: > 1- build kbd with non-default datadir (ex.: ./configure --prefix=/usr > --datadir=/usr/share/kbd) > 2- strace dumpkeys (or any other binary) > 3- see that locales are being searched in /usr/share/locale > > Steps to reproduce 2: > 1- clone kbd repository > 2- ./autogen.sh -f > 3- 'grep localedir po/Makefile.in.in' to see the value "$(datadir)/localedir" > 4- ./configure --prefix=/usr --datadir=/usr/share/kbd > --mandir=/usr/share/man --localedir=/usr/share > 5- same as step 3 for 'po/Makefile' > 6- 'grep localedir Makefile' to see correct value for localedir "/usr/share" > 7- same as step 6 for 'config.log' > > Environment: > - distro: Arch Linux 64-bit > - packages: kbd 2.2.90, autconf 2.69. automake 1.16.2, m4 1.4.18 I just updated gettext stuff. -- Rgrds, legion