problemy z rpm-em z Ac c.d.
Andrzej Krzysztofowicz
ankry w green.mif.pg.gda.pl
Sob, 10 Wrz 2005, 04:14:04 CEST
Aha, koncowka "strace rpm -q rpm":
open("/etc/rpm/macros.rpmnew", O_RDONLY|O_LARGEFILE) = 3
fcntl64(3, F_SETFD, FD_CLOEXEC) = 0
mmap2(NULL, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) =
0x40017000
poll([{fd=3, events=POLLIN, revents=POLLIN}], 1, 1000) = 1
gettimeofday({1126318185, 518977}, NULL) = 0
read(3, "# customized rpm macros - global"..., 8192) = 91
gettimeofday({1126318185, 519162}, NULL) = 0
poll([{fd=3, events=POLLIN, revents=POLLIN}], 1, 1000) = 1
gettimeofday({1126318185, 519317}, NULL) = 0
read(3, "", 8101) = 0
gettimeofday({1126318185, 519459}, NULL) = 0
poll([{fd=3, events=POLLIN, revents=POLLIN}], 1, 1000) = 1
gettimeofday({1126318185, 519979}, NULL) = 0
read(3, "", 8192) = 0
gettimeofday({1126318185, 520124}, NULL) = 0
gettimeofday({1126318185, 520210}, NULL) = 0
close(3) = 0
gettimeofday({1126318185, 520350}, NULL) = 0
gettimeofday({1126318185, 520430}, NULL) = 0
gettimeofday({1126318185, 520503}, NULL) = 0
munmap(0x40017000, 8192) = 0
open("/etc/rpm/macros", O_RDONLY|O_LARGEFILE) = 3
fcntl64(3, F_SETFD, FD_CLOEXEC) = 0
mmap2(NULL, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) =
0x40017000
poll([{fd=3, events=POLLIN, revents=POLLIN}], 1, 1000) = 1
gettimeofday({1126318185, 521093}, NULL) = 0
read(3, "# customized rpm macros - global"..., 8192) = 305
gettimeofday({1126318185, 521287}, NULL) = 0
poll([{fd=3, events=POLLIN, revents=POLLIN}], 1, 1000) = 1
gettimeofday({1126318185, 521441}, NULL) = 0
read(3, "", 7887) = 0
gettimeofday({1126318185, 521582}, NULL) = 0
poll([{fd=3, events=POLLIN, revents=POLLIN}], 1, 1000) = 1
gettimeofday({1126318185, 521822}, NULL) = 0
read(3, "", 8192) = 0
gettimeofday({1126318185, 521962}, NULL) = 0
gettimeofday({1126318185, 522045}, NULL) = 0
close(3) = 0
gettimeofday({1126318185, 522183}, NULL) = 0
gettimeofday({1126318185, 522261}, NULL) = 0
gettimeofday({1126318185, 522333}, NULL) = 0
munmap(0x40017000, 8192) = 0
open("/etc/rpm/pentium3-linux/macros", O_RDONLY|O_LARGEFILE) = -1 ENOENT (No
such file or directory)
stat64("/root/etc/.rpmmacros", 0xbfffdcb0) = -1 ENOENT (No such file or
directory)
stat64("/root/.rpmmacros", 0xbfffdcc0) = -1 ENOENT (No such file or
directory)
stat64("/usr/lib/rpm/init.lua", 0xbfffef70) = -1 ENOENT (No such file or
directory)
gettimeofday({1126318185, 524517}, NULL) = 0
time(NULL) = 1126318185
open("/proc/filesystems", O_RDONLY|O_LARGEFILE) = 3
read(3, "\text3\nnodev\trootfs\nnodev\tbdev\nno"..., 4095) = 162
close(3) = 0
rt_sigprocmask(SIG_BLOCK, ~[], [RT_0], 8) = 0
rt_sigprocmask(SIG_SETMASK, [RT_0], NULL, 8) = 0
rt_sigaction(SIGHUP, NULL, {SIG_DFL}, 8) = 0
rt_sigaction(SIGHUP, {0x40535fc0, [], SA_SIGINFO|0x4000000}, {SIG_DFL}, 8) =
0
rt_sigaction(SIGINT, NULL, {SIG_DFL}, 8) = 0
rt_sigaction(SIGINT, {0x40535fc0, [], SA_SIGINFO|0x4000000}, {SIG_DFL}, 8) =
0
rt_sigaction(SIGTERM, NULL, {SIG_DFL}, 8) = 0
rt_sigaction(SIGTERM, {0x40535fc0, [], SA_SIGINFO|0x4000000}, {SIG_DFL}, 8)
= 0
rt_sigaction(SIGQUIT, NULL, {SIG_DFL}, 8) = 0
rt_sigaction(SIGQUIT, {0x40535fc0, [], SA_SIGINFO|0x4000000}, {SIG_DFL}, 8)
= 0
rt_sigaction(SIGPIPE, NULL, {SIG_DFL}, 8) = 0
rt_sigaction(SIGPIPE, {0x40535fc0, [], SA_SIGINFO|0x4000000}, {SIG_DFL}, 8)
= 0
rt_sigaction(SIGHUP, {SIG_DFL}, NULL, 8) = 0
rt_sigaction(SIGINT, {SIG_DFL}, NULL, 8) = 0
rt_sigaction(SIGTERM, {SIG_DFL}, NULL, 8) = 0
rt_sigaction(SIGQUIT, {SIG_DFL}, NULL, 8) = 0
rt_sigaction(SIGPIPE, {SIG_DFL}, NULL, 8) = 0
write(2, "error: ", 7error: ) = 7
write(2, "cannot open Packages database in"..., 46cannot open Packages
database
in /var/lib/rpm
) = 46
fstat64(1, {st_mode=S_IFIFO|0600, st_size=0, ...}) = 0
mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) =
0x40017000
write(1, "package rpm is not installed\n", 29package rpm is not installed
) = 29
munmap(0x40017000, 4096) = 0
msgrcv(1, {2212858197,
"\354\20\211]\364\350\357H\362\377\201\303\306%\2\0\211"...}, 4096,
1080617648, MSG_NOERROR|IPC_NOWAIT|0x406b0040) = -1 ENOSYS (Function
not implemented)
_exit(1) = ?
Zwracam uwage, ze on nawet nie probowal dotknac czegokolwiek w /var/lib/rpm .
--
=======================================================================
Andrzej M. Krzysztofowicz ankry w mif.pg.gda.pl
phone (48)(58) 347 14 61
Faculty of Applied Phys. & Math., Gdansk University of Technology
Więcej informacji o liście dyskusyjnej pld-devel-pl