From owner-freebsd-ports Sat Nov 7 22:25:50 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id WAA07319 for freebsd-ports-outgoing; Sat, 7 Nov 1998 22:25:50 -0800 (PST) (envelope-from owner-freebsd-ports@FreeBSD.ORG) Received: from duey.hs.wolves.k12.mo.us (duey.hs.wolves.k12.mo.us [207.160.214.9]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id WAA07296; Sat, 7 Nov 1998 22:25:42 -0800 (PST) (envelope-from cdillon@wolves.k12.mo.us) Received: from duey.hs.wolves.k12.mo.us (cdillon@duey.hs.wolves.k12.mo.us [207.160.214.9]) by duey.hs.wolves.k12.mo.us (8.8.7/8.8.7) with ESMTP id AAA15474; Sun, 8 Nov 1998 00:25:26 -0600 (CST) (envelope-from cdillon@wolves.k12.mo.us) Date: Sun, 8 Nov 1998 00:25:26 -0600 (CST) From: Chris Dillon X-Sender: cdillon@duey.hs.wolves.k12.mo.us To: Satoshi Asami cc: freebsd-ports@FreeBSD.ORG Subject: Re: Way to fetch distfiles for all dependancies? In-Reply-To: <199811080209.SAA02221@bubble.didi.com> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-ports@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org On Sat, 7 Nov 1998, Satoshi Asami wrote: > * Is there some functionality already existant that I'm missing that can > * do this? If not, how hard would it be to add a target which fetches > > make fetch DEPENDS_TARGET=fetch > Doesn't work here. I think the reason is that only FETCH_DEPENDS are fetched with the fetch target, but not {BUILD|RUN|LIB}_DEPENDS or DEPENDS. If I were to do a 'make all DEPENDS_TARGET=fetch', it would at least partially accomplish the task, by fetching all the FETCH, BUILD and LIB depends, failing the build because the those depends actually won't be there (just fetched), but probably won't ever get the RUN depends, as I think those are part of the install target. Am I wrong? :-) Ah HA! I think I got it after messing with bsd.port.mk a bit more. This is probably entirely the wrong way to go about it, but hey, works for me. Anyone care to do this right and commit it? You can get the idea now of what it does. The only problem with what I just did is no fetch will be done if the dependancy is installed on the local system. This probably means the distfile _is_ there, but then again.... I couldn't come up with a target name better than 'fetch-all-depends' either. Might want to change the name for hysterical reasons. --- /usr/src/share/mk/bsd.port.mk Fri Oct 30 02:28:02 1998 +++ /usr/share/mk/bsd.port.mk Sun Nov 8 00:13:25 1998 @@ -1804,6 +1804,11 @@ @cd ${.CURDIR} && ${MAKE} ${.MAKEFLAGS} build-depends @cd ${.CURDIR} && ${MAKE} ${.MAKEFLAGS} run-depends +.if make(fetch-all-depends) +DEPENDS_TARGET=fetch +DEPENDS_TMP+= ${FETCH_DEPENDS} ${BUILD_DEPENDS} ${LIB_DEPENDS} ${RUN_DEPENDS} ${MISC_DEPENDS} ${DEPENDS} +.endif + .if make(fetch-depends) DEPENDS_TMP+= ${FETCH_DEPENDS} .endif @@ -1860,6 +1865,7 @@ @${DO_NADA} .endif +fetch-all-depends: _DEPENDS_USE fetch-depends: _DEPENDS_USE build-depends: _DEPENDS_USE run-depends: _DEPENDS_USE Yeah yeah, nasty hack by some guy who didn't know what he was doing... Is this at least enough of a start for someone who knows what they're doing to take over? -- Chris Dillon - cdillon@wolves.k12.mo.us - cdillon@inter-linc.net /* FreeBSD: The fastest and most stable server OS on the planet. For Intel x86 and compatibles (SPARC and Alpha under development) ( http://www.freebsd.org ) */ To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-ports" in the body of the message