Bug 3583 - xfonts_font-adobe-100dpi fails due to missing map file.
Summary: xfonts_font-adobe-100dpi fails due to missing map file.
Status: RESOLVED FIXED
Alias: None
Product: buildroot
Classification: Unclassified
Component: Other (show other bugs)
Version: 2011.02
Hardware: PC Linux
: P5 normal
Target Milestone: ---
Assignee: unassigned
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-04-10 15:58 UTC by Michael J. Hammel
Modified: 2011-08-04 20:14 UTC (History)
1 user (show)

See Also:
Host:
Target:
Build:


Attachments
Updated patch to address pkg-config variables that need sysroot path prepended. (1.64 KB, patch)
2011-04-10 15:58 UTC, Michael J. Hammel
Details

Note You need to log in before you can comment on or make changes to this bug.
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