[packages/SDL2_sound] - updated to 2.0.6

qboosh qboosh at pld-linux.org
Sat Jun 13 21:43:48 CEST 2026


commit 80e94705da9efde98602f1bc8cfd9336a9d34cb6
Author: Jakub Bogusz <qboosh at pld-linux.org>
Date:   Sat Jun 13 21:44:10 2026 +0200

    - updated to 2.0.6

 SDL2_sound.spec                 | 10 +++++-----
 SDL_sound-use-builtin-clz.patch | 23 ++++++++++++++++-------
 2 files changed, 21 insertions(+), 12 deletions(-)
---
diff --git a/SDL2_sound.spec b/SDL2_sound.spec
index 58cbf61..b4ac847 100644
--- a/SDL2_sound.spec
+++ b/SDL2_sound.spec
@@ -2,13 +2,13 @@
 Summary:	An abstract soundfile decoder
 Summary(pl.UTF-8):	Abstrakcyjny dekoder plików dźwiękowych
 Name:		SDL2_sound
-Version:	2.0.4
+Version:	2.0.6
 Release:	1
 License:	Zlib
 Group:		Libraries
 #Source0Download: https://github.com/icculus/SDL_sound/releases
 Source0:	https://github.com/icculus/SDL_sound/archive/v%{version}/SDL_sound-%{version}.tar.gz
-# Source0-md5:	7954125fd5f077f4846572f6bf0abfce
+# Source0-md5:	f6147a2debd050599fda3fd3424297bb
 Patch0:		SDL_sound-use-builtin-clz.patch
 URL:		http://www.icculus.org/SDL_sound/
 BuildRequires:	SDL2-devel >= 2.0
@@ -109,12 +109,12 @@ rm -rf $RPM_BUILD_ROOT
 %defattr(644,root,root,755)
 %doc LICENSE.txt README.md docs/{CHANGELOG,CREDITS}.txt
 %attr(755,root,root) %{_bindir}/playsound
-%attr(755,root,root) %{_libdir}/libSDL2_sound.so.*.*.*
-%attr(755,root,root) %ghost %{_libdir}/libSDL2_sound.so.2
+%{_libdir}/libSDL2_sound.so.*.*.*
+%ghost %{_libdir}/libSDL2_sound.so.2
 
 %files devel
 %defattr(644,root,root,755)
-%attr(755,root,root) %{_libdir}/libSDL2_sound.so
+%{_libdir}/libSDL2_sound.so
 %{_includedir}/SDL2/SDL_sound.h
 %{_pkgconfigdir}/SDL2_sound.pc
 %{_libdir}/cmake/SDL2_sound
diff --git a/SDL_sound-use-builtin-clz.patch b/SDL_sound-use-builtin-clz.patch
index 6d3d49f..9388d2f 100644
--- a/SDL_sound-use-builtin-clz.patch
+++ b/SDL_sound-use-builtin-clz.patch
@@ -1,14 +1,22 @@
---- SDL_sound-2.0.4/src/dr_flac.h.orig	2025-02-03 20:05:04.840755751 +0100
-+++ SDL_sound-2.0.4/src/dr_flac.h	2025-02-03 20:09:07.742773171 +0100
-@@ -2797,25 +2797,7 @@ static DRFLAC_INLINE drflac_uint32 drfla
+--- SDL_sound-2.0.6/src/dr_flac.h.orig	2026-06-07 18:40:24.000000000 +0200
++++ SDL_sound-2.0.6/src/dr_flac.h	2026-06-13 21:28:43.939619070 +0200
+@@ -2716,34 +2716,7 @@ static DRFLAC_INLINE drflac_uint32 drfla
      #endif
  #else
      #if defined(__GNUC__) || defined(__clang__)
 -        #if defined(DRFLAC_X64)
 -            {
+-                /*
+-                A note on lzcnt.
+-
+-                We check for the presence of the lzcnt instruction at runtime before calling this function, but we still generate this code. I have had
+-                a report where the assembler does not recognize the lzcnt instruction. To work around this we are going to use `rep; bsr` instead which
+-                has an identical byte encoding as lzcnt, and should hopefully improve compatibility with older assemblers.
+-                */
 -                drflac_uint64 r;
 -                __asm__ __volatile__ (
--                    "lzcnt{ %1, %0| %0, %1}" : "=r"(r) : "r"(x) : "cc"
+-                    "rep; bsr{q %1, %0| %0, %1}" : "=r"(r) : "r"(x) : "cc"
+-                    /*"lzcnt{ %1, %0| %0, %1}" : "=r"(r) : "r"(x) : "cc"*/
 -                );
 -
 -                return (drflac_uint32)r;
@@ -17,13 +25,14 @@
 -            {
 -                drflac_uint32 r;
 -                __asm__ __volatile__ (
--                    "lzcnt{l %1, %0| %0, %1}" : "=r"(r) : "r"(x) : "cc"
+-                    "rep; bsr{l %1, %0| %0, %1}" : "=r"(r) : "r"(x) : "cc"
+-                    /*"lzcnt{l %1, %0| %0, %1}" : "=r"(r) : "r"(x) : "cc"*/
 -                );
 -
 -                return r;
 -            }
--        #elif defined(DRFLAC_ARM) && (defined(__ARM_ARCH) && __ARM_ARCH >= 5) && !defined(__ARM_ARCH_6M__) && !defined(DRFLAC_64BIT)   /* <-- I haven't tested 64-bit inline assembly, so only enabling this for the 32-bit build for now. */
-+        #if defined(DRFLAC_ARM) && (defined(__ARM_ARCH) && __ARM_ARCH >= 5) && !defined(__ARM_ARCH_6M__) && !defined(DRFLAC_64BIT)   /* <-- I haven't tested 64-bit inline assembly, so only enabling this for the 32-bit build for now. */
+-        #elif defined(DRFLAC_ARM) && (defined(__ARM_ARCH) && __ARM_ARCH >= 5) && !defined(__ARM_ARCH_6M__) && !(defined(__thumb__) && !defined(__thumb2__)) && !defined(DRFLAC_64BIT)   /* <-- I haven't tested 64-bit inline assembly, so only enabling this for the 32-bit build for now. */
++        #if defined(DRFLAC_ARM) && (defined(__ARM_ARCH) && __ARM_ARCH >= 5) && !defined(__ARM_ARCH_6M__) && !(defined(__thumb__) && !defined(__thumb2__)) && !defined(DRFLAC_64BIT)   /* <-- I haven't tested 64-bit inline assembly, so only enabling this for the 32-bit build for now. */
              {
                  unsigned int r;
                  __asm__ __volatile__ (
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/SDL2_sound.git/commitdiff/80e94705da9efde98602f1bc8cfd9336a9d34cb6



More information about the pld-cvs-commit mailing list