public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
To: git-commits@fedoraproject.org
Subject: [rpms/protobuf3] rawhide: Clear upgrade path to Fedora 45+ when python3-proto-plus is installed
Date: Tue, 10 Nov 2026 06:42:01 GMT [thread overview]
Message-ID: <179429292170.1.14456649732521018009.rpms-protobuf3-2686b7340f33@fedoraproject.org> (raw)
A new commit has been pushed.
Repo : rpms/protobuf3
Branch : rawhide
Commit : 2686b7340f335b05763d700d5e6b7a6e0a5570a3
Author : Miro Hrončok <miro@hroncok.cz>
Date : 2026-11-09T18:08:00+01:00
Stats : +12/-12 in 1 file(s)
URL : https://src.fedoraproject.org/rpms/protobuf3/c/2686b7340f335b05763d700d5e6b7a6e0a5570a3?branch=rawhide
Log:
Clear upgrade path to Fedora 45+ when python3-proto-plus is installed
- Fixes: rhbz#2530520
Previously, when one had packages dependent on python3-protobuf installed
on Fedora < 45, requiring python3-protobuf3 on Fedora 45+,
an update to Fedora 45+ was problematic:
# dnf install python3-proto-plus
...
Installing python3-protobuf-0:3.19.6-20.fc44.noarch
Installing python3-proto-plus-0:1.22.3-12.fc44.noarch
...
# dnf --releasever=45 distro-sync
...
Problem: package python3-protobuf-6.33.5-4.fc45.x86_64 from fedora conflicts with python3-protobuf < 4~~ provided by python3-protobuf3-3.19.6-66.fc45.noarch from fedora
- package python3-proto-plus-1.22.3-16.fc45.noarch from fedora requires (python3.15dist(protobuf) < 5~~ with python3.15dist(protobuf) >= 3.19), but none of the providers can be installed
- problem with installed package
- problem with installed package
- python3-protobuf-3.19.6-20.fc44.noarch does not belong to a distupgrade repository
- python3-proto-plus-1.22.3-12.fc44.noarch does not belong to a distupgrade repository
...
The update was possible only when there were no such dependent packages:
# dnf install python3-protobuf
...
Installing python3-protobuf-0:3.19.6-20.fc44.noarch
...
# dnf --releasever=45 distro-sync
...
python3-protobuf x86_64 0:6.33.5-4.fc45 updates 2.5 MiB
replacing python3-protobuf noarch 0:3.19.6-20.fc44 fedora 1.5 MiB
...
By Obsoleting python3-protobuf < 4~~ rather than simply Conflicting with it,
the upgrade path is clean:
# dnf install python3-proto-plus
...
# dnf --releasever=45 distro-sync
...
python3-protobuf3 noarch 0:3.19.6-67.fc46 test 1.5 MiB
replacing python3-protobuf noarch 0:3.19.6-20.fc44 fedora 1.5 MiB
While preserving the simple update case:
# dnf install python3-protobuf
...
# dnf --releasever=45 distro-sync
...
python3-protobuf x86_64 0:6.33.5-4.fc45 updates 2.5 MiB
replacing python3-protobuf noarch 0:3.19.6-20.fc44 fedora 1.5 MiB
...
Other subpackages changed accordingly,
although real user evidence of the problem is missing for those.
---
diff --git a/protobuf3.spec b/protobuf3.spec
index 3869f41..55b688e 100644
--- a/protobuf3.spec
+++ b/protobuf3.spec
@@ -128,7 +128,7 @@ BuildRequires: mingw64-zlib
Provides: protobuf = %{version}-%{release}
Provides: protobuf%{?_isa} = %{version}-%{release}
-Conflicts: protobuf < 4~~
+Obsoletes: protobuf < 4~~
%description
Protocol Buffers are a way of encoding structured data in an efficient
@@ -148,7 +148,7 @@ Summary: Protocol Buffers compiler
Requires: %{name} = %{version}-%{release}
Provides: protobuf-compiler = %{version}-%{release}
Provides: protobuf-compiler%{?_isa} = %{version}-%{release}
-Conflicts: protobuf-compiler < 4~~
+Obsoletes: protobuf-compiler < 4~~
%description compiler
This package contains Protocol Buffers compiler for all programming
@@ -161,7 +161,7 @@ Requires: %{name}-compiler = %{version}-%{release}
Requires: zlib-devel
Provides: protobuf-devel = %{version}-%{release}
Provides: protobuf-devel%{?_isa} = %{version}-%{release}
-Conflicts: protobuf-devel < 4~~
+Obsoletes: protobuf-devel < 4~~
%description devel
This package contains Protocol Buffers compiler for all languages and
@@ -171,7 +171,7 @@ C++ headers and libraries
Summary: Protocol Buffers LITE_RUNTIME libraries
Provides: protobuf-lite = %{version}-%{release}
Provides: protobuf-lite%{?_isa} = %{version}-%{release}
-Conflicts: protobuf-lite < 4~~
+Obsoletes: protobuf-lite < 4~~
%description lite
Protocol Buffers built with optimize_for = LITE_RUNTIME.
@@ -186,7 +186,7 @@ Requires: %{name}-devel = %{version}-%{release}
Requires: %{name}-lite = %{version}-%{release}
Provides: protobuf-lite-devel = %{version}-%{release}
Provides: protobuf-lite-devel%{?_isa} = %{version}-%{release}
-Conflicts: protobuf-lite-devel < 4~~
+Obsoletes: protobuf-lite-devel < 4~~
%description lite-devel
This package contains development libraries built with
@@ -209,7 +209,7 @@ BuildArch: noarch
Conflicts: %{name}-compiler > %{version}
Conflicts: %{name}-compiler < %{version}
%py_provides python3-protobuf
-Conflicts: python3-protobuf < 4~~
+Obsoletes: python3-protobuf < 4~~
%description -n python3-protobuf3
This package contains Python libraries for Google Protocol Buffers
@@ -219,7 +219,7 @@ This package contains Python libraries for Google Protocol Buffers
Summary: Vim syntax highlighting for Google Protocol Buffers descriptions
BuildArch: noarch
Provides: protobuf-vim = %{version}-%{release}
-Conflicts: protobuf-vim < 4~~
+Obsoletes: protobuf-vim < 4~~
# We don’t really need vim or vim-enhanced to be already installed in order to
# install a plugin for it. We do need to depend on vim-filesystem, which
# provides the necessary directory structure.
@@ -233,7 +233,7 @@ descriptions in Vim editor
Summary: Emacs mode for Google Protocol Buffers descriptions
BuildArch: noarch
Provides: protobuf-emacs = %{version}-%{release}
-Conflicts: protobuf-emacs < 4~~
+Obsoletes: protobuf-emacs < 4~~
Requires: emacs-filesystem >= %{_emacs_version}
%description emacs
@@ -244,7 +244,7 @@ descriptions in the Emacs editor.
%package -n mingw32-protobuf3
Summary: MinGW Windows protobuf library
Provides: mingw32-protobuf = %{version}-%{release}
-Conflicts: mingw32-protobuf < 4~~
+Obsoletes: mingw32-protobuf < 4~~
%description -n mingw32-protobuf3
MinGW Windows protobuf library.
@@ -252,7 +252,7 @@ MinGW Windows protobuf library.
%package -n mingw32-protobuf3-tools
Summary: MinGW Windows protobuf library tools
Provides: mingw32-protobuf-tools = %{version}-%{release}
-Conflicts: mingw32-protobuf-tools < 4~~
+Obsoletes: mingw32-protobuf-tools < 4~~
%description -n mingw32-protobuf3-tools
MinGW Windows protobuf library tools.
@@ -260,7 +260,7 @@ MinGW Windows protobuf library tools.
%package -n mingw64-protobuf3
Summary: MinGW Windows protobuf library
Provides: mingw64-protobuf = %{version}-%{release}
-Conflicts: mingw64-protobuf < 4~~
+Obsoletes: mingw64-protobuf < 4~~
%description -n mingw64-protobuf3
MinGW Windows protobuf library.
@@ -268,7 +268,7 @@ MinGW Windows protobuf library.
%package -n mingw64-protobuf3-tools
Summary: MinGW Windows protobuf library tools
Provides: mingw64-protobuf-tools = %{version}-%{release}
-Conflicts: mingw64-protobuf-tools < 4~~
+Obsoletes: mingw64-protobuf-tools < 4~~
%description -n mingw64-protobuf3-tools
MinGW Windows protobuf library tools.
reply other threads:[~2026-11-10 6:42 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=179429292170.1.14456649732521018009.rpms-protobuf3-2686b7340f33@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