public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
From: Alejandro Alvarez Ayllon <a.alvarezayllon@gmail.com>
To: git-commits@fedoraproject.org
Subject: [rpms/onnx] test-1.21.0: Fix build with protobuf-devel
Date: Mon, 08 Jun 2026 15:18:19 GMT [thread overview]
Message-ID: <178093189959.1.10403244496007068627.rpms-onnx-1701db22d312@fedoraproject.org> (raw)
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
reply other threads:[~2026-06-08 15:18 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=178093189959.1.10403244496007068627.rpms-onnx-1701db22d312@fedoraproject.org \
--to=a.alvarezayllon@gmail.com \
--cc=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