Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 28 Dec 2002 00:12:55 -0500 (EST)
From:      Daniel Eischen <eischen@pcnet1.pcnet.com>
To:        Mario Sergio Fujikawa Ferreira <lioux@FreeBSD.org>
Cc:        Daniel Eischen <eischen@vigrid.com>, ports@FreeBSD.org
Subject:   Re: Help with MASTER_SITE_SUBDIR
Message-ID:  <Pine.GSO.4.10.10212272353090.74-100000@pcnet1.pcnet.com>
In-Reply-To: <20021228010652.3617.qmail@exxodus.fedaykin.here>

next in thread | previous in thread | raw e-mail | index | archive | help
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.

<sigh> 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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.GSO.4.10.10212272353090.74-100000>