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.7 required=5.0 tests=BAYES_00, FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM,HEADER_FROM_DIFFERENT_DOMAINS autolearn=no autolearn_force=no version=3.4.1 X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:from:date:message-id:subject:to; bh=5yqTUG/Q/lfakZsmBdd0zOR3/1fMDKZiFseQZVDFaNk=; b=r/TdlJcyOf5isgzRRMzgfQj5DCjnrA1aAFfKGMIPCp7KUPFajKEAeTILONr6cIvJPT szEPS80mfzYtqyerczUOE9v0svcPtiNDp3JyiTDPjPlg7EXjGo/4i6F+xdv508vM+beP wf06A+4GYyB85dKRCCTxn342JyQmt4q7lEqa/TloPWaFA6H+IhwBiTAkjjBEZ4LJehAO wEBDaAZvihqJdy18yoTVRnZcSKq3t850Vc/bWPQqqsJvCV600+N+EnDjYzi2EwiHOKEO nEDwi31X3sSzltvTyASz04xTuGTUvawNpQ/yBB191RlI8R/AIi61rcSWXJ0Zg9tY8Wp9 qxVg== X-Gm-Message-State: AOAM532px+A7sy/cNs+wZ/y9MfDT4QSExeZ8sdFDf6AlLLk9bh7kMZEU Y5sBpwuQTagtqzVu+KX/6/2MvOaR X-Google-Smtp-Source: ABdhPJxwlAcub1e/w4d+srzK6LPZeASRwLD2bMRgaE19i/n0ubYartjsuunlCoUYIm+2c2Qz3p5gtQ== X-Received: by 2002:ac2:5197:: with SMTP id u23mr2505572lfi.109.1591191489908; Wed, 03 Jun 2020 06:38:09 -0700 (PDT) X-Received: by 2002:a19:be87:: with SMTP id o129mr2456493lff.217.1591191488129; Wed, 03 Jun 2020 06:38:08 -0700 (PDT) MIME-Version: 1.0 From: Rafael Fontenelle Date: Wed, 3 Jun 2020 10:37:32 -0300 X-Gmail-Original-Message-ID: Message-ID: To: kbd@lists.altlinux.org Content-Type: text/plain; charset="UTF-8" Subject: [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: Wed, 03 Jun 2020 13:46:39 -0000 Archived-At: List-Archive: 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 Best regards, Rafael Fontenelle