public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
To: git-commits@fedoraproject.org
Subject: [rpms/python3-rpm] epel9-next: Merge epel9-next into epel9
Date: Fri, 13 Nov 2026 19:46:26 GMT [thread overview]
Message-ID: <179459918631.1.13670313524824780809.rpms-python3-rpm-92076f7f6719@fedoraproject.org> (raw)
A new commit has been pushed.
Repo : rpms/python3-rpm
Branch : epel9-next
Commit : 92076f7f6719f868aa05f7887bf766afcaabe29a
Author : Miro Hrončok <miro@hroncok.cz>
Date : 2024-05-01T22:11:14+02:00
Stats : +272/-10 in 4 file(s)
URL : https://src.fedoraproject.org/rpms/python3-rpm/c/92076f7f6719f868aa05f7887bf766afcaabe29a?branch=epel9-next
Log:
Merge epel9-next into epel9
---
diff --git a/0001-Expose-and-document-rpmdb-verifydb-operation.patch b/0001-Expose-and-document-rpmdb-verifydb-operation.patch
new file mode 100644
index 0000000..23b444a
--- /dev/null
+++ b/0001-Expose-and-document-rpmdb-verifydb-operation.patch
@@ -0,0 +1,148 @@
+From 173b737f40e7da85f79544e3f4ea4ad7b8f7d5c2 Mon Sep 17 00:00:00 2001
+From: Panu Matilainen <pmatilai@redhat.com>
+Date: Mon, 6 Nov 2023 15:58:54 +0200
+Subject: [PATCH] Expose and document rpmdb --verifydb operation
+
+After years of BDB, sometimes folks just want some assurance that their db
+is still fine. Properly exposing an operation to do so hopefully makes
+less likely to poke at the db directly (with eg sqlite3 command).
+---
+ docs/man/rpmdb.8.md | 4 ++++
+ tools/rpmdb.c | 4 ++--
+ 2 files changed, 6 insertions(+), 2 deletions(-)
+
+diff --git a/rpmdb.c b/rpmdb.c
+index 22b0b3e5d..36efff8af 100644
+--- a/rpmdb.c
++++ b/rpmdb.c
+@@ -23,8 +23,8 @@ static struct poptOption dbOptsTable[] = {
+ { "rebuilddb", '\0', (POPT_ARG_VAL|POPT_ARGFLAG_OR), &mode, MODE_REBUILDDB,
+ N_("rebuild database inverted lists from installed package headers"),
+ NULL},
+- { "verifydb", '\0', (POPT_ARG_VAL|POPT_ARGFLAG_OR|POPT_ARGFLAG_DOC_HIDDEN),
+- &mode, MODE_VERIFYDB, N_("verify database files"), NULL},
++ { "verifydb", '\0', (POPT_ARG_VAL|POPT_ARGFLAG_OR),
++ &mode, MODE_VERIFYDB, N_("verify database"), NULL},
+ { "salvagedb", '\0', (POPT_ARG_VAL|POPT_ARGFLAG_OR|POPT_ARGFLAG_DOC_HIDDEN),
+ &mode, MODE_SALVAGEDB, N_("salvage database"), NULL},
+ { "exportdb", '\0', (POPT_ARG_VAL|POPT_ARGFLAG_OR), &mode, MODE_EXPORTDB,
+--
+2.41.0
+
+--- a/doc/rpmdb.8 2020-05-28 12:04:25.024136615 +0200
++++ b/doc/rpmdb.8 2023-12-13 11:57:30.646202901 +0100
+@@ -1,48 +1,70 @@
+-.TH "RPMDB" "8" "29 June 2010" "Red Hat, Inc"
++.\" Automatically generated by Pandoc 3.1.3
++.\"
++.\" Define V font for inline verbatim, using C font in formats
++.\" that render this, and otherwise B font.
++.ie "\f[CB]x\f[]"x" \{\
++. ftr V B
++. ftr VI BI
++. ftr VB B
++. ftr VBI BI
++.\}
++.el \{\
++. ftr V CR
++. ftr VI CI
++. ftr VB CB
++. ftr VBI CBI
++.\}
++.TH "RPMDB" "8" "29 June 2010" "" ""
++.hy
+ .SH NAME
+-rpmdb \- RPM Database Tool
++.PP
++rpmdb - RPM Database Tool
+ .SH SYNOPSIS
+-
+-\fBrpm\fR {\fB--initdb|--rebuilddb\fR}
+-
+-.SH "DESCRIPTION"
+-The general form of an rpm rebuild database command is
+-.PP
+-
+-\fBrpm\fR {\fB--initdb|--rebuilddb\fR} [\fB-v\fR] [\fB--dbpath \fIDIRECTORY\fB\fR] [\fB--root \fIDIRECTORY\fB\fR]
+-
+-.PP
+-Use \fB--initdb\fR to create a new database if one doesn't already exist
+-(existing database is not overwritten), use
+-\fB--rebuilddb\fR to rebuild the database indices from
+-the installed package headers.
+-.PP
+-
+-.SH "SEE ALSO"
+-
+-.nf
+-\fBpopt\fR(3),
+-\fBrpm\fR(8),
+-\fBrpmkeys\fR(8),
+-\fBrpmsign\fR(8),
+-\fBrpm2cpio\fR(8),
+-\fBrpmbuild\fR(8),
+-\fBrpmspec\fR(8),
+-.fi
+-
+-\fBrpm --help\fR - as rpm supports customizing the options via popt aliases
+-it's impossible to guarantee that what's described in the manual matches
+-what's available.
+-
+-
+-\fBhttp://www.rpm.org/ <URL:http://www.rpm.org/>
+-\fR
+-.SH "AUTHORS"
+-
++.PP
++\f[B]rpmdb\f[R] {\f[B]--initdb|--rebuilddb\f[R]}
++.PP
++\f[B]rpmdb\f[R] {\f[B]--verifydb\f[R]}
++.PP
++\f[B]rpmdb\f[R] {\f[B]--exportdb|--importdb\f[R]}
++.SH DESCRIPTION
++.PP
++The general form of an rpmdb command is
++.PP
++\f[B]rpm\f[R] {\f[B]--initdb|--rebuilddb\f[R]} [\f[B]-v\f[R]]
++[\f[B]--dbpath \f[R]\f[I]DIRECTORY\f[R]] [\f[B]--root
++\f[R]\f[I]DIRECTORY\f[R]]
++.PP
++Use \f[B]--initdb\f[R] to create a new database if one doesn\[aq]t
++already exist (existing database is not overwritten), use
++\f[B]--rebuilddb\f[R] to rebuild the database indices from the installed
++package headers.
++.PP
++\f[B]--verifydb\f[R] performs a low-level integrity check on the
++database.
++.PP
++\f[B]--exportdb\f[R] exports the database in header-list format,
++suitable for transfporting to another host or database type.
++.PP
++\f[B]--importdb\f[R] imports a database from a header-list format as
++created by \f[B]--exportdb\f[R].
++.SH SEE ALSO
++.PP
++\f[B]popt\f[R](3), \f[B]rpm\f[R](8), \f[B]rpmkeys\f[R](8),
++\f[B]rpmsign\f[R](8), \f[B]rpm2cpio\f[R](8), \f[B]rpmbuild\f[R](8),
++\f[B]rpmspec\f[R](8)
++.PP
++\f[B]rpm --help\f[R] - as rpm supports customizing the options via popt
++aliases it\[aq]s impossible to guarantee that what\[aq]s described in
++the manual matches what\[aq]s available.
++.PP
++\f[B]http://www.rpm.org/ <URL:http://www.rpm.org/>\f[R]
++.SH AUTHORS
++.IP
+ .nf
+-Marc Ewing <marc@redhat.com>
+-Jeff Johnson <jbj@redhat.com>
+-Erik Troan <ewt@redhat.com>
+-Panu Matilainen <pmatilai@redhat.com>
++\f[C]
++Marc Ewing <marc\[at]redhat.com>
++Jeff Johnson <jbj\[at]redhat.com>
++Erik Troan <ewt\[at]redhat.com>
++Panu Matilainen <pmatilai\[at]redhat.com>
++\f[R]
+ .fi
+-
diff --git a/0001-Fix-a-copy-paste-help-description-of-whatconflicts-R.patch b/0001-Fix-a-copy-paste-help-description-of-whatconflicts-R.patch
new file mode 100644
index 0000000..63cc183
--- /dev/null
+++ b/0001-Fix-a-copy-paste-help-description-of-whatconflicts-R.patch
@@ -0,0 +1,26 @@
+From 03525592c944957f3b7b200b7daeb9f615cdcde7 Mon Sep 17 00:00:00 2001
+From: Panu Matilainen <pmatilai@redhat.com>
+Date: Tue, 23 May 2023 12:46:22 +0300
+Subject: [PATCH] Fix a copy-paste --help description of --whatconflicts
+ (RhBug:2208661)
+
+---
+ lib/poptQV.c | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+diff --git a/lib/poptQV.c b/lib/poptQV.c
+index ac8e8975d..8bd91c652 100644
+--- a/lib/poptQV.c
++++ b/lib/poptQV.c
+@@ -108,7 +108,7 @@ struct poptOption rpmQVSourcePoptTable[] = {
+ { "verify", 'V', POPT_ARGFLAG_DOC_HIDDEN, NULL, 'V',
+ N_("rpm verify mode"), NULL },
+ { "whatconflicts", '\0', 0, 0, POPT_WHATCONFLICTS,
+- N_("query/verify the package(s) which require a dependency"), "CAPABILITY" },
++ N_("query/verify the package(s) which conflict with a dependency"), "CAPABILITY" },
+ { "whatrequires", '\0', 0, 0, POPT_WHATREQUIRES,
+ N_("query/verify the package(s) which require a dependency"), "CAPABILITY" },
+ { "whatobsoletes", '\0', 0, 0, POPT_WHATOBSOLETES,
+--
+2.41.0
+
diff --git a/0001-Fix-short-circuiting-of-version-strings-in-expressio.patch b/0001-Fix-short-circuiting-of-version-strings-in-expressio.patch
new file mode 100644
index 0000000..e06709a
--- /dev/null
+++ b/0001-Fix-short-circuiting-of-version-strings-in-expressio.patch
@@ -0,0 +1,50 @@
+From 321933f060896f721e361a1c8a8d3731bdcee827 Mon Sep 17 00:00:00 2001
+From: Michael Schroeder <mls@suse.de>
+Date: Wed, 22 Jun 2022 14:07:01 +0200
+Subject: [PATCH] Fix short circuiting of version strings in expressions
+
+We use an empty string when discarding a value due to short circuiting, but
+an empty string is not allowed for versions. So use "0" in that case.
+
+Fixes: #1883
+---
+ rpmio/expression.c | 2 +-
+ tests/rpmmacro.at | 2 ++
+ 2 files changed, 3 insertions(+), 1 deletion(-)
+
+diff --git a/rpmio/expression.c b/rpmio/expression.c
+index a389a04d5..98a44bbdb 100644
+--- a/rpmio/expression.c
++++ b/rpmio/expression.c
+@@ -477,7 +477,7 @@ static int rdToken(ParseState state)
+ if (qtok == TOK_STRING) {
+ v = valueMakeString(temp);
+ } else {
+- v = valueMakeVersion(temp);
++ v = valueMakeVersion(state->flags & RPMEXPR_DISCARD ? "0" : temp);
+ free(temp); /* version doesn't take ownership of the string */
+ if (v == 0) {
+ exprErr(state, _("invalid version"), p+1);
+diff --git a/tests/rpmmacro.at b/tests/rpmmacro.at
+index d1490b4d9..c4376d49e 100644
+--- a/tests/rpmmacro.at
++++ b/tests/rpmmacro.at
+@@ -533,6 +533,7 @@ runroot rpm \
+ --eval '%["%{aaa}"]' \
+ --eval '%[%{?ccc}]' \
+ --eval '%[v"1:2.3-4"]' \
++ --eval '%[v"0" && v"0"]' \
+ ]],
+ [0],
+ [4096
+@@ -542,6 +543,7 @@ runroot rpm \
+ 5
+ 0
+ 1:2.3-4
++0
+ ],
+ [])
+ AT_CLEANUP
+--
+2.41.0
+
diff --git a/python3-rpm.spec b/python3-rpm.spec
index b501e7c..3346a38 100644
--- a/python3-rpm.spec
+++ b/python3-rpm.spec
@@ -1,8 +1,3 @@
-# We'll build python3.11-rpm only for now
-# Once a new Python version is added,
-# the spec will need to change to support multiple Pythons anyway
-%global python3_pkgversion 3.11
-
# run internal testsuite?
# fakechroot is severely broken beyond fedora 33, disable...
%if 0%{?fedora} > 33 || 0%{?rhel} > 8
@@ -36,14 +31,14 @@
%global rpmver 4.16.1.3
#global snapver rc1
-%global rel 27
+%global rel 29
%global sover 9
%global rhelrel %{?snapver:0.%{snapver}.}%{rel}
%global rel_next %{lua:print(tonumber(rpm.expand("%rel")) + 1)}
%global rhelrel_next %{?snapver:0.%{snapver}.}%{rel_next}
# Bump this for EPEL only rebuilds, reset when %%rel was bumped
-%global baserelease 1
+%global baserelease 2
%global srcver %{rpmver}%{?snapver:-%{snapver}}
%global srcdir %{?snapver:testing}%{!?snapver:rpm-%(echo %{rpmver} | cut -d'.' -f1-2).x}
@@ -115,6 +110,10 @@ Patch132: 0001-Fix-wrong-return-code-on-O_DIRECTORY-open-of-invalid.patch
Patch133: 0001-Print-full-path-if-file-removal-fails.patch
Patch134: 0001-Don-t-warn-about-missing-user-group-on-skipped-files.patch
+Patch140: 0001-Fix-short-circuiting-of-version-strings-in-expressio.patch
+Patch141: 0001-Fix-a-copy-paste-help-description-of-whatconflicts-R.patch
+Patch142: 0001-Expose-and-document-rpmdb-verifydb-operation.patch
+
# These are not yet upstream
Patch906: rpm-4.7.1-geode-i686.patch
# Probably to be upstreamed in slightly different form
@@ -199,9 +198,12 @@ BuildRequires: ima-evm-utils-devel >= 1.0
%description
Additional Python 3.X packages with the RPM Python bindings.
-%package -n python%{python3_pkgversion}-rpm
+%define python3x_package %{?name:%package -n python%{python3_pkgversion}-rpm
Summary: Python %{python3_pkgversion} bindings for apps which will manipulate RPM packages
BuildRequires: python%{python3_pkgversion}-devel
+%if v"%{python3_pkgversion}" >= v"3.12"
+BuildRequires: python%{python3_pkgversion}-setuptools
+%endif
Requires: (rpm-libs%{?_isa} >= %{version}-%{rhelrel} with rpm-libs%{?_isa} < %{version}-%{rhelrel_next})
%description -n python%{python3_pkgversion}-rpm
@@ -210,7 +212,12 @@ written in the Python programming language to use the interface
supplied by RPM Package Manager libraries.
This package should be installed if you want to develop Python %{python3_pkgversion}
-programs that will manipulate RPM packages and databases.
+programs that will manipulate RPM packages and databases.}
+
+%global python3_pkgversion 3.11
+%python3x_package
+%global python3_pkgversion 3.12
+%python3x_package
%prep
%autosetup -n rpm-%{srcver} %{?with_int_bdb:-a 1} -p1
@@ -269,6 +276,9 @@ export PYTHON=%{python3}
%make_build
pushd python
+%global python3_pkgversion 3.11
+%py3_build
+%global python3_pkgversion 3.12
%py3_build
popd
@@ -278,6 +288,9 @@ popd
# We need to build with --enable-python for the self-test suite, but we
# actually package the bindings built with setup.py (#531543#c26)
pushd python
+%global python3_pkgversion 3.11
+%py3_install
+%global python3_pkgversion 3.12
%py3_install
popd
@@ -340,6 +353,9 @@ rm -r %{buildroot}%{_prefix}/lib
rm -r %{buildroot}%{_sysconfdir}
%check
+%global python3_pkgversion 3.11
+%py3_check_import rpm rpm.transaction
+%global python3_pkgversion 3.12
%py3_check_import rpm rpm.transaction
%if %{with check}
make check TESTSUITEFLAGS=-j%{_smp_build_ncpus} || (cat tests/rpmtests.log; exit 1)
@@ -347,14 +363,36 @@ make check TESTSUITEFLAGS=-j%{_smp_build_ncpus} || (cat tests/rpmtests.log; exit
make clean
%endif
+%global python3_pkgversion 3.11
%files -n python%{python3_pkgversion}-rpm
%license COPYING
%{python3_sitearch}/rpm/
%{python3_sitearch}/rpm-%{rpmver}*.egg-info
+%global python3_pkgversion 3.12
+%files -n python%{python3_pkgversion}-rpm
+%license COPYING
+%{python3_sitearch}/rpm/
+%{python3_sitearch}/rpm-%{rpmver}*.egg-info/
+
%changelog
+* Mon Jan 29 2024 Miro Hrončok <mhroncok@redhat.com> - 4.16.1.3-29.2
+- Add python3.12-rpm
+
+* Wed Dec 13 2023 Florian Festi <ffesti@redhat.com> - 4.16.1.3-29
+- Actually add --verifydb to the man page (RHEL-14591)
+- Don't warn about missing user/group on skipped files (RHEL-18037)
+
+* Mon Dec 11 2023 Florian Festi <ffesti@redhat.com> - 4.16.1.3-28
+- Fix warning if file removal fails
+
+* Mon Nov 27 2023 Florian Festi <ffesti@redhat.com> - 4.16.1.3-27
+- Fix short circuiting of version strings in expressions (RHEL-15688)
+- Fix description of whatconflicts in the man page (RHEL-6303)
+- Expose and document rpmdb --verifydb operation (RHEL-14591)
+- Fixes to the file handling backport
-* Mon Dec 11 2023 Florian Festi <ffesti@redhat.com> - 4.16.1.3-27
+* Fri Nov 10 2023 Florian Festi <ffesti@redhat.com> - 4.16.1.3-26
- Backport file handling code from rpm-4.19 to fix CVE-2021-35937,
CVE-2021-35938 and CVE-2021-35939
next reply other threads:[~2026-11-13 19:46 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-11-13 19:46 [this message]
2026-11-13 19:46 [rpms/python3-rpm] epel9-next: Merge epel9-next into epel9
2026-11-13 19:46
2026-11-13 19:46
2026-11-13 19:46
2026-11-13 19:46
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=179459918631.1.13670313524824780809.rpms-python3-rpm-92076f7f6719@fedoraproject.org \
--to=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