Subject: Re: road map for new immigrants?
To: None <email@example.com>
From: der Mouse <mouse@Rodents.Montreal.QC.CA>
Date: 09/15/1998 09:06:03
> Same goes for the rest of the "toolchain" -- not just
> gcc/as/ld/ranlib/nm/lorder/tsort/size, but make, lex, yacc, config,
> rpcgen, and the rest of the usual suspects, too.
> Heck, I dont know if we even have a complete list of suspects.
I don't either, but I have a good start on one.
A while ago, I experimented with doing builds in a chrooted tree: build
a tree with /usr/src and a bunch of other files (cc, as, make, lex,
etc), chroot to it, and "make build".
The reason I mention this is that in the process I found a (minimal, at
the time) set of files I had to install in the chrooted tree to allow
the make build to run to completion. The set is probably no longer
correct, but it's probably a reasonably close approximation.
Given a tree (/test, say) with usr/src and nothing else in it, here's
what my notes say I needed to do:
# Non-chrooted (ie, with / being the real root)
tar cf - -C / \
| tar xvfp -
# the need to make usr/games is probably a bug, may no longer be needed
mkdir -p etc usr/games
cp /usr/src/etc/group etc/group
cp /usr/src/etc/master.passwd etc/master.passwd
chroot . /usr/sbin/pwd_mkdb -p /etc/master.passwd
# Chrooted to /test:
DESTDIR=/ make distrib-dirs
DESTDIR=/ make distribution
7D C8 61 52 5D E7 2D 39 4E F1 31 3E E8 B3 27 4B