On 2026-05-19, Christian Schulte <[email protected]> wrote: > Am 18.05.2026 um 14:35 schrieb Stuart Henderson: >> On 2026-05-18, Christian Schulte <[email protected]> wrote: >>> Am 18.05.2026 um 05:06 schrieb Jonathan Gray: >>>> On Mon, May 18, 2026 at 12:06:23AM +0200, Christian Schulte wrote: >>>>> Hi, >>>>> >>>>> are the build instructions in release(8) for building xenocara still >>>>> recent? After a fresh install and a fresh checkout, I am getting build >>>>> issues, I don't know what to do about. For example: >>>>> >>>>> ===> driver/xf86-video-amdgpu >>>>> make: don't know how to make build >>>>> Stop in driver/xf86-video-amdgpu >>>>> *** Error 2 in driver (<bsd.subdir.mk>:48 'build') >>>>> *** Error 2 in . (<bsd.subdir.mk>:48 'realbuild') >>>>> *** Error 2 in . (Makefile:37 'do-build') >>>>> *** Error 2 in /usr/xenocara (Makefile:26 'build') >>>>> >>>>> It's the only driver/xf86-video-* not directory not containing >>>>> autoconf/automake scripts or a Makefile.bsd-wrapper and indeed the >>>>> Makfile therein does not contain a build target. >>>> >>>> The build target comes from the included bsd.xorg.mk >>>> >>>> It seems you have a problem in your checkout or environment. >>>> xenocara builds fine here. >>> >>> Not sure. It's really a fresh install and a fresh checkout. >> >> Is your obj directory clean (not just "make clean" clean; actually >> clean - "rm -r obj/*; make obj")? > > Seems I never noticed the command I am using to remove the objects does > not remove anything. My guess is the * is expanded before calling doas > instead of getting passed to doas. D'oh! Never noticed this. Only the rm > running as root after su removes them. You just need to know. Thanks.
Yes, that's how the shell works. If you don't have permission to list the directory (e.g. if you can't already tab-complete files in it), then you need to have the wildcard expansion happen later. > 0x02$ doas rm -rf /usr/xobj/* btw, running as root to remove files owned by build is a bit overpowered, you're one typo away from a bad day. doas -u build sh -c 'rm -r obj/*'

