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

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