From owner-freebsd-hackers@FreeBSD.ORG Sat Mar 13 03:37:00 2010 Return-Path: Delivered-To: freebsd-hackers@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 41E96106566C for ; Sat, 13 Mar 2010 03:37:00 +0000 (UTC) (envelope-from glarkin@FreeBSD.org) Received: from mail1.sourcehosting.net (113901-app1.sourcehosting.net [72.32.213.11]) by mx1.freebsd.org (Postfix) with ESMTP id 1B75D8FC0A for ; Sat, 13 Mar 2010 03:36:59 +0000 (UTC) Received: from 68-189-245-235.dhcp.oxfr.ma.charter.com ([68.189.245.235] helo=cube.entropy.prv) by mail1.sourcehosting.net with esmtp (Exim 4.69 (FreeBSD)) (envelope-from ) id 1NqI9l-000JdK-EH; Fri, 12 Mar 2010 22:36:59 -0500 Received: from [127.0.0.1] (fireball.entropy.prv [192.168.1.12]) by cube.entropy.prv (Postfix) with ESMTP id 48D2F3CC929B; Fri, 12 Mar 2010 22:36:53 -0500 (EST) Message-ID: <4B9B0856.4090301@FreeBSD.org> Date: Fri, 12 Mar 2010 22:36:54 -0500 From: Greg Larkin Organization: The FreeBSD Project User-Agent: Thunderbird 2.0.0.23 (Windows/20090812) MIME-Version: 1.0 To: xorquewasp@googlemail.com 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> In-Reply-To: <20100313022817.GA40872@logik.internal.network> X-Enigmail-Version: 0.96.0 OpenPGP: id=1C940290 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Spam-Score: -0.3 (/) Cc: freebsd-hackers@FreeBSD.org Subject: Re: Something rotten in ports (was Re: package building failure irritation) X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: glarkin@FreeBSD.org List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 13 Mar 2010 03:37:00 -0000 -----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-----