Notification time stamped 2020-04-30 22:25:07 UTC
From 4e0e75897d16a12bb04a5bb23f820299aea0b1da Mon Sep 17 00:00:00 2001
From: Stuart D. Gathman <stuart(a)gathman.org>
Date: Apr 30 2020 01:07:12 +0000
Subject: Disable SECCOMP for armv7hl instead of using ExcludeArch
---
diff --git a/cjdns.spec b/cjdns.spec
index 33bceb7..df24d8f 100644
--- a/cjdns.spec
+++ b/cjdns.spec
@@ -14,7 +14,11 @@
%bcond_with libsodium
# Option to disable SECCOMP: confusing backward logic
# Needed to run on openvz and other container systems
+%ifarch armv7hl
+%bcond_with seccomp
+%else
%bcond_without seccomp
+%endif
# Option to use system libuv instead of bundled libuv-0.11.19
%bcond_with libuv
# When with_python3 is set, this replaces tools in bin and libexec
@@ -81,7 +85,7 @@
Name: cjdns
# major version is cjdns protocol version:
Version: 20.6
-Release: 1%{?dist}
+Release: 2%{?dist}
Summary: The privacy-friendly network without borders
# cjdns is all GPLv3 except libuv which is MIT and BSD and ISC
# cnacl is unused except when use_embedded is true
@@ -193,7 +197,7 @@ Provides: bundled(nacl) = 20110221
# build system requires nodejs, unfortunately
ExclusiveArch: %{nodejs_arches}
# Seccomp_test is too slow on koji for this arch
-ExcludeArch: armv7hl
+#ExcludeArch: armv7hl
%description
Cjdns implements an encrypted IPv6 network using public-key cryptography for
@@ -332,7 +336,7 @@ fi
rm -rf node_build/dependencies/libuv
%else
rm -rf node_build/dependencies/libuv/build/gyp # use system gyp
-%ifarch s390x
+%ifarch armv7hl
sed -i -e '/optimizeLevel:/ s/-O0/-O3/' node_build/make.js
%else
sed -i -e '/optimizeLevel:/ s/-O0/-O3/' node_build/make.js
@@ -750,6 +754,9 @@ fi
%{_bindir}/graphStats
%changelog
+* Wed Apr 29 2020 Stuart Gathman <stuart(a)gathman.org> - 20.6-2
+- Disable SECCOMP by default for armv7hl instead of excluding arch
+
* Mon Mar 16 2020 Stuart Gathman <stuart(a)gathman.org> - 20.6-1
- New upstream release
https://src.fedoraproject.org/rpms/cjdns/c/4e0e75897d16a12bb04a5bb23f820299…
Notification time stamped 2020-04-30 22:15:30 UTC
From a02de956406198d33feeb5d24182ee2b540dc8bd Mon Sep 17 00:00:00 2001
From: Mark Wielaard <mjw(a)fedoraproject.org>
Date: Apr 30 2020 22:15:04 +0000
Subject: 0.179-2 - Add elfutils-0.179-debug-client-alt-link.patch
---
diff --git a/elfutils-0.179-debug-client-alt-link.patch b/elfutils-0.179-debug-client-alt-link.patch
new file mode 100644
index 0000000..bb84954
--- /dev/null
+++ b/elfutils-0.179-debug-client-alt-link.patch
@@ -0,0 +1,60 @@
+From b1d2404cc6ca0d9ce786e229a87c24db49163cfe Mon Sep 17 00:00:00 2001
+From: Mark Wielaard <mark(a)klomp.org>
+Date: Thu, 30 Apr 2020 23:57:26 +0200
+Subject: [PATCH] libdwfl: Handle debugaltlink in dwfl_standard_find_debuginfo.
+
+When we fall back to the debuginfod client then we need to do the
+same trick we do for local lookups in dwfl_build_id_find_debuginfo.
+If the debug file (dw) is already set, then we must be looking for
+the altfile. But we cannot use the actual file/path name given as
+hint. We'll have to lookup the alt file "build-id". Because the
+debuginfod client only handles build-ids.
+
+Previously we would use the build-id of the main file which meant
+the debuginfod client would give us another copy of the debug file,
+which would then be set as its own altfile. This caused lots of
+confusion...
+
+Signed-off-by: Mark Wielaard <mark(a)klomp.org>
+---
+ libdwfl/ChangeLog | 5 +++++
+ libdwfl/find-debuginfo.c | 23 +++++++++++++++++++++--
+ 2 files changed, 26 insertions(+), 2 deletions(-)
+
+diff --git a/libdwfl/find-debuginfo.c b/libdwfl/find-debuginfo.c
+index 2dd11c48..4cfd0b8b 100644
+--- a/libdwfl/find-debuginfo.c
++++ b/libdwfl/find-debuginfo.c
+@@ -398,8 +398,27 @@ dwfl_standard_find_debuginfo (Dwfl_Module *mod,
+ free (canon);
+ }
+
+- if (fd < 0 && bits_len > 0)
+- fd = __libdwfl_debuginfod_find_debuginfo (mod->dwfl, bits, bits_len);
++ /* Still nothing? Try if we can use the debuginfod client.
++ But note that we might be looking for the alt file.
++ We use the same trick as dwfl_build_id_find_debuginfo.
++ If the debug file (dw) is already set, then we must be
++ looking for the altfile. But we cannot use the actual
++ file/path name given as hint. We'll have to lookup the
++ alt file "build-id". Because the debuginfod client only
++ handles build-ids. */
++ if (fd < 0)
++ {
++ if (mod->dw != NULL)
++ {
++ const char *altname;
++ bits_len = INTUSE(dwelf_dwarf_gnu_debugaltlink) (mod->dw, &altname,
++ (const void **)
++ &bits);
++ }
++
++ if (bits_len > 0)
++ fd = __libdwfl_debuginfod_find_debuginfo (mod->dwfl, bits, bits_len);
++ }
+
+ return fd;
+ }
+--
+2.18.2
+
diff --git a/elfutils.spec b/elfutils.spec
index 7e59ae4..aed7cf2 100644
--- a/elfutils.spec
+++ b/elfutils.spec
@@ -1,6 +1,6 @@
Name: elfutils
Version: 0.179
-%global baserelease 1
+%global baserelease 2
Release: %{baserelease}%{?dist}
URL: http://elfutils.org/
%global source_url ftp://sourceware.org/pub/elfutils/%{version}/
@@ -55,6 +55,7 @@ BuildRequires: curl
%endif
# Patches
+Patch1: elfutils-0.179-debug-client-alt-link.patch
%description
Elfutils is a collection of utilities, including stack (to show
@@ -246,6 +247,7 @@ such servers to download those files on demand.
%setup -q
# Apply patches
+%patch1 -p1 -b .debug-client-alt
# In case the above patches added any new test scripts, make sure they
# are executable.
@@ -423,6 +425,9 @@ exit 0
%systemd_postun_with_restart debuginfod.service
%changelog
+* Thu Apr 30 2020 Mark Wielaard <mjw(a)fedoraproject.org> - 0.179-2
+- Add elfutils-0.179-debug-client-alt-link.patch
+
* Mon Mar 30 2020 Mark Wielaard <mjw(a)fedoraproject.org> - 0.179-1
- New upstream release.
debuginfod-client:
https://src.fedoraproject.org/rpms/elfutils/c/a02de956406198d33feeb5d24182e…