Subject: Re: FreeBSD hosted build problem: mtree and user_from_uid()
To: Mark Valentine <email@example.com>
From: Luke Mewburn <lukem@NetBSD.org>
Date: 10/08/2003 14:54:08
On Tue, Oct 07, 2003 at 11:17:02PM +0000, Mark Valentine wrote:
| Looks like I just have one little problem left before I have a successful
| NetBSD release build on my FreeBSD system (after fixing some bugs in the
| FreeBSD shell and printf utility to get this far!).
| I'm doing an unprivileged build, and the symptom is pax bailing out when
| creating base.tgz due to an unknown user name "ftp".
| I can isolate the problem as follows:
| $ nbmtree -C -k all -N /netbsd/i386/etc <<EOF
| /set type=dir
| ./foo uname=named
| . type=dir
| ./foo type=dir uname=ftp
| The user "named" is uid 14 in NetBSD; uid 14 in FreeBSD is user "ftp"...
| It seems that mtree is linking in its own pwcache_userdb(), but using the
| host's user_from_uid()! Is this likely to work?!
No FreeBSD's (the host) user_from_uid(3) won't work.
I have no idea why the user_from_uid() in the tools/compat library isn't
being correctly linked into nbmtree... :(
| I *hate* GNU configure, and anyway my little brain's had enough for the
| day. Anyone familiar with the way the compat library is built care to
| volunteer a suggestion?