pkgsrc-Changes-HG archive

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

[pkgsrc/trunk]: pkgsrc/lang wasi-compiler-rt & wasi-libcxx: build fix for fir...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/8e1a11b553dd
branches:  trunk
changeset: 380328:8e1a11b553dd
user:      gutteridge <gutteridge%pkgsrc.org@localhost>
date:      Sat Jun 04 00:34:30 2022 +0000

description:
wasi-compiler-rt & wasi-libcxx: build fix for firefox

BUILDLINK_API_DEPENDS must reflect the exact llvm version, as this is
necessary to force the wasi packages to match, or build failures will
occur, because various commands invoked in the Firefox build process
supply the exact clang version in their path. For instance:

wasm-ld: error: cannot open /usr/pkg/lib/clang/13.0.1/lib/wasi/libclang_rt.builtins-wasm32.a: No such file or directory
clang-13: error: linker command failed with exit code 1 (use -v to see invocation)

(No PKGREVISION bump of www/firefox required, as this is a build-only
dependency, and no other packages presently depend on these.)

diffstat:

 lang/wasi-compiler-rt/buildlink3.mk |  6 ++++--
 lang/wasi-libcxx/buildlink3.mk      |  6 ++++--
 2 files changed, 8 insertions(+), 4 deletions(-)

diffs (40 lines):

diff -r e25c12aa4898 -r 8e1a11b553dd lang/wasi-compiler-rt/buildlink3.mk
--- a/lang/wasi-compiler-rt/buildlink3.mk       Sat Jun 04 00:32:55 2022 +0000
+++ b/lang/wasi-compiler-rt/buildlink3.mk       Sat Jun 04 00:34:30 2022 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: buildlink3.mk,v 1.2 2022/02/04 12:12:27 wiz Exp $
+# $NetBSD: buildlink3.mk,v 1.3 2022/06/04 00:34:30 gutteridge Exp $
 
 BUILDLINK_TREE+=       wasi-compiler-rt
 
@@ -7,7 +7,9 @@
 .if !defined(WASI_COMPILER_RT_BUILDLINK3_MK)
 WASI_COMPILER_RT_BUILDLINK3_MK:=
 
-BUILDLINK_API_DEPENDS.wasi-compiler-rt+=       wasi-compiler-rt>=13.0.0
+# This exact version must be kept in sync with llvm, or firefox
+# minimum build dependencies will be incorrect.
+BUILDLINK_API_DEPENDS.wasi-compiler-rt+=       wasi-compiler-rt>=13.0.1
 BUILDLINK_PKGSRCDIR.wasi-compiler-rt?=         ../../lang/wasi-compiler-rt
 
 .endif # WASI_COMPILER_RT_BUILDLINK3_MK
diff -r e25c12aa4898 -r 8e1a11b553dd lang/wasi-libcxx/buildlink3.mk
--- a/lang/wasi-libcxx/buildlink3.mk    Sat Jun 04 00:32:55 2022 +0000
+++ b/lang/wasi-libcxx/buildlink3.mk    Sat Jun 04 00:34:30 2022 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: buildlink3.mk,v 1.1 2021/12/19 14:12:20 ryoon Exp $
+# $NetBSD: buildlink3.mk,v 1.2 2022/06/04 00:34:31 gutteridge Exp $
 
 BUILDLINK_TREE+=       wasi-libcxx
 
@@ -7,7 +7,9 @@
 .if !defined(WASI_LIBCXX_BUILDLINK3_MK)
 WASI_LIBCXX_BUILDLINK3_MK:=
 
-BUILDLINK_API_DEPENDS.wasi-libcxx+=    wasi-libcxx>=13.0.0
+# This exact version must be kept in sync with llvm, or firefox
+# minimum build dependencies will be incorrect.
+BUILDLINK_API_DEPENDS.wasi-libcxx+=    wasi-libcxx>=13.0.1
 BUILDLINK_PKGSRCDIR.wasi-libcxx?=      ../../lang/wasi-libcxx
 
 .endif # WASI_LIBCXX_BUILDLINK3_MK



Home | Main Index | Thread Index | Old Index