public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
* [rpms/rpm] pmatilai-v6: Invoke python2 explicitly from test-suite to unbreak build
@ 2026-11-23  9:31 Panu Matilainen
  0 siblings, 0 replies; only message in thread
From: Panu Matilainen @ 2026-11-23  9:31 UTC (permalink / raw)
  To: git-commits

A new commit has been pushed.

Repo   : rpms/rpm
Branch : pmatilai-v6
Commit : 8b3e871c1fbf2946dfbfe0b418c496bb7a4a074f
Author : Panu Matilainen <pmatilai@redhat.com>
Date   : 2018-06-29T11:16:01+03:00
Stats  : +20/-1 in 2 file(s)
URL    : https://src.fedoraproject.org/rpms/rpm/c/8b3e871c1fbf2946dfbfe0b418c496bb7a4a074f?branch=pmatilai-v6

Log:
Invoke python2 explicitly from test-suite to unbreak build

---
diff --git a/rpm-4.14.1-explicit-python2.patch b/rpm-4.14.1-explicit-python2.patch
new file mode 100644
index 0000000..8eec835
--- /dev/null
+++ b/rpm-4.14.1-explicit-python2.patch
@@ -0,0 +1,12 @@
+diff -up rpm-4.14.1/tests/local.at.python2 rpm-4.14.1/tests/local.at
+--- rpm-4.14.1/tests/local.at.python2	2018-06-29 11:11:42.716541572 +0300
++++ rpm-4.14.1/tests/local.at	2017-09-06 14:58:13.034317976 +0300
+@@ -17,7 +17,7 @@ def myprint(msg = ''):
+     sys.stdout.write('%s\n' % msg)
+ $1
+ EOF
+-python2 test.py
++python test.py
+ ]])
+ 
+ m4_define([RPMPY_CHECK],[

diff --git a/rpm.spec b/rpm.spec
index f329969..7863ade 100644
--- a/rpm.spec
+++ b/rpm.spec
@@ -23,7 +23,7 @@
 
 %global rpmver 4.14.1
 #global snapver rc2
-%global rel 11
+%global rel 12
 
 %global srcver %{version}%{?snapver:-%{snapver}}
 %global srcdir %{?snapver:testing}%{!?snapver:%{name}-%(echo %{version} | cut -d'.' -f1-2).x}
@@ -74,6 +74,10 @@ Patch7: rpm-4.14.1-Add-envvar-that-will-be-present-during-RPM-build.patch
 # https://bugzilla.redhat.com/show_bug.cgi?id=1581224
 Patch8: 4.14.1-find-debuginfo-pie.patch
 
+# More Python 3 fallout, invoke python2 explicitly to avoid deprecation
+# warnings breaking the test-suite
+Patch9: rpm-4.14.1-explicit-python2.patch
+
 # Patches already upstream:
 
 # These are not yet upstream
@@ -605,6 +609,9 @@ make check || cat tests/rpmtests.log
 %doc doc/librpm/html/*
 
 %changelog
+* Fri Jun 29 2018 Panu Matilainen <pmatilai@redhat.com> - 4.14.2-12
+- Invoke python2 explicitly from test-suite to unbreak build
+
 * Fri Jun 29 2018 Panu Matilainen <pmatilai@redhat.com> - 4.14.2-11
 - Remove direct ldconfig calls, use compat macros instead
 

^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2026-11-23  9:31 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-11-23  9:31 [rpms/rpm] pmatilai-v6: Invoke python2 explicitly from test-suite to unbreak build Panu Matilainen

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox