[packages/FusionSound] - added format patch to fix build with -Werror=format-security
qboosh
qboosh at pld-linux.org
Sat Oct 6 15:28:41 CEST 2012
commit b0239a5b646e3f148ddbbb6e57a336706de35a41
Author: Jakub Bogusz <qboosh at pld-linux.org>
Date: Sat Oct 6 15:30:09 2012 +0200
- added format patch to fix build with -Werror=format-security
FusionSound-format.patch | 11 +++++++++++
FusionSound.spec | 2 ++
2 files changed, 13 insertions(+)
---
diff --git a/FusionSound.spec b/FusionSound.spec
index c8abe18..734cfca 100644
--- a/FusionSound.spec
+++ b/FusionSound.spec
@@ -9,6 +9,7 @@ Source0: http://www.directfb.org/downloads/Core/FusionSound/%{name}-%{version}.t
# Source0-md5: bc6ed0cb77c0b8954f91706fe8aa95bc
Patch0: %{name}-conf.patch
Patch1: %{name}-ffmpeg.patch
+Patch2: %{name}-format.patch
URL: http://www.directfb.org/index.php?path=Platform/FusionSound
BuildRequires: DirectFB-devel >= 1:1.6.0
# for examples
@@ -133,6 +134,7 @@ Moduł FusionSound dostarczający muzykę Ogg Vorbis.
%setup -q
%patch0 -p1
%patch1 -p1
+%patch2 -p1
%build
%{__libtoolize}
diff --git a/FusionSound-format.patch b/FusionSound-format.patch
new file mode 100644
index 0000000..d0ab2a9
--- /dev/null
+++ b/FusionSound-format.patch
@@ -0,0 +1,11 @@
+--- FusionSound-1.6.2/drivers/alsa.c.orig 2012-09-20 18:01:15.000000000 +0200
++++ FusionSound-1.6.2/drivers/alsa.c 2012-10-06 15:29:23.860469388 +0200
+@@ -327,7 +327,7 @@
+ if (snd_ctl_card_info( ctl, info ) == 0) {
+ snprintf( device_info->name,
+ FS_SOUND_DEVICE_INFO_NAME_LENGTH,
+- snd_ctl_card_info_get_name( info ) );
++ "%s", snd_ctl_card_info_get_name( info ) );
+ }
+
+ snd_ctl_close( ctl );
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/FusionSound.git/commitdiff/b0239a5b646e3f148ddbbb6e57a336706de35a41
More information about the pld-cvs-commit
mailing list