[xqf/f15/master] fix build failure, libX11 and lib dl need be be linked

Karsten Hopp karsten at fedoraproject.org
Fri Mar 25 13:23:24 UTC 2011


commit bd60c880146e20f9c6cb9919824b2819852ea417
Author: Karsten Hopp <karsten at redhat.com>
Date:   Fri Mar 25 14:23:01 2011 +0100

    fix build failure, libX11 and lib dl need be be linked

 xqf-1.0.5-libx11.patch |   24 ++++++++++++++++++++++++
 xqf.spec               |    7 ++++++-
 2 files changed, 30 insertions(+), 1 deletions(-)
---
diff --git a/xqf-1.0.5-libx11.patch b/xqf-1.0.5-libx11.patch
new file mode 100644
index 0000000..07e84cc
--- /dev/null
+++ b/xqf-1.0.5-libx11.patch
@@ -0,0 +1,24 @@
+diff -up xqf-1.0.5/src/Makefile.am.libx11 xqf-1.0.5/src/Makefile.am
+--- xqf-1.0.5/src/Makefile.am.libx11	2006-10-28 15:12:09.000000000 +0200
++++ xqf-1.0.5/src/Makefile.am	2011-03-25 13:54:08.000000000 +0100
+@@ -32,7 +32,7 @@ xqf_LDADD = $(INTLLIBS) \
+ 	    $(GEOIP_LIB) \
+ 	    $(PACKAGE_LIBS) \
+ 	    $(GDK_PIXBUF_LIBS) \
+-	    -lz
++	    -lz -lX11 -ldl
+ 
+ xqf_LDFLAGS = -Wl,-rpath,$(pkglibdir) -Wl,--export-dynamic -Wl,--version-script=$(top_srcdir)/src/xqf.map
+ 
+diff -up xqf-1.0.5/src/Makefile.in.libx11 xqf-1.0.5/src/Makefile.in
+--- xqf-1.0.5/src/Makefile.in.libx11	2006-11-04 13:44:12.000000000 +0100
++++ xqf-1.0.5/src/Makefile.in	2011-03-25 13:54:19.000000000 +0100
+@@ -311,7 +311,7 @@ xqf_LDADD = $(INTLLIBS) \
+ 	    $(GEOIP_LIB) \
+ 	    $(PACKAGE_LIBS) \
+ 	    $(GDK_PIXBUF_LIBS) \
+-	    -lz
++	    -lz -lX11 -ldl
+ 
+ xqf_LDFLAGS = -Wl,-rpath,$(pkglibdir) -Wl,--export-dynamic -Wl,--version-script=$(top_srcdir)/src/xqf.map
+ 
diff --git a/xqf.spec b/xqf.spec
index 4917407..df87add 100644
--- a/xqf.spec
+++ b/xqf.spec
@@ -1,6 +1,6 @@
 Name:           xqf
 Version:        1.0.5
-Release:        11%{?dist}
+Release:        12%{?dist}
 Summary:        Server browser for many popular games
 
 Group:          Amusements/Games
@@ -9,6 +9,7 @@ URL:            http://www.linuxgames.com/xqf/
 Source:         http://downloads.sourceforge.net/%{name}/%{name}-%{version}.tar.gz
 Source1:        %{name}.desktop
 Patch0:         %{name}-%{version}-launch.patch
+Patch1:         %{name}-%{version}-libx11.patch
 BuildRoot:      %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
 
 Requires:       qstat >= 2.11
@@ -34,6 +35,7 @@ and uses the GTK+ toolkit.
 %prep
 %setup -q
 %patch0 -p0
+%patch1 -p1
 
 
 %build
@@ -97,6 +99,9 @@ gtk-update-icon-cache %{_datadir}/icons/hicolor &>/dev/null || :
 
 
 %changelog
+* Fri Mar 25 2011 Karsten Hopp <karsten at redhat.com> 1.0.5-12
+- fix build failure, libX11 and lib dl need be be linked
+
 * Tue Feb 08 2011 Fedora Release Engineering <rel-eng at lists.fedoraproject.org> - 1.0.5-11
 - Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
 


More information about the scm-commits mailing list