--- Begin Message ---
Package: xutils
Version: 4.3.0-0pre1v4
Severity: important
Tags: experimental sid
Hello,
I have a problem with the mkfontdir utility. It just wipes the contents
of the fonts.dir file and inserts a 0 instead. I used mkttfdir now and
it scans the directory correctly and inserts the detected font data into
fonts.dir. The problem occured in Sid first so I upgraded to xutils in
experimental, but this just does the same thing. Following are the contents of
that directory:
# ls /usr/lib/X11/fonts/TrueType
arialbd.ttf cour.ttf HOOG0553.TTF OCRAExt.ttf tahomabd.ttf
tunga.ttf
arialbi.ttf estre.ttf impact.ttf palabi.ttf tahoma.ttf
verdanab.ttf
ariali.ttf fonts.dir l_10646.ttf palab.ttf timesbd.ttf
verdanai.ttf
arial.ttf framdit.ttf larabie-uncommon palai.ttf timesbi.ttf
verdana.ttf
ariblk.ttf framd.ttf latha.ttf pala.ttf timesi.ttf
verdanaz.ttf
comicbd.ttf gautami.ttf lucon.ttf raavi.ttf times.ttf
webdings.ttf
comic.ttf georgiab.ttf mangal.ttf shruti.ttf trebucbd.ttf
wingding.ttf
courbd.ttf georgiai.ttf marlett.ttf Sshlined.ttf trebucbi.ttf
courbi.ttf georgia.ttf micross.ttf sylfaen.ttf trebucit.ttf
couri.ttf georgiaz.ttf mvboli.ttf symbol.ttf trebuc.ttf
And here is the strace log of mkfontdir:
execve("/usr/bin/X11/mkfontdir", ["mkfontdir"], [/* 33 vars */]) = 0
uname({sys="Linux", node="rotes76", ...}) = 0
brk(0) = 0x8066e48
old_mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) =
0x40017000
access("/etc/ld.so.nohwcap", F_OK) = -1 ENOENT (No such file or directory)
open("/etc/ld.so.preload", O_RDONLY) = -1 ENOENT (No such file or directory)
open("/etc/ld.so.cache", O_RDONLY) = 3
fstat64(3, {st_mode=S_IFREG|0644, st_size=75478, ...}) = 0
old_mmap(NULL, 75478, PROT_READ, MAP_PRIVATE, 3, 0) = 0x40018000
close(3) = 0
access("/etc/ld.so.nohwcap", F_OK) = -1 ENOENT (No such file or directory)
open("/lib/libm.so.6", O_RDONLY) = 3
read(3, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0 5\0\000"..., 512) = 512
fstat64(3, {st_mode=S_IFREG|0644, st_size=134356, ...}) = 0
old_mmap(NULL, 136912, PROT_READ|PROT_EXEC, MAP_PRIVATE, 3, 0) = 0x4002b000
old_mmap(0x4004c000, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED, 3,
0x20000) = 0x4004c000
close(3) = 0
access("/etc/ld.so.nohwcap", F_OK) = -1 ENOENT (No such file or directory)
open("/usr/lib/libz.so.1", O_RDONLY) = 3
read(3, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0\200\30"..., 512) = 512
fstat64(3, {st_mode=S_IFREG|0644, st_size=55484, ...}) = 0
old_mmap(NULL, 58544, PROT_READ|PROT_EXEC, MAP_PRIVATE, 3, 0) = 0x4004d000
old_mmap(0x4005a000, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED, 3,
0xc000) = 0x4005a000
close(3) = 0
access("/etc/ld.so.nohwcap", F_OK) = -1 ENOENT (No such file or directory)
open("/lib/libc.so.6", O_RDONLY) = 3
read(3, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0`^\1\000"..., 512) = 512
fstat64(3, {st_mode=S_IFREG|0644, st_size=1243076, ...}) = 0
old_mmap(NULL, 1253316, PROT_READ|PROT_EXEC, MAP_PRIVATE, 3, 0) = 0x4005c000
old_mmap(0x40183000, 36864, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED, 3,
0x126000) = 0x40183000
old_mmap(0x4018c000, 8132, PROT_READ|PROT_WRITE,
MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0x4018c000
close(3) = 0
old_mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) =
0x4018e000
munmap(0x40018000, 75478) = 0
brk(0) = 0x8066e48
brk(0x8087e48) = 0x8087e48
brk(0) = 0x8087e48
brk(0x8088000) = 0x8088000
open("/dev/null", O_RDONLY|O_NONBLOCK|O_DIRECTORY) = -1 ENOTDIR (Not a
directory)
open(".", O_RDONLY|O_NONBLOCK|O_LARGEFILE|O_DIRECTORY) = 3
fstat64(3, {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0
fcntl64(3, F_SETFD, FD_CLOEXEC) = 0
getdents64(3, /* 59 entries */, 4096) = 1880
getdents64(3, /* 0 entries */, 4096) = 0
open("./fonts.scale", O_RDONLY) = -1 ENOENT (No such file or directory)
unlink("./fonts.dir") = 0
open("./fonts.dir", O_WRONLY|O_CREAT|O_TRUNC, 0666) = 4
fstat64(4, {st_mode=S_IFREG|0644, st_size=0, ...}) = 0
old_mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) =
0x40018000
write(4, "0\n", 2) = 2
close(4) = 0
munmap(0x40018000, 4096) = 0
chmod("./fonts.dir", 0644) = 0
unlink("./encodings.dir") = -1 ENOENT (No such file or directory)
exit_group(0) = ?
-- System Information:
Debian Release: testing/unstable
Architecture: i386
Kernel: Linux rotes76 2.4.22-1-k7 #5 Sat Oct 4 14:11:12 EST 2003 i686
Locale: [EMAIL PROTECTED], [EMAIL PROTECTED]
Versions of packages xutils depends on:
ii cpp-3.2 1:3.2.3-8 The GNU C preprocessor
ii libc6 2.3.2.ds1-10 GNU C Library: Shared libraries an
ii libncurses5 5.3.20030719-3 Shared libraries for terminal hand
ii xfree86-common 4.3.0-0pre1v4 X Window System (XFree86) infrastr
ii zlib1g 1:1.1.4-16 compression library - runtime
-- no debconf information
--- End Message ---