Bug 183247 - emulators/linux_base-f10 does not build locale archive during installation
Summary: emulators/linux_base-f10 does not build locale archive during installation
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: Normal Affects Only Me
Assignee: freebsd-emulation (Nobody)
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-10-23 20:30 UTC by Nuno Subtil
Modified: 2014-11-16 21:39 UTC (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Nuno Subtil 2013-10-23 20:30:00 UTC
The linux_base-f10 port does not build the locale archive during installation, which causes locales not to work under the Linux emulator (locale -a shows only 'POSIX and C').

This cripples ports such as CrashPlan, which lose the ability to read and backup directories with international characters in the file name.

(This problem might apply to other linux_base ports. I have only tested f10).

Fix: 

A manual fix is to run 'chroot /compat/linux /usr/sbin/build-locale-archive' as root after installation. I'm not sure what the correct approach for doing this from the port's Makefile would be, so I didn't attach a patch to do this.

Note that, by design, this command will only successfully run once, since it removes the input file it uses to build the locale archive (see, e.g., http://stephane.lesimple.fr/blog/2010-04-29/fixing-a-locale-archive-breakage.html ).
How-To-Repeat: Install linux_base-f10 and observe that the output from 'chroot /compat/linux /usr/bin/locale -a' only lists POSIX and C.

To witness a more practical issue arising from this problem, install CrashPlan from ports. Observe that directories with international characters in the name can not be backed up.
Comment 1 Edwin Groothuis freebsd_committer freebsd_triage 2013-10-24 02:47:28 UTC
Responsible Changed
From-To: freebsd-ports-bugs->emulation

Over to maintainer (via the GNATS Auto Assign Tool)
Comment 2 Tijl Coosemans freebsd_committer freebsd_triage 2013-11-11 11:28:06 UTC
Responsible Changed
From-To: emulation->freebsd-emulation

Fix assignment.
Comment 3 Mark Linimon freebsd_committer freebsd_triage 2013-11-12 03:04:52 UTC
Responsible Changed
From-To: freebsd-emulation->emulation

Canonicalize assignment.
Comment 4 Mark Linimon freebsd_committer freebsd_triage 2013-11-19 01:45:46 UTC
Responsible Changed
From-To: emulation->freebsd-emulation

Canonicalize assignment.
Comment 5 Jan Beich freebsd_committer freebsd_triage 2014-11-16 21:39:01 UTC
Should be fixed by r368845 or more specifically

https://github.com/xmj/linux-ports/commit/cec7d3c