From owner-freebsd-current Sun Oct 29 12:45: 4 2000 Delivered-To: freebsd-current@freebsd.org Received: from webcom.it (unknown [213.205.4.2]) by hub.freebsd.org (Postfix) with SMTP id 617AB37B479 for ; Sun, 29 Oct 2000 12:45:01 -0800 (PST) Received: (qmail 36566 invoked by uid 1000); 29 Oct 2000 20:45:10 -0000 Delivered-To: andrea-unknown@webcom.it Received: (qmail 36547 invoked by alias); 29 Oct 2000 20:43:37 -0000 Delivered-To: freebsd-current@webcom.it Received: (qmail 36544 invoked by uid 1000); 29 Oct 2000 20:43:36 -0000 Message-ID: <20001029204336.36543.qmail@webcom.it> From: andrea@webcom.it Subject: Problems in ports with partial tree To: freebsd-current@webcom.it Date: Sun, 29 Oct 2000 21:43:36 +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-current@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-current" in the body of the message