Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 199816 - media-fonts/encodings-1.0.2 buggy encodings.dir
Summary: media-fonts/encodings-1.0.2 buggy encodings.dir
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: High normal with 1 vote (vote)
Assignee: Gentoo X packagers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: 271243
  Show dependency tree
 
Reported: 2007-11-20 20:08 UTC by Emil Georgiev
Modified: 2009-08-18 21:55 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments
Patch encodings-1.0.2.ebuild to write correct encodings.dir file (encodings-1.0.2.patch,400 bytes, patch)
2007-11-20 20:13 UTC, Emil Georgiev
Details | Diff

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