From 079990867dbe579a9287c156d0d07b6a3d3ee147 Mon Sep 17 00:00:00 2001 From: Miroslav Lichvar Date: Mon, 15 Feb 2010 12:08:55 +0000 Subject: [PATCH] - fix linking with --no-add-needed (#564662) - use %%global macro instead of %%define --- gpsd-2.39-implicitlibdeps.patch | 21 +++++++++++++++++++++ gpsd.spec | 10 ++++++++-- 2 files changed, 29 insertions(+), 2 deletions(-) create mode 100644 gpsd-2.39-implicitlibdeps.patch diff --git a/gpsd-2.39-implicitlibdeps.patch b/gpsd-2.39-implicitlibdeps.patch new file mode 100644 index 0000000..506d34b --- /dev/null +++ b/gpsd-2.39-implicitlibdeps.patch @@ -0,0 +1,21 @@ +diff -up gpsd-2.39/Makefile.in.implicitlibdeps gpsd-2.39/Makefile.in +--- gpsd-2.39/Makefile.in.implicitlibdeps 2010-02-15 12:51:28.000000000 +0100 ++++ gpsd-2.39/Makefile.in 2010-02-15 12:56:31.000000000 +0100 +@@ -331,7 +331,7 @@ XP_LIBS = @XP_LIBS@ + XT_LIBS = @XT_LIBS@ + X_CFLAGS = @X_CFLAGS@ + X_EXTRA_LIBS = @X_EXTRA_LIBS@ +-X_LIBS = @X_LIBS@ ++X_LIBS = @X_LIBS@ -lX11 + X_PRE_LIBS = @X_PRE_LIBS@ + abs_builddir = @abs_builddir@ + abs_srcdir = @abs_srcdir@ +@@ -446,7 +446,7 @@ xgpsspeed_SOURCES = \ + $(xgpsspeed_c_sources) \ + xgpsspeed.icon + +-xgpsspeed_LDADD = $(LIBM) $(LIBC) $(LIBNSL) $(LIBSOCKET) $(XAW_LIBS) $(X_LIBS) $(X_PRE_LIBS) libgps.la -lm $(LIBPTHREAD) ++xgpsspeed_LDADD = $(LIBM) $(LIBC) $(LIBNSL) $(LIBSOCKET) $(XAW_LIBS) $(XT_LIBS) $(X_LIBS) $(X_PRE_LIBS) libgps.la -lm $(LIBPTHREAD) + + # + # Build cgps diff --git a/gpsd.spec b/gpsd.spec index 2527a49..64f619f 100644 --- a/gpsd.spec +++ b/gpsd.spec @@ -1,8 +1,8 @@ -%{!?python_sitearch: %define python_sitearch %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib(1)")} +%{!?python_sitearch: %global python_sitearch %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib(1)")} Name: gpsd Version: 2.39 -Release: 5%{?dist} +Release: 6%{?dist} Summary: Service daemon for mediating access to a GPS Group: System Environment/Daemons @@ -19,6 +19,7 @@ Patch0: python-pyexecdir-install-gpsd-2.38.patch Patch1: parallel-make-dependencies.patch # Viking needs this header file to be able to build Patch2: gpsd-2.39-install-gpsdclient-header.patch +Patch3: gpsd-2.39-implicitlibdeps.patch BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) BuildRequires: dbus-devel dbus-glib-devel ncurses-devel xmlto python-devel @@ -75,6 +76,7 @@ can run on a serial terminal or terminal emulator. %patch0 -p1 %patch1 -p1 %patch2 -p1 +%patch3 -p1 %build %configure \ @@ -229,6 +231,10 @@ fi %changelog +* Mon Feb 15 2010 Miroslav Lichvar - 2.39-6 +- fix linking with --no-add-needed (#564662) +- use %%global macro instead of %%define + * Wed Aug 12 2009 Marek Mahut - 2.39-5 - RHBZ#505588: gpsd has a broken initscript that fails to launch daemon