Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 12 Mar 2010 22:36:54 -0500
From:      Greg Larkin <glarkin@FreeBSD.org>
To:        xorquewasp@googlemail.com
Cc:        freebsd-hackers@FreeBSD.org
Subject:   Re: Something rotten in ports (was Re: package building failure irritation)
Message-ID:  <4B9B0856.4090301@FreeBSD.org>
In-Reply-To: <20100313022817.GA40872@logik.internal.network>
References:  <20100226163227.GA15162@logik.internal.network>	<4B88074E.7050007@FreeBSD.org>	<20100226222113.GA14592@logik.internal.network>	<4B884D48.90509@FreeBSD.org>	<20100227093409.GA40858@logik.internal.network>	<864ol0w4g5.fsf@ds4.des.no>	<20100304175819.GC31036@logik.internal.network>	<867hpr56ek.fsf@ds4.des.no> <20100313022817.GA40872@logik.internal.network>

next in thread | previous in thread | raw e-mail | index | archive | help
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

xorquewasp@googlemail.com wrote:
[...]
> DISTDIR=       /var/ports/distfiles
> PACKAGES=      /var/ports/packages
> WRKDIRPREFIX=  /var/ports/work
> PORTSDIR=      /var/ports/tree
> 
> jail# vi /etc/profile
> FTP_PASSIVE_MODE=yes
> HTTP_PROXY=10.1.3.3:8080
> export FTP_PASSIVE_MODE
> export HTTP_PROXY
> jail# . /etc/profile
> 
> jail# portsnap -p /var/ports/tree fetch extract
> Looking up portsnap.FreeBSD.org mirrors... 3 mirrors found.
> Fetching public key from portsnap2.FreeBSD.org... done.
> Fetching snapshot tag from portsnap2.FreeBSD.org... done.
> Fetching snapshot metadata... done.
> Fetching snapshot generated at Fri Mar 12 00:22:12 UTC 2010:
> d67bd7a10044c70dc705b2c5b05db32b07ab8bd2262c3e  1% of   61 MB  161 kBps
> ...
> 
> jail# cd /var/ports/tree/graphics/inkscape
> jail# make config-recursive
> jail# make fetch-recursive
> jail# make package-recursive 2>&1 | tee /tmp/inkscape.log
> 
> Of course, at the end of inkscape.log:
> 
[...]
> rmdir: /var/ports/work/var/ports/tree/devel/eggdbus/work: Directory not empty
> *** Error code 1 (ignored)
[...]

Hi xw,

I noticed something strange here.  How is WRKDIR (in this case
"/var/ports/work/var/ports/tree/devel/eggdbus/work") defined?  It looks
like bsd.port.mk combined your WRKDIRPREFIX and PORTSDIR to create that
path, but skimming the code, I can't figure out how it's doing that.
How many levels of that directory tree exist on your system?

If you look at the package-noinstall target in bsd.port.mk, you'll see
the line:

        -@${RMDIR} ${WRKDIR}

and I believe that's the one that throws the "Directory not empty" error.

Have you tried just setting PORTSDIR and letting bsd.port.mk set the
rest of the paths with their defaults that are relative to PORTSDIR?  If
that works, then we can start hunting for places that are not handling
absolute vs. relative paths correctly in bsd.port.mk.

Hope that helps,
Greg
- --
Greg Larkin

http://www.FreeBSD.org/           - The Power To Serve
http://www.sourcehosting.net/     - Ready. Set. Code.
http://twitter.com/sourcehosting/ - Follow me, follow you
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.7 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iD8DBQFLmwhW0sRouByUApARArf3AJ41IkBVHYDmWcDH+JIMSpf15HrvogCgg10O
igt2EmedReaASRFsCyn1a3A=
=EgS8
-----END PGP SIGNATURE-----




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