1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-12 03:00:28 +00:00

www/deno: Fix build on aarch64

- Remove file-compilation-dir as it causes build failure on aarch64

While here:
  - drop binutils dependency, we can use llvm-ar instead
  - bump python version to 3.7
This commit is contained in:
Mikael Urankar 2022-06-03 15:40:26 +02:00
parent ec8a3fb710
commit 95d5bef07d
3 changed files with 11 additions and 9 deletions

View File

@ -1,6 +1,7 @@
PORTNAME= deno
DISTVERSIONPREFIX= v
DISTVERSION= 1.22.1
PORTREVIONS= 1
CATEGORIES= www
MAINTAINER= mikael@FreeBSD.org
@ -11,11 +12,10 @@ LICENSE_FILE= ${WRKSRC}/LICENSE.md
BROKEN_i386= cargo:warning=c/freebsd.c:31:10: error: conflicting types for 'get_cpu_speed'
BUILD_DEPENDS= binutils>0:devel/binutils \
gn:devel/gn \
BUILD_DEPENDS= gn:devel/gn \
libunwind>0:devel/libunwind
USES= cargo cpe gmake gnome ninja:build pkgconfig:build python:3.6+,build
USES= cargo cpe gmake gnome ninja:build pkgconfig:build python:3.7+,build
USE_GITHUB= yes
GH_ACCOUNT= denoland
@ -531,7 +531,6 @@ CARGO_ENV+= RUSTC_BOOTSTRAP=1
post-patch:
${REINPLACE_CMD} "s|%%LOCALBASE%%|${LOCALBASE}|" \
${WRKSRC}/cargo-crates/v8-${V8_VERS}/build/toolchain/gcc_toolchain.gni \
${WRKSRC}/cargo-crates/v8-${V8_VERS}/buildtools/third_party/libc++/BUILD.gn
do-install:

View File

@ -1,5 +1,5 @@
--- cargo-crates/v8-0.43.1/build/config/compiler/BUILD.gn.orig 2021-02-25 20:45:34 UTC
+++ cargo-crates/v8-0.43.1/build/config/compiler/BUILD.gn
--- cargo-crates/v8-0.43.1/build/config/compiler/BUILD.gn.orig 1973-11-29 22:33:09.000000000 +0100
+++ cargo-crates/v8-0.43.1/build/config/compiler/BUILD.gn 2022-05-31 15:40:38.996239000 +0200
@@ -137,7 +137,7 @@ declare_args() {
#
# TODO(crbug.com/1131993): Enabling this when 'is_android' is true breaks
@ -45,9 +45,12 @@
cflags += [ "--target=aarch64-linux-gnu" ]
ldflags += [ "--target=aarch64-linux-gnu" ]
}
@@ -1265,7 +1265,7 @@ config("compiler_deterministic") {
@@ -1263,9 +1263,9 @@ config("compiler_deterministic") {
} else {
# -ffile-compilation-dir is an alias for both -fdebug-compilation-dir=
# and -fcoverage-compilation-dir=.
cflags += [ "-ffile-compilation-dir=." ]
- cflags += [ "-ffile-compilation-dir=." ]
+# cflags += [ "-ffile-compilation-dir=." ]
}
- if (!is_win) {
+ if (!is_win && !is_bsd) {

View File

@ -29,7 +29,7 @@
+ cxx = "c++"
+ ld = cxx
+ readelf = "readelf"
+ ar = "${prefix}/ar"
+ ar = "llvm-ar"
+ nm = "${prefix}nm"
+ } else {
+ prefix = rebase_path("$clang_base_path/bin", root_build_dir)