public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
From: Lubos Kardos <lkardos@redhat.com>
To: git-commits@fedoraproject.org
Subject: [rpms/rpm] pmatilai-v6: - Fix last occurence of PyString
Date: Mon, 23 Nov 2026 09:29:33 GMT	[thread overview]
Message-ID: <179542617391.1.1352871708184907654.rpms-rpm-d407fb640c20@fedoraproject.org> (raw)

A new commit has been pushed.

Repo   : rpms/rpm
Branch : pmatilai-v6
Commit : d407fb640c20501731f662694ce3fc84a176f835
Author : Lubos Kardos <lkardos@redhat.com>
Date   : 2015-08-10T14:43:51+02:00
Stats  : +38/-1 in 2 file(s)
URL    : https://src.fedoraproject.org/rpms/rpm/c/d407fb640c20501731f662694ce3fc84a176f835?branch=pmatilai-v6

Log:
- Fix last occurence of PyString

---
diff --git a/rpm-4.12.90-remove-pystring.patch b/rpm-4.12.90-remove-pystring.patch
new file mode 100644
index 0000000..b2885e2
--- /dev/null
+++ b/rpm-4.12.90-remove-pystring.patch
@@ -0,0 +1,33 @@
+From aec4f88ed585aedae1b35f447ee730a9054d6a4a Mon Sep 17 00:00:00 2001
+From: Thierry Vignaud <thierry.vignaud@gmail.com>
+Date: Mon, 10 Aug 2015 04:38:47 -0400
+Subject: [PATCH] Fix last occurence of PyString
+
+This should have been done in
+commit 1866fc41c8fdf5a82705cee7f1043d5fb634c3be
+This fixes:
+
+$ python3 -c 'import rpm._rpmb'
+Traceback (most recent call last):
+  File "<string>", line 1, in <module>
+ImportError: /usr/lib64/python3.4/site-packages/rpm/_rpmb.cpython-34m.so: undefined symbol: PyString_FromString
+---
+ python/spec-py.c | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+diff --git a/python/spec-py.c b/python/spec-py.c
+index 728b63c..f710f5c 100644
+--- a/python/spec-py.c
++++ b/python/spec-py.c
+@@ -51,7 +51,7 @@ static PyObject *pkgGetSection(rpmSpecPkg pkg, int section)
+ {
+     char *sect = rpmSpecPkgGetSection(pkg, section);
+     if (sect != NULL) {
+-        PyObject *ps = PyString_FromString(sect);
++        PyObject *ps = PyBytes_FromString(sect);
+         free(sect);
+         if (ps != NULL)
+             return ps;
+-- 
+1.9.3
+

diff --git a/rpm.spec b/rpm.spec
index 8b6a322..e11b1b8 100644
--- a/rpm.spec
+++ b/rpm.spec
@@ -27,7 +27,7 @@
 Summary: The RPM package management system
 Name: rpm
 Version: %{rpmver}
-Release: %{?snapver:0.%{snapver}.}6%{?dist}
+Release: %{?snapver:0.%{snapver}.}7%{?dist}
 Group: System Environment/Base
 Url: http://www.rpm.org/
 Source0: http://rpm.org/releases/rpm-4.12.x/%{name}-%{srcver}.tar.bz2
@@ -56,6 +56,7 @@ Patch102: rpm-4.12.90-fix-macro-warning.patch
 Patch103: rpm-4.12.90-modify-rpmisglob.patch
 Patch104: rpm-4.12.90-try-unglobbed.patch
 Patch105: rpm-4.12.90-show-filetriggers.patch
+Patch106: rpm-4.12.90-remove-pystring.patch
 
 # These are not yet upstream
 Patch302: rpm-4.7.1-geode-i686.patch
@@ -540,6 +541,9 @@ exit 0
 %doc doc/librpm/html/*
 
 %changelog
+* Mon Aug 10 2015 Lubos Kardos <lkardos@redhat.com> - 4.12.90-7
+- Fix last occurence of PyString
+
 * Thu Aug 06 2015 Lubos Kardos <lkardos@redhat.com> - 4.12.90-6
 - Add --filetriggers option to show info about file triggers.
 

                 reply	other threads:[~2026-11-23  9:29 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=179542617391.1.1352871708184907654.rpms-rpm-d407fb640c20@fedoraproject.org \
    --to=lkardos@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