public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
* [rpms/protobuf3] f45: Clear upgrade path to Fedora 45+ when python3-proto-plus is installed
@ 2026-11-10 6:43
0 siblings, 0 replies; only message in thread
From: @ 2026-11-10 6:43 UTC (permalink / raw)
To: git-commits
A new commit has been pushed.
Repo : rpms/protobuf3
Branch : f45
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=f45
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.
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2026-11-10 6:43 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-11-10 6:43 [rpms/protobuf3] f45: Clear upgrade path to Fedora 45+ when python3-proto-plus is installed
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox