pkgsrc-Users archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: lang/rust build failure



Hi,

Please commit your patch.

Thank you.

Adam <adam%netbsd.org@localhost> writes:

>> FWIW I built rust 1.41.0:
>> ...
>> $ ls -l /usr/pkg/bin/rustc
>> -rwxr-xr-x  1 root  wheel  13808 Feb 18 23:11 /usr/pkg/bin/rustc
>> $ rustc --version
>> rustc 1.41.0
>> $ uname -a
>> NetBSD ymir 9.99.47 NetBSD 9.99.47 (GENERIC) #9: Thu Feb 20 10:50:46
>> GMT 2020  sysbuild@ymir:/home/sysbuild/amd64/obj/home/sysbuild/src/sys/arch/amd64/compile/GENERIC
>> amd64
>> .....
>> 
>> without any problems.
>
> This fixes the problem. Also, I Python 3.8 seems to work as well. Commit?
>
> Adam
>
>
>
> ===================================================================
> RCS file: /cvsroot/pkgsrc/lang/rust/Makefile,v
> retrieving revision 1.140
> diff -u -r1.140 Makefile
> --- Makefile	20 Feb 2020 14:00:49 -0000	1.140
> +++ Makefile	21 Feb 2020 14:32:12 -0000
> @@ -2,7 +2,6 @@
>  
>  DISTNAME=	rustc-1.41.0-src
>  PKGNAME=	${DISTNAME:S/rustc/rust/:S/-src//}
> -#PKGREVISION=	2
>  CATEGORIES=	lang
>  MASTER_SITES=	http://static.rust-lang.org/dist/
>  
> @@ -24,7 +23,6 @@
>  
>  HAS_CONFIGURE=			yes
>  PYTHON_FOR_BUILD_ONLY=		yes
> -PYTHON_VERSIONS_ACCEPTED=	27
>  CONFIG_SHELL=			${PYTHONBIN}
>  CONFIGURE_SCRIPT=		src/bootstrap/configure.py
>  CONFIGURE_ARGS+=		--prefix=${PREFIX}
> Index: options.mk
> ===================================================================
> RCS file: /cvsroot/pkgsrc/lang/rust/options.mk,v
> retrieving revision 1.5
> diff -u -r1.5 options.mk
> --- options.mk	9 Sep 2019 16:19:49 -0000	1.5
> +++ options.mk	21 Feb 2020 14:32:12 -0000
> @@ -29,4 +29,6 @@
>  .include "../../lang/llvm/buildlink3.mk"
>  CONFIGURE_ARGS+=	--enable-llvm-link-shared
>  CONFIGURE_ARGS+=	--llvm-root=${BUILDLINK_PREFIX.llvm}
> +# XXX: fix for Rust 1.41.0 https://github.com/rust-lang/rust/issues/68714
> +MAKE_ENV+=	LIBRARY_PATH=${BUILDLINK_PREFIX.llvm}/lib
>  .endif
>

-- 
Ryo ONODERA // ryo%tetera.org@localhost
PGP fingerprint = 82A2 DC91 76E0 A10A 8ABB  FD1B F404 27FA C7D1 15F3


Home | Main Index | Thread Index | Old Index