public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
* [rpms/libunwind] epel9: Merge f37 into rawhide, discarding changes
@ 2026-06-15 10:26 Florian Weimer
0 siblings, 0 replies; only message in thread
From: Florian Weimer @ 2026-06-15 10:26 UTC (permalink / raw)
To: git-commits
A new commit has been pushed.
Repo : rpms/libunwind
Branch : epel9
Commit : b66625d92994e23e74270d0e71a6e4008a1a10d7
Author : Florian Weimer <fweimer@redhat.com>
Date : 2022-11-16T14:39:26+01:00
Stats : +99/-12 in 3 file(s)
URL : https://src.fedoraproject.org/rpms/libunwind/c/b66625d92994e23e74270d0e71a6e4008a1a10d7?branch=epel9
Log:
Merge f37 into rawhide, discarding changes
---
diff --git a/libunwind-no-dl-iterate-phdr.patch b/libunwind-no-dl-iterate-phdr.patch
new file mode 100644
index 0000000..b236065
--- /dev/null
+++ b/libunwind-no-dl-iterate-phdr.patch
@@ -0,0 +1,25 @@
+This patch disables building of the (effectively empty)
+dl-iterate-phdr.c source file. Symbols generated by annobin confuse
+the run-check-namespace test because nm -g prints hidden weak symbols
+in DSOs (they are considered external):
+
+ ERROR: Extraneous symbols:
+000000000000de51 W dl_iterate_phdr.c.a8d8d212
+ ERROR: Extraneous symbols:
+00000000000120b0 W dl_iterate_phdr.c.a8d8d212
+
+This patch is downstream-specific due to annobin.
+
+diff --git a/src/Makefile.am b/src/Makefile.am
+index 2b5b02959e99eb8f..e5ff21515c36d30f 100644
+--- a/src/Makefile.am
++++ b/src/Makefile.am
+@@ -147,7 +147,7 @@ libunwind_la_SOURCES_local = \
+ $(libunwind_la_SOURCES_local_unwind)
+
+ noinst_HEADERS += os-linux.h
+-libunwind_la_SOURCES_os_linux = os-linux.c dl-iterate-phdr.c
++libunwind_la_SOURCES_os_linux = os-linux.c
+
+ libunwind_la_SOURCES_os_hpux = os-hpux.c
+
diff --git a/libunwind-skip-no-coredump.patch b/libunwind-skip-no-coredump.patch
new file mode 100644
index 0000000..747cd33
--- /dev/null
+++ b/libunwind-skip-no-coredump.patch
@@ -0,0 +1,20 @@
+This is needed because under mock (especially with a systemd-coredump
+handler on the system), no core files are created.
+
+Submitted upstream: https://github.com/libunwind/libunwind/pull/418
+
+diff --git a/tests/run-coredump-unwind b/tests/run-coredump-unwind
+index 8d07742574602328..0c2b28c942477f7d 100755
+--- a/tests/run-coredump-unwind
++++ b/tests/run-coredump-unwind
+@@ -48,6 +48,10 @@ fi
+ ./crasher backing_files
+ ) 2>/dev/null
+ COREFILE=$TEMPDIR/core*
++if ! test -f "$COREFILE"; then
++ echo "crasher process did not produce coredump, test skipped"
++ exit 77
++fi
+
+ # magic option -testcase enables checking for the specific contents of the stack
+ ./test-coredump-unwind $COREFILE -testcase `cat $TEMPDIR/backing_files`
diff --git a/libunwind.spec b/libunwind.spec
index c10ae63..df8be02 100644
--- a/libunwind.spec
+++ b/libunwind.spec
@@ -1,10 +1,45 @@
-# rpmbuild parameters:
-# --without check: Do not run the testsuite. Default is to run it.
+# The testsuite does not pass on all targets.
+#
+# aarch64
+# Gtest-exc
+# Ltest-exc
+# Gtest-trace
+# Ltest-trace
+# Ltest-init-local-signal
+# Ltest-mem-validate: https://github.com/libunwind/libunwind/issues/388
+# test-reg-state
+# Ltest-varargs
+# Lrs-race
+# test-ptrace
+# run-check-namespace: https://github.com/libunwind/libunwind/issues/389
+# run-ptrace-mapper
+# run-ptrace-misc
+# i686
+# Ltest-mem-validate: https://github.com/libunwind/libunwind/issues/391
+# test-async-sig
+# test-ptrace
+# ppc64le
+# Gtest-exc
+# Ltest-exc
+# Gtest-resume-sig
+# Ltest-resume-sig
+# Gtest-resume-sig-rt
+# Ltest-resume-sig-rt
+# test-ptrace
+# run-check-namespace
+# run-ptrace-mapper
+# run-ptrace-misc
+#
+%ifarch aarch64 i686 ppc64le
+%global test_failure_override true
+%else
+%global test_failure_override false
+%endif
Summary: An unwinding library
Name: libunwind
Version: 1.6.2
-Release: 4%{?dist}
+Release: 5%{?dist}
License: BSD
URL: http://savannah.nongnu.org/projects/libunwind
Source: http://download-mirror.savannah.gnu.org/releases/libunwind/libunwind-%{version}.tar.gz
@@ -14,11 +49,14 @@ Patch1: libunwind-arm-default-to-exidx.patch
# Make libunwind.h multilib friendly
Patch2: libunwind-1.3.1-multilib-fix.patch
Patch3: libunwind-1.6.2-dynamic-page-size.patch
+Patch4: libunwind-skip-no-coredump.patch
+Patch5: libunwind-no-dl-iterate-phdr.patch
ExclusiveArch: %{arm} aarch64 hppa ia64 mips ppc %{power64} s390x %{ix86} x86_64
BuildRequires: automake libtool autoconf texlive-latex2man
BuildRequires: make
+BuildRequires: gcc-c++
# host != target would cause REMOTE_ONLY build even if building i386 on x86_64.
%global _host %{_target_platform}
@@ -35,9 +73,7 @@ The libunwind-devel package includes the libraries and header files for
libunwind.
%prep
-%setup -q
-%patch1 -p1 -b .default-to-exidx
-%patch2 -p1 -b .multilib-fix
+%autosetup -p1
%build
%global optflags %{optflags} -fcommon
@@ -65,13 +101,13 @@ rm -f $RPM_BUILD_ROOT%{_libdir}/libunwind-ptrace*.so*
touch -r NEWS $RPM_BUILD_ROOT%{_includedir}/libunwind.h
%check
-%if 0%{?_with_check:1} || 0%{?_with_testsuite:1}
echo ====================TESTING=========================
-make check || true
+if ! make check ; then
+ echo ====================FAILED TESTS=====================
+ cat tests/test-suite.log || true
+ %{test_failure_override}
+fi
echo ====================TESTING END=====================
-%else
-echo ====================TESTSUITE DISABLED=========================
-%endif
%ldconfig_scriptlets
@@ -90,7 +126,13 @@ echo ====================TESTSUITE DISABLED=========================
%{_includedir}/libunwind*.h
%changelog
-* Sun Aug 28 2022 Leif Liddy <leif.liddy@gmail.com> - 1.6.2-4
+* Wed Sep 7 2022 Florian Weimer <fweimer@redhat.com> - 1.6.2-5
+- Run the testsuite during build
+
+* Wed Sep 7 2022 Florian Weimer <fweimer@redhat.com> - 1.6.2-4
+- Enable %%autosetup to apply all patches (#2118019)
+
+* Sun Aug 28 2022 Leif Liddy <leif.liddy@gmail.com> - 1.6.2-3
- enable dynamic page size support (bz2118019)
* Thu Jul 21 2022 Fedora Release Engineering <releng@fedoraproject.org> - 1.6.2-3
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2026-06-15 10:26 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-06-15 10:26 [rpms/libunwind] epel9: Merge f37 into rawhide, discarding changes Florian Weimer
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox