public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
From: Tomas Orsava <torsava@redhat.com>
To: git-commits@fedoraproject.org
Subject: [rpms/rpm] pmatilai-v6: Add envvar that will be present during RPM build
Date: Mon, 23 Nov 2026 09:31:46 GMT [thread overview]
Message-ID: <179542630674.1.9821924488529092819.rpms-rpm-0670d684d58c@fedoraproject.org> (raw)
A new commit has been pushed.
Repo : rpms/rpm
Branch : pmatilai-v6
Commit : 0670d684d58c7ceee6655cc1cd50974e6eb1ae7d
Author : Tomas Orsava <torsava@redhat.com>
Date : 2018-01-30T13:32:10+01:00
Stats : +41/-1 in 2 file(s)
URL : https://src.fedoraproject.org/rpms/rpm/c/0670d684d58c7ceee6655cc1cd50974e6eb1ae7d?branch=pmatilai-v6
Log:
Add envvar that will be present during RPM build
Part of a Fedora Change for F28: "Avoid /usr/bin/python in RPM build"
https://fedoraproject.org/wiki/Changes/Avoid_usr_bin_python_in_RPM_Build
---
diff --git a/rpm-4.14.1-Add-envvar-that-will-be-present-during-RPM-build.patch b/rpm-4.14.1-Add-envvar-that-will-be-present-during-RPM-build.patch
new file mode 100644
index 0000000..361e1a4
--- /dev/null
+++ b/rpm-4.14.1-Add-envvar-that-will-be-present-during-RPM-build.patch
@@ -0,0 +1,28 @@
+From bf636421120aa2c97f9e0fdcee3c211b4241bd86 Mon Sep 17 00:00:00 2001
+From: Tomas Orsava <torsava@redhat.com>
+Date: Mon, 29 Jan 2018 16:13:18 +0100
+Subject: [PATCH] Add envvar that will be present during RPM build
+
+Part of a Fedora Change for F28:
+"Avoid /usr/bin/python in RPM build"
+https://fedoraproject.org/wiki/Changes/Avoid_usr_bin_python_in_RPM_Build
+---
+ macros.in | 2 ++
+ 1 file changed, 2 insertions(+)
+
+diff --git a/macros.in b/macros.in
+index dd6ef67..68449e3 100644
+--- a/macros.in
++++ b/macros.in
+@@ -804,6 +804,8 @@ package or when debugging this package.\
+ export PKG_CONFIG_PATH\
+ CONFIG_SITE=${CONFIG_SITE:-NONE}\
+ export CONFIG_SITE\
++ PYTHON_DISALLOW_AMBIGUOUS_VERSION=warn\
++ export PYTHON_DISALLOW_AMBIGUOUS_VERSION\
+ \
+ %{verbose:set -x}%{!verbose:exec > /dev/null}\
+ umask 022\
+--
+2.13.6
+
diff --git a/rpm.spec b/rpm.spec
index 60c5eb2..2cf1d74 100644
--- a/rpm.spec
+++ b/rpm.spec
@@ -23,7 +23,7 @@
%global rpmver 4.14.1
#global snapver rc2
-%global rel 4
+%global rel 5
%global srcver %{version}%{?snapver:-%{snapver}}
%global srcdir %{?snapver:testing}%{!?snapver:%{name}-%(echo %{version} | cut -d'.' -f1-2).x}
@@ -60,6 +60,13 @@ Patch5: rpm-4.12.0-rpm2cpio-hack.patch
# Upstream pull request: https://github.com/rpm-software-management/rpm/pull/383
Patch6: rpm-4.14.1-python-brp-bytecompile.patch
+# Downstream-only patch:
+# Add envvar that will be present during RPM build
+# - Part of a Fedora Change for F28:
+# - "Avoid /usr/bin/python in RPM build"
+# - https://fedoraproject.org/wiki/Changes/Avoid_usr_bin_python_in_RPM_Build
+Patch6: rpm-4.14.1-Add-envvar-that-will-be-present-during-RPM-build.patch
+
# Patches already upstream:
# These are not yet upstream
@@ -578,6 +585,11 @@ make check || cat tests/rpmtests.log
%doc doc/librpm/html/*
%changelog
+* Tue Jan 30 2018 Tomas Orsava <torsava@redhat.com> - 4.14.1-4
+- Add envvar that will be present during RPM build,
+ Part of a Fedora Change for F28: "Avoid /usr/bin/python in RPM build"
+ https://fedoraproject.org/wiki/Changes/Avoid_usr_bin_python_in_RPM_Build
+
* Tue Jan 30 2018 Petr Viktorin <pviktori@redhat.com> - 4.14.1-4
- Skip automatic Python byte-compilation if *.py files are not present
reply other threads:[~2026-11-23 9:31 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=179542630674.1.9821924488529092819.rpms-rpm-0670d684d58c@fedoraproject.org \
--to=torsava@redhat.com \
--cc=git-commits@fedoraproject.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox