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: update to 8.5.60.7.0...
details: https://anonhg.NetBSD.org/pkgsrc/rev/a8997e7450b8
branches: trunk
changeset: 334489:a8997e7450b8
user: wiz <wiz%pkgsrc.org@localhost>
date: Wed May 29 12:33:29 2019 +0000
description:
tor-browser: update to 8.5.60.7.0nb1.
copy tsutsui's commit to firefox:
fix wrong latency unit in stream_init() function.
Based on a patch in PR pkg/54206 from Y.Sugahara.
Bump PKGREVISION.
diffstat:
security/tor-browser/Makefile | 3 +-
security/tor-browser/distinfo | 4 +-
security/tor-browser/patches/patch-media_libcubeb_src_cubeb__oss.c | 16 +++++-----
3 files changed, 12 insertions(+), 11 deletions(-)
diffs (92 lines):
diff -r 092f88714736 -r a8997e7450b8 security/tor-browser/Makefile
--- a/security/tor-browser/Makefile Wed May 29 12:31:57 2019 +0000
+++ b/security/tor-browser/Makefile Wed May 29 12:33:29 2019 +0000
@@ -1,7 +1,8 @@
-# $NetBSD: Makefile,v 1.43 2019/05/25 10:50:42 wiz Exp $
+# $NetBSD: Makefile,v 1.44 2019/05/29 12:33:29 wiz Exp $
DISTNAME= src-firefox-tor-browser-60.7.0esr-8.5-1-build1
PKGNAME= tor-browser-8.5.60.7.0
+PKGREVISION= 1
CATEGORIES= www
MASTER_SITES= https://dist.torproject.org/torbrowser/8.5/
EXTRACT_SUFX= .tar.xz
diff -r 092f88714736 -r a8997e7450b8 security/tor-browser/distinfo
--- a/security/tor-browser/distinfo Wed May 29 12:31:57 2019 +0000
+++ b/security/tor-browser/distinfo Wed May 29 12:33:29 2019 +0000
@@ -1,4 +1,4 @@
-$NetBSD: distinfo,v 1.9 2019/05/25 10:50:42 wiz Exp $
+$NetBSD: distinfo,v 1.10 2019/05/29 12:33:29 wiz Exp $
SHA1 (src-firefox-tor-browser-60.7.0esr-8.5-1-build1.tar.xz) = 2521274bb159d2ed3a955094d19330cdb13b3041
RMD160 (src-firefox-tor-browser-60.7.0esr-8.5-1-build1.tar.xz) = 41e5674c7eca8ea14cc57be16ffeed97a2753c1b
@@ -25,7 +25,7 @@
SHA1 (patch-media_libcubeb_gtest_moz.build) = 921a001726cda9e9782df5e59ae02b19d76ef47e
SHA1 (patch-media_libcubeb_src_cubeb.c) = 1b1b8d57eb710cad13518ded79a0ddee2681881b
SHA1 (patch-media_libcubeb_src_cubeb__alsa.c) = 3ee36f58bb525767c7d2b9e814ba4ccaa4868717
-SHA1 (patch-media_libcubeb_src_cubeb__oss.c) = ccd7ad6f09977dab358632107cfd9078b4649f99
+SHA1 (patch-media_libcubeb_src_cubeb__oss.c) = 103f751d5a7bc14a81a6ed43e1afc722bc092f7e
SHA1 (patch-media_libcubeb_src_moz.build) = f243068c8908dcb16434221edef8c65db3bb0c83
SHA1 (patch-media_libcubeb_update.sh) = 3a322de06bbe9aafba9da349954ef022bd094992
SHA1 (patch-media_libpng_pngpriv.h) = c8084332560017cd7c9b519b61d125fa28af0dbc
diff -r 092f88714736 -r a8997e7450b8 security/tor-browser/patches/patch-media_libcubeb_src_cubeb__oss.c
--- a/security/tor-browser/patches/patch-media_libcubeb_src_cubeb__oss.c Wed May 29 12:31:57 2019 +0000
+++ b/security/tor-browser/patches/patch-media_libcubeb_src_cubeb__oss.c Wed May 29 12:33:29 2019 +0000
@@ -1,10 +1,11 @@
-$NetBSD: patch-media_libcubeb_src_cubeb__oss.c,v 1.3 2019/02/25 15:32:24 wiz Exp $
+$NetBSD: patch-media_libcubeb_src_cubeb__oss.c,v 1.4 2019/05/29 12:33:29 wiz Exp $
* Restore OSS audio support code
+* fix wrong latency values in stream_init (PR pkg/54206)
---- media/libcubeb/src/cubeb_oss.c.orig 2018-05-09 10:25:44.118207555 +0000
+--- media/libcubeb/src/cubeb_oss.c.orig 2019-05-24 13:05:19.117086384 +0000
+++ media/libcubeb/src/cubeb_oss.c
-@@ -0,0 +1,454 @@
+@@ -0,0 +1,453 @@
+/*
+ * Copyright © 2014 Mozilla Foundation
+ *
@@ -240,14 +241,14 @@
+ return NULL;
+}
+
-+static void oss_try_set_latency(cubeb_stream* stream, unsigned int latency)
++static void oss_try_set_latency(cubeb_stream* stream, unsigned int latency_frames)
+{
+ unsigned int latency_bytes, n_frag;
+ int frag;
+ /* fragment size of 1024 is a good choice with good chances to be accepted */
+ unsigned int frag_log=10; /* 2^frag_log = fragment size */
+ latency_bytes =
-+ latency*stream->params.rate*stream->params.channels*sizeof(uint16_t)/1000;
++ latency_frames*stream->params.channels*sizeof(uint16_t);
+ n_frag = latency_bytes>>frag_log;
+ frag = (n_frag<<16) | frag_log;
+ /* Even if this fails we wish to continue, not checking for errors */
@@ -260,7 +261,7 @@
+ cubeb_stream_params * input_stream_params,
+ cubeb_devid output_device,
+ cubeb_stream_params * output_stream_params,
-+ unsigned int latency,
++ unsigned int latency_frames,
+ cubeb_data_callback data_callback,
+ cubeb_state_callback state_callback, void * user_ptr)
+{
@@ -296,7 +297,7 @@
+ stream->volume = 1.0;
+ stream->panning = 0.0;
+
-+ oss_try_set_latency(stream, latency);
++ oss_try_set_latency(stream, latency_frames);
+
+ stream->floating = 0;
+ SET(SNDCTL_DSP_CHANNELS, stream->params.channels);
@@ -441,7 +442,6 @@
+ .get_max_channel_count = oss_get_max_channel_count,
+ .get_min_latency = oss_get_min_latency,
+ .get_preferred_sample_rate = oss_get_preferred_sample_rate,
-+ .get_preferred_channel_layout = NULL,
+ .enumerate_devices = NULL,
+ .device_collection_destroy = NULL,
+ .destroy = oss_destroy,
Home |
Main Index |
Thread Index |
Old Index