chantra / rpms / rpm

Forked from rpms/rpm 2 years ago
Clone
0b2921
From bf636421120aa2c97f9e0fdcee3c211b4241bd86 Mon Sep 17 00:00:00 2001
0b2921
From: Tomas Orsava <torsava@redhat.com>
0b2921
Date: Mon, 29 Jan 2018 16:13:18 +0100
0b2921
Subject: [PATCH] Add envvar that will be present during RPM build
0b2921
0b2921
Part of a Fedora Change for F28:
0b2921
"Avoid /usr/bin/python in RPM build"
0b2921
https://fedoraproject.org/wiki/Changes/Avoid_usr_bin_python_in_RPM_Build
0b2921
---
0b2921
 macros.in | 2 ++
0b2921
 1 file changed, 2 insertions(+)
0b2921
0b2921
diff --git a/macros.in b/macros.in
0b2921
index dd6ef67..68449e3 100644
0b2921
--- a/macros.in
0b2921
+++ b/macros.in
0b2921
@@ -804,6 +804,8 @@ package or when debugging this package.\
0b2921
   export PKG_CONFIG_PATH\
0b2921
   CONFIG_SITE=${CONFIG_SITE:-NONE}\
0b2921
   export CONFIG_SITE\
0b2921
+  PYTHON_DISALLOW_AMBIGUOUS_VERSION=warn\
0b2921
+  export PYTHON_DISALLOW_AMBIGUOUS_VERSION\
0b2921
   \
0b2921
   %{verbose:set -x}%{!verbose:exec > /dev/null}\
0b2921
   umask 022\
0b2921
-- 
0b2921
2.13.6
0b2921