Linux console tools development discussion
 help / color / mirror / Atom feed
* [kbd] kbd binaries unable to find locale files when 'datadir' is passed to configure
@ 2020-06-03 13:37 Rafael Fontenelle
  2020-06-08 10:55 ` Alexey Gladkov
  0 siblings, 1 reply; 2+ messages in thread
From: Rafael Fontenelle @ 2020-06-03 13:37 UTC (permalink / raw)
  To: kbd

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


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2020-06-08 10:55 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-06-03 13:37 [kbd] kbd binaries unable to find locale files when 'datadir' is passed to configure Rafael Fontenelle
2020-06-08 10:55 ` Alexey Gladkov

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