Package: libreswan Version: 3.32-3 Severity: important Tags: patch User: ubuntu-de...@lists.ubuntu.com Usertags: origin-ubuntu groovy ubuntu-patch
Dear Maintainer, libreswan 3.32-3 FTBFS in s390x because of a maybe-uninitialized warning. This issue might be processor specific and afaik we are currently building in z12. You might be able to trigger this issue if you build libreswan with -march=z12. In Ubuntu, the attached patch was applied to achieve the following: * d/patches/fix-ftbfs-s390x.patch: fix maybe-uninitialized warning/error. Thanks for considering the patch. -- System Information: Debian Release: buster/sid APT prefers bionic-updates APT policy: (500, 'bionic-updates'), (500, 'bionic-security'), (500, 'bionic'), (100, 'bionic-backports') Architecture: amd64 (x86_64) Kernel: Linux 5.4.0-42-generic (SMP w/12 CPU cores) Locale: LANG=C.UTF-8, LC_CTYPE=C.UTF-8 (charmap=UTF-8), LANGUAGE=C.UTF-8 (charmap=UTF-8) Shell: /bin/sh linked to /bin/dash Init: systemd (via /run/systemd/system) LSM: AppArmor: enabled
diff -Nru libreswan-3.32/debian/patches/fix-ftbfs-s390x.patch libreswan-3.32/debian/patches/fix-ftbfs-s390x.patch --- libreswan-3.32/debian/patches/fix-ftbfs-s390x.patch 1969-12-31 21:00:00.000000000 -0300 +++ libreswan-3.32/debian/patches/fix-ftbfs-s390x.patch 2020-08-26 13:01:30.000000000 -0300 @@ -0,0 +1,16 @@ +Description: fix FTBFS on s390x + error: ‘incl’ may be used uninitialized in this function + [-Werror=maybe-uninitialized] +Author: Eduardo Barretto <eduardo.barre...@canonical.com> + +--- libreswan-3.32.orig/programs/pluto/virtual.c ++++ libreswan-3.32/programs/pluto/virtual.c +@@ -172,7 +172,7 @@ void init_virtual_ip(const char *private + if (next == NULL) + next = str + strlen(str); + +- bool incl; ++ bool incl = false; + if (read_subnet(str, next - str, + &(private_net_incl[i_incl]), + &(private_net_excl[i_excl]), diff -Nru libreswan-3.32/debian/patches/series libreswan-3.32/debian/patches/series --- libreswan-3.32/debian/patches/series 2020-08-26 12:15:35.000000000 -0300 +++ libreswan-3.32/debian/patches/series 2020-08-26 13:01:30.000000000 -0300 @@ -5,3 +5,4 @@ 0005-Ensure-using-compat-interface-due-to-subtle-NSS-API-.patch 0006-Use-pkg-config-recommended-by-the-environment.patch fix-libselinux3.1-deprecated.patch +fix-ftbfs-s390x.patch