tech-pkg archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: bin/57820: devel/rcs fails on 10.0_RC2 works on 9.3



* On 2024-01-11 at 08:34 GMT, RVP wrote:

OK, I think some assumptions are wrong here. You've started the build like this:

./bootstrap --prefix /x/y --unprivileged ...
cd ../devel/rcs
export PATH=/x/y:$PATH
bmake

All that is correct, but, I'm if not mistaken, you want to use `make' instead
of `bmake'. But, that just can't be used as it is because the system make
has no idea that it has to use the pkgsrc stuff sitting in the `/x/y' prefix.

You'll have to tell system make to use the config. in `/x/y'. This worked for
me:

In `/etc/mk.conf', I added:

.ifdef BSD_PKG_MK       # begin pkgsrc settings
.include "/x/y/etc/mk.conf"
.endif                  # end pkgsrc settings

This made make(1) behave like bmake(1). Make sure to set WRKOBJDIR too.

-RVP

PS. pkgsrc gurus please correct me if I'm wrong about any of this.

I wouldn't say wrong, but I would strongly recommend not doing this.

If you are going to bootstrap, then use the bootstrapped bmake. If you want to use the native make, do not bootstrap, and just configure /etc/mk.conf as usual.

This obviously only applies to NetBSD. On every other OS you must bootstrap and must use bmake.

Trying to mix and match is highly likely to run into problems, and at the very least is going to cause confusion in both usage and bug reports.

--
Jonathan Perkin   -   mnx.io   -   pkgsrc.smartos.org
Open Source Complete Cloud   www.tritondatacenter.com


Home | Main Index | Thread Index | Old Index