From nobody Mon Nov 29 20:25:25 2021 X-Original-To: dev-commits-ports-main@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 369A918B6B80; Mon, 29 Nov 2021 20:25:26 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4J2xg96SYvz4RlQ; Mon, 29 Nov 2021 20:25:25 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id B992CB71; Mon, 29 Nov 2021 20:25:25 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.16.1/8.16.1) with ESMTP id 1ATKPPuL041352; Mon, 29 Nov 2021 20:25:25 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 1ATKPPno041351; Mon, 29 Nov 2021 20:25:25 GMT (envelope-from git) Date: Mon, 29 Nov 2021 20:25:25 GMT Message-Id: <202111292025.1ATKPPno041351@gitrepo.freebsd.org> To: ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org From: Christoph Moench-Tegeder Subject: git: f4c07f1834f7 - main - www/firefox: update to 95.0 (rc1) List-Id: Commits to the main branch of the FreeBSD ports repository List-Archive: https://lists.freebsd.org/archives/dev-commits-ports-main List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-dev-commits-ports-main@freebsd.org X-BeenThere: dev-commits-ports-main@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: cmt X-Git-Repository: ports X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: f4c07f1834f70e7359c290415aaf47727cda042a Auto-Submitted: auto-generated ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1638217525; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=5NWZm1kYCyKIh2pPkjBX39N5CFEgFpxzkSnbkuEMG0A=; b=ql70ji1eD0IXbz8yXbt/Mw+AB+XA9e3A28UXOjYjlBuQfWMHWCLmeHFoR/sMvXikKk787b WVTxDZEde8Ma1ECc3osgpfkfHfBunne6F51xi0jrAh/6zdIuVi+QBHP/Bm01Efk4axJCUu +9lUWbc2uVQFUeytTMpxo+Hos5B1+dEICIUCPoyAF6RatoyR86ZSkOjaMwQLetXhSd8juS nYnZrmfnatJUoEF7bgEe3lrt+Meyha9yFyz+bIlOry9oUhRHinYUK6GLhLAbFYG3XzWPes VyULtkbw94XmUgnAkWBnA88v9FsJK7VY3Qw9WVoT1vuO193pAaXI3Dq4wN/Uuw== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1638217525; a=rsa-sha256; cv=none; b=xA3JTMdaDeVB68Le8NEy96fuFKOKLDXNE8rNPsD4/ASB8LWbuCiTdBxRBXsibiFMkISlDS uI0J+RMXfQdCYJX3SQ9avwF5BDvuqnRlj9W6o2wFLk8M6O5UsfXX4CJruY1nD86w7+p603 LeiIMvimxOGnbIdZOWJxex8cLOHDZVsvk1YUQVG7G6dEb2Fvr+fh8AwZENljDnWpTNj9x1 d39Rnd7jdLWTWdw2Q6+JZm2248HHQEWMhd676svGsFYz5CiwbJLZmix+gGOpV2pYV8wH7o sbjv9hu6dXDbZyDfIDJwISWjytov0nsBhqqanjDT4vncLji2ym4fyf7/cMRjPg== ARC-Authentication-Results: i=1; mx1.freebsd.org; none X-ThisMailContainsUnwantedMimeParts: N The branch main has been updated by cmt: URL: https://cgit.FreeBSD.org/ports/commit/?id=f4c07f1834f70e7359c290415aaf47727cda042a commit f4c07f1834f70e7359c290415aaf47727cda042a Author: Christoph Moench-Tegeder AuthorDate: 2021-11-29 20:22:44 +0000 Commit: Christoph Moench-Tegeder CommitDate: 2021-11-29 20:22:44 +0000 www/firefox: update to 95.0 (rc1) Release Notes (soon): https://www.mozilla.org/en-US/firefox/95.0/releasenotes/ This firefox release includes a not-yet-released snapshot of dav1d, which is not fully API-compatible with the released version. Switch to the bundled dav1d/aom until dav1d released have caught up. --- Mk/bsd.gecko.mk | 3 + www/firefox/Makefile | 16 ++-- www/firefox/distinfo | 6 +- www/firefox/files/patch-bug1735905 | 165 ------------------------------------- 4 files changed, 17 insertions(+), 173 deletions(-) diff --git a/Mk/bsd.gecko.mk b/Mk/bsd.gecko.mk index 73c2594d1599..b912e1aa7ade 100644 --- a/Mk/bsd.gecko.mk +++ b/Mk/bsd.gecko.mk @@ -123,10 +123,13 @@ RUSTFLAGS+= ${CFLAGS:M-mcpu=*:S/-mcpu=/-C target-cpu=/} # Standard depends _ALL_DEPENDS= av1 event ffi graphite harfbuzz icu jpeg nspr nss png pixman sqlite vpx webp +# firefox 95 uses a dav1d snapshot > 0.9.2 +.if ${MOZILLA_VER:R:R} < 95 .if exists(${FILESDIR}/patch-bug1559213) av1_LIB_DEPENDS= libaom.so:multimedia/aom libdav1d.so:multimedia/dav1d av1_MOZ_OPTIONS= --with-system-av1 .endif +.endif event_LIB_DEPENDS= libevent.so:devel/libevent event_MOZ_OPTIONS= --with-system-libevent diff --git a/www/firefox/Makefile b/www/firefox/Makefile index e94f4f689c9f..b93ef4ba7e27 100644 --- a/www/firefox/Makefile +++ b/www/firefox/Makefile @@ -1,8 +1,7 @@ # Created by: Alan Eldridge PORTNAME= firefox -DISTVERSION= 94.0.2 -PORTREVISION= 4 +DISTVERSION= 95.0 PORTEPOCH= 2 CATEGORIES= www MASTER_SITES= MOZILLA/${PORTNAME}/releases/${DISTVERSION}/source \ @@ -13,7 +12,7 @@ MAINTAINER= gecko@FreeBSD.org COMMENT= Web browser based on the browser portion of Mozilla BUILD_DEPENDS= nspr>=4.32:devel/nspr \ - nss>=3.71:security/nss \ + nss>=3.72:security/nss \ icu>=69.1,1:devel/icu \ libevent>=2.1.8:devel/libevent \ harfbuzz>=2.9.1:print/harfbuzz \ @@ -25,12 +24,18 @@ BUILD_DEPENDS= nspr>=4.32:devel/nspr \ autoconf-2.13:devel/autoconf213 \ nasm:devel/nasm \ yasm:devel/yasm \ - zip:archivers/zip + zip:archivers/zip \ + ${LOCALBASE}/share/wasi-sysroot/lib/wasm32-wasi/libc++abi.a:devel/wasi-libcxx \ + ${LOCALBASE}/share/wasi-sysroot/lib/wasm32-wasi/libc.a:devel/wasi-libc \ + ${LOCALBASE}/llvm${LLVM_DEFAULT}/lib/clang/${LLVM_DEFAULT}.0.0/lib/wasi/libclang_rt.builtins-wasm32.a:devel/wasi-compiler-rt${LLVM_DEFAULT} USE_GECKO= gecko CONFLICTS_INSTALL= firefox-esr USE_MOZILLA= -sqlite CFLAGS_powerpc64le= -DSQLITE_BYTEORDER=1234 +# work around bindgen not finding ICU, e.g. +# dist/include/mozilla/intl/ICU4CGlue.h:8:10: fatal error: 'unicode/uenum.h' file not found, err: true +CONFIGURE_ENV+= BINDGEN_CFLAGS="-I${LOCALBASE}/include" USES= tar:xz @@ -38,7 +43,8 @@ FIREFOX_ICON= ${MOZILLA}.png FIREFOX_ICON_SRC= ${PREFIX}/lib/${MOZILLA}/browser/chrome/icons/default/default48.png FIREFOX_DESKTOP= ${MOZSRC}/taskcluster/docker/${MOZILLA}-snap/${MOZILLA}.desktop MOZ_OPTIONS= --enable-application=browser \ - --enable-official-branding + --enable-official-branding \ + --with-wasi-sysroot=${LOCALBASE}/share/wasi-sysroot .include "${.CURDIR}/../../www/firefox/Makefile.options" diff --git a/www/firefox/distinfo b/www/firefox/distinfo index ae199b540d36..de4bcaf8e7e5 100644 --- a/www/firefox/distinfo +++ b/www/firefox/distinfo @@ -1,3 +1,3 @@ -TIMESTAMP = 1637880605 -SHA256 (firefox-94.0.2.source.tar.xz) = 899ba1c806549034793d7e8ca53f4c845d783c810338f314f3d653d39649e575 -SIZE (firefox-94.0.2.source.tar.xz) = 382896780 +TIMESTAMP = 1638207026 +SHA256 (firefox-95.0.source.tar.xz) = 7fa3e43f6ec710b2ebba0e99db713a56d13d85f1f23c4a1399bb594fd74864de +SIZE (firefox-95.0.source.tar.xz) = 382853940 diff --git a/www/firefox/files/patch-bug1735905 b/www/firefox/files/patch-bug1735905 deleted file mode 100644 index 93f44e30149a..000000000000 --- a/www/firefox/files/patch-bug1735905 +++ /dev/null @@ -1,165 +0,0 @@ -commit 0cc5c4b32ed3e0686b4737851fa3df542f60ab3c -Author: Mike Hommey -Date: Sat Oct 16 01:19:56 2021 +0000 - - Bug 1735905 - Upgrade cubeb-pulse to fix a race condition that can lead to shutdown deadlock. r=kinetik - - Differential Revision: https://phabricator.services.mozilla.com/D128657 - -diff --git .cargo/config.in .cargo/config.in -index 9f24c14e6bfa..d8164982b771 100644 ---- .cargo/config.in -+++ .cargo/config.in -@@ -25,7 +25,7 @@ rev = "fd02134161505f978e132114cbabdac057ce3b71" - [source."https://github.com/mozilla/cubeb-pulse-rs"] - git = "https://github.com/mozilla/cubeb-pulse-rs" - replace-with = "vendored-sources" --rev = "e9e55a4529642da99e64452467ecaef9f7753531" -+rev = "9695281319fcb3e40db6a32cc0661548d6192f4d" - - [source."https://github.com/mozilla/cubeb-coreaudio-rs"] - git = "https://github.com/mozilla/cubeb-coreaudio-rs" -diff --git Cargo.lock Cargo.lock -index 28b79434ff31..8c06309790be 100644 ---- Cargo.lock -+++ Cargo.lock -@@ -1059,7 +1059,7 @@ dependencies = [ - [[package]] - name = "cubeb-pulse" - version = "0.3.0" --source = "git+https://github.com/mozilla/cubeb-pulse-rs?rev=e9e55a4529642da99e64452467ecaef9f7753531#e9e55a4529642da99e64452467ecaef9f7753531" -+source = "git+https://github.com/mozilla/cubeb-pulse-rs?rev=9695281319fcb3e40db6a32cc0661548d6192f4d#9695281319fcb3e40db6a32cc0661548d6192f4d" - dependencies = [ - "cubeb-backend", - "pulse", -@@ -3935,7 +3935,7 @@ dependencies = [ - [[package]] - name = "pulse" - version = "0.3.0" --source = "git+https://github.com/mozilla/cubeb-pulse-rs?rev=e9e55a4529642da99e64452467ecaef9f7753531#e9e55a4529642da99e64452467ecaef9f7753531" -+source = "git+https://github.com/mozilla/cubeb-pulse-rs?rev=9695281319fcb3e40db6a32cc0661548d6192f4d#9695281319fcb3e40db6a32cc0661548d6192f4d" - dependencies = [ - "bitflags", - "pulse-ffi", -@@ -3944,7 +3944,7 @@ dependencies = [ - [[package]] - name = "pulse-ffi" - version = "0.1.0" --source = "git+https://github.com/mozilla/cubeb-pulse-rs?rev=e9e55a4529642da99e64452467ecaef9f7753531#e9e55a4529642da99e64452467ecaef9f7753531" -+source = "git+https://github.com/mozilla/cubeb-pulse-rs?rev=9695281319fcb3e40db6a32cc0661548d6192f4d#9695281319fcb3e40db6a32cc0661548d6192f4d" - dependencies = [ - "libc", - ] -diff --git third_party/rust/cubeb-pulse/.cargo-checksum.json third_party/rust/cubeb-pulse/.cargo-checksum.json -index 1dc452bcf480..45e913931336 100644 ---- third_party/rust/cubeb-pulse/.cargo-checksum.json -+++ third_party/rust/cubeb-pulse/.cargo-checksum.json -@@ -1 +1 @@ --{"files":{".editorconfig":"bf047bd1da10cabb99eea666d1e57c321eba4716dccb3e4ed0e2c5fe3ca53858",".github/workflows/build.yml":"95d0d2542c04f0c932f58591b92c3051db5c95657bf5f24b6a6110f7b667568d","AUTHORS":"0e0ac930a68ce2f6b876126b195add177f0d3886facb9260f4d9b69f1988f0cc","Cargo.toml":"56e90cb82ec36ead07e551a28fc2455fa658fa8308c3d73f8d856d85bfcd2122","LICENSE":"44c6b5ae5ec3fe2fbc608b00e6f4896f4d2d5c7e525fcbaa3eaa3cf2f3d5a983","README.md":"0079450bb4b013bac065ed1750851e461a3710ebad1f323817da1cb82db0bc4f","src/backend/context.rs":"8969b300850b56ace07abe570940e2099774bf0bf20325be1d3ec0f5f408c8ce","src/backend/cork_state.rs":"4a0f1afc7d9f333dac89218cc56d7d32fbffb487cd48c1c9a4e03d79cb3b5e28","src/backend/intern.rs":"11ca424e4eb77f8eb9fd5a6717d1e791facf9743156a8534f0016fcf64d57b0f","src/backend/mod.rs":"d5da05348bf1a7f65c85b14372964a49dc4849f0aee96c75e2c18b51fb03fcaf","src/backend/stream.rs":"b17829f1b65055ada69454d0714dd7526d4d5cdeda7bba4ee03ffb6f27297e61","src/capi.rs":"fa0fa020f0d0efe55aa0f c3596405e8407bbe2cbe6c7a558345304e6da87994e","src/lib.rs":"b41bbdc562cbfb130ed7c1e53fe69944774f515705341d8ce48a2f82c8c0c2c5"},"package":null} -\ No newline at end of file -+{"files":{".editorconfig":"bf047bd1da10cabb99eea666d1e57c321eba4716dccb3e4ed0e2c5fe3ca53858",".github/workflows/build.yml":"95d0d2542c04f0c932f58591b92c3051db5c95657bf5f24b6a6110f7b667568d","AUTHORS":"0e0ac930a68ce2f6b876126b195add177f0d3886facb9260f4d9b69f1988f0cc","Cargo.toml":"56e90cb82ec36ead07e551a28fc2455fa658fa8308c3d73f8d856d85bfcd2122","LICENSE":"44c6b5ae5ec3fe2fbc608b00e6f4896f4d2d5c7e525fcbaa3eaa3cf2f3d5a983","README.md":"0079450bb4b013bac065ed1750851e461a3710ebad1f323817da1cb82db0bc4f","src/backend/context.rs":"8969b300850b56ace07abe570940e2099774bf0bf20325be1d3ec0f5f408c8ce","src/backend/cork_state.rs":"4a0f1afc7d9f333dac89218cc56d7d32fbffb487cd48c1c9a4e03d79cb3b5e28","src/backend/intern.rs":"11ca424e4eb77f8eb9fd5a6717d1e791facf9743156a8534f0016fcf64d57b0f","src/backend/mod.rs":"d5da05348bf1a7f65c85b14372964a49dc4849f0aee96c75e2c18b51fb03fcaf","src/backend/stream.rs":"585b616d5487c77f6aa21a76aa6a0f7ae9de8c389bc908401a979fba8bf3450f","src/capi.rs":"fa0fa020f0d0efe55aa0f c3596405e8407bbe2cbe6c7a558345304e6da87994e","src/lib.rs":"b41bbdc562cbfb130ed7c1e53fe69944774f515705341d8ce48a2f82c8c0c2c5"},"package":null} -\ No newline at end of file -diff --git third_party/rust/cubeb-pulse/src/backend/stream.rs third_party/rust/cubeb-pulse/src/backend/stream.rs -index 8168c813e243..df64b0f2304e 100644 ---- third_party/rust/cubeb-pulse/src/backend/stream.rs -+++ third_party/rust/cubeb-pulse/src/backend/stream.rs -@@ -15,7 +15,7 @@ use ringbuf::RingBuffer; - use std::ffi::{CStr, CString}; - use std::os::raw::{c_long, c_void}; - use std::slice; --use std::sync::atomic::{AtomicUsize, Ordering}; -+use std::sync::atomic::{AtomicPtr, AtomicUsize, Ordering}; - use std::{mem, ptr}; - - use self::LinearInputBuffer::*; -@@ -272,7 +272,7 @@ pub struct PulseStream<'ctx> { - input_stream: Option, - data_callback: ffi::cubeb_data_callback, - state_callback: ffi::cubeb_state_callback, -- drain_timer: *mut pa_time_event, -+ drain_timer: AtomicPtr, - output_sample_spec: pulse::SampleSpec, - input_sample_spec: pulse::SampleSpec, - // output frames count excluding pre-buffering -@@ -411,7 +411,7 @@ impl<'ctx> PulseStream<'ctx> { - data_callback, - state_callback, - user_ptr, -- drain_timer: ptr::null_mut(), -+ drain_timer: AtomicPtr::new(ptr::null_mut()), - output_sample_spec: pulse::SampleSpec::default(), - input_sample_spec: pulse::SampleSpec::default(), - output_frame_count: AtomicUsize::new(0), -@@ -574,9 +574,10 @@ impl<'ctx> PulseStream<'ctx> { - self.context.mainloop.lock(); - { - if let Some(stm) = self.output_stream.take() { -- if !self.drain_timer.is_null() { -+ let drain_timer = self.drain_timer.load(Ordering::Acquire); -+ if !drain_timer.is_null() { - /* there's no pa_rttime_free, so use this instead. */ -- self.context.mainloop.get_api().time_free(self.drain_timer); -+ self.context.mainloop.get_api().time_free(drain_timer); - } - stm.clear_state_callback(); - stm.clear_write_callback(); -@@ -637,7 +638,7 @@ impl<'ctx> StreamOps for PulseStream<'ctx> { - self.shutdown = true; - // If draining is taking place wait to finish - cubeb_log!("Stream stop: waiting for drain."); -- while !self.drain_timer.is_null() { -+ while !self.drain_timer.load(Ordering::Acquire).is_null() { - self.context.mainloop.wait(); - } - cubeb_log!("Stream stop: waited for drain."); -@@ -988,11 +989,12 @@ impl<'ctx> PulseStream<'ctx> { - ) { - cubeb_logv!("Drain finished callback."); - let stm = unsafe { &mut *(u as *mut PulseStream) }; -- debug_assert_eq!(stm.drain_timer, e); -+ let drain_timer = stm.drain_timer.load(Ordering::Acquire); -+ debug_assert_eq!(drain_timer, e); - stm.state_change_callback(ffi::CUBEB_STATE_DRAINED); - /* there's no pa_rttime_free, so use this instead. */ -- a.time_free(stm.drain_timer); -- stm.drain_timer = ptr::null_mut(); -+ a.time_free(drain_timer); -+ stm.drain_timer.store(ptr::null_mut(), Ordering::Release); - stm.context.mainloop.signal(); - } - -@@ -1109,13 +1111,16 @@ impl<'ctx> PulseStream<'ctx> { - - /* pa_stream_drain is useless, see PA bug# 866. this is a workaround. */ - /* arbitrary safety margin: double the current latency. */ -- debug_assert!(self.drain_timer.is_null()); -+ debug_assert!(self.drain_timer.load(Ordering::Acquire).is_null()); - let stream_ptr = self as *const _ as *mut _; - if let Some(ref context) = self.context.context { -- self.drain_timer = context.rttime_new( -- pulse::rtclock_now() + 2 * latency, -- drained_cb, -- stream_ptr, -+ self.drain_timer.store( -+ context.rttime_new( -+ pulse::rtclock_now() + 2 * latency, -+ drained_cb, -+ stream_ptr, -+ ), -+ Ordering::Release, - ); - } - self.shutdown = true; -diff --git toolkit/library/rust/shared/Cargo.toml toolkit/library/rust/shared/Cargo.toml -index 39f309e2ad4a..cdb568aa7428 100644 ---- toolkit/library/rust/shared/Cargo.toml -+++ toolkit/library/rust/shared/Cargo.toml -@@ -20,7 +20,7 @@ profiler_helper = { path = "../../../../tools/profiler/rust-helper", optional = - mozurl = { path = "../../../../netwerk/base/mozurl" } - webrender_bindings = { path = "../../../../gfx/webrender_bindings" } - cubeb-coreaudio = { git = "https://github.com/mozilla/cubeb-coreaudio-rs", rev = "4ee3b283182926f9a8bb31d603219ff2db70d2fd", optional = true } --cubeb-pulse = { git = "https://github.com/mozilla/cubeb-pulse-rs", rev="e9e55a4529642da99e64452467ecaef9f7753531", optional = true, features=["pulse-dlopen"] } -+cubeb-pulse = { git = "https://github.com/mozilla/cubeb-pulse-rs", rev="9695281319fcb3e40db6a32cc0661548d6192f4d", optional = true, features=["pulse-dlopen"] } - cubeb-sys = { version = "0.9", optional = true, features=["gecko-in-tree"] } - encoding_glue = { path = "../../../../intl/encoding_glue" } - audioipc-client = { git = "https://github.com/mozilla/audioipc-2", rev = "03868a0eaf1d46e895353fa6e1f5bcaf7e588e62", optional = true }