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

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