Skip to content

Commit

Permalink
updpatch: deno 1.38.0-1
Browse files Browse the repository at this point in the history
- Fix rotten
- Update `makedepends`(add 'cmake' 'protobuf')
- Remove ring v0.16.20 patch as upstream is now using ring = "^0.17.0"
  (Successfully built without this)
  • Loading branch information
aimixsaka authored and felixonmars committed Nov 4, 2023
1 parent 5de0281 commit 094ca37
Showing 1 changed file with 8 additions and 15 deletions.
23 changes: 8 additions & 15 deletions deno/riscv64.patch
Original file line number Diff line number Diff line change
@@ -1,25 +1,17 @@
--- PKGBUILD
+++ PKGBUILD
@@ -11,7 +11,7 @@ url="https://deno.land"
@@ -11,13 +11,26 @@ url="https://deno.land"
license=('MIT')
options=('!lto')
depends=('gcc-libs')
-makedepends=('git' 'python' 'rust' 'nodejs')
+makedepends=('git' 'python' 'rust' 'nodejs' 'gn' 'ninja' 'clang' 'lld')
-makedepends=('git' 'python' 'rust' 'nodejs' 'cmake' 'protobuf')
+makedepends=('git' 'python' 'rust' 'nodejs' 'gn' 'ninja' 'clang' 'lld' 'cmake' 'protobuf')
source=("git+https://github.com/denoland/deno.git#commit=$_commit")
sha512sums=('SKIP')

@@ -19,10 +19,25 @@ prepare() {
cd $pkgname
# https://github.com/denoland/deno/issues/19528
git cherry-pick -n c8dc6b14ec5c1b6de28118ed3b07d037eaaaf702
+ echo -e "\n[patch.crates-io]\nring = { git = 'https://github.com/felixonmars/ring', branch = '0.16.20' }" >> Cargo.toml
+ cargo update -p ring
}

build() {
cd $pkgname
+
+ local _extra_gn_args=(
+ 'custom_toolchain="//build/toolchain/linux/unbundle:default"'
+ 'host_toolchain="//build/toolchain/linux/unbundle:default"'
Expand All @@ -32,6 +24,7 @@
+ export GN=/usr/bin/gn NINJA=/usr/bin/ninja
+ export EXTRA_GN_ARGS="${_extra_gn_args[@]}"
+ export NO_PRINT_GN_ARGS=1
cargo build --release
}

+
# this uses malloc_usable_size, which is incompatible with fortification level 3
export CFLAGS="${CFLAGS/_FORTIFY_SOURCE=3/_FORTIFY_SOURCE=2}"
export CXXFLAGS="${CXXFLAGS/_FORTIFY_SOURCE=3/_FORTIFY_SOURCE=2}"

0 comments on commit 094ca37

Please sign in to comment.