pkgsrc-Users archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
Re: pbulk setup
On Sat, Jul 16, 2022 at 08:50:52AM +0530, Mayuresh wrote:
> On Fri, Jul 15, 2022 at 08:26:16PM +0000, nia wrote:
> > On Fri, Jul 15, 2022 at 10:22:42AM +0530, Mayuresh wrote:
> > > For example, I never understood why bootstrap kit is not required for
> > > NetBSD. Things never worked without it for me. Why pkg install settings in
> > > the pbulk.conf have no effect or what are they meant for. Why use
> > > /usr/bin/make on NetBSD, why not /usr/pbulk/bin/bmake? etc.
> >
> > This is quite clear - NetBSD includes many pkgsrc tools, bmake and
> > pkg_install, and so on, in its base system. It is however pre-configured
> > for the 'default' settings of pkgsrc. So if you change anything, like
> > PREFIX, LOCALBASE, SYSCONFBASE... you need to bootstrap.
> >
> > pbulk relies on its own isolated prefix, because it adds and removes
> > packages at will, and has some dependencies of its own. Thus any
> > pbulk usage requires bootstrapping pkgsrc at least once to a dedicated
> > pbulk prefix, I use /data/pbulk. Then in the target chroot(s) you either
> > use a bootstrap kit or use the system tools...
>
> So is bootstrap-kit required or not on NetBSD? The instructions say leave
> it blank. But if I do so pkg install scripts are not found.
If you want to change anything about the default pkgsrc settings, like
paths, database locations, anything from the standard /usr/pkg prefix,
you need to bootstrap. Otherwise you don't, but pbulk needs to know
where the tools are located. The pbulk.sh script (included with pkgsrc)
with the `-n` flag (for "native", i.e. no bootstrapping) does this by
setting the following in pbulk.conf:
make=/usr/bin/make
bootstrapkit=
> Paths to install scripts can be supplied in pbulk.conf, but they have no
> effect. bulkbuild still refers to /usr/pkg, forcing use of bootstrap kit.
What do you mean by "bulkbuild still refers to"? It would be a lot
easier to diagnose your problems if you provided more information.
Home |
Main Index |
Thread Index |
Old Index