[packages/bb] - patch from Gentoo - rel 11
witekfl
witekfl at pld-linux.org
Fri Feb 25 16:42:28 CET 2022
commit bdbb1838d6a2f64331fc0fe386043af2622e1ff4
Author: Witold Filipczyk <witekfl at poczta.onet.pl>
Date: Fri Feb 25 16:40:57 2022 +0100
- patch from Gentoo
- rel 11
bb-1.3.0_rc1-disable-pulse.patch | 21 +++++++++++++++++++++
bb.spec | 4 ++--
pulse.patch | 22 ----------------------
3 files changed, 23 insertions(+), 24 deletions(-)
---
diff --git a/bb.spec b/bb.spec
index d055ecf..64ed30a 100644
--- 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/bb-1.3.0_rc1-disable-pulse.patch b/bb-1.3.0_rc1-disable-pulse.patch
new file mode 100644
index 0000000..3d78891
--- /dev/null
+++ b/bb-1.3.0_rc1-disable-pulse.patch
@@ -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/pulse.patch b/pulse.patch
deleted file mode 100644
index ae033ce..0000000
--- a/pulse.patch
+++ /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 ();
- }
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/bb.git/commitdiff/bdbb1838d6a2f64331fc0fe386043af2622e1ff4
More information about the pld-cvs-commit
mailing list