From owner-freebsd-ports-bugs@FreeBSD.ORG Sat Dec 18 23:00:18 2010 Return-Path: Delivered-To: freebsd-ports-bugs@hub.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id D0E761065672 for ; Sat, 18 Dec 2010 23:00:18 +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 AE24A8FC1B for ; Sat, 18 Dec 2010 23:00:18 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.4/8.14.4) with ESMTP id oBIN0IqV015596 for ; Sat, 18 Dec 2010 23:00:18 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.4/8.14.4/Submit) id oBIN0IP7015578; Sat, 18 Dec 2010 23:00:18 GMT (envelope-from gnats) Resent-Date: Sat, 18 Dec 2010 23:00:18 GMT Resent-Message-Id: <201012182300.oBIN0IP7015578@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, Oliver Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 3F8FD106566B for ; Sat, 18 Dec 2010 22:59:52 +0000 (UTC) (envelope-from nobody@FreeBSD.org) Received: from red.freebsd.org (unknown [IPv6:2001:4f8:fff6::22]) by mx1.freebsd.org (Postfix) with ESMTP id 154108FC13 for ; Sat, 18 Dec 2010 22:59:52 +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 oBIMxpXY011947 for ; Sat, 18 Dec 2010 22:59:51 GMT (envelope-from nobody@red.freebsd.org) Received: (from nobody@localhost) by red.freebsd.org (8.14.4/8.14.4/Submit) id oBIMxpmB011946; Sat, 18 Dec 2010 22:59:51 GMT (envelope-from nobody) Message-Id: <201012182259.oBIMxpmB011946@red.freebsd.org> Date: Sat, 18 Dec 2010 22:59:51 GMT From: Oliver To: freebsd-gnats-submit@FreeBSD.org X-Send-Pr-Version: www-3.1 Cc: Subject: ports/153286: WRKDIRPREFIX not working 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: Sat, 18 Dec 2010 23:00:18 -0000 >Number: 153286 >Category: ports >Synopsis: WRKDIRPREFIX not working >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: Sat Dec 18 23:00:18 UTC 2010 >Closed-Date: >Last-Modified: >Originator: Oliver >Release: 8.1-RELEASE >Organization: N/A >Environment: FreeBSD foo 8.1-RELEASE FreeBSD 8.1-RELEASE #0: Mon Jul 19 02:36:49 UTC 2010 root@mason.cse.buffalo.edu:/usr/obj/usr/src/sys/GENERIC amd64 >Description: Hello, I'm using ports inside ezjails and the ports tree is in the basejail's image. After building and installing a port the creation of the package, invoked by "make package" fails, because tar can't open the file in "/usr/ports/$category/$package/$package-$version.tbz". As the ports directory is mounted via nullfs to the jail, it's ok that the system is missing the write access there. The manual states that the environment variable "WRKDIRPREFIX" is used to point to a folder where the temporary files of a package are stored/created. So the "build" of the package should be stored in $WRKDIRPREFIX/$category/package" before it is moved to the packages folder, but it isn't. Here a snipplet from a screen build inside the jail: foo# pwd /basejail/usr/ports/sysutils/screen foo# cat /etc/make.conf WRKDIRPREFIX= /var/ports DISTDIR= /var/ports/distfiles PACKAGES= /var/ports/packages INDEXDIR= /var/ports foo# set WRKDIRPREFIX=/var/ports foo# echo $WRKDIRPREFIX /var/ports foo# make package ===> Building package for screen-4.0.3_9 tar: Failed to open '/basejail/usr/ports/sysutils/screen/screen-4.0.3_9.tbz' pkg_create: make_dist: tar command failed with code 256 *** Error code 1 Stop in /basejail/usr/ports/sysutils/screen. *** Error code 1 Stop in /basejail/usr/ports/sysutils/screen. foo# >How-To-Repeat: # create an ezjail basejail with ports directory included $ ezjail-admin install -m -p # create a jail $ ezjail-admin create foo 1.2.3.4 # get a console inside the jail $ ezjail-console foo # go to /usr/ports/sysutils/screen $ cd /usr/ports/sysutils/screen # build and install the package $ make install # create the package $ make package # see the error >Fix: >Release-Note: >Audit-Trail: >Unformatted: