public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
* [rpms/python-axolotl] rawhide: Added protobuf-compiler BR and regenerated python protobuf files from
@ 2026-08-06 20:15 Filipe Rosset
  0 siblings, 0 replies; only message in thread
From: Filipe Rosset @ 2026-08-06 20:15 UTC (permalink / raw)
  To: git-commits

            A new commit has been pushed.

            Repo   : rpms/python-axolotl
            Branch : rawhide
            Commit : 9e4fb4fa1ca339e1c8c8163e38e99d5dcb135884
            Author : Filipe Rosset <rosset.filipe@gmail.com>
            Date   : 2026-08-02T00:33:10-03:00
            Stats  : +7/-0 in 1 file(s)
            URL    : https://src.fedoraproject.org/rpms/python-axolotl/c/9e4fb4fa1ca339e1c8c8163e38e99d5dcb135884?branch=rawhide

            Log:
            Added protobuf-compiler BR and regenerated python protobuf files from
proto sources during %prep to fix incompatible generated _pb2.py files

Resolves: rhbz#2504444

---
diff --git a/python-axolotl.spec b/python-axolotl.spec
index 7b3f81d..3782c22 100644
--- a/python-axolotl.spec
+++ b/python-axolotl.spec
@@ -14,6 +14,7 @@ Patch1:         python-axolotl-remove-nose.patch
 
 BuildArch:      noarch
 BuildRequires:  python3-devel
+BuildRequires:  protobuf-compiler
 
 %global _description %{expand:
 This is a ratcheting forward secrecy protocol
@@ -30,6 +31,12 @@ Summary:        %{summary}
 %prep
 %autosetup -p1
 
+# Regenerate python protobuf files with system protoc to avoid compatibility issues with newer protobuf versions
+cp axolotl/protobuf/LocalStorageProtocol.proto axolotl/protobuf/storageprotos.proto
+cp axolotl/protobuf/WhisperTextProtocol.proto axolotl/protobuf/whisperprotos.proto
+protoc --proto_path=axolotl/protobuf --python_out=axolotl/state storageprotos.proto
+protoc --proto_path=axolotl/protobuf --python_out=axolotl/protocol whisperprotos.proto
+
 %generate_buildrequires
 %pyproject_buildrequires -t
 

^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2026-08-06 20:15 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-08-06 20:15 [rpms/python-axolotl] rawhide: Added protobuf-compiler BR and regenerated python protobuf files from Filipe Rosset

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox