From owner-freebsd-ports-bugs@FreeBSD.ORG Tue Sep 4 20:40:02 2012 Return-Path: Delivered-To: freebsd-ports-bugs@hub.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 402DC1065697 for ; Tue, 4 Sep 2012 20:40:02 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:4f8:fff6::28]) by mx1.freebsd.org (Postfix) with ESMTP id EEC688FC16 for ; Tue, 4 Sep 2012 20:40:01 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.5/8.14.5) with ESMTP id q84Ke1e9019412 for ; Tue, 4 Sep 2012 20:40:01 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.5/8.14.5/Submit) id q84Ke14m019395; Tue, 4 Sep 2012 20:40:01 GMT (envelope-from gnats) Resent-Date: Tue, 4 Sep 2012 20:40:01 GMT Resent-Message-Id: <201209042040.q84Ke14m019395@freefall.freebsd.org> Resent-From: FreeBSD-gnats-submit@FreeBSD.org (GNATS Filer) Resent-To: freebsd-ports-bugs@FreeBSD.org Resent-Reply-To: FreeBSD-gnats-submit@FreeBSD.org, Kimmo Paasiala Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id E1089106564A for ; Tue, 4 Sep 2012 20:37:05 +0000 (UTC) (envelope-from nobody@FreeBSD.org) Received: from red.freebsd.org (red.freebsd.org [IPv6:2001:4f8:fff6::22]) by mx1.freebsd.org (Postfix) with ESMTP id CCA998FC12 for ; Tue, 4 Sep 2012 20:37:05 +0000 (UTC) Received: from red.freebsd.org (localhost [127.0.0.1]) by red.freebsd.org (8.14.4/8.14.4) with ESMTP id q84Kb5GE045651 for ; Tue, 4 Sep 2012 20:37:05 GMT (envelope-from nobody@red.freebsd.org) Received: (from nobody@localhost) by red.freebsd.org (8.14.4/8.14.4/Submit) id q84Kb5p3045643; Tue, 4 Sep 2012 20:37:05 GMT (envelope-from nobody) Message-Id: <201209042037.q84Kb5p3045643@red.freebsd.org> Date: Tue, 4 Sep 2012 20:37:05 GMT From: Kimmo Paasiala To: freebsd-gnats-submit@FreeBSD.org X-Send-Pr-Version: www-3.1 Cc: Subject: ports/171329: bsd.pkgng.mk: root owned .metadir -directory X-BeenThere: freebsd-ports-bugs@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Ports bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 04 Sep 2012 20:40:02 -0000 >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: