]> git.pld-linux.org Git - packages/bb.git/commitdiff
- patch from Gentoo master auto/th/bb-1.3rc1-11
authorWitold Filipczyk <witekfl@poczta.onet.pl>
Fri, 25 Feb 2022 15:40:57 +0000 (16:40 +0100)
committerWitold Filipczyk <witekfl@poczta.onet.pl>
Fri, 25 Feb 2022 15:40:57 +0000 (16:40 +0100)
- rel 11

bb-1.3.0_rc1-disable-pulse.patch [new file with mode: 0644]
bb.spec
pulse.patch [deleted file]

diff --git a/bb-1.3.0_rc1-disable-pulse.patch b/bb-1.3.0_rc1-disable-pulse.patch
new file mode 100644 (file)
index 0000000..3d78891
--- /dev/null
@@ -0,0 +1,21 @@
+https://bugs.gentoo.org/516964
+--- a/main.c
++++ b/main.c
+@@ -160,6 +160,17 @@ main (int argc, char *argv[])
+   aa_flush (context);
+   if (tolower (aa_getkey (context, 1)) != 'n')
+     {
++      /* Unfortunately recently added native pulseaudio
++       * driver in libmikmod does not allow you to
++       * call 'MikMod_Update' in a non-blocking way.
++       *
++       * It's a known limitation of simple pulseaudio API
++       * thus we derevisted pulseaudio driver to fallback
++       * on alsa, oss or whatever used to work for user.
++       */
++      drv_pulseaudio.Name    = NULL;
++      drv_pulseaudio.Version = NULL;
++
+       MikMod_RegisterAllDrivers ();
+       MikMod_RegisterLoader (&load_s3m);
+       /*md_mode |= DMODE_SOFT_MUSIC; */
diff --git a/bb.spec b/bb.spec
index d055ecff180a07cef03e087be979d4aaa1bb4f3d..64ed30a41567cb5c75b5d6feab9baaa7c7b54bee 100644 (file)
--- a/bb.spec
+++ b/bb.spec
@@ -2,7 +2,7 @@ Summary:        BB - the portable demo
 Summary(pl.UTF-8):     BB - przenoĊ›ne demo
 Name:          bb
 Version:       1.3rc1
-Release:       10
+Release:       11
 License:       GPL
 Group:         Applications/Terminal
 Source0:       http://dl.sourceforge.net/aa-project/%{name}-%{version}.tar.gz
@@ -10,7 +10,7 @@ Source0:      http://dl.sourceforge.net/aa-project/%{name}-%{version}.tar.gz
 Patch0:                %{name}-typos.patch
 Patch1:                %{name}-regparm.patch
 Patch2:                segv64.patch
-Patch3:                pulse.patch
+Patch3:                bb-1.3.0_rc1-disable-pulse.patch
 URL:           http://aa-project.sourceforge.net/bb/
 BuildRequires: aalib-devel >= 1.4
 BuildRequires: autoconf
diff --git a/pulse.patch b/pulse.patch
deleted file mode 100644 (file)
index ae033ce..0000000
+++ /dev/null
@@ -1,22 +0,0 @@
---- bb-1.3.0/timers.c.pulse    2017-06-30 21:37:27.711687696 +0200
-+++ bb-1.3.0/timers.c  2017-06-30 21:46:36.218568976 +0200
-@@ -483,14 +483,17 @@ tl_process_group (tl_group * group, int
-             int time = timer->interval - tl_lookup_timer (timer);
-             if (time <= 0)
-               {
-+                int n;
-                 if (activated != NULL)
-                   (*activated)++;
-                 again = 1;
-                 tl_reset_timer (timer);
-                 if (time < -200 * 1000000)
-                   time = 0;   /*underflow? */
--                tl_slowdown_timer (timer, time);
--                time = timer->interval + time;
-+                n = -(time) / timer->interval + 1;
-+                time += timer->interval * n;
-+
-+                tl_slowdown_timer (timer, time - timer->interval);
-                 timer->handler (timer->userdata);
-                 tl_update_time ();
-               }
This page took 0.096648 seconds and 4 git commands to generate.