Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 30 Jun 2013 17:52:29 -0500
From:      Vincent Stemen <vince.bsd@hightek.org>
To:        freebsd-ports@freebsd.org
Subject:   Re: Problem building ports in a sandbox/jail using DESTDIR
Message-ID:  <20130630225229.GA25707@quark.hightek.org>
In-Reply-To: <20130630162953.GA23105@quark.hightek.org>
References:  <20130630162953.GA23105@quark.hightek.org>

next in thread | previous in thread | raw e-mail | index | archive | help
On Sun, Jun 30, 2013 at 11:29:53AM -0500, Vincent Stemen wrote:
> Hi.  I am trying to compile ports in a sandbox environment on
> FreeBSD-9.1-RELEASE using a snapshot of ports from 06/27/2013.
> 
> I have a jail file system I setup using my own scripts that I am pointing
> $DESTDIR to.  I am using 'zip' as the port for testing.
> 
> The problem is, I get an error like this and it immediately aborts.
> cd: /tmp/mountpoint.TJizHb/data/freebsd/ports/ports-20130627/archivers/zip: No such file or directory

Disregard.  I resolved it. 

I figured out what the variable expansion is doing for the 'cd' command.
The problem was due to the fact that my /usr/ports is a sym-link to
/data/freebsd/ports/ports-20130627 so ${.CURDIR} didn't coincide with
the default setting of '/usr/ports' for $PORTSDIR, so the substitution,
$${PORTSDIR}${.CURDIR:S|^${PORTSDIR}||}, returned the wrong path.
I just had to set $PORTSDIR to the full real path of the ports
directory.

It would be a nice enhancement to the make file though, to handle
/usr/ports being a sym-link without having to set $PORTSDIR to the full
real path :-).




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