pkgsrc-Changes-HG archive

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

[pkgsrc/trunk]: pkgsrc/security/tor-browser tor-browser: fix build with rust-...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/242afccc11b7
branches:  trunk
changeset: 770501:242afccc11b7
user:      wiz <wiz%pkgsrc.org@localhost>
date:      Wed Dec 01 13:11:03 2021 +0000

description:
tor-browser: fix build with rust-1.56.1

Based on firefox codebase.

diffstat:

 security/tor-browser/Makefile                                                |   8 ++++-
 security/tor-browser/distinfo                                                |   3 +-
 security/tor-browser/patches/patch-third__party_rust_packed__simd_src_lib.rs |  15 ++++++++++
 3 files changed, 24 insertions(+), 2 deletions(-)

diffs (58 lines):

diff -r 1787bd3a069e -r 242afccc11b7 security/tor-browser/Makefile
--- a/security/tor-browser/Makefile     Wed Dec 01 13:01:12 2021 +0000
+++ b/security/tor-browser/Makefile     Wed Dec 01 13:11:03 2021 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.99 2021/11/01 21:41:59 wiz Exp $
+# $NetBSD: Makefile,v 1.100 2021/12/01 13:11:03 wiz Exp $
 #
 # How to update this package:
 #
@@ -106,6 +106,12 @@
 CKSUMS+=       0e52f6bde42d7bb05c297ce1c25b9879d61b28caba98f6226a152bff538db6c2
 CKSUMS+=       394425b4ba03c21c494e64d993678f7014575b1e3d590b9ee452b5c2d83ec4ac
 
+CKSUM_CRATES+= third_party/rust/packed_simd
+
+# patch-third__party_rust_packed__simd_src_lib.rs
+CKSUMS+=       2924d414fe7d32bb5f0bb92596a5af654f934d92f81dc1fd9b1a6c580388e5bd
+CKSUMS+=       99e70e436baa1d2080a46b38a146522fa6a8f2c60e1fa0a4d3aa125dc425734b
+
 SUBST_CLASSES+=                cksum
 SUBST_STAGE.cksum=     pre-configure
 .for crate in ${CKSUM_CRATES}
diff -r 1787bd3a069e -r 242afccc11b7 security/tor-browser/distinfo
--- a/security/tor-browser/distinfo     Wed Dec 01 13:01:12 2021 +0000
+++ b/security/tor-browser/distinfo     Wed Dec 01 13:11:03 2021 +0000
@@ -1,4 +1,4 @@
-$NetBSD: distinfo,v 1.48 2021/11/01 21:41:59 wiz Exp $
+$NetBSD: distinfo,v 1.49 2021/12/01 13:11:03 wiz Exp $
 
 BLAKE2s (src-firefox-tor-browser-78.15.0esr-10.5-1-build3.tar.xz) = f35856823bffda23781c137230690dc4be8afea35f6cd0a10c130634c2bf88ef
 SHA512 (src-firefox-tor-browser-78.15.0esr-10.5-1-build3.tar.xz) = 16d60827c46244047d0e4f1a78414cecda7c9b1352d379659503bba53483d1d2cfcd0c2905128a2aff8707d61f8623ae54b749422715c87b8b409e53a13a2465
@@ -47,6 +47,7 @@
 SHA1 (patch-third__party_rust_authenticator_src_netbsd_uhid.rs) = e0856c37eb1d73bca431da6048132233eace44bb
 SHA1 (patch-third__party_rust_getrandom_src_lib.rs) = 2ad80d10ebfeef0dc27435fc2c16be7b5e5d444a
 SHA1 (patch-third__party_rust_libc_src_unix_bsd_netbsdlike_netbsd_mod.rs) = 3755f32fea84900cc0f00af3d9f53ed5fcfb0b4b
+SHA1 (patch-third__party_rust_packed__simd_src_lib.rs) = e382f07c37862e25a2e43dcb1bdc733a115a13c2
 SHA1 (patch-toolkit_components_terminator_nsTerminator.cpp) = 5a516d377d491e0504aaf2d7aed04bb9ebeccc56
 SHA1 (patch-toolkit_modules_subprocess_subprocess__shared__unix.js) = 22a39e54e042ab2270a3cb54e4e307c8900cad12
 SHA1 (patch-toolkit_moz.configure) = 00bf26bfa813db8e8c9a1d99629ae948874caf30
diff -r 1787bd3a069e -r 242afccc11b7 security/tor-browser/patches/patch-third__party_rust_packed__simd_src_lib.rs
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/security/tor-browser/patches/patch-third__party_rust_packed__simd_src_lib.rs      Wed Dec 01 13:11:03 2021 +0000
@@ -0,0 +1,15 @@
+$NetBSD: patch-third__party_rust_packed__simd_src_lib.rs,v 1.1 2021/12/01 13:11:03 wiz Exp $
+
+Fix build with rust-1.56.1, based on firefox-95.
+
+--- third_party/rust/packed_simd/src/lib.rs.orig       2021-10-22 11:38:34.000000000 +0000
++++ third_party/rust/packed_simd/src/lib.rs
+@@ -199,7 +199,7 @@
+ //!   Numeric casts are not very "precise": sometimes lossy, sometimes value
+ //!   preserving, etc.
+ 
+-#![cfg_attr(use_const_generics, feature(const_generics))]
++#![cfg_attr(use_const_generics, feature(adt_const_params))]
+ #![cfg_attr(use_const_generics, allow(incomplete_features, clippy::from_over_into))]
+ #![feature(
+     repr_simd,



Home | Main Index | Thread Index | Old Index