From owner-freebsd-doc Sat Sep 30 12:49:26 2000 Delivered-To: freebsd-doc@freebsd.org Received: from 200-227-201-150-as.acessonet.com.br (200-227-201-150-as.acessonet.com.br [200.227.201.150]) by hub.freebsd.org (Postfix) with ESMTP id B0A6837B66C for ; Sat, 30 Sep 2000 12:49:21 -0700 (PDT) Received: (qmail 17460 invoked by uid 1001); 30 Sep 2000 19:48:41 -0000 From: "Mario Sergio Fujikawa Ferreira" Date: Sat, 30 Sep 2000 16:48:19 -0300 To: Satoshi - Ports Wraith - Asami Cc: doc@freebsd.org, ports@freebsd.org Subject: Re: RFC: Ports layout reorganization (Re: ports tree idea: Combine DESCR and COMMENT) Message-ID: <20000930164819.A17454@Fedaykin.here> References: <"Jeffrey <4.3.2.20000929140626.00c3fa00@207.227.119.2> <4.3.2.20000929220000.00e0d7e0@207.227.119.2> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.4i In-Reply-To: ; from asami@FreeBSD.ORG on Sat, Sep 30, 2000 at 04:26:51AM -0700 Sender: owner-freebsd-doc@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org On Sat, Sep 30, 2000 at 04:26:51AM -0700, Satoshi - Ports Wraith - Asami wrote: > The %%DESCR%% substitution in README.port actually doesn't work when > MASTERDIR is set relative to ${PORTSDIR} and ${PORTSDIR} is a symlink > to something else, but you are not supposed to use ${PORTSDIR} in a > MASTERDIR definition so we should be safe. (The old README.port > wouldn't have worked at all for ports with MASTERDIR or its own idea > of DESCR anyway.) On the light of this observation, I am proposing the following patch to the porters-handbook. Or, something like that. Regards, Mario Ferreira ---- diff -ruN /usr/doc/en_US.ISO_8859-1/books/porters-handbook/book.sgml en_US.ISO_8859-1/books/porters-handbook/book.sgml --- /usr/doc/en_US.ISO_8859-1/books/porters-handbook/book.sgml Thu Sep 28 00:31:29 2000 +++ en_US.ISO_8859-1/books/porters-handbook/book.sgml Sat Sep 30 16:34:19 2000 @@ -1321,6 +1321,13 @@ PKGNAMESUFFIX so the packages will have different names. + However, your port should not use ${PORTSDIR} to set + MASTERDIR as pointed out by the Ports + Wraith. Use a relative definition if you must, e.g., + MASTERDIR=${.CURDIR}/../other_port_dir_relative_path/. + Just check the example below. + + This will be best demonstrated by an example. This is part of japanese/xdvi300/Makefile; To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-doc" in the body of the message