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

[tor-commits] [tor-browser-build/master] Bug 34388: Update lucetc and wasi-sdk projects to latest ESR 78 code



commit 7c462d7a3ba54e10f3df39f577072c4ac3f53a5c
Author: Georg Koppen <gk@xxxxxxxxxxxxxx>
Date:   Tue Jun 9 08:39:04 2020 +0000

    Bug 34388: Update lucetc and wasi-sdk projects to latest ESR 78 code
    
    We "re-use" the same vendored tarball filename for now as lucetc has not
    been used previously anyway.
---
 projects/fenix-rust/config   | 4 ++--
 projects/lucetc/build        | 4 +++-
 projects/lucetc/config       | 8 ++------
 projects/rust/config         | 4 ++--
 projects/wasi-sysroot/build  | 2 ++
 projects/wasi-sysroot/config | 2 +-
 6 files changed, 12 insertions(+), 12 deletions(-)

diff --git a/projects/fenix-rust/config b/projects/fenix-rust/config
index 9ad9908..df0ba86 100644
--- a/projects/fenix-rust/config
+++ b/projects/fenix-rust/config
@@ -2,8 +2,8 @@
 filename: '[% project %]-[% c("version") %]-[% c("var/build_id") %].tar.gz'
 version: '[% c("input_file_var/rust_version") %]'
 
-# those values can be changed from the input_files section of other
-# projects. See projects/lucetc/config and bug 32436.
+# Those values can be changed from the input_files section of other
+# projects. See bug 32436.
 input_file_var:
   rust_version: 1.43.0
   prev_version: 1.42.0
diff --git a/projects/lucetc/build b/projects/lucetc/build
index 0157cc9..3f835bd 100644
--- a/projects/lucetc/build
+++ b/projects/lucetc/build
@@ -13,11 +13,12 @@ tar -C /var/tmp/dist -xf [% c('input_files_by_name/wasi-sysroot') %]
 export PATH="/var/tmp/dist/cmake/bin:/var/tmp/dist/clang/bin:/var/tmp/dist/binutils/bin:/var/tmp/dist/rust/bin:$PATH"
 export CC=$distdir/clang/bin/clang
 export CFLAGS="-L$distdir/clang/lib"
-export CXXFLAGS=$CFLAGS
 export CXX=$distdir/clang/bin/clang++
+export CXXFLAGS=$CFLAGS
 export AR=$distdir/clang/bin/llvm-ar
 export RUSTFLAGS="-C linker=$CXX -C link-arg=$CXXFLAGS"
 export LUCET_PREFIX=$distdir/[% project %]
+# XXX: Why do we need that when Mozilla doesn't? See: taskcluster/scripts/misc/build-lucetc.sh
 export WASI_SYSROOT=$distdir/wasi-sysroot
 
 mkdir -p /var/tmp/build
@@ -39,6 +40,7 @@ directory = "/var/tmp/build/lucetc/vendor"
 EOF
 
 make -j[% c("buildconf/num_procs") %] build
+# XXX: Should not be needed, just the lucetc binary, see: taskcluster/scripts/misc/build-lucetc.sh
 make install
 
 cd $distdir
diff --git a/projects/lucetc/config b/projects/lucetc/config
index 647d83f..f60629e 100644
--- a/projects/lucetc/config
+++ b/projects/lucetc/config
@@ -1,7 +1,7 @@
 # vim: filetype=yaml sw=2
 filename: '[% project %]-[% c("version") %]-[% c("var/osname") %]-[% c("var/build_id") %]'
 version: '[% c("abbrev") %]'
-git_hash: 5c22392b5b1aaa60e915c75e92b57391e1e61e6d
+git_hash: a0a1ce981638109f1f76cd1eecf17a0436a20055
 git_url: https://github.com/PLSysSec/lucet_sandbox_compiler/
 git_submodule: 1
 
@@ -23,13 +23,9 @@ input_files:
     project: binutils
   - name: rust
     project: rust
-    input_file_var:
-      # lucetc needs Rust >= 1.36.0
-      rust_version: 1.36.0
-      prev_version: 1.35.0
   - name: wasi-sysroot
     project: wasi-sysroot
   # `cargo vendor vendor` in the `lucetc-sandbox-compiler` directory has vendored
   # the sources.
   - URL: https://people.torproject.org/~gk/mirrors/sources/lucetc-vendor.tar.bz2
-    sha256sum: 5a7802834d0d4b9210f323cf69cc305946f22dba4ddaf2c4c0eb6d3621da2c2a
+    sha256sum: 12ba97fca12177e7ed5b5409fcfdbd31dc7db2e82282768d99dee5bcb1b1246a
diff --git a/projects/rust/config b/projects/rust/config
index 3ffcd58..4144b17 100644
--- a/projects/rust/config
+++ b/projects/rust/config
@@ -2,8 +2,8 @@
 filename: '[% project %]-[% c("version") %]-[% c("var/build_id") %].tar.gz'
 version: '[% c("input_file_var/rust_version") %]'
 
-# those values can be changed from the input_files section of other
-# projects. See projects/lucetc/config and bug 32436.
+# Those values can be changed from the input_files section of other
+# projects. See bug 32436.
 input_file_var:
   rust_version: 1.41.1
   prev_version: 1.40.0
diff --git a/projects/wasi-sysroot/build b/projects/wasi-sysroot/build
index 5ea885c..6cdcf2f 100644
--- a/projects/wasi-sysroot/build
+++ b/projects/wasi-sysroot/build
@@ -23,6 +23,8 @@ cd $builddir
 # hard-code the version for now.
 patch -p1 < $rootdir/no-git.patch
 
+# XXX: We don't want to use the clang 9.0 wasi-sdk would use, see:
+# https://bugzilla.mozilla.org/show_bug.cgi?id=1605708
 make -j[% c("buildconf/num_procs") %] PREFIX=$distdir/[% project %]
 
 cd $distdir
diff --git a/projects/wasi-sysroot/config b/projects/wasi-sysroot/config
index 512769b..8b3ae15 100644
--- a/projects/wasi-sysroot/config
+++ b/projects/wasi-sysroot/config
@@ -1,7 +1,7 @@
 # vim: filetype=yaml sw=2
 filename: '[% project %]-[% c("version") %]-[% c("var/osname") %]-[% c("var/build_id") %]'
 version: '[% c("abbrev") %]'
-git_hash: 87b7a019472770f08d49cf3b558867dc76ea74eb
+git_hash: 5225b05436ce57f01fe649f411f3ff701246628b
 git_url: https://github.com/CraneStation/wasi-sdk
 git_submodule: 1
 



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