rpms/gcalctool/devel 0001-Fix-linking-against-libm.patch, NONE, 1.1 gcalctool.spec, 1.105, 1.106

Bastien Nocera hadess at fedoraproject.org
Wed Feb 10 17:20:36 UTC 2010


Author: hadess

Update of /cvs/pkgs/rpms/gcalctool/devel
In directory cvs1.fedora.phx.redhat.com:/tmp/cvs-serv12495

Modified Files:
	gcalctool.spec 
Added Files:
	0001-Fix-linking-against-libm.patch 
Log Message:
Fix libm linking

0001-Fix-linking-against-libm.patch:
 configure.in |    3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

--- NEW FILE 0001-Fix-linking-against-libm.patch ---
>From 5b753000c9aba9abbf826273aca5d4443c218bea Mon Sep 17 00:00:00 2001
From: Bastien Nocera <hadess at hadess.net>
Date: Wed, 10 Feb 2010 16:43:10 +0000
Subject: [PATCH] Fix linking against libm

Otherwise gcalctool isn't getting linked against libm:
/usr/bin/ld: mp.o: undefined reference to symbol 'log@@GLIBC_2.2.5'
/usr/bin/ld: note: 'log@@GLIBC_2.2.5' is defined in DSO /lib64/libm.so.6 so try adding it to the linker command line
/lib64/libm.so.6: could not read symbols: Invalid operation

https://bugzilla.gnome.org/show_bug.cgi?id=609557
---
 configure.in |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)

diff --git a/configure.in b/configure.in
index 67f09b0..e6e64f9 100644
--- a/configure.in
+++ b/configure.in
@@ -34,6 +34,8 @@ PKG_CHECK_MODULES(GCALCCMD, [
     glib-2.0
 ])
 
+AC_CHECK_LIB(m, log)
+
 dnl ###########################################################################
 dnl Determine if a usable lex is available on this system
 dnl ###########################################################################
-- 
1.6.6



Index: gcalctool.spec
===================================================================
RCS file: /cvs/pkgs/rpms/gcalctool/devel/gcalctool.spec,v
retrieving revision 1.105
retrieving revision 1.106
diff -u -p -r1.105 -r1.106
--- gcalctool.spec	10 Feb 2010 16:03:44 -0000	1.105
+++ gcalctool.spec	10 Feb 2010 17:20:36 -0000	1.106
@@ -29,6 +29,10 @@ Requires(pre): GConf2
 
 Requires: GConf2
 
+# https://bugzilla.gnome.org/show_bug.cgi?id=609557
+Patch0: 0001-Fix-linking-against-libm.patch
+BuildRequires: autoconf automake libtool gnome-common intltool
+
 %description
 gcalctool is a powerful graphical calculator with financial, logical and
 scientific modes. It uses a multiple precision package to do its arithmetic
@@ -36,6 +40,8 @@ to give a high degree of accuracy.
 
 %prep
 %setup -q
+%patch0 -p1 -b .libm
+autoreconf -f
 
 %build
 %configure --disable-scrollkeeper



More information about the scm-commits mailing list