public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
To: git-commits@fedoraproject.org
Subject: [rpms/opencv] opencv5: Disable LTO on ppc64le, add undefine __cmake_in_source_build to allow build on Fedora < 33
Date: Fri, 28 Aug 2026 13:31:46 GMT	[thread overview]
Message-ID: <178792390670.1.12327795817949700563.rpms-opencv-d8ec2071a838@fedoraproject.org> (raw)

A new commit has been pushed.

Repo   : rpms/opencv
Branch : opencv5
Commit : d8ec2071a838c32af2c702d8d2c194aaad3499f7
Author : Sérgio M. Basto <sergio@serjux.com>
Date   : 2020-08-02T01:30:04+01:00
Stats  : +8/-0 in 1 file(s)
URL    : https://src.fedoraproject.org/rpms/opencv/c/d8ec2071a838c32af2c702d8d2c194aaad3499f7?branch=opencv5

Log:
Disable LTO on ppc64le, add undefine __cmake_in_source_build to allow build on Fedora < 33

---
diff --git a/opencv.spec b/opencv.spec
index 3e1f989..e2090f5 100644
--- a/opencv.spec
+++ b/opencv.spec
@@ -1,5 +1,6 @@
 #global indice   a
 %undefine _strict_symbol_defs_build
+%undefine __cmake_in_source_build
 %bcond_without  tests
 %bcond_with     ffmpeg
 %bcond_without  gstreamer
@@ -43,6 +44,10 @@
 %bcond_without  java
 %bcond_without  vulkan
 
+%ifarch ppc64le
+%define _lto_cflags %{nil}
+%endif
+
 %global srcname opencv
 %global abiver  4.3
 
@@ -478,6 +483,9 @@ ln -s -r %{buildroot}%{_jnidir}/opencv-%{javaver}.jar %{buildroot}%{_jnidir}/ope
 %changelog
 * Fri Jul 24 2020 Nicolas Chauvet <kwizart@gmail.com> - 4.3.0-8
 - Rebuilt
+- Fix cmake build
+- Disable LTO on ppc64le
+- Add undefine __cmake_in_source_build to allow build on Fedora < 33
 
 * Sat Jul 11 2020 Jiri Vanek <jvanek@redhat.com> - 4.3.0-7
 - Rebuilt for JDK-11, see https://fedoraproject.org/wiki/Changes/Java11

                 reply	other threads:[~2026-08-28 13:31 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=178792390670.1.12327795817949700563.rpms-opencv-d8ec2071a838@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