Merge ~ahasenack/ubuntu/+source/frr:focal-frr-fbfs-s390x into ~ahasenack/ubuntu/+source/frr:master

Proposed by Andreas Hasenack
Status: Merged
Approved by: Andreas Hasenack
Approved revision: 89ed0969f894940cb8c5d3228b329018c4ba1e91
Merge reported by: Andreas Hasenack
Merged at revision: 89ed0969f894940cb8c5d3228b329018c4ba1e91
Proposed branch: ~ahasenack/ubuntu/+source/frr:focal-frr-fbfs-s390x
Merge into: ~ahasenack/ubuntu/+source/frr:master
Diff against target: 91 lines (+59/-1)
4 files modified
debian/changelog (+8/-0)
debian/control (+2/-1)
debian/patches/fix-endian-bug-in-test_typelist.patch (+48/-0)
debian/patches/series (+1/-0)
Reviewer Review Type Date Requested Status
Rafael David Tinoco (community) Approve
Canonical Server MOTU reviewers Pending
Review via email: mp+378042@code.launchpad.net

Description of the change

Fix test failure on big endian arches. Patch from upstream. Also submitted to debian at https://salsa.debian.org/Jonathan_Ferguson-guest/frr/merge_requests/1

PPA with test builds: https://launchpad.net/~ahasenack/+archive/ubuntu/frr-ftbfs-390x/

sudo add-apt-repository ppa:ahasenack/frr-ftbfs-390x

To post a comment you must log in.
Revision history for this message
Rafael David Tinoco (rafaeldtinoco) wrote :

Reviewing...

Revision history for this message
Andreas Hasenack (ahasenack) wrote :

DEP8 passes locally on s390x with proposed enabled:
(...)
autopkgtest [14:25:10]: test py-frr-reload: - - - - - - - - - - results - - - - - - - - - -
py-frr-reload PASS
autopkgtest [14:25:10]: @@@@@@@@@@@@@@@@@@@@ summary
zebra-lo PASS
bgpd-snmp-rpki PASS
py-frr-reload PASS

real 5m18.977s
user 0m5.176s
sys 0m8.542s

ubuntu@focal-s390x:~/deb/frr$ uname -a
Linux focal-s390x 5.4.0-9-generic #12-Ubuntu SMP Mon Dec 16 22:31:38 UTC 2019 s390x s390x s390x GNU/Linux

Revision history for this message
Rafael David Tinoco (rafaeldtinoco) wrote :

- [√] changelog entry correct, targeted to correct codename
- [-] no major upstream changes to consider
- [-] debian changes look safe
- [√] update-maintainer has been run
- [√] changes forwarded upstream/debian (if appropriate)
- [-] nothing else to drop
- [√] patches match what was proposed upstream
- [√] patches correctly included in debian/patches/series?
- [√] patches have correct DEP3 metadata
- [√] verified PPA package installs/uninstalls
- [√] autopkgtest against the PPA package passes

review: Approve
Revision history for this message
Andreas Hasenack (ahasenack) wrote :

Thanks, uploading 89ed0969f894940cb8c5d3228b329018c4ba1e91

$ dput ubuntu ../frr_7.2-1ubuntu1_source.changes
Checking signature on .changes
gpg: ../frr_7.2-1ubuntu1_source.changes: Valid signature from AC983EB5BF6BCBA9
Checking signature on .dsc
gpg: ../frr_7.2-1ubuntu1.dsc: Valid signature from AC983EB5BF6BCBA9
Uploading to ubuntu (via ftp to upload.ubuntu.com):
  Uploading frr_7.2-1ubuntu1.dsc: done.
  Uploading frr_7.2-1ubuntu1.debian.tar.xz: done.
  Uploading frr_7.2-1ubuntu1_source.buildinfo: done.
  Uploading frr_7.2-1ubuntu1_source.changes: done.
Successfully uploaded packages.

Revision history for this message
Andreas Hasenack (ahasenack) wrote :

This is done.

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1diff --git a/debian/changelog b/debian/changelog
2index b56a9c6..134295b 100644
3--- a/debian/changelog
4+++ b/debian/changelog
5@@ -1,3 +1,11 @@
6+frr (7.2-1ubuntu1) focal; urgency=medium
7+
8+ * d/p/fix-endian-bug-in-test_typelist.patch: fix test
9+ failure on big endian. Thanks to Mark Stapp <mjs@voltanet.io>.
10+ (LP: #1860733)
11+
12+ -- Andreas Hasenack <andreas@canonical.com> Fri, 24 Jan 2020 10:53:23 -0300
13+
14 frr (7.2-1build1) focal; urgency=medium
15
16 * Rebuild for libsnmp35.
17diff --git a/debian/control b/debian/control
18index ab2df20..e204ad7 100644
19--- a/debian/control
20+++ b/debian/control
21@@ -1,7 +1,8 @@
22 Source: frr
23 Section: net
24 Priority: optional
25-Maintainer: David Lamparter <equinox-debian@diac24.net>
26+Maintainer: Ubuntu Developers <ubuntu-devel-discuss@lists.ubuntu.com>
27+XSBC-Original-Maintainer: David Lamparter <equinox-debian@diac24.net>
28 Uploaders: FRRouting-dev <dev@lists.frrouting.org>
29 Build-Depends:
30 autotools-dev,
31diff --git a/debian/patches/fix-endian-bug-in-test_typelist.patch b/debian/patches/fix-endian-bug-in-test_typelist.patch
32new file mode 100644
33index 0000000..f5863d7
34--- /dev/null
35+++ b/debian/patches/fix-endian-bug-in-test_typelist.patch
36@@ -0,0 +1,48 @@
37+From 1dc46d1ece1f0db8dff79957473942f6fff00761 Mon Sep 17 00:00:00 2001
38+From: Mark Stapp <mjs@voltanet.io>
39+Date: Wed, 18 Dec 2019 10:52:08 -0500
40+Subject: [PATCH] tests: fix endian bug in test_typelist
41+
42+Fix a byte-swapping bug that appeared on big-endian arch but
43+wasn't visible on little-endian runs.
44+
45+Signed-off-by: Mark Stapp <mjs@voltanet.io>
46+
47+Origin: upstream, https://github.com/FRRouting/frr/pull/5559/commits/1dc46d1ece1f0db8dff79957473942f6fff00761
48+Bug: https://github.com/FRRouting/frr/issues/5557
49+Bug-Ubuntu: https://bugs.launchpad.net/ubuntu/+source/frr/+bug/1860733
50+Last-Update: 2020-01-24
51+---
52+ tests/lib/test_typelist.h | 9 +++++----
53+ 1 file changed, 5 insertions(+), 4 deletions(-)
54+
55+diff --git a/tests/lib/test_typelist.h b/tests/lib/test_typelist.h
56+index f20bbc52d9..9039fa8a46 100644
57+--- a/tests/lib/test_typelist.h
58++++ b/tests/lib/test_typelist.h
59+@@ -98,12 +98,13 @@ static void ts_hash(const char *text, const char *expect)
60+ unsigned i = 0;
61+ uint8_t hash[32];
62+ char hashtext[65];
63+- uint32_t count;
64++ uint32_t swap_count, count;
65+
66+- count = htonl(list_count(&head));
67++ count = list_count(&head);
68++ swap_count = htonl(count);
69+
70+ SHA256_Init(&ctx);
71+- SHA256_Update(&ctx, &count, sizeof(count));
72++ SHA256_Update(&ctx, &swap_count, sizeof(swap_count));
73+
74+ frr_each (list, &head, item) {
75+ struct {
76+@@ -115,7 +116,7 @@ static void ts_hash(const char *text, const char *expect)
77+ };
78+ SHA256_Update(&ctx, &hashitem, sizeof(hashitem));
79+ i++;
80+- assert(i < count);
81++ assert(i <= count);
82+ }
83+ SHA256_Final(hash, &ctx);
84+
85diff --git a/debian/patches/series b/debian/patches/series
86new file mode 100644
87index 0000000..afd1848
88--- /dev/null
89+++ b/debian/patches/series
90@@ -0,0 +1 @@
91+fix-endian-bug-in-test_typelist.patch

Subscribers

People subscribed via source and target branches

to all changes: