Bug 3583

Summary: xfonts_font-adobe-100dpi fails due to missing map file.
Product: buildroot Reporter: Michael J. Hammel <mjhammel>
Component: OtherAssignee: unassigned
Status: RESOLVED FIXED    
Severity: normal CC: buildroot
Priority: P5    
Version: 2011.02   
Target Milestone: ---   
Hardware: PC   
OS: Linux   
Host: Target:
Build:
Attachments: Updated patch to address pkg-config variables that need sysroot path prepended.

Description Michael J. Hammel 2011-04-10 15:58:40 UTC
Created attachment 3187 [details]
Updated patch to address pkg-config variables that need sysroot path prepended.

The problem presents itself with the following error:
/home/mjhammel/src/ximba/bb/src/../bld/buildroot-2011.02.bld/staging//usr/bin/ucs2any: Can't read mapping file '/usr/share/fonts/X11/util/map-ISO8859-1': No such file or directory!

After looking through the recent commits I found this patch:
http://git.buildroot.net/buildroot/commit/?id=117a8ea0eaabec72d7637f80f7a55fbba9ce67bf

This didn't fix the problem, but it pointed me in the right direction.  The map file was in two places under the staging tree after a build with this patch:
$ find . -name map-ISO8859-1
./staging/usr/share/fonts/X11/util/map-ISO8859-1
./staging/usr/arm-unknown-linux-uclibcgnueabi/sysroot/usr/share/fonts/X11/util/map-ISO8859-1

Looking through xfonts_font-adobe-100dpi I discovered that the variable "mapdir" is checked for the location of this file  So I changed the patch to include mapdir and the build now completes and the fonts are in the correct location.

The question is: is this the correct fix?  

Updated patch is attached.
Comment 1 Michael J. Hammel 2011-04-24 03:18:35 UTC
Proper GIT patch addressing this problem created from current git tree was submitted in 3649.  Sorry - I forgot I'd opened this one.
Comment 2 Peter Korsgaard 2011-08-04 20:14:57 UTC
Committed, thanks