From 6e4bf0deafbdd573d6e67e10b00506185f2e8e4d Mon Sep 17 00:00:00 2001 From: Rosen Penev Date: Sat, 29 Jan 2022 14:16:59 -0800 Subject: [PATCH] radsecproxy: fix compilation with newer GCC Errors on uninitialized variable. Only on powerpc64 for some reason. Signed-off-by: Rosen Penev --- net/radsecproxy/Makefile | 2 +- net/radsecproxy/patches/300-uninit.patch | 11 +++++++++++ 2 files changed, 12 insertions(+), 1 deletion(-) create mode 100644 net/radsecproxy/patches/300-uninit.patch diff --git a/net/radsecproxy/Makefile b/net/radsecproxy/Makefile index 5207e57194..0f89fac019 100644 --- a/net/radsecproxy/Makefile +++ b/net/radsecproxy/Makefile @@ -9,7 +9,7 @@ include $(TOPDIR)/rules.mk PKG_NAME:=radsecproxy PKG_VERSION:=1.9.0 -PKG_RELEASE:=2 +PKG_RELEASE:=3 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz PKG_SOURCE_URL:=https://github.com/radsecproxy/radsecproxy/releases/download/$(PKG_VERSION)/ diff --git a/net/radsecproxy/patches/300-uninit.patch b/net/radsecproxy/patches/300-uninit.patch new file mode 100644 index 0000000000..578c86826c --- /dev/null +++ b/net/radsecproxy/patches/300-uninit.patch @@ -0,0 +1,11 @@ +--- a/gconfig.c ++++ b/gconfig.c +@@ -119,7 +119,7 @@ FILE *pushgconfpaths(struct gconffile ** + int i; + FILE *f = NULL; + glob_t globbuf; +- char *path, *curfile = NULL, *dir; ++ char *path = NULL, *curfile = NULL, *dir; + + /* if cfgpath is relative, make it relative to current config */ + if (*cfgpath == '/') -- 2.30.2