From a9227cd6a884d1ba45e8804de529c68a3e6f1e1dbf09a79ac2033512b95d61cf Mon Sep 17 00:00:00 2001 From: "Dr. Werner Fink" Date: Tue, 21 Feb 2012 12:23:22 +0000 Subject: [PATCH] . OBS-URL: https://build.opensuse.org/package/show/Publishing/a2ps?expand=0&rev=19 --- a2ps-4.13-linker.patch | 24 ++++++++++++++++++++++++ a2ps.changes | 6 ++++++ a2ps.spec | 2 ++ 3 files changed, 32 insertions(+) create mode 100644 a2ps-4.13-linker.patch diff --git a/a2ps-4.13-linker.patch b/a2ps-4.13-linker.patch new file mode 100644 index 0000000..8bc876f --- /dev/null +++ b/a2ps-4.13-linker.patch @@ -0,0 +1,24 @@ +--- auxdir/ltconfig ++++ auxdir/ltconfig 2012-02-21 12:20:09.366433998 +0000 +@@ -1966,19 +1966,8 @@ linux-gnu*) + finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' + shlibpath_var=LD_LIBRARY_PATH + shlibpath_overrides_runpath=no +- deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' +- file_magic_cmd=/usr/bin/file +- file_magic_test_file=`echo /lib/libc.so* /lib/libc-*.so` +- +- if test -f /lib/ld.so.1; then +- dynamic_linker='GNU ld.so' +- else +- # Only the GNU ld.so supports shared libraries on MkLinux. +- case "$host_cpu" in +- powerpc*) dynamic_linker=no ;; +- *) dynamic_linker='Linux ld.so' ;; +- esac +- fi ++ hardcode_into_libs=yes ++ dynamic_linker='GNU/Linux ld.so' + ;; + + netbsd*) diff --git a/a2ps.changes b/a2ps.changes index 3825449..4d5c829 100644 --- a/a2ps.changes +++ b/a2ps.changes @@ -1,3 +1,9 @@ +------------------------------------------------------------------- +Tue Feb 21 12:22:10 UTC 2012 - werner@suse.de + +- Fix shared library build on all 64bit architectures (hint from + Dinar Valeev) + ------------------------------------------------------------------- Tue Feb 7 09:22:18 CET 2012 - meissner@suse.de diff --git a/a2ps.spec b/a2ps.spec index 9bf5592..1ab2ef5 100644 --- a/a2ps.spec +++ b/a2ps.spec @@ -51,6 +51,7 @@ Patch9: a2ps-4.13-utf8.patch Patch10: a2ps-4.13-types.patch Patch11: a2ps-4.13-psgen.patch Patch12: a2ps-4.13-gv-arguments.patch +Patch13: a2ps-4.13-linker.patch BuildRoot: %{_tmppath}/%{name}-%{version}-build %description @@ -92,6 +93,7 @@ touch -r configure.in .ref %patch -P 10 -p 0 -b .types %patch -P 11 -p 0 -b .psgen %patch -P 12 -p 1 -b .gvarg +%patch -P 13 -p 0 -b .ldso %patch cp -f %SOURCE1 po/ko.po rename no nb po/no.*