From ap@bnc.net  Fri Dec 27 03:17:58 2013
Return-Path: <ap@bnc.net>
Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115])
	(using TLSv1 with cipher ADH-AES256-SHA (256/256 bits))
	(No client certificate requested)
	by hub.freebsd.org (Postfix) with ESMTPS id 224941C1
	for <FreeBSD-gnats-submit@freebsd.org>; Fri, 27 Dec 2013 03:17:58 +0000 (UTC)
Received: from mailomat.net (mailomat.net [81.20.89.254])
	(using TLSv1 with cipher DES-CBC3-SHA (168/168 bits))
	(No client certificate requested)
	by mx1.freebsd.org (Postfix) with ESMTPS id A97FA1975
	for <FreeBSD-gnats-submit@freebsd.org>; Fri, 27 Dec 2013 03:17:57 +0000 (UTC)
Received: from [194.39.192.125] (account bnc-mail@mailrelay.mailomat.net HELO bnc.net)
  by mailomat.net (CommuniGate Pro SMTP 6.0.5)
  with ESMTPSA id 64261482 for FreeBSD-gnats-submit@freebsd.org; Fri, 27 Dec 2013 03:17:40 +0100
Received: from [192.168.200.188] (HELO corwin.bnc.net)
  by bnc.net (CommuniGate Pro SMTP 6.0.5)
  with SMTP id 6997442 for FreeBSD-gnats-submit@freebsd.org; Fri, 27 Dec 2013 03:17:20 +0100
Message-Id: <auto-000006997442@bnc.net>
Date: Fri, 27 Dec 2013 03:17:37 +0100
From: ap@bnc.net
Reply-To: ap@bnc.net
To: FreeBSD-gnats-submit@freebsd.org
Cc:
Subject: portupgrade: Building ports using a symbolic link in place of /usr/ports is broken
X-Send-Pr-Version: 3.113
X-GNATS-Notify:

>Number:         185217
>Category:       ports
>Synopsis:       ports-mgmt/portupgrade: Building ports using a symbolic link in place of /usr/ports is broken
>Confidential:   no
>Severity:       serious
>Priority:       high
>Responsible:    bdrewery
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Fri Dec 27 03:20:00 UTC 2013
>Closed-Date:    
>Last-Modified:  Fri Dec 27 11:38:44 UTC 2013
>Originator:     Charlie &
>Release:        FreeBSD 9.1-RELEASE-p8 amd64
>Organization:
<organization of PR author (multiple lines)>
>Environment:
System: FreeBSD s51.wo-uk.net 9.1-RELEASE-p8 FreeBSD 9.1-RELEASE-p8 #15 r257373: Wed Oct 30 08:28:01 CET 2013 root@s51.wo-uk.net:/usr/obj/usr/src/sys/GENERIC amd64


        system isn't important

>Description:
Running on a system with small /usr partition and some large empty space on some other partition using symbolic links from /usr/xxxx to /space/xxx has been working since FreeBSD 1.0. But for a few weeks updat
ing ports on systems like that has been broken:

portupgrade portupgrade
[...]
===>  Building package for portupgrade-2.4.11.2_1,2
Creating package /space/ports/ports-mgmt/portupgrade/work/portupgrade-2.4.11.2_1,2.tbz
Registering depends: ruby19-bdb-0.6.6_1 db41-4.1.25_4 ruby-1.9.3.448,1 libexecinfo-1.1_3 libffi-3.0.13 libyaml-0.1.4_2.
Registering conflicts: portupgrade-devel-*.
Creating bzip'd tar ball in '/space/ports/ports-mgmt/portupgrade/work/portupgrade-2.4.11.2_1,2.tbz'
tar: could not chdir to '/space/ports/ports-mgmt/portupgrade/work/stage/space/local'

Using nullfs for a loopback mount will solve this mess...

>How-To-Repeat:
mv /usr/local /somewhereelse
ln -s /somewhereelse/local /usr
portupgrade <something>


>Fix:
rm /usr/local ; mkdir /usr/local; mount_nullfs /space/local /usr/local
>Release-Note:
>Audit-Trail:
Responsible-Changed-From-To: freebsd-ports-bugs->bdrewery 
Responsible-Changed-By: edwin 
Responsible-Changed-When: Fri Dec 27 11:38:44 UTC 2013 
Responsible-Changed-Why:  
Over to maintainer (via the GNATS Auto Assign Tool) 

http://www.freebsd.org/cgi/query-pr.cgi?pr=185217 
>Unformatted:
