From 865c7ebf9bd5503df8d7b64d7ae02ee4f23d4981 Mon Sep 17 00:00:00 2001 From: Tim Waugh Date: Sat, 20 Feb 2010 15:49:25 +0000 Subject: [PATCH] - Use fixed patch for LDFLAGS to make sure libgs.so gets a soname (bug #565935). --- ghostscript-ldflags.patch | 12 +++++------- ghostscript.spec | 6 +++++- 2 files changed, 10 insertions(+), 8 deletions(-) diff --git a/ghostscript-ldflags.patch b/ghostscript-ldflags.patch index dbf189f..4893264 100644 --- a/ghostscript-ldflags.patch +++ b/ghostscript-ldflags.patch @@ -1,6 +1,5 @@ -diff -up ghostscript-8.71/base/unix-dll.mak.ldflags ghostscript-8.71/base/unix-dll.mak ---- ghostscript-8.71/base/unix-dll.mak.ldflags 2009-10-19 21:24:53.000000000 +0100 -+++ ghostscript-8.71/base/unix-dll.mak 2010-02-19 10:07:06.645044318 +0000 +--- ghostscript-8.71/base/unix-dll.mak 2009-10-19 21:24:53.000000000 +0100 ++++ ghostscript-8.71/base/unix-dll.mak.ldflags 2010-02-19 10:07:06.645044318 +0000 @@ -88,8 +88,9 @@ $(GSSOX_XE): $(GS_SO) $(PSSRC)$(SOC_LOAD # ------------------------- Recursive make targets ------------------------- # @@ -8,13 +7,12 @@ diff -up ghostscript-8.71/base/unix-dll.mak.ldflags ghostscript-8.71/base/unix-d -SODEFS=LDFLAGS='$(LDFLAGS) $(LDFLAGS_SO)'\ +SODEFS=\ GS_XE=$(BINDIR)/$(SOBINRELDIR)/$(GS_SONAME_MAJOR_MINOR)\ -+ GS_XE_LDFLAGS=$(LDFLAGS_SO)\ ++ GS_XE_LDFLAGS='$(LDFLAGS_SO)'\ STDIO_IMPLEMENTATION=c\ DISPLAY_DEV=$(DD)$(SOOBJRELDIR)/display.dev\ BINDIR=$(BINDIR)/$(SOBINRELDIR)\ -diff -up ghostscript-8.71/base/unixlink.mak.ldflags ghostscript-8.71/base/unixlink.mak ---- ghostscript-8.71/base/unixlink.mak.ldflags 2008-02-29 08:13:08.000000000 +0000 -+++ ghostscript-8.71/base/unixlink.mak 2010-02-19 10:07:06.646044276 +0000 +--- ghostscript-8.71/base/unixlink.mak 2008-02-29 08:13:08.000000000 +0000 ++++ ghostscript-8.71/base/unixlink.mak.ldflags 2010-02-19 10:07:06.646044276 +0000 @@ -50,7 +50,7 @@ $(GS_A): $(obj_tr) $(ECHOGS_XE) $(INT_AR # which has limited environment space. ldt_tr=$(PSOBJ)ldt.tr diff --git a/ghostscript.spec b/ghostscript.spec index 9c2da87..07fee4d 100644 --- a/ghostscript.spec +++ b/ghostscript.spec @@ -5,7 +5,7 @@ Summary: A PostScript interpreter and renderer. Name: ghostscript Version: %{gs_ver} -Release: 2%{?dist} +Release: 3%{?dist} # Included CMap data is Redistributable, no modification permitted, # see http://bugzilla.redhat.com/487510 @@ -330,6 +330,10 @@ rm -rf $RPM_BUILD_ROOT %{_libdir}/libgs.so %changelog +* Sat Feb 20 2010 Tim Waugh 8.71-3 +- Use fixed patch for LDFLAGS to make sure libgs.so gets a soname + (bug #565935). + * Fri Feb 19 2010 Tim Waugh 8.71-2 - Fixed LDFLAGS when building dynamically linked executables (bug #565935).