public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
* [rpms/opencv] opencv5: Disable LTO on ppc64le, add undefine __cmake_in_source_build to allow build on Fedora < 33
@ 2026-08-28 13:31 
  0 siblings, 0 replies; only message in thread
From:  @ 2026-08-28 13:31 UTC (permalink / raw)
  To: git-commits

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

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

only message in thread, other threads:[~2026-08-28 13:31 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-08-28 13:31 [rpms/opencv] opencv5: Disable LTO on ppc64le, add undefine __cmake_in_source_build to allow build on Fedora < 33 

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