pkgsrc-Changes-HG archive

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

[pkgsrc/trunk]: pkgsrc/www/firefox Remove assert to enable alsa-plugins-oss a...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/229381862a1f
branches:  trunk
changeset: 358364:229381862a1f
user:      ryoon <ryoon%pkgsrc.org@localhost>
date:      Sat Feb 11 08:27:33 2017 +0000

description:
Remove assert to enable alsa-plugins-oss audio playback. Bump PKGREVISION

Your NetBSD system should have ~/.asoundrc like as follows.
However OSS audio playback is not ver stable.

pcm.oss {
        type oss
        device /dev/audio
}

pcm.!default {
        type plug
        slave {
                pcm oss
                format S16_LE
        }
}

ctl.!default {
        type oss
        device /dev/mixer
}

diffstat:

 www/firefox/Makefile                                       |   5 +-
 www/firefox/distinfo                                       |   4 +-
 www/firefox/patches/patch-media_libcubeb_src_cubeb__alsa.c |  68 +++++++------
 3 files changed, 42 insertions(+), 35 deletions(-)

diffs (truncated from 315 to 300 lines):

diff -r f4deaa17ef2c -r 229381862a1f www/firefox/Makefile
--- a/www/firefox/Makefile      Sat Feb 11 08:10:52 2017 +0000
+++ b/www/firefox/Makefile      Sat Feb 11 08:27:33 2017 +0000
@@ -1,13 +1,12 @@
-# $NetBSD: Makefile,v 1.283 2017/02/06 19:00:44 martin Exp $
+# $NetBSD: Makefile,v 1.284 2017/02/11 08:27:33 ryoon Exp $
 
 FIREFOX_VER=           ${MOZ_BRANCH}${MOZ_BRANCH_MINOR}
 MOZ_BRANCH=            51.0
 MOZ_BRANCH_MINOR=      .1
-PKGREVISION=           1
 
 DISTNAME=      firefox-${FIREFOX_VER}.source
 PKGNAME=       firefox-${MOZ_BRANCH}${MOZ_BRANCH_MINOR:S/b/beta/:S/esr//}
-PKGREVISION=   1
+PKGREVISION=   2
 CATEGORIES=    www
 MASTER_SITES+= ${MASTER_SITE_MOZILLA:=firefox/releases/${FIREFOX_VER}/source/}
 MASTER_SITES+= ${MASTER_SITE_MOZILLA_ALL:=firefox/releases/${FIREFOX_VER}/source/}
diff -r f4deaa17ef2c -r 229381862a1f www/firefox/distinfo
--- a/www/firefox/distinfo      Sat Feb 11 08:10:52 2017 +0000
+++ b/www/firefox/distinfo      Sat Feb 11 08:27:33 2017 +0000
@@ -1,4 +1,4 @@
-$NetBSD: distinfo,v 1.271 2017/02/06 19:00:44 martin Exp $
+$NetBSD: distinfo,v 1.272 2017/02/11 08:27:33 ryoon Exp $
 
 SHA1 (firefox-51.0.1.source.tar.xz) = b73255fd4f90fd0c1b107b566679da2df3f31cf1
 RMD160 (firefox-51.0.1.source.tar.xz) = 6acc6fc8e3e317842d75b0233a24b0f19c9d3f34
@@ -77,7 +77,7 @@
 SHA1 (patch-js_xpconnect_src_xpcprivate.h) = e09e37819961bae40a9f276ae1ee510d2956c23e
 SHA1 (patch-layout_style_GenerateCSSPropsGenerated.py) = 6e2267d2ffda97923e6e39ed2517f86fb7316b86
 SHA1 (patch-media_libcubeb_src_cubeb.c) = 91eb24595c423b7e086670bb67e73cfd0bfb5559
-SHA1 (patch-media_libcubeb_src_cubeb__alsa.c) = 12e0a63540d9a08394bbedfb46c4db3c89618357
+SHA1 (patch-media_libcubeb_src_cubeb__alsa.c) = c59eaf40973193885f32819b465b401c1ba45fce
 SHA1 (patch-media_libcubeb_src_cubeb__oss.c) = e15cc2d0c220738ccfd57f79eec242095c8ea536
 SHA1 (patch-media_libcubeb_src_moz.build) = 2b6d7e3bb265220decf9629b1d4b980cadb363fb
 SHA1 (patch-media_libcubeb_tests_moz.build) = 63d8b749a6ebbe8fd662ce1e2bde6aa9cb0b807d
diff -r f4deaa17ef2c -r 229381862a1f www/firefox/patches/patch-media_libcubeb_src_cubeb__alsa.c
--- a/www/firefox/patches/patch-media_libcubeb_src_cubeb__alsa.c        Sat Feb 11 08:10:52 2017 +0000
+++ b/www/firefox/patches/patch-media_libcubeb_src_cubeb__alsa.c        Sat Feb 11 08:27:33 2017 +0000
@@ -1,4 +1,4 @@
-$NetBSD: patch-media_libcubeb_src_cubeb__alsa.c,v 1.19 2017/02/06 19:00:44 martin Exp $
+$NetBSD: patch-media_libcubeb_src_cubeb__alsa.c,v 1.20 2017/02/11 08:27:33 ryoon Exp $
 
 * Support alsa audio under NetBSD
 * Avoid https://github.com/kinetiknz/cubeb/issues/226
@@ -72,7 +72,7 @@
  /* ALSA is not thread-safe.  snd_pcm_t instances are individually protected
     by the owning cubeb_stream's mutex.  snd_pcm_t creation and destruction
     is not thread-safe until ALSA 1.0.24 (see alsa-lib.git commit 91c9c8f1),
-@@ -65,6 +113,8 @@
+@@ -65,6 +113,8 @@ struct cubeb {
       workaround is not required. */
    snd_config_t * local_config;
    int is_pa;
@@ -81,7 +81,7 @@
  };
  
  enum stream_state {
-@@ -260,10 +310,10 @@
+@@ -260,10 +310,10 @@ alsa_refill_stream(cubeb_stream * stm)
  
    pthread_mutex_lock(&stm->mutex);
  
@@ -95,7 +95,7 @@
    }
  
    /* Failed to recover from an xrun, this stream must be broken. */
-@@ -286,7 +336,7 @@
+@@ -286,7 +336,7 @@ alsa_refill_stream(cubeb_stream * stm)
      return RUNNING;
    }
  
@@ -104,7 +104,7 @@
    assert(p);
  
    pthread_mutex_unlock(&stm->mutex);
-@@ -312,10 +362,10 @@
+@@ -312,10 +362,10 @@ alsa_refill_stream(cubeb_stream * stm)
          b[i] *= stm->volume;
        }
      }
@@ -118,7 +118,7 @@
      }
      assert(wrote >= 0 && wrote == got);
      stm->write_position += wrote;
-@@ -327,7 +377,7 @@
+@@ -327,7 +377,7 @@ alsa_refill_stream(cubeb_stream * stm)
  
      /* Fill the remaining buffer with silence to guarantee one full period
         has been written. */
@@ -127,7 +127,7 @@
  
      set_timeout(&stm->drain_timeout, buffer_time * 1000);
  
-@@ -440,26 +490,26 @@
+@@ -440,26 +490,26 @@ get_slave_pcm_node(snd_config_t * lconf,
  
    slave_def = NULL;
  
@@ -159,7 +159,7 @@
      if (r < 0) {
        break;
      }
-@@ -468,7 +518,7 @@
+@@ -468,7 +518,7 @@ get_slave_pcm_node(snd_config_t * lconf,
      if (r < 0 || r > (int) sizeof(node_name)) {
        break;
      }
@@ -168,7 +168,7 @@
      if (r < 0) {
        break;
      }
-@@ -477,7 +527,7 @@
+@@ -477,7 +527,7 @@ get_slave_pcm_node(snd_config_t * lconf,
    } while (0);
  
    if (slave_def) {
@@ -177,7 +177,7 @@
    }
  
    return NULL;
-@@ -500,22 +550,22 @@
+@@ -500,22 +550,22 @@ init_local_config_with_workaround(char c
  
    lconf = NULL;
  
@@ -204,7 +204,7 @@
      if (r < 0) {
        break;
      }
-@@ -524,7 +574,7 @@
+@@ -524,7 +574,7 @@ init_local_config_with_workaround(char c
      if (r < 0 || r > (int) sizeof(node_name)) {
        break;
      }
@@ -213,7 +213,7 @@
      if (r < 0) {
        break;
      }
-@@ -535,12 +585,12 @@
+@@ -535,12 +585,12 @@ init_local_config_with_workaround(char c
      }
  
      /* Fetch the PCM node's type, and bail out if it's not the PulseAudio plugin. */
@@ -228,7 +228,7 @@
      if (r < 0) {
        break;
      }
-@@ -551,18 +601,18 @@
+@@ -551,18 +601,18 @@ init_local_config_with_workaround(char c
  
      /* Don't clobber an explicit existing handle_underrun value, set it only
         if it doesn't already exist. */
@@ -250,7 +250,7 @@
      if (r < 0) {
        break;
      }
-@@ -570,7 +620,7 @@
+@@ -570,7 +620,7 @@ init_local_config_with_workaround(char c
      return lconf;
    } while (0);
  
@@ -259,7 +259,7 @@
  
    return NULL;
  }
-@@ -582,9 +632,9 @@
+@@ -582,9 +632,9 @@ alsa_locked_pcm_open(snd_pcm_t ** pcm, s
  
    pthread_mutex_lock(&cubeb_alsa_mutex);
    if (local_config) {
@@ -271,7 +271,7 @@
    }
    pthread_mutex_unlock(&cubeb_alsa_mutex);
  
-@@ -597,7 +647,7 @@
+@@ -597,7 +647,7 @@ alsa_locked_pcm_close(snd_pcm_t * pcm)
    int r;
  
    pthread_mutex_lock(&cubeb_alsa_mutex);
@@ -280,7 +280,7 @@
    pthread_mutex_unlock(&cubeb_alsa_mutex);
  
    return r;
-@@ -654,12 +704,65 @@
+@@ -654,12 +704,65 @@ alsa_init(cubeb ** context, char const *
    pthread_attr_t attr;
    snd_pcm_t * dummy;
  
@@ -347,7 +347,7 @@
      cubeb_alsa_error_handler_set = 1;
    }
    pthread_mutex_unlock(&cubeb_alsa_mutex);
-@@ -667,6 +770,8 @@
+@@ -667,6 +770,8 @@ alsa_init(cubeb ** context, char const *
    ctx = calloc(1, sizeof(*ctx));
    assert(ctx);
  
@@ -356,7 +356,7 @@
    ctx->ops = &alsa_ops;
  
    r = pthread_mutex_init(&ctx->mutex, NULL);
-@@ -716,7 +821,7 @@
+@@ -716,7 +821,7 @@ alsa_init(cubeb ** context, char const *
         config fails with EINVAL, the PA PCM is too old for this workaround. */
      if (r == -EINVAL) {
        pthread_mutex_lock(&cubeb_alsa_mutex);
@@ -365,7 +365,7 @@
        pthread_mutex_unlock(&cubeb_alsa_mutex);
        ctx->local_config = NULL;
      } else if (r >= 0) {
-@@ -755,9 +860,13 @@
+@@ -755,9 +860,13 @@ alsa_destroy(cubeb * ctx)
    pthread_mutex_destroy(&ctx->mutex);
    free(ctx->fds);
  
@@ -380,7 +380,7 @@
      pthread_mutex_unlock(&cubeb_alsa_mutex);
    }
  
-@@ -836,13 +945,16 @@
+@@ -836,13 +945,16 @@ alsa_stream_init(cubeb * ctx, cubeb_stre
    r = pthread_mutex_init(&stm->mutex, NULL);
    assert(r == 0);
  
@@ -398,7 +398,7 @@
    assert(r == 0);
  
    latency_us = latency_frames * 1e6 / stm->params.rate;
-@@ -855,7 +967,7 @@
+@@ -855,7 +967,7 @@ alsa_stream_init(cubeb * ctx, cubeb_stre
      latency_us = latency_us < min_latency ? min_latency: latency_us;
    }
  
@@ -407,7 +407,7 @@
                           stm->params.channels, stm->params.rate, 1,
                           latency_us);
    if (r < 0) {
-@@ -863,20 +975,17 @@
+@@ -863,20 +975,17 @@ alsa_stream_init(cubeb * ctx, cubeb_stre
      return CUBEB_ERROR_INVALID_FORMAT;
    }
  
@@ -431,7 +431,7 @@
    if (alsa_register_stream(ctx, stm) != 0) {
      alsa_stream_destroy(stm);
      return CUBEB_ERROR;
-@@ -902,7 +1011,7 @@
+@@ -902,7 +1011,7 @@ alsa_stream_destroy(cubeb_stream * stm)
    pthread_mutex_lock(&stm->mutex);
    if (stm->pcm) {
      if (stm->state == DRAINING) {
@@ -440,7 +440,7 @@
      }
      alsa_locked_pcm_close(stm->pcm);
      stm->pcm = NULL;
-@@ -944,12 +1053,12 @@
+@@ -944,12 +1053,12 @@ alsa_get_max_channel_count(cubeb * ctx, 
      return CUBEB_ERROR;
    }
  
@@ -455,7 +455,7 @@
    if (r < 0) {
      return CUBEB_ERROR;
    }
-@@ -969,34 +1078,34 @@
+@@ -969,34 +1078,34 @@ alsa_get_preferred_sample_rate(cubeb * c
  
    /* get a pcm, disabling resampling, so we get a rate the
     * hardware/dmix/pulse/etc. supports. */
@@ -498,7 +498,7 @@
  
    return CUBEB_OK;
  }
-@@ -1020,7 +1129,7 @@
+@@ -1020,7 +1129,7 @@ alsa_stream_start(cubeb_stream * stm)
    ctx = stm->context;
  
    pthread_mutex_lock(&stm->mutex);
@@ -507,7 +507,7 @@
    gettimeofday(&stm->last_activity, NULL);
    pthread_mutex_unlock(&stm->mutex);
  
-@@ -1054,7 +1163,7 @@
+@@ -1054,7 +1163,7 @@ alsa_stream_stop(cubeb_stream * stm)
    pthread_mutex_unlock(&ctx->mutex);
  
    pthread_mutex_lock(&stm->mutex);
@@ -516,7 +516,7 @@
    pthread_mutex_unlock(&stm->mutex);
  
    return CUBEB_OK;
-@@ -1070,8 +1179,8 @@
+@@ -1070,14 +1179,15 @@ alsa_stream_get_position(cubeb_stream * 
    pthread_mutex_lock(&stm->mutex);
  
    delay = -1;
@@ -527,7 +527,15 @@
      *position = stm->last_position;



Home | Main Index | Thread Index | Old Index