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:           Wed May 29 12:33:30 UTC 2019

Modified Files:
        pkgsrc/security/tor-browser: Makefile distinfo
        pkgsrc/security/tor-browser/patches:
            patch-media_libcubeb_src_cubeb__oss.c

Log Message:
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.


To generate a diff of this commit:
cvs rdiff -u -r1.43 -r1.44 pkgsrc/security/tor-browser/Makefile
cvs rdiff -u -r1.9 -r1.10 pkgsrc/security/tor-browser/distinfo
cvs rdiff -u -r1.3 -r1.4 \
    pkgsrc/security/tor-browser/patches/patch-media_libcubeb_src_cubeb__oss.c

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/Makefile
diff -u pkgsrc/security/tor-browser/Makefile:1.43 pkgsrc/security/tor-browser/Makefile:1.44
--- pkgsrc/security/tor-browser/Makefile:1.43   Sat May 25 10:50:42 2019
+++ pkgsrc/security/tor-browser/Makefile        Wed May 29 12:33:29 2019
@@ -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

Index: pkgsrc/security/tor-browser/distinfo
diff -u pkgsrc/security/tor-browser/distinfo:1.9 pkgsrc/security/tor-browser/distinfo:1.10
--- pkgsrc/security/tor-browser/distinfo:1.9    Sat May 25 10:50:42 2019
+++ pkgsrc/security/tor-browser/distinfo        Wed May 29 12:33:29 2019
@@ -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-js_src_wasm_WasmSignalHandle
 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

Index: pkgsrc/security/tor-browser/patches/patch-media_libcubeb_src_cubeb__oss.c
diff -u pkgsrc/security/tor-browser/patches/patch-media_libcubeb_src_cubeb__oss.c:1.3 pkgsrc/security/tor-browser/patches/patch-media_libcubeb_src_cubeb__oss.c:1.4
--- pkgsrc/security/tor-browser/patches/patch-media_libcubeb_src_cubeb__oss.c:1.3       Mon Feb 25 15:32:24 2019
+++ pkgsrc/security/tor-browser/patches/patch-media_libcubeb_src_cubeb__oss.c   Wed May 29 12:33:29 2019
@@ -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 @@ $NetBSD: patch-media_libcubeb_src_cubeb_
 +  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 @@ $NetBSD: patch-media_libcubeb_src_cubeb_
 +                           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 @@ $NetBSD: patch-media_libcubeb_src_cubeb_
 +  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 @@ $NetBSD: patch-media_libcubeb_src_cubeb_
 +  .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