packages: libunwind/libunwind.spec, libunwind/libunwind-rpath.patch (NEW) -...
arekm
arekm at pld-linux.org
Wed Sep 15 20:37:39 CEST 2010
Author: arekm Date: Wed Sep 15 18:37:39 2010 GMT
Module: packages Tag: HEAD
---- Log message:
- rel 2; rebuild with fPIC
---- Files affected:
packages/libunwind:
libunwind.spec (1.14 -> 1.15) , libunwind-rpath.patch (NONE -> 1.1) (NEW)
---- Diffs:
================================================================
Index: packages/libunwind/libunwind.spec
diff -u packages/libunwind/libunwind.spec:1.14 packages/libunwind/libunwind.spec:1.15
--- packages/libunwind/libunwind.spec:1.14 Tue Aug 31 15:43:12 2010
+++ packages/libunwind/libunwind.spec Wed Sep 15 20:37:34 2010
@@ -1,4 +1,5 @@
# $Revision$, $Date$
+%bcond_with tests
Summary: libunwind - a (mostly) platform-independent unwind API
Summary(pl.UTF-8): libunwind - (prawie) niezależne od platformy API do rozwijania
Name: libunwind
@@ -9,6 +10,7 @@
Source0: http://download.savannah.gnu.org/releases/libunwind/%{name}-%{version}.tar.gz
# Source0-md5: 3e9ca08118e22165a7f07d01d61a2d0d
Patch0: %{name}-disable-setjmp.patch
+Patch1: %{name}-rpath.patch
URL: http://www.nongnu.org/libunwind/
BuildRequires: autoconf
BuildRequires: automake >= 1.6
@@ -67,6 +69,7 @@
%prep
%setup -q
%patch0 -p1
+%patch1 -p1
%build
%{__libtoolize}
@@ -74,9 +77,12 @@
%{__autoconf}
%{__autoheader}
%{__automake}
-%configure
+%configure \
+ CPPFLAGS="%{rpmcppflags} -fPIC"
%{__make}
+%{?with_tests:%{__make} check}
+
%install
rm -rf $RPM_BUILD_ROOT
@@ -124,6 +130,9 @@
All persons listed below can be reached at <cvs_login>@pld-linux.org
$Log$
+Revision 1.15 2010/09/15 18:37:34 arekm
+- rel 2; rebuild with fPIC
+
Revision 1.14 2010/08/31 13:43:12 cactus
- rel 2; add disable setjmp patch - incompatible with gcc
================================================================
Index: packages/libunwind/libunwind-rpath.patch
diff -u /dev/null packages/libunwind/libunwind-rpath.patch:1.1
--- /dev/null Wed Sep 15 20:37:39 2010
+++ packages/libunwind/libunwind-rpath.patch Wed Sep 15 20:37:34 2010
@@ -0,0 +1,33 @@
+#! /bin/sh /usr/share/dpatch/dpatch-run
+## 090828-rpath.dpatch by Daigo Moriwaki <daigo at debian.org>
+##
+## All lines beginning with `## DP:' are a description of the patch.
+## DP: rpath should not be used
+## DP: http://wiki.debian.org/RpathIssue
+
+ at DPATCH@
+diff -urNad libunwind-0.99~/configure.in libunwind-0.99/configure.in
+--- libunwind-0.99~/configure.in 2009-05-09 01:34:10.000000000 +0900
++++ libunwind-0.99/configure.in 2009-08-29 10:41:18.000000000 +0900
+@@ -17,10 +17,20 @@
+ AC_PROG_CXX
+ AC_PROG_INSTALL
+ AC_PROG_MAKE_SET
+-AM_PROG_LIBTOOL
++AC_PROG_LIBTOOL
+ AM_PROG_AS
+ AM_PROG_CC_C_O
+
++case ${host} in
++ *-pc-linux-gnu)
++ AC_MSG_RESULT([Fixing libtool for -rpath problems.])
++ sed < libtool > libtool-2 \
++ 's/^hardcode_libdir_flag_spec.*$'/'hardcode_libdir_flag_spec=" -D__LIBTOOL_IS_A_FOOL__ "/'
++ mv libtool-2 libtool
++ chmod 755 libtool
++ ;;
++esac
++
+ dnl Checks for libraries.
+ AC_CHECK_LIB(uca, __uc_get_grs)
+ CHECK_ATOMIC_OPS
================================================================
---- CVS-web:
http://cvs.pld-linux.org/cgi-bin/cvsweb.cgi/packages/libunwind/libunwind.spec?r1=1.14&r2=1.15&f=u
More information about the pld-cvs-commit
mailing list