public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
From: Panu Matilainen <pmatilai@fedoraproject.org>
To: git-commits@fedoraproject.org
Subject: [rpms/rpm] pmatilai-v6: - support parallel python versions in python dependency extractor (#532118)
Date: Mon, 23 Nov 2026 09:26:23 GMT	[thread overview]
Message-ID: <179542598380.1.7367848411253238360.rpms-rpm-679d6f57de74@fedoraproject.org> (raw)

A new commit has been pushed.

Repo   : rpms/rpm
Branch : pmatilai-v6
Commit : 679d6f57de74fa8a9c377ee2cfe9883af000f565
Author : Panu Matilainen <pmatilai@fedoraproject.org>
Date   : 2010-01-30T10:16:46+00:00
Stats  : +43/-1 in 2 file(s)
URL    : https://src.fedoraproject.org/rpms/rpm/c/679d6f57de74fa8a9c377ee2cfe9883af000f565?branch=pmatilai-v6

Log:
- support parallel python versions in python dependency extractor (#532118)

---
diff --git a/rpm-4.8.0-pythondeps-parallel.patch b/rpm-4.8.0-pythondeps-parallel.patch
new file mode 100644
index 0000000..9f1fb54
--- /dev/null
+++ b/rpm-4.8.0-pythondeps-parallel.patch
@@ -0,0 +1,37 @@
+diff --git a/scripts/pythondeps.sh b/scripts/pythondeps.sh
+index 7ccd076..7bf6fec 100755
+--- a/scripts/pythondeps.sh
++++ b/scripts/pythondeps.sh
+@@ -5,17 +5,27 @@
+     exit 0
+ }
+ 
+-PYVER=`python -c "import sys; v=sys.version_info[:2]; print '%d.%d'%v"`
+ case $1 in
+ -P|--provides)
+     shift
+-    grep "/usr/bin/python\*\$" >& /dev/null && echo "python(abi) = ${PYVER}"
+-    exit 0
++    # Match buildroot/payload paths of the form
++    #    /PATH/OF/BUILDROOT/usr/bin/pythonMAJOR.MINOR
++    # generating a line of the form
++    #    python(abi) = MAJOR.MINOR
++    # (Don't match against -config tools e.g. /usr/bin/python2.6-config)
++    grep "/usr/bin/python.\..$" \
++        | sed -e "s|.*/usr/bin/python\(.\..\)|python(abi) = \1|"
+     ;;
+ -R|--requires)
+     shift
+-    grep "/usr/lib[^/]*/python${PYVER}/" >& /dev/null && echo "python(abi) = ${PYVER}"
+-    exit 0
++    # Match buildroot paths of the form
++    #    /PATH/OF/BUILDROOT/usr/lib/pythonMAJOR.MINOR/  and
++    #    /PATH/OF/BUILDROOT/usr/lib64/pythonMAJOR.MINOR/
++    # generating (uniqely) lines of the form:
++    #    python(abi) = MAJOR.MINOR
++    grep "/usr/lib[^/]*/python.\../*" \
++        | sed -e "s|.*/usr/lib[^/]*/python\(.\..\)/.*|python(abi) = \1|g" \
++        | sort | uniq
+     ;;
+ esac
+ 

diff --git a/rpm.spec b/rpm.spec
index 8a2a3b7..9680970 100644
--- a/rpm.spec
+++ b/rpm.spec
@@ -21,7 +21,7 @@
 Summary: The RPM package management system
 Name: rpm
 Version: %{rpmver}
-Release: 3%{?dist}
+Release: 4%{?dist}
 Group: System Environment/Base
 Url: http://www.rpm.org/
 Source0: http://rpm.org/releases/testing/%{name}-%{srcver}.tar.bz2
@@ -39,6 +39,7 @@ Patch3: rpm-4.7.90-fedora-specspo.patch
 # Patches already in upstream
 Patch200: rpm-4.8.0-url-segfault.patch
 Patch201: rpm-4.8.0-verify-exitcode.patch
+Patch202: rpm-4.8.0-pythondeps-parallel.patch
 
 # These are not yet upstream
 Patch301: rpm-4.6.0-niagara.patch
@@ -185,6 +186,7 @@ packages on a system.
 
 %patch200 -p1 -b .url-segfault
 %patch201 -p1 -b .verify-exitcode
+%patch202 -p1 -b .pythondeps-parallel
 
 %patch301 -p1 -b .niagara
 %patch302 -p1 -b .geode
@@ -400,6 +402,9 @@ exit 0
 %doc doc/librpm/html/*
 
 %changelog
+* Sat Jan 30 2010 Panu Matilainen <pmatilai@redhat.com> - 4.8.0-4
+- support parallel python versions in python dependency extractor (#532118)
+
 * Thu Jan 21 2010 Panu Matilainen <pmatilai@redhat.com> - 4.8.0-3
 - fix segfault on failed url retrieval
 - fix verification error code depending on verbosity level

                 reply	other threads:[~2026-11-23  9:26 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=179542598380.1.7367848411253238360.rpms-rpm-679d6f57de74@fedoraproject.org \
    --to=pmatilai@fedoraproject.org \
    --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