public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
* [rpms/onnx] test-1.21.0: Fix build with protobuf-devel
@ 2026-06-08 15:18 Alejandro Alvarez Ayllon
  0 siblings, 0 replies; only message in thread
From: Alejandro Alvarez Ayllon @ 2026-06-08 15:18 UTC (permalink / raw)
  To: git-commits

A new commit has been pushed.

Repo   : rpms/onnx
Branch : test-1.21.0
Commit : 1701db22d312b6fefd9437cf07e3967813f8ec9f
Author : Alejandro Alvarez Ayllon <a.alvarezayllon@gmail.com>
Date   : 2024-01-24T11:12:48+01:00
Stats  : +1/-5 in 1 file(s)
URL    : https://src.fedoraproject.org/rpms/onnx/c/1701db22d312b6fefd9437cf07e3967813f8ec9f?branch=test-1.21.0

Log:
Fix build with protobuf-devel

---
diff --git a/onnx.spec b/onnx.spec
index ac007c9..09a6d8a 100644
--- a/onnx.spec
+++ b/onnx.spec
@@ -8,8 +8,6 @@ License:    Apache-2.0
 
 URL:        https://github.com/onnx/onnx
 Source0:    https://github.com/onnx/onnx/archive/v%{version}/%{name}-%{version}.tar.gz
-# Need to patch the generated headers
-Source1:    add-export-protobuf-headers.patch
 # Build shared libraries and fix install location 
 Patch0:     onnx-install.patch
 # Add what is missing to run tox, disable tests that require network
@@ -67,7 +65,7 @@ Requires:   %{name}-libs = %{version}-%{release}
 
 %build
 %cmake \
-    -DONNX_USE_LITE_PROTO=ON \
+    -DONNX_USE_LITE_PROTO=OFF \
     -DONNX_USE_PROTOBUF_SHARED_LIBS=ON \
     -DBUILD_ONNX_PYTHON=ON \
     -DPYTHON_EXECUTABLE=%{python3} \
@@ -76,8 +74,6 @@ Requires:   %{name}-libs = %{version}-%{release}
     -DCMAKE_SKIP_RPATH:BOOL=ON
 # Generate protobuf header and source files
 %cmake_build -- gen_onnx_proto
-# Add missing ONNX_API
-(cd "%__cmake_builddir"; patch -p1 < "%{_sourcedir}/add-export-protobuf-headers.patch")
 # Build 
 %cmake_build
 # Build python libs

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

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

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-06-08 15:18 [rpms/onnx] test-1.21.0: Fix build with protobuf-devel Alejandro Alvarez Ayllon

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