Hi,

On Sat, Jun 11, 2016 at 09:51:29PM +0100, Stuart Henderson wrote:
> +DISTFILES +=           rustc-bootstrap-${MACHINE_ARCH}-${BV}.tar.gz:0
> 
> dpb fetching is run on all arches, including ones which are not
> listed in "ONLY_FOR_ARCHS", so whatever makes it into DISTFILES
> needs to be fetchable.
> 
> Diff below is probably the easiest way out for now, unless someone
> has a better idea.

lang/ghc has a similar mechanism, just with some more indirection and
iterating over architectures.

So i think your diff is ok.

> Index: Makefile
> ===================================================================
> RCS file: /cvs/ports/lang/rust/Makefile,v
> retrieving revision 1.24
> diff -u -p -r1.24 Makefile
> --- Makefile  9 Jun 2016 04:20:10 -0000       1.24
> +++ Makefile  11 Jun 2016 20:48:33 -0000
> @@ -38,7 +38,9 @@ MASTER_SITES0 =             http://semarie.free.fr/
>  
>  DIST_SUBDIR =                rust
>  DISTFILES =          ${DISTNAME}${EXTRACT_SUFX}
> +.if "${MACHINE_ARCH}" == "amd64"
>  DISTFILES +=         rustc-bootstrap-${MACHINE_ARCH}-${BV}.tar.gz:0
> +.endif
>  
>  SUPDISTFILES =               rustc-bootstrap-amd64-${BV}.tar.gz:0

Reply via email to