I added this to my uClibc 0.9.31 config: UCLIBC_HAS_LOCALE=y UCLIBC_HAS_XLOCALE=y UCLIBC_BUILD_MINIMAL_LOCALE=y
Which worked fine on my ubuntu laptop, but won't build on a host that doesn't have locale data installed (such as my gentoo server). So I'd like to switch on the PREBUILT_LOCALE stuff, except it doesn't exist so I have to supply my own. In theory, what it tries to do is download a tarball with the BUILD_MINIMAL_LOCALE results for the appropriate endianness and word size, and since I'm building a gazillion targets anyway this shouldn't be too hard for me to fish out of the uClibc build directory and save. Except I have no idea what should go in this tarball. The "make clean" stuff in the top level makefile is attempting to delete "*.tgz" tarballs out of the extras/locale directory, but there aren't any. I find the whole thing confusing. As far as I can tell, the only locale information that uClibc actually installs into the target filesystem is some header files. (This comes from diffing the resulting filesystems with locales installed and not installed.) Specifically these three: root-filesystem-i686/usr/include/bits/uClibc_locale_data.h root-filesystem-i686/usr/include/iconv.h root-filesystem-i686/usr/include/xlocale.h Of those, the only one that varies at all is uClibc_locale_data.h. In _theory_ I should be able to just snapshot that one file. But that's not what the current PREBUILT_LOCALES stuff is _doing_, and I don't see where the complaints about it being endian-dependent and word-size dependent and such come from if it's a .h file...? Does anybody still understand the uClibc locale stuff? It _seems_ to be generating them well enough to build "gettext" under the resulting root filesystem, for what that's worth. But I can't run the build on my gentoo server unless I want to install locale stuff on the host, and I'm trying to make this build portable and with minimal environmental dependencies so I'd probably rip locale stuff back out and just install libiconv natively on target to make Linux From Scratch happy (I already checked and that works) if I can't get it to build on a host that doesn't have locales already... Rob -- GPLv3: as worthy a successor as The Phantom Menace, as timely as Duke Nukem Forever, and as welcome as New Coke. _______________________________________________ uClibc mailing list [email protected] http://lists.busybox.net/mailman/listinfo/uclibc
