Re: Screwy behavior in ports framework

From: Erwin Lansing <erwin_at_FreeBSD.org>
Date: Tue, 13 Sep 2011 09:26:54 +0200
On Tue, Sep 13, 2011 at 06:57:04AM +0000,  wrote:
> I just installed FreeBSD 9.0-BETA2 last night, now I try to build ports starting with Perl 5.14.1 (successful), then Python 2.7 fails on something dubious, but when I try to build Lynx, ports framework can't find a directory right under its nose.  Problem is with dependency libiconv-1.13.1_1.  I am using the ports tree from BETA1, from portsnap, hence ports directory is /BETA1/usr/ports, BETA1 being the BETA1 partition/file system.  My /etc/make.conf is
> 
> 
> PORTSDIR=/BETA1/usr/ports
> PACKAGES=/usr/packages
> WRKDIR=workb2
> # added by use.perl 2011-09-13 02:49:43
> PERL_VERSION=5.14.1
> 
> Error screen shows, copied with the mouse, thanks to moused:

[snip]
> 
> ===>  Applying distribution patches for libiconv-1.13.1_1
> patch: **** can't cd to workb2/libiconv-1.13.1: No such file or directory
> *** Error code 1
> 
> Stop in /BETA1/usr/ports/converters/libiconv.
> *** Error code 1
> 

WKRDIR needs to be an absolute path and will break when it moves up the
tree to install dependencies.  The most likely fix is to adjust the
default value ${WRKDIRPREFIX}${.CURDIR}/work to your liking, but what
you probably want is to set WRKDIRPREFIX to say /BETA1/workb2/ or
similar.

Erwin

-- 
Erwin Lansing                                   http://droso.org
Prediction is very difficult
especially about the future                    erwin_at_FreeBSD.org
Received on Tue Sep 13 2011 - 05:26:55 UTC

This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:40:17 UTC