rpms/smc/devel smc-1.9-fix-implicit-linking.patch, NONE, 1.1 smc.spec, 1.11, 1.12

Hans de Goede jwrdegoede at rpmfusion.org
Tue May 25 12:27:17 CEST 2010


Author: jwrdegoede

Update of /cvs/free/rpms/smc/devel
In directory se02.es.rpmfusion.net:/tmp/cvs-serv8496

Modified Files:
	smc.spec 
Added Files:
	smc-1.9-fix-implicit-linking.patch 
Log Message:
* Sun May 23 2010 Thorsten Leemhuis <fedora [AT] leemhuis [DOT] info> - 1.9-4
- add patch and BR libX11-devel as kevin suggested in
  http://thread.gmane.org/gmane.linux.redhat.fedora.rpmfusion.devel/7651/focus=7665
- add BR gettext-devel
- add "LIBS=-lboost_system" to configure to fix another DSO issue; better
  fix needed in the long term


smc-1.9-fix-implicit-linking.patch:
 configure    |  119 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
 configure.ac |    5 ++
 2 files changed, 124 insertions(+)

--- NEW FILE smc-1.9-fix-implicit-linking.patch ---
diff -ur smc-1.9/configure smc-1.9-fix-implicit-linking/configure
--- smc-1.9/configure	2009-08-17 18:00:45.000000000 +0200
+++ smc-1.9-fix-implicit-linking/configure	2010-05-19 07:17:07.000000000 +0200
@@ -667,6 +667,8 @@
 MSGFMT
 GETTEXT_MACRO_VERSION
 USE_NLS
+X11_LIBS
+X11_CFLAGS
 CEGUI_LIBS
 CEGUI_CFLAGS
 SDL_LIBS
@@ -786,6 +788,8 @@
 SDL_LIBS
 CEGUI_CFLAGS
 CEGUI_LIBS
+X11_CFLAGS
+X11_LIBS
 CC
 CFLAGS
 CXXCPP'
@@ -1450,6 +1454,8 @@
   CEGUI_CFLAGS
               C compiler flags for CEGUI, overriding pkg-config
   CEGUI_LIBS  linker flags for CEGUI, overriding pkg-config
+  X11_CFLAGS  C compiler flags for X11, overriding pkg-config
+  X11_LIBS    linker flags for X11, overriding pkg-config
   CC          C compiler command
   CFLAGS      C compiler flags
   CXXCPP      C++ preprocessor
@@ -4274,6 +4280,119 @@
 CPPFLAGS="$CPPFLAGS $CEGUI_CFLAGS"
 LIBS="$LIBS $CEGUI_LIBS"
 
+# Check for the X11 library
+
+pkg_failed=no
+{ $as_echo "$as_me:$LINENO: checking for X11" >&5
+$as_echo_n "checking for X11... " >&6; }
+
+if test -n "$X11_CFLAGS"; then
+    pkg_cv_X11_CFLAGS="$X11_CFLAGS"
+ elif test -n "$PKG_CONFIG"; then
+    if test -n "$PKG_CONFIG" && \
+    { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"x11\"") >&5
+  ($PKG_CONFIG --exists --print-errors "x11") 2>&5
+  ac_status=$?
+  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
+  (exit $ac_status); }; then
+  pkg_cv_X11_CFLAGS=`$PKG_CONFIG --cflags "x11" 2>/dev/null`
+else
+  pkg_failed=yes
+fi
+ else
+    pkg_failed=untried
+fi
+if test -n "$X11_LIBS"; then
+    pkg_cv_X11_LIBS="$X11_LIBS"
+ elif test -n "$PKG_CONFIG"; then
+    if test -n "$PKG_CONFIG" && \
+    { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"x11\"") >&5
+  ($PKG_CONFIG --exists --print-errors "x11") 2>&5
+  ac_status=$?
+  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
+  (exit $ac_status); }; then
+  pkg_cv_X11_LIBS=`$PKG_CONFIG --libs "x11" 2>/dev/null`
+else
+  pkg_failed=yes
+fi
+ else
+    pkg_failed=untried
+fi
+
+
+
+if test $pkg_failed = yes; then
+
+if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
+        _pkg_short_errors_supported=yes
+else
+        _pkg_short_errors_supported=no
+fi
+        if test $_pkg_short_errors_supported = yes; then
+	        X11_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "x11" 2>&1`
+        else
+	        X11_PKG_ERRORS=`$PKG_CONFIG --print-errors "x11" 2>&1`
+        fi
+	# Put the nasty error message in config.log where it belongs
+	echo "$X11_PKG_ERRORS" >&5
+
+	{ { $as_echo "$as_me:$LINENO: error: Package requirements (x11) were not met:
+
+$X11_PKG_ERRORS
+
+Consider adjusting the PKG_CONFIG_PATH environment variable if you
+installed software in a non-standard prefix.
+
+Alternatively, you may set the environment variables X11_CFLAGS
+and X11_LIBS to avoid the need to call pkg-config.
+See the pkg-config man page for more details.
+" >&5
+$as_echo "$as_me: error: Package requirements (x11) were not met:
+
+$X11_PKG_ERRORS
+
+Consider adjusting the PKG_CONFIG_PATH environment variable if you
+installed software in a non-standard prefix.
+
+Alternatively, you may set the environment variables X11_CFLAGS
+and X11_LIBS to avoid the need to call pkg-config.
+See the pkg-config man page for more details.
+" >&2;}
+   { (exit 1); exit 1; }; }
+elif test $pkg_failed = untried; then
+	{ { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
+$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
+{ { $as_echo "$as_me:$LINENO: error: The pkg-config script could not be found or is too old.  Make sure it
+is in your PATH or set the PKG_CONFIG environment variable to the full
+path to pkg-config.
+
+Alternatively, you may set the environment variables X11_CFLAGS
+and X11_LIBS to avoid the need to call pkg-config.
+See the pkg-config man page for more details.
+
+To get pkg-config, see <http://pkg-config.freedesktop.org/>.
+See \`config.log' for more details." >&5
+$as_echo "$as_me: error: The pkg-config script could not be found or is too old.  Make sure it
+is in your PATH or set the PKG_CONFIG environment variable to the full
+path to pkg-config.
+
+Alternatively, you may set the environment variables X11_CFLAGS
+and X11_LIBS to avoid the need to call pkg-config.
+See the pkg-config man page for more details.
+
+To get pkg-config, see <http://pkg-config.freedesktop.org/>.
+See \`config.log' for more details." >&2;}
+   { (exit 1); exit 1; }; }; }
+else
+	X11_CFLAGS=$pkg_cv_X11_CFLAGS
+	X11_LIBS=$pkg_cv_X11_LIBS
+        { $as_echo "$as_me:$LINENO: result: yes" >&5
+$as_echo "yes" >&6; }
+	:
+fi
+CPPFLAGS="$CPPFLAGS $X11_CFLAGS"
+LIBS="$LIBS $X11_LIBS"
+
 # Check for the gettext library
 
   { $as_echo "$as_me:$LINENO: checking whether NLS is requested" >&5
diff -ur smc-1.9/configure.ac smc-1.9-fix-implicit-linking/configure.ac
--- smc-1.9/configure.ac	2009-08-17 15:59:00.000000000 +0200
+++ smc-1.9-fix-implicit-linking/configure.ac	2010-05-19 07:16:42.000000000 +0200
@@ -57,6 +57,11 @@
 CPPFLAGS="$CPPFLAGS $CEGUI_CFLAGS"
 LIBS="$LIBS $CEGUI_LIBS"
 
+# Check for the X11 library
+PKG_CHECK_MODULES(X11, x11)
+CPPFLAGS="$CPPFLAGS $X11_CFLAGS"
+LIBS="$LIBS $X11_LIBS"
+
 # Check for the gettext library
 AM_GNU_GETTEXT([external])
 


Index: smc.spec
===================================================================
RCS file: /cvs/free/rpms/smc/devel/smc.spec,v
retrieving revision 1.11
retrieving revision 1.12
diff -u -r1.11 -r1.12
--- smc.spec	24 Jan 2010 11:11:12 -0000	1.11
+++ smc.spec	25 May 2010 10:27:15 -0000	1.12
@@ -1,6 +1,6 @@
 Name:           smc
 Version:        1.9
-Release:        2%{?dist}
+Release:        4%{?dist}
 Summary:        2D platform game that uses OpenGL in a style similar to Super Mario
 Group:          Amusements/Games
 License:        GPLv3
@@ -8,7 +8,11 @@
 Source0:        http://downloads.sourceforge.net/smclone/%{name}-%{version}.tar.bz2
 Source1:        smc.sh
 Source2:        dochelper.pl
+# suggested in http://thread.gmane.org/gmane.linux.redhat.fedora.rpmfusion.devel/7651/focus=7665
+Patch0:         http://repo.calcforge.org/temp/smc-1.9-fix-implicit-linking.patch
 BuildRoot:      %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
+BuildRequires:  libX11-devel
+BuildRequires:  gettext-devel
 BuildRequires:  boost-devel >= 1.31
 BuildRequires:  cegui-devel >= 0.5
 BuildRequires:  libGLU-devel
@@ -32,10 +36,10 @@
 %setup -q
 #Fix EOL chars
 sed -i 's/\r//' docs/style.css docs/*.html docs/*.txt
-
+%patch0 -p1 -b .patch0
 
 %build
-%configure
+%configure LIBS=-lboost_system
 make %{?_smp_mflags}
 
 # Generate the credit list from lots of little text files scattered around the
@@ -107,6 +111,16 @@
 
 
 %changelog
+* Sun May 23 2010 Thorsten Leemhuis <fedora [AT] leemhuis [DOT] info> - 1.9-4
+- add patch and BR libX11-devel as kevin suggested in
+  http://thread.gmane.org/gmane.linux.redhat.fedora.rpmfusion.devel/7651/focus=7665
+- add BR gettext-devel
+- add "LIBS=-lboost_system" to configure to fix another DSO issue; better
+  fix needed in the long term
+
+* Sun May 16 2010 Thorsten Leemhuis <fedora [AT] leemhuis [DOT] info> - 1.9-3
+- rebuilt
+
 * Sat Jan 23 2010 Hans de Goede <j.w.r.degoede at hhs.nl> 1.9-2
 - rebuild for new libboost
 



More information about the rpmfusion-commits mailing list