dcavalca / rpms / rpm

Forked from rpms/rpm 2 years ago
Clone

Blame rpm-4.14.1-Add-envvar-that-will-be-present-during-RPM-build.patch

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