ports/171329: bsd.pkgng.mk: root owned .metadir -directory
Kimmo Paasiala
kpaasial at gmail.com
Tue Sep 4 20:40:02 UTC 2012
>Number: 171329
>Category: ports
>Synopsis: bsd.pkgng.mk: root owned .metadir -directory
>Confidential: no
>Severity: non-critical
>Priority: low
>Responsible: freebsd-ports-bugs
>State: open
>Quarter:
>Keywords:
>Date-Required:
>Class: sw-bug
>Submitter-Id: current-users
>Arrival-Date: Tue Sep 04 20:40:01 UTC 2012
>Closed-Date:
>Last-Modified:
>Originator: Kimmo Paasiala
>Release: STABLE-9
>Organization:
>Environment:
FreeBSD whitezone.mooo.com 9.1-PRERELEASE FreeBSD 9.1-PRERELEASE #0 r239722: Mon Aug 27 21:05:35 EEST 2012 toor at whitezone.mooo.com:/usr/obj/usr/src/sys/WHITEZONE amd64
>Description:
If you start a port installation with normal user rights as 'make install clean' with WRKDIRPREFIX set to a user writable directory the build proceeds normally and the you are then asked for root password for the install -target. The installation finishes but the 'clean' target won't be able to clean the $WRKDIR completely.
This seems to be a problem with the 'fake-pkg' target in bsd.pkgng.mk that creates the $WRKDIR/.metadir directory as root owned during 'install' target while the process is running under root priviledges.
The fake-pkg target should clean up the .metadir -directory when it's no longer needed or the directory and it's contents should be created with user's normal rights.
>How-To-Repeat:
>Fix:
>Release-Note:
>Audit-Trail:
>Unformatted:
More information about the freebsd-ports-bugs
mailing list