On Fri, Jul 18, 2025 at 05:01:06PM +1200, Avon Robertson wrote:
> Hello Jonathan and misc@,
> 
>       -o Progress to date
> - Updated my local CVS repo from rsync://anoncvs.au. ...
> - sysupgrade('d) -s this machine
> - updated the /usr/{xenocara,src,ports,www} trees on this machine
>   from my local CVS repo.
> - applied your patch.
> 
> Followed the directions given in '5.' of release(8) and invoked
> as root:
> # make bootstrap
> # make obj
> # make build (which failed with the errors shown next.)
> 
>       -o Tail end of make build ouput
> wrcr4://usr/xenocara # make build
> umask 007; exec make do-build
> exec make bootstrap-root
> exec make distrib-dirs
> # running mtree
> mtree -qdef /etc/mtree/BSD.x11.dist -p / -U
> exec make install-mk
> cd share/mk && exec make X11BASE=/usr/X11R6 install
> install -c -o root -g bin -m 444 bsd.xconf.mk bsd.xorg.mk package_version.m4  
> /usr/X11R6/share/mk
> cd util/macros &&  exec su build -c 'exec make -f Makefile.bsd-wrapper'
> make: getcwd: Permission denied
> *** Error 2 in . (Makefile:35 'do-build')
> *** Error 2 in /usr/xenocara (Makefile:26 'build')
> 
> The above 'make: getcwd: Permission denied' statement I have encountered 
> before but I can not remember where, or what fixes it.
> 
> wrcr4://usr/xenocara # which getcwd
> which: getcwd: Command not found.

Try 'man getcwd', it is a function not a command.

For the permissions error, before building:

# rm -r /usr/xobj/*

If it still fails, show the output of:
ls -ld /usr/xobj/

Reply via email to