Subject: NO_MTREE and chmod in pkg_add and bulk builds
To: None <tech-pkg@netbsd.org>
From: Jeremy C. Reed <reed@reedmedia.net>
List: tech-pkg
Date: 03/23/2005 19:53:25
I have NO_MTREE=yes in my mk.conf, but it seems like it is still being
used in my bulk builds.

I am running as non-root and I don't want it to create the directories
since I have thousands of lines like:

        user (0, 1002, not modified: Operation not permitted)
        gid (0, 1002, not modified: Operation not permitted)

Also, my bulk build has lines like:

pkg_add: not running as root - trying to record install anyway
mv: /storage1/home/jreed/pkg/libdata/pkgdb/perl-5.8.6nb4/+BUILD_VERSION:
set owner/group (was: 1002/0): Operation not permitted
mv: /storage1/home/jreed/pkg/libdata/pkgdb/perl-5.8.6nb4/+CONTENTS: set
owner/group (was: 1002/0): Operation not permitted
mv: /storage1/home/jreed/pkg/libdata/pkgdb/perl-5.8.6nb4/+COMMENT: set
owner/group (was: 1002/0): Operation not permitted
mv: /storage1/home/jreed/pkg/libdata/pkgdb/perl-5.8.6nb4/+DESC: set
owner/group (was: 1002/0): Operation not permitted
mv: /storage1/home/jreed/pkg/libdata/pkgdb/perl-5.8.6nb4/+DISPLAY: set
owner/group (was: 1002/0): Operation not permitted
mv: /storage1/home/jreed/pkg/libdata/pkgdb/perl-5.8.6nb4/+BUILD_INFO: set
owner/group (was: 1002/0): Operation not permitted
mv: /storage1/home/jreed/pkg/libdata/pkgdb/perl-5.8.6nb4/+SIZE_PKG: set
owner/group (was: 1002/0): Operation not permitted
mv: /storage1/home/jreed/pkg/libdata/pkgdb/perl-5.8.6nb4/+SIZE_ALL: set
owner/group (was: 1002/0): Operation not permitted

Where can I disable the above chown (or make it use my correct user and
group)?

Thanks,

 Jeremy C. Reed

 	  	 	 BSD News, BSD tutorials, BSD links
	  	 	 http://www.bsdnewsletter.com/