From 6d42e13a46b970c7197e1b70f6440ada1f8ec410 Mon Sep 17 00:00:00 2001 From: "Kelvin M. Klann" Date: Mon, 1 Nov 2021 14:10:28 -0300 Subject: build: Normalize HAVE_SUID See commit 15d793838 ("Try to fix #2310 -- Can't create run directory without suid-root", 2021-05-13) / PR #4273. It is the only "HAVE_" option whose value is set by if/else on a makefile. Also, it is set in different places to either "yes", "no", blank or "-DHAVE_SUID". Set the value only on configure.ac and only to either blank or to "-DHAVE_SUID". Misc: The `ifeq ($(HAVE_SUID),-DHAVE_SUID)` comparison that this adds is based on the existing `ifeq ($(HAVE_APPARMOR),-DHAVE_APPARMOR)` comparison on Makefile.in. --- src/common.mk.in | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) (limited to 'src') diff --git a/src/common.mk.in b/src/common.mk.in index c8329e7c2..c55c26f42 100644 --- a/src/common.mk.in +++ b/src/common.mk.in @@ -22,11 +22,7 @@ HAVE_FIRETUNNEL=@HAVE_FIRETUNNEL@ HAVE_PRIVATE_HOME=@HAVE_PRIVATE_HOME@ HAVE_GCOV=@HAVE_GCOV@ HAVE_SELINUX=@HAVE_SELINUX@ -ifeq (@HAVE_SUID@, yes) -HAVE_SUID=-DHAVE_SUID -else -HAVE_SUID= -endif +HAVE_SUID=@HAVE_SUID@ HAVE_DBUSPROXY=@HAVE_DBUSPROXY@ HAVE_USERTMPFS=@HAVE_USERTMPFS@ HAVE_OUTPUT=@HAVE_OUTPUT@ -- cgit v1.2.3-70-g09d2