From: Oliver M . B. <ol...@go...> - 2001-07-12 21:18:12
|
Hi! # It seems that only the usual members are on the list but I'll stick # to English because all other messages in the archive are in English Yesterday and today, I sat down and compiled apt and fakeroot. I found out some strange things. 1. Apt Compiled nicely out of the box and seemed to be working, except it complained when msync(2)ing to save pkgcache.bin . A strace shoewed that the arguments to msync(2) were correct (PAGESIZE boundary) so I assume the implementation of msync(2) was broken and got rid of that part in apt/apt-pkg/contrib/mmap.cc by checking for __R5900 That's really ad-hoc. The problem is that mipsEEel doesnt' support seem to msync(2) but still declaeds _POSIX_SYNCHRONIZED_IO, which is a POSIX violation. 2. fakeroot Compiled like it was a nice dream. But dream was dream. It barfed on rm during "make -C test". A little search revlealed that it was doing an endless loop in libfakeroot.c:unlink(). next_unlink() was calling libfakeroot's unlink() agin and that caused an segfault after 30230 iterations on my machine. A dummy program doing just unlink() (together with open/close/lstat/fstat) worked fine. After not being able to figure the problem out, I compiled rm freshly from Debian's fileutils. That solved the problem, the new rm worked fine. I'm really puzzled as the old one didn't have any problem unless run in fakeroot. Maybe the old rm had been crosscompiled and had weired symbols ?? fakeroot now passes "make -C check" but somthing still isn't right. "fakeroot dh_testroot" passes, but a dh_testroot inside debian/rules when called like "fakeroot debian/rules binary" doesn't. Also perl -e 'print "a$<a"' gives correct uid's as a normal user aswell as root, but fakeroot perl -e 'print "a$<a"' doesn't produce any output at all. Checking for $< is exactly what dh_testroot is doing. Anybody got any idea's ? Also, I currently have glibc-2.2.2-1, fileutils-4.1, dpkg-1.9.15, apt-0.5.3 as .debs . Plus a likely broken fakeroot-0.4.4 Happy Hacking! -- Oliver M. Bolzer ol...@go... GPG (PGP) Fingerprint = 621B 52F6 2AC1 36DB 8761 018F 8786 87AD EF50 D1FF |