Bug 2829

Summary: mtools: fail to run because no codepage 850 installed
Product: [Build System, Metadata & Runtime] OE-Core Reporter: Xin Ouyang <xin.ouyang>
Component: devtools / tool chainAssignee: Xin Ouyang <xin.ouyang>
Status: VERIFIED FIXED QA Contact:
Severity: normal    
Priority: Medium CC: marc.ferland, meta.mr.watcher, meta.watcher, sgw, song.liu, xin.ouyang, yi.zhao, zhenfeng.zhao
Version: 1.3.2   
Target Milestone: 1.3   
Hardware: All   
OS: Multiple   
Whiteboard:
OS type for building Yocto: --- Type of Regression: ---
Verified: Documentation change: ---

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