Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 8 Nov 1998 00:25:26 -0600 (CST)
From:      Chris Dillon <cdillon@wolves.k12.mo.us>
To:        Satoshi Asami <asami@FreeBSD.ORG>
Cc:        freebsd-ports@FreeBSD.ORG
Subject:   Re: Way to fetch distfiles for all dependancies?
Message-ID:  <Pine.BSF.4.05.9811072355450.14681-100000@duey.hs.wolves.k12.mo.us>
In-Reply-To: <199811080209.SAA02221@bubble.didi.com>

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



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