pkgsrc-Changes archive

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

CVS commit: pkgsrc/security/tor-browser



Module Name:    pkgsrc
Committed By:   wiz
Date:           Sat Aug 22 23:12:34 UTC 2020

Modified Files:
        pkgsrc/security/tor-browser: distinfo
Added Files:
        pkgsrc/security/tor-browser/patches: patch-config_makefiles_rust.mk

Log Message:
tor-browser: fix build with latest rust using patch from firefox68


To generate a diff of this commit:
cvs rdiff -u -r1.26 -r1.27 pkgsrc/security/tor-browser/distinfo
cvs rdiff -u -r0 -r1.1 \
    pkgsrc/security/tor-browser/patches/patch-config_makefiles_rust.mk

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: pkgsrc/security/tor-browser/distinfo
diff -u pkgsrc/security/tor-browser/distinfo:1.26 pkgsrc/security/tor-browser/distinfo:1.27
--- pkgsrc/security/tor-browser/distinfo:1.26   Mon Aug 17 06:58:32 2020
+++ pkgsrc/security/tor-browser/distinfo        Sat Aug 22 23:12:34 2020
@@ -1,4 +1,4 @@
-$NetBSD: distinfo,v 1.26 2020/08/17 06:58:32 riastradh Exp $
+$NetBSD: distinfo,v 1.27 2020/08/22 23:12:34 wiz Exp $
 
 SHA1 (src-firefox-tor-browser-68.11.0esr-9.5-1-build1.tar.xz) = be69e804180d7cc1fb500b1a497f79ab41c4f0db
 RMD160 (src-firefox-tor-browser-68.11.0esr-9.5-1-build1.tar.xz) = 625ab420108a64c3f50f2c482190ece3afcbd974
@@ -14,6 +14,7 @@ SHA1 (patch-browser_app_profile_000-tor-
 SHA1 (patch-browser_app_profile_firefox.js) = cf93582b68b8d4e72c3c25682ab9138e185418c8
 SHA1 (patch-build_moz.configure_rust.configure) = b57a9b1451dc426d75774f73d7c05fc98fe6e317
 SHA1 (patch-config_gcc-stl-wrapper.template.h) = 11b45e0c7a9399c5b74b170648280a388dd67d89
+SHA1 (patch-config_makefiles_rust.mk) = 25502bfbe32877b35c244c2c19d6ee1dd63cb771
 SHA1 (patch-dom_base_nsAttrName.h) = ac7ba441a3b27df2855cf2673eea36b1cb44ad49
 SHA1 (patch-dom_media_CubebUtils.cpp) = 3cd2c65ab281d802c56216565970450767a3fb24
 SHA1 (patch-dom_webauthn_u2f-hid-rs_src_lib.rs) = c0dfe8b1e7ebbc7c1d6066c204030f13b063b8d7

Added files:

Index: pkgsrc/security/tor-browser/patches/patch-config_makefiles_rust.mk
diff -u /dev/null pkgsrc/security/tor-browser/patches/patch-config_makefiles_rust.mk:1.1
--- /dev/null   Sat Aug 22 23:12:34 2020
+++ pkgsrc/security/tor-browser/patches/patch-config_makefiles_rust.mk  Sat Aug 22 23:12:34 2020
@@ -0,0 +1,30 @@
+$NetBSD: patch-config_makefiles_rust.mk,v 1.1 2020/08/22 23:12:34 wiz Exp $
+
+NetBSD<10 doesn't get along with parallel rust builds (it causes issues
+with ld.so) which are the default. Force -j1.
+
+Set -Cembed-bitcode=yes when using LTO to fix build with rust >= 1.45.
+Upstream bug: https://bugzilla.mozilla.org/show_bug.cgi?id=1640982
+
+--- config/makefiles/rust.mk.orig      2020-07-20 21:02:39.000000000 +0000
++++ config/makefiles/rust.mk
+@@ -49,11 +49,19 @@ ifndef MOZ_DEBUG_RUST
+ # Enable link-time optimization for release builds.
+ cargo_rustc_flags += -C lto
+ endif
++# Versions of rust >= 1.45 need -Cembed-bitcode=yes for all crates when
++# using -Clto.
++ifeq (,$(filter 1.38.% 1.39.% 1.40.% 1.41.% 1.42.% 1.43.% 1.44.%,$(RUSTC_VERSION)))
++RUSTFLAGS += -Cembed-bitcode=yes
++endif
+ endif
+ 
+ ifdef CARGO_INCREMENTAL
+ export CARGO_INCREMENTAL
+ endif
++ifeq ($(OS_ARCH),NetBSD)
++cargo_build_flags += -j1
++endif
+ 
+ rustflags_neon =
+ ifeq (neon,$(MOZ_FPU))



Home | Main Index | Thread Index | Old Index