From mboxrd@z Thu Jan 1 00:00:00 1970 From: Peter Seiderer Date: Mon, 21 Sep 2020 22:04:00 +0200 Subject: [Buildroot] [PATCH v1 2/3] package/postgresql: needs locale command In-Reply-To: <20200921102013.622616ed@windsurf> References: <20200920150659.7562-1-ps.report@gmx.net> <20200920150659.7562-2-ps.report@gmx.net> <20200921102013.622616ed@windsurf> Message-ID: <20200921220400.1717794e@gmx.net> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: buildroot@busybox.net Hello Thomas, On Mon, 21 Sep 2020 10:20:13 +0200, Thomas Petazzoni wrote: > Hello, > > On Sun, 20 Sep 2020 17:06:58 +0200 > Peter Seiderer wrote: > > > Running (as e.g. /etc/init.d/S50postgresql does): > > > > su - postgres -c '/usr/bin/pg_ctl initdb -D /var/lib/pgsql' > > > > gives the following warning: > > > > performing post-bootstrap initialization ... sh: locale: not found > > 1970-01-01 01:13:43.498 UTC [246] WARNING: no usable system locales were found > > ok > > What is the situation with uClibc and musl toolchains ? Do they provide > the "locale" command as well ? - uclibc without BR2_TOOLCHAIN_BUILDROOT_LOCALE: no warning, no locale command ([1]) - uclicc with BR2_TOOLCHAIN_BUILDROOT_LOCALE: no warning, locale command installed on target - musl: 'locale: not found' warning, no locale commmand But it is 'only' a warning... and easy to fix for gcc/buildroot toolchain... > > What about external glibc toolchains ? Do we install/copy the locale > tool to the target ? Do not know...., but it is only a warning... Regards, Peter [1] The usage of the locale command depends on 'HAVE_LOCALE_T' which depends on the availability of the locale_t type (see postgresql-12.4/config/c-library.m4 and postgresql-12.4/src/backend/commands/collationcmds.c) > > Thomas