Bug 2829 - mtools: fail to run because no codepage 850 installed
Summary: mtools: fail to run because no codepage 850 installed
Status: VERIFIED FIXED
Alias: None
Product: OE-Core
Classification: Build System, Metadata & Runtime
Component: devtools / tool chain (show other bugs)
Version: 1.3.2
Hardware: All Multiple
: Medium normal
Target Milestone: 1.3
Assignee: Xin Ouyang
QA Contact:
URL:
Whiteboard:
Depends on:
Blocks:
 
Reported: 2012-07-25 04:52 UTC by Xin Ouyang
Modified: 2012-11-13 02:36 UTC (History)
8 users (show)

See Also:
OS type for building Yocto: ---
Type of Regression: ---
Verified:
Documentation change: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Xin Ouyang 2012-07-25 04:52:32 UTC
mtools commands use cp850 as the "mtools_default_codepage", they would use cp850 to do covert works. Because mtools has no RDEPENDS for glibc-gconv-ibm850, many commands would run to fail.

Test steps:

root@qemux86-64:~# dd if=/dev/zero of=floppy.img bs=1024 count=1440
1440+0 records in
1440+0 records out
1474560 bytes (1.5 MB) copied, 0.470088 s, 3.1 MB/s

root@qemux86-64:~# losetup  /dev/loop0 floppy.img

root@qemux86-64:~# mkdosfs /dev/loop0
mkdosfs 2.11 (12 Mar 2005)

root@qemux86-64:~# mcopy -i /dev/loop0 test.log ::
Error converting to codepage 850 Invalid argument 
Cannot initialize '::'
Bad target ::

So, I will add glibc-gconv-ibm850 to RDEPENDS, and add other DOS/FAT codepages related packages to RRECOMMENDS.
Comment 1 Marc Ferland 2012-09-25 15:47:01 UTC
I experienced a similar issue when running 'syslinux --install /dev/sdX1' from an initramfs system. Adding eglibc-gconv-ibm850 to RDEPENDS fixed it.
Comment 3 Yi Zhao 2012-11-13 02:36:05 UTC
Verified with 1.3 danny branch.
gitinfo: 27af23e65f63b41962a7cfddba9e9372d5212396