Subject: pkg/24609: installing mozilla leaves root-owned directory in build tree
To: None <>
From: None <>
List: netbsd-bugs
Date: 02/29/2004 22:36:45
>Number:         24609
>Category:       pkg
>Synopsis:       installing mozilla leaves root-owned directory in build tree
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    pkg-manager
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Sun Feb 29 21:37:00 UTC 2004
>Originator:     Michael van Elst
>Release:        NetBSD 1.6.2
                                Michael van Elst
                                "A potential Snark may lurk in every tree."
System: NetBSD pepew 1.6.2 NetBSD 1.6.2 (PEPEW) #1: Mon Feb 23 23:34:11 MET 2004 src@pepew:/amd/fud/d/0/src/sys/arch/i386/compile/PEPEW i386
Architecture: i386
Machine: i386
When you build and install www/mozilla as non-root then some approriate
su command (or sudo if configured) is called to perform the actual
installation. During the installation a root-owned directory .mozilla
is created in the package working directory that cannot be removed
by the build user. An update operation therefore fails too.

| ===> clean [mozilla-1.6nb1] ===> Cleaning for mozilla-1.6nb1
| rm: /usr/pkgwrk/www/mozilla/work.pepew/.mozilla: Permission denied
| rm: /usr/pkgwrk/www/mozilla/work.pepew: Directory not empty
| *** Error code 1

| find /usr/pkgsrc/www/mozilla/work.pepew/.mozilla -ls
|    3970      2 drwx------    2 root     staff          512 Feb 29 20:12 /usr/pkgsrc/www/mozilla/work.pepew/.mozilla

Build mozilla-1.6nb1 (or also some earlier revs of 1.6).