[libmikmod/f15] libmikmod has undefined symbol 'floor' on ppc, add -lm to libmikmod-config

Karsten Hopp karsten at fedoraproject.org
Wed Dec 21 15:44:05 UTC 2011


commit 66735cab33333d62a10c89bf8e8978c5ebcff6b4
Author: Karsten Hopp <karsten at redhat.com>
Date:   Wed Dec 21 16:46:03 2011 +0100

    libmikmod has undefined symbol 'floor' on ppc, add -lm to libmikmod-config

 libmikmod-floor.patch |   23 +++++++++++++++++++++++
 libmikmod.spec        |    9 ++++++++-
 2 files changed, 31 insertions(+), 1 deletions(-)
---
diff --git a/libmikmod-floor.patch b/libmikmod-floor.patch
new file mode 100644
index 0000000..432c203
--- /dev/null
+++ b/libmikmod-floor.patch
@@ -0,0 +1,23 @@
+diff -up libmikmod-3.2.0-beta2/configure.ppc libmikmod-3.2.0-beta2/configure
+diff -up libmikmod-3.2.0-beta2/libmikmod-config.in.ppc libmikmod-3.2.0-beta2/libmikmod-config.in
+--- libmikmod-3.2.0-beta2/libmikmod-config.in.ppc	2011-12-02 11:04:24.000000000 +0100
++++ libmikmod-3.2.0-beta2/libmikmod-config.in	2011-12-02 11:56:01.000000000 +0100
+@@ -54,15 +54,15 @@ while test $# -gt 0 ; do
+     		else
+     		    libdir=-L${exec_prefix}/lib
+     		fi
+-		echo $libdir -lmikmod @LIBRARY_LIB@
++		echo $libdir -lmikmod -lm @LIBRARY_LIB@
+ 	;;
+ 	--libs32)
+ 		libdir=-L${exec_prefix}/lib
+-		echo $libdir -lmikmod @LIBRARY_LIB@
++		echo $libdir -lmikmod -lm @LIBRARY_LIB@
+ 	;;
+ 	--libs64)
+ 		libdir=-L${exec_prefix}/lib64
+-		echo $libdir -lmikmod @LIBRARY_LIB@
++		echo $libdir -lmikmod -lm @LIBRARY_LIB@
+ 	;;
+ 	*)
+ 		echo "${usage}" 1>&2
diff --git a/libmikmod.spec b/libmikmod.spec
index 8bb81dd..312ac0b 100644
--- a/libmikmod.spec
+++ b/libmikmod.spec
@@ -1,7 +1,7 @@
 Summary: A MOD music file player library
 Name: libmikmod
 Version: 3.2.0
-Release: 12.beta2%{?dist}
+Release: 13.beta2%{?dist}
 License: GPLv2 and LGPLv2+
 Group: Applications/Multimedia
 Buildroot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
@@ -17,6 +17,7 @@ Patch5:  libmikmod-info.patch
 Patch6:  libmikmod-CVE-2007-6720.patch
 Patch7:  libmikmod-CVE-2009-0179.patch
 Patch8:  libmikmod-CVE-2009-3995,3996.patch
+Patch9:  libmikmod-floor.patch
 
 %description
 libmikmod is a library used by the mikmod MOD music file player for
@@ -47,6 +48,9 @@ applications for mikmod.
 %patch6 -p1 -b .CVE-2007-6720
 %patch7 -p1 -b .CVE-2009-0179
 %patch8 -p1 -b .CVE-2009-3995,3996
+%ifarch ppc ppc64
+%patch9 -p1 -b .ppc
+%endif
 
 %build
 %configure
@@ -88,6 +92,9 @@ fi
 %{_mandir}/man1/libmikmod-config*
 
 %changelog
+* Wed Dec 21 2011 Karsten Hopp <karsten at redhat.com> 3.2.0-13.beta2
+- libmikmod has undefined symbol 'floor' on ppc, add -lm to libmikmod-config
+
 * Wed Feb 09 2011 Fedora Release Engineering <rel-eng at lists.fedoraproject.org> - 3.2.0-12.beta2
 - Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
 


More information about the scm-commits mailing list