From owner-freebsd-ports Mon Oct 30 6:17:27 2000 Delivered-To: freebsd-ports@freebsd.org Received: from webcom.it (tech-external-hq.worldonline.it [213.205.0.242]) by hub.freebsd.org (Postfix) with SMTP id 5A3E737B479 for ; Mon, 30 Oct 2000 06:17:24 -0800 (PST) Received: (qmail 18905 invoked by uid 1000); 30 Oct 2000 14:17:32 -0000 Message-ID: <20001030141732.18904.qmail@webcom.it> From: andrea@webcom.it Subject: Problems in ports with partial tree To: freebsd-ports@freebsd.org Date: Mon, 30 Oct 2000 15:17:32 +0100 (CET) X-Mailer: ELM [version 2.4ME+ PL82 (25)] MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset=US-ASCII Sender: owner-freebsd-ports@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org Hi! A few weeks ago I started using `refuse' files to avoid downloading ports I'm sure I'll never need (languages I can't speak, for instance). Since then, if I do anything recursive in the ports tree (a make readmes, for instance), problems occur. The biggest one is with make readmes. IF I run that from /usr/ports/www, where I `refuse' w3, I get: [...snip...] echo -n ''"`cd w3; make package-name | sed -e 's/&/\&/g' -e 's/>/\>/g' -e 's/: " >> README.html.tmp cd: can't cd to w3 cat `cd w3; make -V COMMENT` | sed -e 's/&/\&/g' -e 's/>/\>/g' -e 's/> README.html.tmp cd: can't cd to w3 [...snip...] The problem seems to be here: cat `cd w3; make -V COMMENT` | sed -e 's/&/\&/g' -e 's/>/\>/g' -e 's/> README.html.tmp That's because the make gets executed in /usr/ports/www. Couldn't we put an if [ -d w3 ] in front of any statement which could recurse? In fact, I noticed a check for PORTSTOP, but I can't understand its use, nor find any documentation for the various files in Mk. Anbybody can provide any pointers into this? TIA, bye, Andrea -- Give a man a fish and you feed him for a day; teach him to use the Net and he won't bother you for weeks. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-ports" in the body of the message