Date: Sat, 28 Dec 2002 03:55:52 -0200 From: Mario Sergio Fujikawa Ferreira <lioux@FreeBSD.org> To: Daniel Eischen <eischen@pcnet1.pcnet.com> Cc: Daniel Eischen <eischen@vigrid.com>, ports@FreeBSD.org Subject: Re: Help with MASTER_SITE_SUBDIR Message-ID: <20021228055615.1008.qmail@exxodus.fedaykin.here> In-Reply-To: <Pine.GSO.4.10.10212272353090.74-100000@pcnet1.pcnet.com> References: <20021228010652.3617.qmail@exxodus.fedaykin.here> <Pine.GSO.4.10.10212272353090.74-100000@pcnet1.pcnet.com>
next in thread | previous in thread | raw e-mail | index | archive | help
On Sat, Dec 28, 2002 at 12:12:33AM -0500, Daniel Eischen wrote: > 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. Well, there are simple examples and the full examples there. If you think we can improve the text, I'm all open to suggestions. :) > <sigh> ports are really more complicated than they should^Wused > to be. Well, MASTER_SITES:n is a simple mechanism IMHO. Though, I can understand that using it in advanced scenarios can be quite confusing. > > 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 :-) Please DON'T. Your MASTER_SITES expands to ftp://cs.nyu.edu/pub/gnat/3.15p/:gnat ftp://ftp.FreeBSD.org/pub/FreeBSD/ports/local-distfiles/%SUBDIR%/ ftp://ftp.se.FreeBSD.org/pub/FreeBSD/ports/local-distfiles/%SUBDIR%/ ftp://ftp.uk.FreeBSD.org/pub/FreeBSD/ports/local-distfiles/%SUBDIR%/ ftp://ftp.ru.FreeBSD.org/pub/FreeBSD/ports/local-distfiles/%SUBDIR%/ ftp://ftp.jp.FreeBSD.org/pub/FreeBSD/ports/local-distfiles/%SUBDIR%/ ftp://ftp.tw.FreeBSD.org/pub/FreeBSD/ports/local-distfiles/%SUBDIR%/:boot ftp://ftp.gnu.org/gnu/%SUBDIR%/ ftp://gatekeeper.dec.com/pub/GNU/%SUBDIR%/ ftp://ftp.uu.net/archive/systems/gnu/%SUBDIR%/ ftp://ftp.de.uu.net/pub/gnu/%SUBDIR%/ ftp://ftp.funet.fi/pub/gnu/prep/%SUBDIR%/ ftp://ftp.leo.org/pub/comp/os/unix/gnu/%SUBDIR%/ ftp://ftp.digex.net/pub/gnu/%SUBDIR%/ ftp://ftp.wustl.edu/mirrors/gnu/%SUBDIR%/ ftp://ftp.kddlabs.co.jp/pub/gnu/%SUBDIR%/ ftp://ftp.dti.ad.jp/pub/GNU/%SUBDIR%/ ftp://www.dnsbalance.ring.gr.jp/pub/GNU/%SUBDIR%/ http://www.t.ring.gr.jp/archives/GNU/%SUBDIR%/ ftp://ftp.mirror.ac.uk/sites/ftp.gnu.org/gnu/%SUBDIR%/ ftp://sunsite.org.uk/Mirrors/ftp.gnu.org/pub/gnu/%SUBDIR%/ ftp://ftp.informatik.hu-berlin.de/pub/gnu/%SUBDIR%/ ftp://ftp.rediris.es/mirror/gnu/%SUBDIR%/ ftp://ftp.lip6.fr/pub/gnu/%SUBDIR%/ ftp://ftp.chg.ru/pub/gnu/%SUBDIR%/:gcc You want all options to contain the appropriate :something, don't you? MASTER_SITES= ftp://cs.nyu.edu/pub/gnat/${PORTVERSION}/:gnat \ ${MASTER_SITE_LOCAL:S/$/:boot/} \ ${MASTER_SITE_GNU:S/$/:gcc/} expands to the correct ftp://cs.nyu.edu/pub/gnat/3.15p/:gnat ftp://ftp.FreeBSD.org/pub/FreeBSD/ports/local-distfiles/%SUBDIR%/:boot ftp://ftp.se.FreeBSD.org/pub/FreeBSD/ports/local-distfiles/%SUBDIR%/:boot ftp://ftp.uk.FreeBSD.org/pub/FreeBSD/ports/local-distfiles/%SUBDIR%/:boot ftp://ftp.ru.FreeBSD.org/pub/FreeBSD/ports/local-distfiles/%SUBDIR%/:boot ftp://ftp.jp.FreeBSD.org/pub/FreeBSD/ports/local-distfiles/%SUBDIR%/:boot ftp://ftp.tw.FreeBSD.org/pub/FreeBSD/ports/local-distfiles/%SUBDIR%/:boot ftp://ftp.gnu.org/gnu/%SUBDIR%/:gcc ftp://gatekeeper.dec.com/pub/GNU/%SUBDIR%/:gcc ftp://ftp.uu.net/archive/systems/gnu/%SUBDIR%/:gcc ftp://ftp.de.uu.net/pub/gnu/%SUBDIR%/:gcc ftp://ftp.funet.fi/pub/gnu/prep/%SUBDIR%/:gcc ftp://ftp.leo.org/pub/comp/os/unix/gnu/%SUBDIR%/:gcc ftp://ftp.digex.net/pub/gnu/%SUBDIR%/:gcc ftp://ftp.wustl.edu/mirrors/gnu/%SUBDIR%/:gcc ftp://ftp.kddlabs.co.jp/pub/gnu/%SUBDIR%/:gcc ftp://ftp.dti.ad.jp/pub/GNU/%SUBDIR%/:gcc ftp://www.dnsbalance.ring.gr.jp/pub/GNU/%SUBDIR%/:gcc http://www.t.ring.gr.jp/archives/GNU/%SUBDIR%/:gcc ftp://ftp.mirror.ac.uk/sites/ftp.gnu.org/gnu/%SUBDIR%/:gcc ftp://sunsite.org.uk/Mirrors/ftp.gnu.org/pub/gnu/%SUBDIR%/:gcc ftp://ftp.informatik.hu-berlin.de/pub/gnu/%SUBDIR%/:gcc ftp://ftp.rediris.es/mirror/gnu/%SUBDIR%/:gcc ftp://ftp.lip6.fr/pub/gnu/%SUBDIR%/:gcc ftp://ftp.chg.ru/pub/gnu/%SUBDIR%/:gcc That's the reason for the S/$/:tag/. Just a tip from make(1) land. :) Regards, -- Mario S F Ferreira - DF - Brazil - "I guess this is a signature." Computer Science Undergraduate | FreeBSD Committer | CS Developer flames to beloved devnull@someotherworldbeloworabove.org feature, n: a documented bug | bug, n: an undocumented feature 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?20021228055615.1008.qmail>