Hello community,

here is the log from the commit of package lxc for openSUSE:Factory checked in 
at 2019-09-30 15:59:09
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/lxc (Old)
 and      /work/SRC/openSUSE:Factory/.lxc.new.2352 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "lxc"

Mon Sep 30 15:59:09 2019 rev:88 rq:733750 version:3.2.1

Changes:
--------
--- /work/SRC/openSUSE:Factory/lxc/lxc.changes  2019-09-16 10:52:28.199156164 
+0200
+++ /work/SRC/openSUSE:Factory/.lxc.new.2352/lxc.changes        2019-09-30 
15:59:10.809251561 +0200
@@ -3,0 +4,3 @@
+- Add backport of https://github.com/lxc/lxc/pull/3102 to fix build failures on
+  openSUSE Leap.
+  + 0001-tree-wide-initialize-all-auto-cleanup-variables.patch

New:
----
  0001-tree-wide-initialize-all-auto-cleanup-variables.patch

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Other differences:
------------------
++++++ lxc.spec ++++++
--- /var/tmp/diff_new_pack.O2cYfp/_old  2019-09-30 15:59:11.861248762 +0200
+++ /var/tmp/diff_new_pack.O2cYfp/_new  2019-09-30 15:59:11.865248751 +0200
@@ -46,6 +46,8 @@
 Source3:        lxc-createconfig.in
 Source90:       openSUSE-apparmor.conf
 Source91:       missing_setuid.txt.in
+# FIX-UPSTREAM: Backport of https://github.com/lxc/lxc/pull/3102.
+Patch1:         0001-tree-wide-initialize-all-auto-cleanup-variables.patch
 BuildRequires:  gcc
 BuildRequires:  automake
 BuildRequires:  libtool
@@ -127,6 +129,8 @@
 
 %prep
 %setup
+# Fix -Werror=maybe-uninitialized build errors.
+%patch1 -p1
 
 %build
 ./autogen.sh

++++++ 0001-tree-wide-initialize-all-auto-cleanup-variables.patch ++++++
>From 6453ba565ed7e3be9b3c9fa74ac07cf8e06b9afc Mon Sep 17 00:00:00 2001
From: Christian Brauner <[email protected]>
Date: Tue, 23 Jul 2019 16:41:46 +0200
Subject: [PATCH] tree-wide: initialize all auto-cleanup variables

Closes: #3101.
Signed-off-by: Christian Brauner <[email protected]>
---
 src/lxc/cgroups/cgfsng.c | 2 +-
 src/lxc/confile.c        | 6 +++---
 2 files changed, 4 insertions(+), 4 deletions(-)

diff --git a/src/lxc/cgroups/cgfsng.c b/src/lxc/cgroups/cgfsng.c
index 87e12d2ddd68..7b8fe6736fe1 100644
--- a/src/lxc/cgroups/cgfsng.c
+++ b/src/lxc/cgroups/cgfsng.c
@@ -1260,7 +1260,7 @@ static int mkdir_eexist_on_last(const char *dir, mode_t 
mode)
 
        orig_len = strlen(dir);
        do {
-               __do_free char *makeme;
+               __do_free char *makeme = NULL;
                int ret;
                size_t cur_len;
 
diff --git a/src/lxc/confile.c b/src/lxc/confile.c
index 36d62cbcac14..c0cba7c54716 100644
--- a/src/lxc/confile.c
+++ b/src/lxc/confile.c
@@ -909,9 +909,9 @@ static int set_config_net_ipv6_gateway(const char *key, 
const char *value,
 static int set_config_net_veth_ipv6_route(const char *key, const char *value,
                                       struct lxc_conf *lxc_conf, void *data)
 {
-       __do_free char *valdup;
-       __do_free struct lxc_inet6dev *inet6dev;
-       __do_free struct lxc_list *list;
+       __do_free char *valdup = NULL;
+       __do_free struct lxc_inet6dev *inet6dev = NULL;
+       __do_free struct lxc_list *list = NULL;
        int ret;
        char *netmask, *slash;
        struct lxc_netdev *netdev = data;
-- 
2.23.0



Reply via email to