From 3d4bc055778835ab7fe71c69795907f5f400b82e Mon Sep 17 00:00:00 2001 From: CentOS Sources Date: Jun 04 2015 07:10:47 +0000 Subject: import rh-mongodb26-libunwind-1.1-4.el7 --- diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..91c155a --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +SOURCES/libunwind-1.1.tar.gz diff --git a/.rh-mongodb26-libunwind.metadata b/.rh-mongodb26-libunwind.metadata new file mode 100644 index 0000000..ed96b5d --- /dev/null +++ b/.rh-mongodb26-libunwind.metadata @@ -0,0 +1 @@ +aa04e6a7164aef754415b3b5e9453985741dd99e SOURCES/libunwind-1.1.tar.gz diff --git a/README.md b/README.md deleted file mode 100644 index 98f42b4..0000000 --- a/README.md +++ /dev/null @@ -1,4 +0,0 @@ -The master branch has no content - -Look at the c7 branch if you are working with CentOS-7, or the c4/c5/c6 branch for CentOS-4, 5 or 6 -If you find this file in a distro specific branch, it means that no content has been checked in yet diff --git a/SOURCES/libunwind-disable-setjmp.patch b/SOURCES/libunwind-disable-setjmp.patch new file mode 100644 index 0000000..a463f49 --- /dev/null +++ b/SOURCES/libunwind-disable-setjmp.patch @@ -0,0 +1,185 @@ +At least x86_64 version cannot work, src/setjmp/setjmp.c and +src/setjmp/sigsetjmp.c are not even compiled, src/x86_64/longjmp.S does not +match src/setjmp/setjmp.c + include/tdep-x86_64/jmpbuf.h . + +google-perftools link only with libunwind.so.7 . + +diff --git a/src/Makefile.am b/src/Makefile.am +index adfbef3..08d2870 100644 +--- a/src/Makefile.am ++++ b/src/Makefile.am +@@ -1,5 +1,5 @@ + SOVERSION=8:1:0 # See comments at end of file. +-SETJMP_SO_VERSION=0:0:0 ++#SETJMP_SO_VERSION=0:0:0 + COREDUMP_SO_VERSION=0:0:0 + # + # Don't link with start-files since we don't use any constructors/destructors: +@@ -22,8 +22,8 @@ pkgconfigdir = $(libdir)/pkgconfig + pkgconfig_DATA = libunwind-generic.pc + + if !REMOTE_ONLY +-pkgconfig_DATA += unwind/libunwind.pc ptrace/libunwind-ptrace.pc \ +- setjmp/libunwind-setjmp.pc ++pkgconfig_DATA += unwind/libunwind.pc ptrace/libunwind-ptrace.pc ++# setjmp/libunwind-setjmp.pc + endif + + if BUILD_COREDUMP +@@ -61,8 +61,8 @@ libunwind_coredump_la_LDFLAGS = $(COMMON_SO_LDFLAGS) \ + noinst_HEADERS += coredump/_UCD_internal.h + + ### libunwind-setjmp: +-libunwind_setjmp_la_LDFLAGS = $(COMMON_SO_LDFLAGS) \ +- -version-info $(SETJMP_SO_VERSION) ++#libunwind_setjmp_la_LDFLAGS = $(COMMON_SO_LDFLAGS) \ ++# -version-info $(SETJMP_SO_VERSION) + + if USE_ELF32 + LIBUNWIND_ELF = libunwind-elf32.la +@@ -74,12 +74,12 @@ if USE_ELFXX + LIBUNWIND_ELF = libunwind-elfxx.la + endif + +-libunwind_setjmp_la_LIBADD = $(LIBUNWIND_ELF) \ +- libunwind-$(arch).la \ +- libunwind.la -lc +-libunwind_setjmp_la_SOURCES = setjmp/longjmp.c \ +- setjmp/siglongjmp.c +-noinst_HEADERS += setjmp/setjmp_i.h ++#libunwind_setjmp_la_LIBADD = $(LIBUNWIND_ELF) \ ++# libunwind-$(arch).la \ ++# libunwind.la -lc ++#libunwind_setjmp_la_SOURCES = setjmp/longjmp.c \ ++# setjmp/siglongjmp.c ++#noinst_HEADERS += setjmp/setjmp_i.h + + ### libunwind: + libunwind_la_LIBADD = +@@ -428,7 +428,7 @@ if ARCH_ARM + if !REMOTE_ONLY + libunwind_arm_la_LIBADD += libunwind.la -lc + endif +- libunwind_setjmp_la_SOURCES += arm/siglongjmp.S ++# libunwind_setjmp_la_SOURCES += arm/siglongjmp.S + else + if ARCH_IA64 + BUILT_SOURCES = Gcursor_i.h Lcursor_i.h +@@ -449,8 +449,8 @@ Lcursor_i.h: mk_Lcursor_i.s + if !REMOTE_ONLY + libunwind_ia64_la_LIBADD += libunwind.la -lc + endif +- libunwind_setjmp_la_SOURCES += ia64/setjmp.S ia64/sigsetjmp.S \ +- ia64/longjmp.S ia64/siglongjmp.S ++# libunwind_setjmp_la_SOURCES += ia64/setjmp.S ia64/sigsetjmp.S \ ++# ia64/longjmp.S ia64/siglongjmp.S + else + if ARCH_HPPA + lib_LTLIBRARIES += libunwind-hppa.la +@@ -462,7 +462,7 @@ if ARCH_HPPA + if !REMOTE_ONLY + libunwind_hppa_la_LIBADD += libunwind.la -lc + endif +- libunwind_setjmp_la_SOURCES += hppa/siglongjmp.S ++# libunwind_setjmp_la_SOURCES += hppa/siglongjmp.S + else + if ARCH_MIPS + lib_LTLIBRARIES += libunwind-mips.la +@@ -474,7 +474,7 @@ if ARCH_MIPS + if !REMOTE_ONLY + libunwind_mips_la_LIBADD += libunwind.la -lc + endif +- libunwind_setjmp_la_SOURCES += mips/siglongjmp.S ++# libunwind_setjmp_la_SOURCES += mips/siglongjmp.S + else + if ARCH_X86 + lib_LTLIBRARIES += libunwind-x86.la +@@ -486,7 +486,7 @@ if ARCH_X86 + if !REMOTE_ONLY + libunwind_x86_la_LIBADD += libunwind.la -lc + endif +- libunwind_setjmp_la_SOURCES += x86/longjmp.S x86/siglongjmp.S ++# libunwind_setjmp_la_SOURCES += x86/longjmp.S x86/siglongjmp.S + else + if ARCH_X86_64 + lib_LTLIBRARIES += libunwind-x86_64.la +@@ -498,7 +498,7 @@ if ARCH_X86_64 + if !REMOTE_ONLY + libunwind_x86_64_la_LIBADD += libunwind.la -lc + endif +- libunwind_setjmp_la_SOURCES += x86_64/longjmp.S x86_64/siglongjmp.S ++# libunwind_setjmp_la_SOURCES += x86_64/longjmp.S x86_64/siglongjmp.S + else + if ARCH_PPC32 + lib_LTLIBRARIES += libunwind-ppc32.la +@@ -510,7 +510,7 @@ if ARCH_PPC32 + if !REMOTE_ONLY + libunwind_ppc32_la_LIBADD += libunwind.la -lc + endif +- libunwind_setjmp_la_SOURCES += ppc/longjmp.S ppc/siglongjmp.S ++# libunwind_setjmp_la_SOURCES += ppc/longjmp.S ppc/siglongjmp.S + else + if ARCH_PPC64 + lib_LTLIBRARIES += libunwind-ppc64.la +@@ -522,7 +522,7 @@ if ARCH_PPC64 + if !REMOTE_ONLY + libunwind_ppc64_la_LIBADD += libunwind.la -lc + endif +- libunwind_setjmp_la_SOURCES += ppc/longjmp.S ppc/siglongjmp.S ++# libunwind_setjmp_la_SOURCES += ppc/longjmp.S ppc/siglongjmp.S + else + if ARCH_SH + lib_LTLIBRARIES += libunwind-sh.la +@@ -534,7 +534,7 @@ if ARCH_SH + if !REMOTE_ONLY + libunwind_sh_la_LIBADD += libunwind.la -lc + endif +- libunwind_setjmp_la_SOURCES += sh/siglongjmp.S ++# libunwind_setjmp_la_SOURCES += sh/siglongjmp.S + + endif # ARCH_SH + endif # ARCH_PPC64 +@@ -549,7 +549,7 @@ endif # ARCH_ARM + # libunwind-setjmp depends on libunwind-$(arch). Therefore must be added + # at the end. + if !REMOTE_ONLY +-lib_LTLIBRARIES += libunwind-setjmp.la ++#lib_LTLIBRARIES += libunwind-setjmp.la + endif + + # +diff --git a/tests/Makefile.am b/tests/Makefile.am +index a367eed..3f47e80 100644 +--- a/tests/Makefile.am ++++ b/tests/Makefile.am +@@ -45,7 +45,7 @@ endif #!ARCH_IA64 + Gtest-dyn1 Ltest-dyn1 \ + Gtest-trace Ltest-trace \ + test-async-sig test-flush-cache test-init-remote \ +- test-mem test-setjmp test-ptrace Ltest-varargs \ ++ test-mem test-ptrace Ltest-varargs \ + Ltest-nomalloc Ltest-nocalloc Lrs-race + noinst_PROGRAMS_cdep = forker crasher mapper test-ptrace-misc \ + Gperf-simple Lperf-simple +@@ -134,8 +134,8 @@ if USE_ELFXX + LIBUNWIND_ELF = $(top_builddir)/src/libunwind-elfxx.la + endif + +-LIBUNWIND_setjmp = $(top_builddir)/src/libunwind-setjmp.la \ +- $(LIBUNWIND_ELF) $(LIBUNWIND) ++#LIBUNWIND_setjmp = $(top_builddir)/src/libunwind-setjmp.la \ ++# $(LIBUNWIND_ELF) $(LIBUNWIND) + + test_async_sig_LDADD = $(LIBUNWIND_local) -lpthread + test_flush_cache_LDADD = $(LIBUNWIND_local) +@@ -172,8 +172,8 @@ Lperf_simple_LDADD = $(LIBUNWIND_local) + Ltest_trace_LDADD = $(LIBUNWIND_local) + Lperf_trace_LDADD = $(LIBUNWIND_local) + +-test_setjmp_LDADD = $(LIBUNWIND_setjmp) +-ia64_test_setjmp_LDADD = $(LIBUNWIND_setjmp) ++#test_setjmp_LDADD = $(LIBUNWIND_setjmp) ++#ia64_test_setjmp_LDADD = $(LIBUNWIND_setjmp) + + if BUILD_COREDUMP + test_coredump_unwind_LDADD = $(LIBUNWIND_coredump) $(LIBUNWIND) diff --git a/SPECS/libunwind.spec b/SPECS/libunwind.spec new file mode 100644 index 0000000..f8b1954 --- /dev/null +++ b/SPECS/libunwind.spec @@ -0,0 +1,274 @@ +%{?scl:%scl_package libunwind} +%{!?scl:%global pkg_name %{name}} + +# rpmbuild parameters: +# --without check: Do not run the testsuite. Default is to run it. + +Summary: An unwinding library +Name: %{?scl_prefix}libunwind +Version: 1.1 +Release: 4%{?dist} +License: MIT +Group: Development/Debuggers +Source: http://download.savannah.gnu.org/releases/libunwind/libunwind-%{version}.tar.gz +#Fedora specific patch +Patch1: libunwind-disable-setjmp.patch +URL: http://savannah.nongnu.org/projects/libunwind +ExclusiveArch: %{arm} hppa ia64 mips ppc ppc64 %{ix86} x86_64 + +BuildRequires: automake libtool autoconf +%{?scl:Requires: %{scl}-runtime} + +# host != target would cause REMOTE_ONLY build even if building i386 on x86_64. +%global _host %{_target_platform} + +# we don't want to require or provide any pkgconfig(xxx) symbols +%global __pkgconfig_requires "" +%global __pkgconfig_provides "" + +%description +Libunwind provides a C ABI to determine the call-chain of a program. + +%package devel +Summary: Development package for libunwind +Group: Development/Debuggers +Requires: %{name} = %{version}-%{release} + +%description devel +The libunwind-devel package includes the libraries and header files for +libunwind. + +%prep +%setup -n %{pkg_name}-%{version} -q +%patch1 -p1 + +aclocal +libtoolize --force + +# we need to patch ltmain in order to provide prefixed soname, +# so symlink doesn't work for us +unlink config/ltmain.sh +sed -e 's|major=.$func_arith_result|major=.$verstring_prefix$func_arith_result|g' \ + /usr/share/libtool/config/ltmain.sh > config/ltmain.sh + +autoheader +automake --add-missing +autoconf + +%build +%{?scl_prefix:export verstring_prefix="%{scl_prefix}"} +%configure --enable-static --enable-shared +make %{?_smp_mflags} + +%install +%{?scl_prefix:export verstring_prefix="%{scl_prefix}"} +make install DESTDIR=$RPM_BUILD_ROOT +find $RPM_BUILD_ROOT -name '*.la' -exec rm -f {} ';' + +# /usr/include/libunwind-ptrace.h +# [...] aren't really part of the libunwind API. They are implemented in +# a archive library called libunwind-ptrace.a. +mv -f $RPM_BUILD_ROOT%{_libdir}/libunwind-ptrace.a $RPM_BUILD_ROOT%{_libdir}/libunwind-ptrace.a-save +rm -f $RPM_BUILD_ROOT%{_libdir}/libunwind*.a +mv -f $RPM_BUILD_ROOT%{_libdir}/libunwind-ptrace.a-save $RPM_BUILD_ROOT%{_libdir}/libunwind-ptrace.a +rm -f $RPM_BUILD_ROOT%{_libdir}/libunwind-ptrace*.so* +#for orig in $RPM_BUILD_ROOT%{_libdir}/pkgconfig/* ; do +# sed -i -e 's/Name: libunwind/Name: %{?scl_prefix}libunwind/g' $orig +# new="`dirname $orig`/%{?scl_prefix}`basename $orig`" +# mv $orig $new +#done + +%check +%if 0%{?_with_check:1} || 0%{?_with_testsuite:1} +echo ====================TESTING========================= +make check || true +echo ====================TESTING END===================== +%else +echo ====================TESTSUITE DISABLED========================= +%endif + +%post -p /sbin/ldconfig + +%postun -p /sbin/ldconfig + +%files +%defattr(-,root,root,-) +%doc COPYING README NEWS +%{_libdir}/libunwind*.so.* + +%files devel +%defattr(-,root,root,-) +%{_libdir}/libunwind*.so +%{_libdir}/libunwind-ptrace.a +%{_libdir}/pkgconfig/libunwind*.pc +#%{_libdir}/pkgconfig/%{?scl_prefix}libunwind*.pc +%{_mandir}/*/* +# does not get installed for REMOTE_ONLY targets - check it. +%{_includedir}/unwind.h +%{_includedir}/libunwind*.h + +%changelog +* Mon Feb 17 2014 Honza Horak - 1.1-4 +- Prefix library with scl name + Related: #1042874 +- Change license to MIT + Resolves: #1065911 + +* Sun May 05 2013 Honza Horak - 1.1-2 +- Add support for software collections + +* Mon Feb 18 2013 Kyle McMartin 1.1-1 +- Update to upstream v1.1 +- libunwind-install-ptrace.patch: drop upstream patch +- libunwind-arm-register-rename.patch: fixed upstream +- Add pkg-config files to libunwind-devel + +* Thu Feb 14 2013 Fedora Release Engineering - 1.0.1-5 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild + +* Thu Jul 19 2012 Fedora Release Engineering - 1.0.1-4 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild + +* Wed Feb 15 2012 Peter Robinson - 1.0.1-3 +- Add patch to fix build on ARM + +* Fri Jan 13 2012 Fedora Release Engineering - 1.0.1-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild + +* Thu Sep 15 2011 Jan Kratochvil - 1.0.1-1.fc17 +- Upgrade to the upstream release. (BZ 738595). +- Use official distribution URL for %%{source}. + +* Thu Jun 02 2011 Paul Whalen - 0.99-3.20110424git1e10c293 +- Added arm macro to ExclusiveArch + +* Mon May 9 2011 Jan Kratochvil - 0.99-2.20110424git1e10c293 +- Install static libunwind-ptrace library into system (for ltrace, BZ 703159). + +* Sun Apr 24 2011 Jan Kratochvil - 0.99-1.20110424git1e10c293 +- Rebase to the upstream post-0.99 snapshot (BZ 697453). + +* Tue Feb 08 2011 Fedora Release Engineering - 0.99-0.16.20090430betagit4b8404d1 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild + +* Wed Sep 29 2010 jkeating - 0.99-0.15.20090430betagit4b8404d1 +- Rebuilt for gcc bug 634757 + +* Sat Sep 11 2010 Parag Nemade 0.99-0.14.20090430betagit4b8404d1.fc15 +- Merge-review cleanup (#226052) + +* Fri Dec 4 2009 Fedora Release Engineering - 0.99-0.13.20090430betagit4b8404d1 +- The devel package now requires also base package's %{release}. +- Update the obsolete macro %%{package_version}. + +* Sat Jul 25 2009 Fedora Release Engineering - 0.99-0.12.20090430betagit4b8404d1 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild + +* Wed Jul 15 2009 Jan Kratochvil - 0.99-0.11.20090430betagit4b8404d1 +- Disable the libunwind-setjmp library as no longer compatible with glibc and + no Fedora dependencies on it (FTBSFS BZ 511562). + +* Thu Apr 30 2009 Jan Kratochvil - 0.99-0.10.20090430betagit4b8404d1 +- Fix the ia64 variant of GetIPInfo() (BZ 480412). + +* Mon Apr 13 2009 Jan Kratochvil - 0.99-0.9.20090413betagitb483ea3f +- Rebase the package on the upstream variant: http://www.nongnu.org/libunwind/ + - Drop the patch libunwind-snap-070224-frysk20070405cvs.patch + as even frysk-0.4-8.fc11 still has this library bundled statically. +- Disable the testsuite by default during the build. + - It should be run separately as it crashes some ia64 kernels. + - Drop the patch libunwind-snap-070224-orphanripper.patch. +- Drop the patch libunwind-snap-070224-dprintf-vs-stdio.h as no longer needed. +- Drop libunwind-snap-070224-multilib-rh342451.patch as accepted upstream. +- Fix and enable ppc (ppc32) arch. + +* Tue Mar 3 2009 Jan Kratochvil - 0.99-0.8.frysk20070405cvs +- Fix .spec ExclusiveArch from i386 to %%{ix86}. +- Remove `BuildRequires: glibc gcc make tar gzip' - minimum build environment. + +* Wed Feb 25 2009 Fedora Release Engineering - 0.99-0.7.frysk20070405cvs +- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild + +* Mon Sep 22 2008 Jan Kratochvil - 0.99-0.6.frysk20070405cvs +- Fix build error due to a `dprintf' conflict on recent glibc. +- New rpmbuild parameter: --without check + +* Sun Feb 24 2008 Jan Kratochvil - 0.99-0.5.frysk20070405cvs +- Fix the multilib conflicts (BZ 342451). + +* Sun Feb 24 2008 Jan Kratochvil - 0.99-0.4.frysk20070405cvs +- Abort the possibly hung up testcases after 120 seconds (BZ 427850, BZ 434147). + +* Tue Feb 19 2008 Fedora Release Engineering - 0.99-0.3.frysk20070405cvs +- Autorebuild for GCC 4.3 + +* Sun Apr 22 2007 Jan Kratochvil - 0.99-0.2.frysk20070405cvs +- Require conflict with gdb < gdb-6.6-9 as it would not find `libunwind.so'. +- Fixed (unused - commented) rule for a RPM build with embedded debug info. + +* Thu Apr 5 2007 Jan Kratochvil - 0.99-0.1.frysk20070405cvs +- Update to the upstream snapshot snap-070224. +- Use the Frysk's modified version, currently snapshot 20070405cvs. +- Extend the supported architectures from ia64 also to x86_64, i386 and ppc64. +- Spec file fixups. +- Split the package to its base and the `devel' part. +- Drop the statically built libraries. + +* Sun Oct 01 2006 Jesse Keating - 0.98.5-3 +- rebuilt for unwind info generation, broken in gcc-4.1.1-21 + +* Fri Sep 22 2006 Jan Kratochvil - 0.98.5-2 +- SELinux compatibility fix - stack is now non-exec (Jakub Jelinek suggestion). + +* Wed Jul 12 2006 Jesse Keating - 0.98.5-1.1 +- rebuild + +* Sat May 27 2006 Alexandre Oliva - 0.98.5-1 +- Import version 0.98.5. + +* Thu Feb 09 2006 Florian La Roche +- remove empty scripts + +* Tue Feb 07 2006 Jesse Keating - 0.98.2-3.2 +- rebuilt for new gcc4.1 snapshot and glibc changes + +* Fri Dec 09 2005 Jesse Keating +- rebuilt + +* Tue Mar 01 2005 Jeff Johnston 0.98.2.3 +- Bump up release number + +* Thu Nov 11 2004 Jeff Johnston 0.98.2.2 +- Import version 0.98.2. + +* Wed Nov 10 2004 Jeff Johnston 0.97.6 +- Bump up release number + +* Thu Aug 19 2004 Jeff Johnston 0.97.3 +- Remove debug file from files list. + +* Fri Aug 13 2004 Jeff Johnston 0.97.2 +- Import version 0.97. + +* Tue Jun 15 2004 Elliot Lee +- rebuilt + +* Wed Jun 09 2004 Elena Zannoni 0.96.4 +- Bump release number. + +* Mon Feb 23 2004 Elena Zannoni 0.96.3 +- Bump release number. + +* Fri Feb 13 2004 Elliot Lee +- rebuilt + +* Thu Jan 29 2004 Jeff Johnston 0.96.1 +- Import version 0.96. + +* Tue Jan 06 2004 Jeff Johnston 0.92.2 +- Bump release number. + +* Mon Oct 06 2003 Jeff Johnston 0.92.1 +- Initial release + +