[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

[tor-commits] [tor-browser-build/master] Bug 34013: Bump Node to v10.21.0



commit 15a7d9551bf4c6048caa659d74a689c5dfbe2d4b
Author: Georg Koppen <gk@xxxxxxxxxxxxxx>
Date:   Thu Jun 11 10:14:56 2020 +0000

    Bug 34013: Bump Node to v10.21.0
    
    We add a new project to not interfere with non-mobile toolchain
    requirements for now until both series are moved to the non-ESR release
    train.
---
 projects/fenix-node/build  | 24 ++++++++++++++++++++++++
 projects/fenix-node/config | 18 ++++++++++++++++++
 2 files changed, 42 insertions(+)

diff --git a/projects/fenix-node/build b/projects/fenix-node/build
new file mode 100644
index 0000000..8cc8ea5
--- /dev/null
+++ b/projects/fenix-node/build
@@ -0,0 +1,24 @@
+#!/bin/bash
+[% c("var/set_default_env") -%]
+[% IF c("var/linux") %]
+  # We need a link to our GCC, otherwise the system cc gets used which points to
+  # /usr/bin/gcc.
+  [% pc('gcc', 'var/setup', { compiler_tarfile => c('input_files_by_name/gcc'),
+                              hardened_gcc => 0 }) %]
+  ln -s gcc /var/tmp/dist/gcc/bin/cc
+  tar -C /var/tmp/dist -xf $rootdir/[% c('input_files_by_name/binutils') %]
+  export PATH="/var/tmp/dist/binutils/bin:$PATH"
+[% END -%]
+distdir=/var/tmp/dist/[% project %]
+tar -xf [% c('input_files_by_name/node') %]
+cd node-[% c('version') %]
+
+./configure --prefix=$distdir
+make -j[% c("buildconf/num_procs") %]
+make install
+
+cd /var/tmp/dist
+[% c('tar', {
+        tar_src => [ project ],
+        tar_args => '-czf ' _ dest_dir _ '/' _ c('filename'),
+    }) %]
diff --git a/projects/fenix-node/config b/projects/fenix-node/config
new file mode 100644
index 0000000..b3534f4
--- /dev/null
+++ b/projects/fenix-node/config
@@ -0,0 +1,18 @@
+# vim: filetype=yaml sw=2
+version: v10.21.0
+filename: '[% project %]-[% c("version") %]-[% c("var/build_id") %].tar.gz'
+var:
+  container:
+    use_container: 1
+
+input_files:
+  - project: container-image
+  - project: binutils
+    name: binutils
+    enable: '[% c("var/linux") %]'
+  - project: '[% c("var/compiler") %]'
+    name: '[% c("var/compiler") %]'
+    enable: '[% c("var/linux") %]'
+  - URL: 'https://nodejs.org/download/release/[% c("version") %]/node-[% c("version") %].tar.xz'
+    sha256sum: 26b01fa28338cacaa8a66d7963ab2514e81678c268ab52ec55dcf937aadcb73b
+    name: node



_______________________________________________
tor-commits mailing list
tor-commits@xxxxxxxxxxxxxxxxxxxx
https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-commits