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