Subject: "make update" in Python: Permission denied
To: None <tech-pkg@netbsd.org>
From: Stephane Bortzmeyer <stephane@sources.org>
List: tech-pkg
Date: 04/28/2005 11:52:29
A "make update" (not as root, as an ordinary user) in
/usr/pkgsrc/lang/python23 fails:

copying mx/COPYRIGHT -> /usr/pkg/lib/python2.3/site-packages/mx
copying mx/LICENSE -> /usr/pkg/lib/python2.3/site-packages/mx
===> Registering installation for py23-mxDateTime-2.0.6
py23-mxDateTime-2.0.6 requires installed package python23-2.3.5
===> Cleaning for py23-mxDateTime-2.0.6
===> Cleaning for ap2-py23-python-3.1.3nb1
===> Cleaning for epydoc-2.1nb1
===> Cleaning for postgresql74-plpython-7.4.7
===> Cleaning for swig-python-1.3.19nb1
===> Cleaning for py23-subversion-1.1.4
===> Cleaning for python23-2.3.5
rm: /usr/pkgsrc/lang/python23/work/Python-2.3.5/Lib/plat-netbsd2/regen: Permission denied
rm: /usr/pkgsrc/lang/python23/work/Python-2.3.5/Lib/plat-netbsd2/IN.py: Permission denied
rm: /usr/pkgsrc/lang/python23/work/Python-2.3.5/Lib/plat-netbsd2: Directory not empty
rm: /usr/pkgsrc/lang/python23/work/Python-2.3.5/Lib: Directory not empty
rm: /usr/pkgsrc/lang/python23/work/Python-2.3.5: Directory not empty
rm: /usr/pkgsrc/lang/python23/work: Directory not empty
*** Error code 1

Stop.
make: stopped in /usr/pkgsrc/lang/python23
*** Error code 1

It seems that installation (as root) left things that "make clean"
cannot delete.

If I do everything as root (!) everything works fine.