Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 199816

Summary: media-fonts/encodings-1.0.2 buggy encodings.dir
Product: Gentoo Linux Reporter: Emil Georgiev <emilonlinester>
Component: New packagesAssignee: Gentoo X packagers <x11>
Status: RESOLVED FIXED    
Severity: normal    
Priority: High    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Bug Depends on:    
Bug Blocks: 271243    
Attachments: Patch encodings-1.0.2.ebuild to write correct encodings.dir file

Description Emil Georgiev 2007-11-20 20:08:42 UTC
The package media-fonts/encodings-1.0.2 writes file /usr/share/fonts/encodings/encodings.dir which contains encoding entries for actually missing files. Let's say there are two entries for CP1251:
microsoft-cp1251 ./microsoft-cp1251.enc
microsoft-cp1251 ./microsoft-cp1251.enc.gz

and the file microsoft-cp1251.enc is not present. This breaks the encoding discovery for mkfontscale program which looks for the first entry matching a given encoding.

Possible solution is to build the encodings package in a separate subdir instead of ${S}/ dir. Let's say build it in ${S}/build/
Comment 1 Emil Georgiev 2007-11-20 20:13:05 UTC
Created attachment 136531 [details, diff]
Patch encodings-1.0.2.ebuild to write correct encodings.dir file

The patch makes the build process in a subdirectory ${S}/build 
This way the not installed *.enc files are not present in the encodings.dir file.
Comment 2 Ryan Hill (RETIRED) gentoo-dev 2009-08-18 21:55:31 UTC
Fixed in encodings-1.0.2-r1.  Sorry bout the delay.