On 2021-06-09, Avon Robertson <avo...@xtra.co.nz> wrote: > On Tue, Jun 08, 2021 at 11:11:15AM +1200, Avon Robertson wrote: >> On Mon, Jun 07, 2021 at 08:21:24PM -0000, Stuart Henderson wrote: >> > On 2021-06-07, Avon Robertson <avo...@xtra.co.nz> wrote: >> > > $ make obj >> > >===> ssh >> > > /usr/src/usr.bin/ssh/ssh/obj -> /usr/obj/usr.bin/ssh/ssh >> > > mkdir: /usr/obj/usr.bin: Permission denied >> > > *** Error 1 in ssh (<bsd.obj.mk>:61 'obj': @cd /usr/src/usr.bin/ssh/ssh; >> > > umask 007; here=`/bin/pwd`; bsdsrcdir=`cd /usr/src; /bin/pwd`; s...) >> > > *** Error 2 in /usr/src/usr.bin/ssh (<bsd.subdir.mk>:48 'obj': @for >> > > entry in ssh sshd ssh-add ssh-keygen ssh-agent scp sftp-server >> > > ssh-keys...) >> > > >> > > Mmmm. So looked first at permission in and below /usr/src. Found >> > > permissions to be 700 with owner and group being aer:wsrc. As root, >> > > # chmod -R 775 /usr/src >> > > and tried 'make obj' again. The same error as above was output. >> > >> > The "permission denied" is on /usr/obj. >> > >> > > I do not rule out the possibility that my local /cvs repository has >> > > been inadvertently corrupted by me. >> > >> > unlikely. >> > >> > > Theo, I am willing to install (not update) a later snapshot and try to >> > > build a test kernel for you tomorrow; if you belief it likely my /cvs >> > > repo is ok. If you think it likely that my repo is corrupt, I will >> > > remove it and reinstall a local repo from scratch before trying to >> > > build a test kernel for you. >> > >> > I think at this point the best thing to do is simply update to a newer >> > snapshot and try reposync again. (Update is fine, no need to reinstall). >> > No need to build a kernel. >> > >> > If there is still a failure then adjust permissions or group membership >> > so you can write to /usr/obj (there are various methods that will work), >> > and confirm that it works with a build of ssh fresh from cvs. But if I got >> > my testing right then I think this is now working. >> > >> > >> Many thanks Stuart. >> Will do as you have suggested. >> >> Regards Avon >> -- >> > > Hello Stuart and misc@, > Installed new snaphot: > $ uname -prsv > OpenBSD 6.9 GENERIC.MP#58 amd64 > > My script failed again with error: > reposync: host key verification failed - see > /var/db/reposync/known_hosts > > After executing > $ cd /usr/src/usr.bin/ssh > $ cvs up > $ make obj > $ make > $ doas make install > my script is working again without error. > > Thank you all for your help. > > Regards Avon > >
It should work OK with snapshots dated after 2021/06/08. btw for future reference, the GENERIC.MP#58 isn't very useful for identification; it's better to use "sysctl kern.version".