From owner-freebsd-ports Fri Dec 27 21:13: 4 2002 Delivered-To: freebsd-ports@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id B846D37B401; Fri, 27 Dec 2002 21:13:02 -0800 (PST) Received: from mail.pcnet.com (mail.pcnet.com [204.213.232.4]) by mx1.FreeBSD.org (Postfix) with ESMTP id 1CFC043EC2; Fri, 27 Dec 2002 21:13:02 -0800 (PST) (envelope-from eischen@pcnet1.pcnet.com) Received: from localhost (eischen@localhost) by mail.pcnet.com (8.12.3/8.12.1) with ESMTP id gBS5CtnO001736; Sat, 28 Dec 2002 00:12:55 -0500 (EST) Date: Sat, 28 Dec 2002 00:12:55 -0500 (EST) From: Daniel Eischen To: Mario Sergio Fujikawa Ferreira Cc: Daniel Eischen , ports@FreeBSD.org Subject: Re: Help with MASTER_SITE_SUBDIR In-Reply-To: <20021228010652.3617.qmail@exxodus.fedaykin.here> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-ports@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org On Fri, 27 Dec 2002, Mario Sergio Fujikawa Ferreira wrote: > Hi, > > On Fri, Dec 27, 2002 at 06:22:57PM -0500, Daniel Eischen wrote: > > On Fri, 27 Dec 2002, Pete Fritchman wrote: > > > > > ++ 27/12/02 17:11 -0500 - Daniel Eischen: > > > | > | Shouldn't it try appending MASTER_SITE_SUBDIRs before falling > > > | > | back to ftp.FreeBSD.org? > > > | > > > > | > You have to include %SUBDIR% where you want the MASTER_SITE_SUBDIR > > > | > directories to be inserted. > > > | > > > | Huh? Please elaborate. I don't see any use of %SUBDIR% in > > > | lang/gcc28/Makefile. From everything I've seen, one only needs > > > | to set MASTER_SITE_SUBDIR and ports/Mk/*.mk is suppose to take > > > | care of the rest. > > > > > > But it's there, from gcc28/Makefile: > > > > > > MASTER_SITES= ${MASTER_SITE_GNU} > > > MASTER_SITE_SUBDIR= gcc > > > > Yes, I know that much. Please look at lang/Makefile. I have: > > > > MASTER_SITES= ftp://cs.nyu.edu/pub/gnat/${PORTVERSION}/:gnat \ > > ${MASTER_SITE_LOCAL}:boot \ > > ${MASTER_SITE_GNU}:gcc > > MASTER_SITE_SUBDIR= gcc deischen/gcc . > > > > It doesn't work as advertised. Try it from lang/gnat. > > This produces the following fetching list. I am > not this is what you wanted to do. > > ftp://cs.nyu.edu/pub/gnat/3.15p/gnat-3.15p-src.tgz > ftp://ftp.FreeBSD.org/pub/FreeBSD/ports/distfiles/gnat-3.15p-src.tgz > ftp://ftp.chg.ru/pub/gnu/gcc-2.8.1.tar.gz > ftp://ftp.FreeBSD.org/pub/FreeBSD/ports/distfiles/gcc-2.8.1.tar.gz > ftp://ftp.tw.FreeBSD.org/pub/FreeBSD/ports/local-distfiles/gnat-3.15p-boot.tar.gz > ftp://ftp.FreeBSD.org/pub/FreeBSD/ports/distfiles/gnat-3.15p-boot.tar.gz > > You should have said you were trying to use MASTER_SITES:n. > Check the temporary Porter's Handbook entry on MASTER_SITES:n > on my home page. I'll add this entry to the official Porter's Handbook > over the weekend. Well, it's not totally clear from that either, but at least it gives you some idea as to what to try. ports are really more complicated than they should^Wused to be. > MASTER_SITES= ftp://cs.nyu.edu/pub/gnat/${PORTVERSION}/:gnat \ > ${MASTER_SITE_LOCAL:S/$/:boot/} \ > ${MASTER_SITE_GNU:S/$/:gcc/} > MASTER_SITE_SUBDIR= gcc/:gcc \ > deischen/gcc/:boot deischen/:boot Why do I need "${MASTER_SITE_LOCAL:S/$/:boot/}" and "${MASTER_SITE_GNU:S/$/:gcc/}" instead of just "${MASTER_SITE_LOCAL}:boot" and "${MASTER_SITE_GNU}:gcc"? The latter seem to work just fine when using MASTER_SITE_SUBDIR as you have above. That is, the following seems to work: MASTER_SITES= ftp://cs.nyu.edu/pub/gnat/${PORTVERSION}/:gnat \ ${MASTER_SITE_LOCAL}:boot \ ${MASTER_SITE_GNU}:gcc MASTER_SITE_SUBDIR= gcc/:gcc deischen/gcc/:boot I'll commit the above. Thanks for the help :-) -- Dan Eischen To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-ports" in the body of the message