diff --git a/README.md b/README.md index ef504b5..ccbf6c1 100644 --- a/README.md +++ b/README.md @@ -2,12 +2,3 @@ libunwind implements a portable and efficient C programming interface (API) to determine the call-chain of a program. The API additionally provides the means to manipulate the preserved (callee-saved) state of each call-frame and to resume execution at any point in the call-chain (non-local goto). The API supports both local (same-process) and remote (across-process) operation. As such, the API is useful in a number of applications. Some examples include: -* exception handling -The libunwind API makes it trivial to implement the stack-manipulation aspects of exception handling. -* debuggers -The libunwind API makes it trivial for debuggers to generate the call-chain (backtrace) of the threads in a running program. -* introspection -It is often useful for a running thread to determine its call-chain. For example, this is useful to display error messages (to show how the error came about) and for performance monitoring/analysis. -* efficient setjmp() -With libunwind, it is possible to implement an extremely efficient version of setjmp(). Effectively, the only context that needs to be saved consists of the stack-pointer(s). - diff --git a/libunwind-1.2.1-arm-fix-build-failure-due-to-asm.patch b/libunwind-1.2.1-arm-fix-build-failure-due-to-asm.patch deleted file mode 100644 index b47f263..0000000 --- a/libunwind-1.2.1-arm-fix-build-failure-due-to-asm.patch +++ /dev/null @@ -1,42 +0,0 @@ -From c7ab998ec52b09d61ec3c0ea62aa07cd26077ea3 Mon Sep 17 00:00:00 2001 -From: Romain Naour -Date: Mon, 3 Jul 2017 14:43:02 +0200 -Subject: [PATCH] libunwind-arm: fix build failure due to asm() - -The gcc documentation [1] suggest to use __asm__ instead of asm. - -Fixes: -http://autobuild.buildroot.net/results/3ef/3efe156b6494e4392b6c31de447ee2c72acc1a53 - -[1] https://gcc.gnu.org/onlinedocs/gcc/Alternate-Keywords.html#Alternate-Keywords - -Signed-off-by: Romain Naour -Cc: Bernd Kuhls ---- - include/libunwind-arm.h | 4 ++-- - 1 file changed, 2 insertions(+), 2 deletions(-) - -diff --git a/include/libunwind-arm.h b/include/libunwind-arm.h -index f208487..1c856fa 100644 ---- a/include/libunwind-arm.h -+++ b/include/libunwind-arm.h -@@ -265,7 +265,7 @@ unw_tdep_context_t; - #ifndef __thumb__ - #define unw_tdep_getcontext(uc) (({ \ - unw_tdep_context_t *unw_ctx = (uc); \ -- register unsigned long *unw_base asm ("r0") = unw_ctx->regs; \ -+ register unsigned long *unw_base __asm__ ("r0") = unw_ctx->regs; \ - __asm__ __volatile__ ( \ - "stmia %[base], {r0-r15}" \ - : : [base] "r" (unw_base) : "memory"); \ -@@ -273,7 +273,7 @@ unw_tdep_context_t; - #else /* __thumb__ */ - #define unw_tdep_getcontext(uc) (({ \ - unw_tdep_context_t *unw_ctx = (uc); \ -- register unsigned long *unw_base asm ("r0") = unw_ctx->regs; \ -+ register unsigned long *unw_base __asm__ ("r0") = unw_ctx->regs; \ - __asm__ __volatile__ ( \ - ".align 2\nbx pc\nnop\n.code 32\n" \ - "stmia %[base], {r0-r15}\n" \ --- -2.9.4 diff --git a/libunwind.spec b/libunwind.spec index 428de94..405ddbb 100644 --- a/libunwind.spec +++ b/libunwind.spec @@ -1,5 +1,5 @@ Name: libunwind -Version: 1.6.2 +Version: 1.8.1 Release: 1mamba Summary: A portable and efficient C programming interface (API) to determine the call-chain of a program Group: System/Libraries @@ -7,28 +7,20 @@ Vendor: openmamba Distribution: openmamba Packager: Silvan Calarco URL: http://www.nongnu.org/libunwind/ -Source: http://download.savannah.gnu.org/releases/libunwind/libunwind-%{version}.tar.gz -Patch0: libunwind-1.2.1-arm-fix-build-failure-due-to-asm.patch +Source: https://github.com/libunwind/libunwind.git/v%{version}/libunwind-%{version}.tar.bz2 License: GPL ## AUTOBUILDREQ-BEGIN BuildRequires: glibc-devel BuildRequires: libgcc BuildRequires: liblzma-devel +BuildRequires: libstdc++6-devel BuildRequires: libz-devel ## AUTOBUILDREQ-END +BuildRequires: libatomic_ops-devel %description libunwind implements a portable and efficient C programming interface (API) to determine the call-chain of a program. The API additionally provides the means to manipulate the preserved (callee-saved) state of each call-frame and to resume execution at any point in the call-chain (non-local goto). The API supports both local (same-process) and remote (across-process) operation. As such, the API is useful in a number of applications. Some examples include: -* exception handling -The libunwind API makes it trivial to implement the stack-manipulation aspects of exception handling. -* debuggers -The libunwind API makes it trivial for debuggers to generate the call-chain (backtrace) of the threads in a running program. -* introspection -It is often useful for a running thread to determine its call-chain. For example, this is useful to display error messages (to show how the error came about) and for performance monitoring/analysis. -* efficient setjmp() -With libunwind, it is possible to implement an extremely efficient version of setjmp(). Effectively, the only context that needs to be saved consists of the stack-pointer(s). - %package devel Group: Development/Libraries Summary: Static libraries and headers for %{name} @@ -36,22 +28,13 @@ Requires: %{name} = %{?epoch:%epoch:}%{version}-%{release} %description devel libunwind implements a portable and efficient C programming interface (API) to determine the call-chain of a program. The API additionally provides the means to manipulate the preserved (callee-saved) state of each call-frame and to resume execution at any point in the call-chain (non-local goto). The API supports both local (same-process) and remote (across-process) operation. As such, the API is useful in a number of applications. Some examples include: - -* exception handling -The libunwind API makes it trivial to implement the stack-manipulation aspects of exception handling. -* debuggers -The libunwind API makes it trivial for debuggers to generate the call-chain (backtrace) of the threads in a running program. -* introspection -It is often useful for a running thread to determine its call-chain. For example, this is useful to display error messages (to show how the error came about) and for performance monitoring/analysis. -* efficient setjmp() -With libunwind, it is possible to implement an extremely efficient version of setjmp(). Effectively, the only context that needs to be saved consists of the stack-pointer(s). - -This package contains static libraries and header files need for development. +This package contains static libraries and header files needed for development. %debug_package %prep %setup -q +autoreconf -f -i %build %configure \ @@ -88,6 +71,8 @@ This package contains static libraries and header files need for development. %ifarch aarch64 %{_libdir}/libunwind-aarch64.so.* %endif +%dir %{_libexecdir}/libunwind +%{_libexecdir}/libunwind/* %doc AUTHORS COPYING %files devel @@ -95,37 +80,29 @@ This package contains static libraries and header files need for development. %{_includedir}/libunwind*.h %{_includedir}/unwind*.h %{_libdir}/libunwind.a -%{_libdir}/libunwind.la %{_libdir}/libunwind.so %{_libdir}/libunwind-coredump.a -%{_libdir}/libunwind-coredump.la %{_libdir}/libunwind-coredump.so %{_libdir}/libunwind-generic.a %{_libdir}/libunwind-generic.so %{_libdir}/libunwind-ptrace.a -%{_libdir}/libunwind-ptrace.la %{_libdir}/libunwind-ptrace.so %{_libdir}/libunwind-setjmp.a -%{_libdir}/libunwind-setjmp.la %{_libdir}/libunwind-setjmp.so %ifarch %{ix86} %{_libdir}/libunwind-x86.a -%{_libdir}/libunwind-x86.la %{_libdir}/libunwind-x86.so %endif %ifarch x86_64 %{_libdir}/libunwind-x86_64.a -%{_libdir}/libunwind-x86_64.la %{_libdir}/libunwind-x86_64.so %endif %ifarch arm %{_libdir}/libunwind-arm.a -%{_libdir}/libunwind-arm.la %{_libdir}/libunwind-arm.so %endif %ifarch aarch64 %{_libdir}/libunwind-aarch64.a -%{_libdir}/libunwind-aarch64.la %{_libdir}/libunwind-aarch64.so %endif %{_libdir}/pkgconfig/libunwind-coredump.pc @@ -137,6 +114,9 @@ This package contains static libraries and header files need for development. #%doc ChangeLog LICENSE NEWS README TODO %changelog +* Mon May 06 2024 Silvan Calarco 1.8.1-1mamba +- update to 1.8.1 + * Wed Dec 01 2021 Automatic Build System 1.6.2-1mamba - automatic version update by autodist