Package: nextepc
Version: 0.3.10+nods-4.1
Followup-For: Bug #984256
User: ubuntu-de...@lists.ubuntu.com
Usertags: origin-ubuntu jammy ubuntu-patch
Control: tags -1 patch

Hi Ruben,

Please find attached a patch for this issue.  It has been uploaded to Ubuntu
to fix the build failure there.

-- 
Steve Langasek                   Give me a lever long enough and a Free OS
Debian Developer                   to set it on, and I can move the world.
Ubuntu Developer                                   https://www.debian.org/
slanga...@ubuntu.com                                     vor...@debian.org
diff -Nru nextepc-0.3.10+nods/debian/patches/gcc-11.patch 
nextepc-0.3.10+nods/debian/patches/gcc-11.patch
--- nextepc-0.3.10+nods/debian/patches/gcc-11.patch     1969-12-31 
16:00:00.000000000 -0800
+++ nextepc-0.3.10+nods/debian/patches/gcc-11.patch     2021-11-18 
17:50:37.000000000 -0800
@@ -0,0 +1,27 @@
+Description: fix build failure with gcc-11.
+Author: Steve Langasek <steve.langa...@ubuntu.com>
+Bug-Debian: https://bugs.debian.org/984256
+Last-Update: 2021-11-18
+
+Index: nextepc-0.3.10+nods/lib/core/test/testatomic.c
+===================================================================
+--- nextepc-0.3.10+nods.orig/lib/core/test/testatomic.c
++++ nextepc-0.3.10+nods/lib/core/test/testatomic.c
+@@ -100,7 +100,7 @@
+ 
+ static void test_casptr_equal_nonnull(abts_case *tc, void *data)
+ {
+-    int a, b;
++    int a = 0, b = 0;
+     void *target_ptr = &a;
+     void *old_ptr;
+ 
+@@ -111,7 +111,7 @@
+ 
+ static void test_casptr_notequal(abts_case *tc, void *data)
+ {
+-    int a, b;
++    int a = 0, b = 0;
+     void *target_ptr = &a;
+     void *old_ptr;
+ 
diff -Nru nextepc-0.3.10+nods/debian/patches/series 
nextepc-0.3.10+nods/debian/patches/series
--- nextepc-0.3.10+nods/debian/patches/series   2021-01-23 14:35:09.000000000 
-0800
+++ nextepc-0.3.10+nods/debian/patches/series   2021-11-18 17:49:29.000000000 
-0800
@@ -5,3 +5,4 @@
 0005-Set-install-dir-for-freediameter-libs.patch
 0006-Fix-big-endian-bug.patch
 0007-Patch-deprecated-sys-sysctl.h-problem.patch
+gcc-11.patch

Reply via email to