Re: [EXTERNAL] make installworld -DNO_ROOT

From: Souradeep Chakrabarti <schakrabarti_at_microsoft.com>
Date: Mon, 10 Apr 2023 07:18:46 UTC
Have you tried to use  export MAKEOBJDIRPREFIX ?


Thanks & Regards,
 Souradeep

________________________________
From: owner-freebsd-hackers@freebsd.org <owner-freebsd-hackers@freebsd.org> on behalf of Christopher Bowman <crb@chrisbowman.com>
Sent: Monday, April 10, 2023 12:30 PM
To: hackers@freebsd.org <hackers@freebsd.org>
Subject: [EXTERNAL] make installworld -DNO_ROOT

Id like to build some images and I’d like do that as an ordinary user NOT as root

I’m experimenting with “make installworld -DNO_ROOT TARGET_ARCH=armv7”

When I do that or  “make distribution -DNO_ROOT TARGET_ARCH=armv7”

I get the following error messages during the make run:

make[4] warning: /etc: Permission denied.
make[4] warning: /lib: Permission denied.
make[5] warning: /lib/geom: Permission denied.
make[4] warning: /libexec: Permission denied.
make[4] warning: /bin: Permission denied.
make[4] warning: /rescue: Permission denied.
make[4] warning: /sbin: Permission denied.
make[4] warning: /etc: Permission denied.
make[2] warning: /etc: Permission denied.
make[3] warning: /etc/gss: Permission denied.
make[3] warning: /etc/mtree: Permission denied.
make[3] warning: /lib: Permission denied.
make[4] warning: /lib/geom: Permission denied.
make[3] warning: /libexec: Permission denied.
make[3] warning: /bin: Permission denied.
make[3] warning: /rescue: Permission denied.
make[3] warning: /sbin: Permission denied.
make[3] warning: /etc: Permission denied.

I think as a results either the recursive makes are failing or not doing all they are supposed to.

It’s possible I’m using -DNO_ROOT wrong but if anyone has some suggestions about what’s happening that would be very helpful.

In the alternative I’m open to suggestions as to how to debug the hugs set of make invocations.  I find reading and debug make files hard enough but on huge treee like this with all the invocations and arguments I’m kind lost as to even which command within the make files are causing this.

Thanks
Christopher