Blame SOURCES/0001-configure-do-not-inherit-DISTRO-from-the-environment.patch

f707ba
From 506887297ea33339d8ad8b274be643d220bf22f8 Mon Sep 17 00:00:00 2001
f707ba
From: Sumit Bose <sbose@redhat.com>
f707ba
Date: Thu, 28 Nov 2019 18:51:30 +0100
f707ba
Subject: [PATCH] configure: do not inherit DISTRO from the environment
f707ba
f707ba
The argument of the --with-distro configure option is stored in the
f707ba
variable DISTRO. If DISTRO is already set in the build environment it
f707ba
should not be used hence DISTRO must be cleared by the configure script
f707ba
if not set by --with-distro.
f707ba
f707ba
Related to https://bugzilla.redhat.com/show_bug.cgi?id=1638396
f707ba
---
f707ba
 configure.ac | 3 ++-
f707ba
 1 file changed, 2 insertions(+), 1 deletion(-)
f707ba
f707ba
diff --git a/configure.ac b/configure.ac
f707ba
index e335247..a424a49 100644
f707ba
--- a/configure.ac
f707ba
+++ b/configure.ac
f707ba
@@ -31,7 +31,8 @@ AC_ARG_WITH([distro],
f707ba
             [AS_HELP_STRING([--with-distro],
f707ba
                             [Configure for a specific distribution (eg: redhat)]
f707ba
                            )],
f707ba
-            [DISTRO=$withval])
f707ba
+            [DISTRO=$withval],
f707ba
+            [DISTRO=])
f707ba
 
f707ba
 if test -z $DISTRO; then
f707ba
 	AC_CHECK_FILE(/etc/redhat-release, [DISTRO="redhat"])
f707ba
-- 
f707ba
2.21.0
f707ba