[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
Re: Setting up a pbulk build environment
On 10/2/18 11:12 AM, Robert Nestor wrote:
Iï¿½m trying to set up a pbulk build environment on a NetBSD system to build packages for an older version of NetBSD. Trying to follow the guide in the Wiki but Iï¿½m confused about a couple of the steps in the section of ï¿½Prepare the pbulk environmentï¿½.
The first step in this section directs one to chroot into the newly created and mounted sandbox using the sandbox script. I assume the remaining steps in this section are done in the chroot environment, but thatï¿½s where things get confusing.
Is the user add done in the chroot environment? Doing that produces an non-fatal error that the user is being created with no home directory though. Should a /home be created in the chroot filesystem? Should a ï¿½-mï¿½ be added to the user add command here? Or is the user add done outside of the chroot environment, or does it not really matter, i.e. ignore the error and create the user in either filesystem space?
After creating the mk.conf.frag file the following step class for deploying and configuring the pbulk tools by executing the pbulk.sh script. If this is done in the chroot filesystem the file isnï¿½t found since pkgsrc is mounted on /tree/pkgsrc, not /usr/pkgsrc. And deeper into this script is another hard reference to /usr/pkgsrc which also canï¿½t be found. So is this deploy step executed in the chroot filesystem?
Iï¿½m assuming the resolution to these setup issues is that the commands are not to be executed inside the chroot filesystem. Can someone confirm that? And if thatï¿½s the case, shouldnï¿½t the Wiki guide reflect that the first step is just to verify that one can enter the sandbox and how itï¿½s done, but that the remaining steps should be executed outside the sandbox?
I have some documentation here:
Take a look at the scripts themselves for details on the process.
Main Index |
Thread Index |