pkgsrc-Users archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
Setting up a pbulk build environment
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?
Thanks,
-bob
Home |
Main Index |
Thread Index |
Old Index