Han Boetes <[EMAIL PROTECTED]> wrote:

> Forget about the makewhatis-patch, just apply the other fixes in the
> spec-patch ;)

*g* you already did that. /me slaps himself.

> Also not descriptive. Indeed. I will dig some more, and let you know
> what happens.

Ok here is what happens:

[~]% echo $LANG
en_US

And makewhatis -w creates:

[/var/cache/man]# ls -la /var/cache/man/en_US/whatis
-rw-r--r--    1 root     root      1941377 Dec 20 08:08 /var/cache/man/en_US/whatis

But man -k returns nothing. If I copy /var/cache/man/en_US/whatis to
/var/cache/man/whatis man -k works fine.


[~/nfs]% strace man -k term 2> strace.out
term: nothing appropriate

Shouldn't this go to stderr? and the straceoutput to stdout?

Here is the straceoutput:

execve("/usr/bin/man", ["man", "-k", "term"], [/* 49 vars */]) = 0
uname({sys="Linux", node="sesamstraat.boetes.org", ...}) = 0
brk(0)                                  = 0x8058708
old_mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 
0x40013000
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=45568, ...}) = 0
old_mmap(NULL, 45568, PROT_READ, MAP_PRIVATE, 3, 0) = 0x40014000
close(3)                                = 0
open("/lib/i686/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\320[\1"..., 1024) = 1024
fstat64(3, {st_mode=S_IFREG|0755, st_size=1241608, ...}) = 0
old_mmap(NULL, 1247748, PROT_READ|PROT_EXEC, MAP_PRIVATE, 3, 0) = 0x40020000
mprotect(0x4014a000, 27140, PROT_NONE)  = 0
old_mmap(0x4014a000, 16384, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED, 3, 0x12a000) 
= 0x4014a000
old_mmap(0x4014e000, 10756, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, 
-1, 0) = 0x4014e000
close(3)                                = 0
munmap(0x40014000, 45568)               = 0
open("/usr/share/locale/locale-archive", O_RDONLY|O_LARGEFILE) = -1 ENOENT (No such 
file or directory)
brk(0)                                  = 0x8058708
brk(0x8059708)                          = 0x8059708
brk(0)                                  = 0x8059708
brk(0x805a000)                          = 0x805a000
open("/usr/share/locale/locale.alias", O_RDONLY) = 3
fstat64(3, {st_mode=S_IFREG|0644, st_size=2601, ...}) = 0
mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x40014000
read(3, "# Locale name alias data base.\n#"..., 4096) = 2601
read(3, "", 4096)                       = 0
close(3)                                = 0
munmap(0x40014000, 4096)                = 0
open("/usr/share/locale/en_US/LC_CTYPE", O_RDONLY) = 3
fstat64(3, {st_mode=S_IFREG|0644, st_size=178720, ...}) = 0
mmap2(NULL, 178720, PROT_READ, MAP_PRIVATE, 3, 0) = 0x40151000
close(3)                                = 0
open("/usr/share/locale/en_US/LC_MESSAGES", O_RDONLY) = 3
fstat64(3, {st_mode=S_IFDIR|0755, st_size=40, ...}) = 0
close(3)                                = 0
open("/usr/share/locale/en_US/LC_MESSAGES/SYS_LC_MESSAGES", O_RDONLY) = 3
fstat64(3, {st_mode=S_IFREG|0644, st_size=58, ...}) = 0
mmap2(NULL, 58, PROT_READ, MAP_PRIVATE, 3, 0) = 0x40014000
close(3)                                = 0
getuid32()                              = 1000
geteuid32()                             = 1000
getgid32()                              = 501
getegid32()                             = 501
ioctl(0, SNDCTL_TMR_TIMEBASE, {B38400 opost isig icanon echo ...}) = 0
ioctl(1, SNDCTL_TMR_TIMEBASE, {B38400 opost isig icanon echo ...}) = 0
ioctl(0, 0x5413, {ws_row=58, ws_col=159, ws_xpixel=0, ws_ypixel=0}) = 0
open("/etc/man.config", O_RDONLY)       = 3
fstat64(3, {st_mode=S_IFREG|0644, st_size=4614, ...}) = 0
mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x40015000
read(3, "#\n# Generated automatically from"..., 4096) = 4096
brk(0)                                  = 0x805a000
brk(0x805d000)                          = 0x805d000
brk(0)                                  = 0x805d000
brk(0x8060000)                          = 0x8060000
brk(0)                                  = 0x8060000
brk(0x8063000)                          = 0x8063000
brk(0)                                  = 0x8063000
brk(0x8066000)                          = 0x8066000
brk(0)                                  = 0x8066000
brk(0x8069000)                          = 0x8069000
brk(0)                                  = 0x8069000
brk(0x806c000)                          = 0x806c000
brk(0)                                  = 0x806c000
brk(0x806f000)                          = 0x806f000
brk(0)                                  = 0x806f000
brk(0x8072000)                          = 0x8072000
brk(0)                                  = 0x8072000
brk(0x8075000)                          = 0x8075000
brk(0)                                  = 0x8075000
brk(0x8078000)                          = 0x8078000
brk(0)                                  = 0x8078000
brk(0x807b000)                          = 0x807b000
brk(0)                                  = 0x807b000
brk(0x807e000)                          = 0x807e000
brk(0)                                  = 0x807e000
brk(0x8081000)                          = 0x8081000
brk(0)                                  = 0x8081000
brk(0x8084000)                          = 0x8084000
brk(0)                                  = 0x8084000
brk(0x8087000)                          = 0x8087000
brk(0)                                  = 0x8087000
brk(0x808a000)                          = 0x808a000
read(3, "environment variable is not set."..., 4096) = 518
read(3, "", 4096)                       = 0
rt_sigaction(SIGINT, {0x804ee30, [INT], SA_RESTORER|SA_RESTART, 0x40048838}, 
{SIG_DFL}, 8) = 0
fork()                                  = 11133
wait4(-1, [WIFEXITED(s) && WEXITSTATUS(s) == 0], 0, NULL) = 11133
--- SIGCHLD (Child exited) ---
rt_sigaction(SIGINT, {SIG_DFL}, {0x804ee30, [INT], SA_RESTORER|SA_RESTART, 
0x40048838}, 8) = 0
SYS_252(0x1, 0, 0, 0x4014c824, 0x1)     = -1 ENOSYS (Function not implemented)
_exit(1)                                = ?

Ok, I don't get it. If you need more input/output let me know.



# Han
-- 
http://www.xs4all.nl/~hanb/software

Reply via email to