Bug#219854: xutils: mkfontdir kills fonts.dir and leaves only one 0 there behind#

2003-11-10 Thread Branden Robinson
retitle 219854 xutils: [mkfontdir] doesn't recognize TrueType fonts
severity 219854 normal
tag 219854 = upstream
thanks

On Sun, Nov 09, 2003 at 08:42:56PM +0100, Viktor Ufelmann wrote:
 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:

I am downgrading the severity of this bug but not closing it.

My justification is that you should file bugs against any package that
install fonts into /usr/X11R6/lib/fonts/TrueType and attempts to use
mkfontdir.  The package(s) should be using mkttfdir instead.

You can use dpkg -S usr/X11R6/lib/fonts/TrueType to identify the
packages that install files into that directory.

The files /var/lib/dpkg/info/PACKAGE.postinst should indicate what
program is being used to update the font directory data.

-- 
G. Branden Robinson|Beware of and eschew pompous
Debian GNU/Linux   |prolixity.
[EMAIL PROTECTED] |-- Charles A. Beardsley
http://people.debian.org/~branden/ |


signature.asc
Description: Digital signature


Bug#219854: xutils: mkfontdir kills fonts.dir and leaves only one 0 there behind#

2003-11-09 Thread Viktor Ufelmann
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.ttfpalabi.ttftahoma.ttf
verdanab.ttf
ariali.ttf   fonts.dir l_10646.ttf   palab.ttf timesbd.ttf   
verdanai.ttf
arial.ttfframdit.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.ttfgeorgiab.ttf  mangal.ttfshruti.ttftrebucbd.ttf  
wingding.ttf
courbd.ttf   georgiai.ttf  marlett.ttf   Sshlined.ttf  trebucbi.ttf
courbi.ttf   georgia.ttf   micross.ttf   sylfaen.ttf   trebucit.ttf
couri.ttfgeorgiaz.ttf  mvboli.ttfsymbol.ttftrebuc.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, 
0x2) = 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 

Processed: Re: Bug#219854: xutils: mkfontdir kills fonts.dir and leaves only one 0 there behind#

2003-11-09 Thread Debian Bug Tracking System
Processing commands for [EMAIL PROTECTED]:

 retitle 219854 xutils: [mkfontdir] doesn't recognize TrueType fonts
Bug#219854: xutils: mkfontdir kills fonts.dir and leaves only one 0 there 
behind#
Changed Bug title.

 severity 219854 normal
Bug#219854: xutils: [mkfontdir] doesn't recognize TrueType fonts
Severity set to `normal'.

 tag 219854 = upstream
Bug#219854: xutils: [mkfontdir] doesn't recognize TrueType fonts
Tags were: experimental sid
Tags set to: upstream

 thanks
Stopping processing here.

Please contact me if you need assistance.

Debian bug tracking system administrator
(administrator, Debian Bugs database)