Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 4 Sep 2012 20:37:05 GMT
From:      Kimmo Paasiala <kpaasial@gmail.com>
To:        freebsd-gnats-submit@FreeBSD.org
Subject:   ports/171329: bsd.pkgng.mk: root owned .metadir -directory
Message-ID:  <201209042037.q84Kb5p3045643@red.freebsd.org>
Resent-Message-ID: <201209042040.q84Ke14m019395@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help

>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@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:



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201209042037.q84Kb5p3045643>