[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Once patched 3.5 as root, now can't apply 025_getcwd



Jason,

Thanks for your continuing response. Unfortunately that didn't work -
I removed everything in both /usr/obj and /usr/src , untared and
patched the source, same problem.

I appreciate your time, and if you can give me any tips on further
troubleshooting I'm happy to do so myself.

Regards,
Damon


On Tue, 1 Feb 2005 09:37:50 -0500, Jason Crawford
<jasonrcrawford@gmail.com> wrote:
> At this point I think too much time has been spent on this simple
> problem, I'd say just rm -rf /usr/src/* and /usr/obj/* and regrab the
> lib source tree (as software:wsrc) and do make obj again (as
> software:wsrc) and everything should be ok. You can even grab the lib
> source through anoncvs, which will already be patched if you use the
> tag OPENBSD_3_6
> 
> Jason
> 
> On Tue, 1 Feb 2005 16:09:11 +1030, Damon McMahon
> <damon.mcmahon@gmail.com> wrote:
> > Jason,
> >
> > Still no go, I'm afraid - these are the two .depend files:
> >
> >   -rw-------  1 software  wsrc  - 338262 Feb  1 15:37 /usr/obj/lib/libc/.depend
> >   -rw-------  1 software  wsrc  - 338262 Jan 31 14:21 /usr/src/lib/libc/.depend
> >
> > This is the user context:
> >
> >   uid=503(software) gid=9(wsrc) groups=9(wsrc)
> >
> > This is what I'm running:
> >
> > % make obj
> > /usr/src/lib/libc/obj -> /usr/obj/lib/libc
> >
> > % make cleandir
> > rm -f a.out [Ee]rrs mklog core *.core tags md[45]hl.c md[45].3
> > LintSysNormal.c LintSysNoerr.c LintSysPseudo.c
> > ...
> > rm -f .depend /usr/src/lib/libc/tags
> >
> > % make depend
> > sed -e 's/mdX/md4/g' -e 's/MDX/MD4/g' /usr/src/lib/libc/md/mdXhl.c > md4hl.c
> > ...
> > mkdep -a -DLIBC_SCCS -DSYSLIBC_SCCS -I/usr/src/lib/libc/include -DYP
> > -I/usr/src/lib/libc/yp -D__DBINTERFACE_PRIVATE -DRESOLVSORT
> > -DPOSIX_MISTAKE -DFLOATING_POINT -DNLS -I/usr/src/lib/libc/dlfcn
> > /usr/src/lib/libc/db/btree/bt_close.c [...]
> > /usr/src/lib/libc/yp/xdr_ypstat.c
> > mv: .depend: set owner/group: Operation not permitted
> >
> > %
> >
> > I'm stumped... I'm untarring the entire /lib source tree in the hope
> > that this will fix it, but any other suggestions you or others have
> > are welcome.
> >
> > Regards,
> > Damon
> >
> > On Mon, 31 Jan 2005 23:59:16 -0500, Jason Crawford
> > <jasonrcrawford@gmail.com> wrote:
> > > Well, I would first suggest doing a 'make cleandir' as root in
> > > /usr/src or /usr/src/lib, whichever is the topmost source directory
> > > where you would build everything from. That should clean up all files
> > > in there that would be generated during make depend or make, and then
> > > doing the chown command again. It looks like you have a .depend file
> > > that is not being chown'd, so you must remove it as root (doing make
> > > cleandir as root should do it).
> > >
> > > On Tue, 1 Feb 2005 15:26:15 +1030, Damon McMahon
> > > <damon.mcmahon@gmail.com> wrote:
> > > > Jason,
> > > >
> > > > Thanks for your response - I've tried:
> > > >
> > > >  chown -R software:wsrc *
> > > >
> > > > in both /usr/src and /usr/obj but to no avail. I still get:
> > > >
> > > > ...
> > > > /lib/libc/yp/xdr_ypresp_val.c /usr/src/lib/libc/yp/xdr_ypstat.c
> > > > mv: .depend: set owner/group: Operation not permitted
> > > >
> > > > In case its relevant, due to the small HDD on this host I do not have
> > > > the entire source tree in /usr/src but rather only /usr/src/lib/libc/*
> > > > and /usr/src/lib/.Makefile - would this make any difference?
> > > >
> > > > Any other ideas?
> > > >
> > > > Regards,
> > > > Damon
> > > >
> > > > On Mon, 31 Jan 2005 23:41:48 -0500, Jason Crawford
> > > > <jasonrcrawford@gmail.com> wrote:
> > > > > If you compile all software in /usr/src as software:wsrc, just (as root):
> > > > > cd /usr/src
> > > > > chown -R software:wsrc *
> > > > >
> > > > > and now everything in there will be owned by software:wsrc. If you
> > > > > build object files in /usr/obj (which is strongly advised) make sure
> > > > > files in /usr/obj is also owned by software:wsrc just like in /usr/src
> > > > >
> > > > >
> > > > > On Tue, 1 Feb 2005 15:01:05 +1030, Damon McMahon
> > > > > <damon.mcmahon@gmail.com> wrote:
> > > > > > Greetings,
> > > > > >
> > > > > > During 'make depend' applying 025_getcwd as my build user 'software'
> > > > > > (which is a member of wsrc) I get:
> > > > > >
> > > > > >   mv: .depend: set owner/group: Operation not permitted
> > > > > >
> > > > > > From what I understand this is most likely because (before knowing any
> > > > > > better) I applied a patch [can't remember which one] as root [or some
> > > > > > other priviledged user].
> > > > > >
> > > > > > How do I find which file/s I need to
> > > > > >
> > > > > >   chmod software:wsrc
> > > > > >
> > > > > > ?
> > > > > >
> > > > > > Many thanks in advance,
> > > > > > Damon