• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1Name: libunwind
2Epoch: 2
3Version: 1.6.2
4Release: 7
5Summary: Libunwind provides a C ABI to determine the call-chain of a program
6License: BSD
7URL: http://savannah.nongnu.org/projects/libunwind
8Source: http://download-mirror.savannah.gnu.org/releases/libunwind/libunwind-%{version}.tar.gz
9
10Patch0001: 0001-fix-byte_order_is_valid-function-logic.patch
11Patch2: backport-check-namespace.sh-adjust-aarch64-symbols.patch
12Patch3: backport-tests-run-coredump-unwind-Skip-test-if-no-coredump-h.patch
13Patch4: backport-aarch64-unw_step-validates-address-before-calling-dwarf_get.patch
14Patch5: backport-avoid-calling-printf-because-OE-glibc-2.34-used-mno-.patch
15Patch6: backport-fix-run-ptrace-mapper-test-case-failed.patch
16
17ExclusiveArch: aarch64 %{ix86} x86_64
18
19BuildRequires: automake libtool autoconf texlive-latex2man gcc-c++
20
21%description
22Libunwind defines a portable and efficient C programming interface (API) to
23determine the call-chain of a program. The API additionally provides the means
24to manipulate the preserved (callee-saved) state of each call-frame and to
25resume execution at any point in the call-chain (non-local goto). The API
26supports both local (same-process) and remote (across-process) operation.
27
28%package devel
29Summary: Development files for libunwind
30Requires: libunwind = %{epoch}:%{version}-%{release}
31
32%description devel
33This package contains development files for libunwind.
34
35%package_help
36
37%prep
38%autosetup -n %{name}-%{version} -p1
39
40%build
41aclocal
42libtoolize --force
43autoheader
44automake --add-missing
45autoconf
46%configure --enable-static --enable-shared --enable-setjmp=no
47%make_build
48
49%install
50%make_install
51%delete_la
52
53# /usr/include/libunwind-ptrace.h
54# [...] aren't really part of the libunwind API.  They are implemented in
55# a archive library called libunwind-ptrace.a.
56mv -f $RPM_BUILD_ROOT%{_libdir}/libunwind-ptrace.a $RPM_BUILD_ROOT%{_libdir}/libunwind-ptrace.a-save
57rm -f $RPM_BUILD_ROOT%{_libdir}/libunwind*.a
58mv -f $RPM_BUILD_ROOT%{_libdir}/libunwind-ptrace.a-save $RPM_BUILD_ROOT%{_libdir}/libunwind-ptrace.a
59rm -f $RPM_BUILD_ROOT%{_libdir}/libunwind-ptrace*.so*
60
61# fix multilib conflicts
62touch -r NEWS $RPM_BUILD_ROOT%{_includedir}/libunwind.h
63
64%check
65make check || true
66
67%pre
68
69%preun
70
71%ldconfig_scriptlets
72
73%files
74%defattr(-,root,root)
75%license COPYING
76%{_libdir}/libunwind*.so.*
77
78%files devel
79%defattr(-,root,root)
80%{_libdir}/pkgconfig/libunwind*.pc
81# <unwind.h> does not get installed for REMOTE_ONLY targets - check it.
82%{_includedir}/unwind.h
83%{_includedir}/libunwind*.h
84%{_libdir}/libunwind-ptrace.a
85%{_libdir}/libunwind*.so
86
87%files help
88%defattr(-,root,root)
89%doc README NEWS
90%{_mandir}/*/*
91
92%changelog
93* Tue Jul 11 2023 chenziyang <chenziyang4@huawei.com> - 2:1.6.2-7
94- Type:bugfix
95- ID:NA
96- SUG:NA
97- DESC:backport upstream patch to fix failed run-ptrace-mapper testcase
98
99* Mon Jul 03 2023 chenziyang <chenziyang4@huawei.com> - 2:1.6.2-6
100- Type:bugfix
101- ID:NA
102- SUG:NA
103- DESC:fix failed testcase by editing test-ptrace testcase
104
105* Tue Jun 20 2023 wangjiang <wangjiang37@h-partners.com> - 2:1.6.2-5
106- Type:bugfix
107- ID:NA
108- SUG:NA
109- DESC:fix failed testcase
110
111* Mon Feb 20 2023 shixuantong <shixuantong1@huawei.com> - 2:1.6.2-4
112- Type:bugfix
113- ID:NA
114- SUG:NA
115- DESC:fix some test fail
116
117* Fri Dec 16 2022 Bin Hu <hubin73@huawei.com> - 2:1.6.2-2
118- Type:bugfix
119- ID:NA
120- SUG:NA
121- DESC:fix byte_order_is_valid function logic
122
123* Mon Nov 7 2022 Bin Hu <hubin73@huawei.com> - 2:1.6.2-1
124- Type:bugfix
125- ID:NA
126- SUG:NA
127- DESC:update version 1.6.2
128
129* Tue Oct 25 2022 zhangruifang <zhangruifang1@h-partners.com> - 2:1.5.0-3
130- Rebuild for next release
131- fix bogus date in changelog
132
133* Tue Apr 26 2022 renhongxun<renhongxun@h-partners.com> - 2:1.5.0-2
134- add epoch
135
136* Wed Dec 22 2021 shangyibin<shangyibin1@huawei.com> - 1.5.0-1
137- Upgrade to version 1.5.0
138
139* Fri Jul 30 2021 liudabo<liudabo1@huawei.com> - 1.4.0-2
140- Type:bugfix
141- ID:NA
142- SUG:NA
143- DESC:Fix gcc build
144
145* Mon Mar 30 2020 wenzhanli<wenzhanli2@huawei.com> - 1.4.0-1
146- Type:bugfix
147- ID:NA
148- SUG:NA
149- DESC:update version 1.4.0
150
151* Sun Jan 12 2020 openEuler Buildteam <buildteam@openeuler.org> - 1.3.1-3
152- remove useless patch
153
154* Fri Sep 27 2019 openEuler Buildteam <buildteam@openeuler.org> - 1.3.1-2
155- del unnecessary statement
156
157* Mon Sep 2 2019 openEuler Buildteam <buildteam@openeuler.org> - 1.3.1-1
158- Package init
159