From: Rafael Fontenelle <rafaelff@gnome.org> To: kbd@lists.altlinux.org Subject: [kbd] kbd binaries unable to find locale files when 'datadir' is passed to configure Date: Wed, 3 Jun 2020 10:37:32 -0300 Message-ID: <CAFPa+Sm7oyxsgWpgxuMASvS2LEfM9BQJC1368PLz7rkzoBn8Lw@mail.gmail.com> (raw) 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
next reply other threads:[~2020-06-03 13:37 UTC|newest] Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top 2020-06-03 13:37 Rafael Fontenelle [this message] 2020-06-08 10:55 ` Alexey Gladkov
Reply instructions: You may reply publicly to this message via plain-text email using any one of the following methods: * Save the following mbox file, import it into your mail client, and reply-to-all from there: mbox Avoid top-posting and favor interleaved quoting: https://en.wikipedia.org/wiki/Posting_style#Interleaved_style * Reply using the --to, --cc, and --in-reply-to switches of git-send-email(1): git send-email \ --in-reply-to=CAFPa+Sm7oyxsgWpgxuMASvS2LEfM9BQJC1368PLz7rkzoBn8Lw@mail.gmail.com \ --to=rafaelff@gnome.org \ --cc=kbd@lists.altlinux.org \ /path/to/YOUR_REPLY https://kernel.org/pub/software/scm/git/docs/git-send-email.html * If your mail client supports setting the In-Reply-To header via mailto: links, try the mailto: link
Linux console tools development discussion This inbox may be cloned and mirrored by anyone: git clone --mirror http://lore.altlinux.org/kbd/0 kbd/git/0.git # If you have public-inbox 1.1+ installed, you may # initialize and index your mirror using the following commands: public-inbox-init -V2 kbd kbd/ http://lore.altlinux.org/kbd \ kbd@lists.altlinux.org kbd@lists.altlinux.ru kbd@lists.altlinux.com public-inbox-index kbd Example config snippet for mirrors. Newsgroup available over NNTP: nntp://lore.altlinux.org/org.altlinux.lists.kbd AGPL code for this site: git clone https://public-inbox.org/public-inbox.git