Merge ~xypron/ubuntu/+source/opencv:lp2130009 into ubuntu/+source/opencv:ubuntu/devel

Proposed by Heinrich Schuchardt
Status: Needs review
Proposed branch: ~xypron/ubuntu/+source/opencv:lp2130009
Merge into: ubuntu/+source/opencv:ubuntu/devel
Diff against target: 43 lines (+12/-5)
2 files modified
debian/changelog (+7/-0)
debian/rules (+5/-5)
Reviewer Review Type Date Requested Status
Andreas Hasenack Needs Information
Ubuntu Sponsors Pending
Review via email: mp+499611@code.launchpad.net
To post a comment you must log in.
Revision history for this message
Heinrich Schuchardt (xypron) wrote :

A successful build is available in ppa:xypron/opencv.

Revision history for this message
Andreas Hasenack (ahasenack) :
review: Needs Information

Unmerged commits

15d8324... by Heinrich Schuchardt

Update changelog

Signed-off-by: Heinrich Schuchardt <email address hidden>

93aa8c9... by Heinrich Schuchardt

d/rules: build for RVA20 on riscv64

Avoid FTBFS with GCC 15.2 in version 4.10 (LP: #2130009)

Signed-off-by: Heinrich Schuchardt <email address hidden>

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1diff --git a/debian/changelog b/debian/changelog
2index 5a6c119..c8983fb 100644
3--- a/debian/changelog
4+++ b/debian/changelog
5@@ -1,3 +1,10 @@
6+opencv (4.10.0+dfsg-7ubuntu4) resolute; urgency=medium
7+
8+ * Build for RVA20 on riscv64 to avoid FTBFS with GCC 15.2
9+ in version 4.10 (LP: #2130009)
10+
11+ -- Heinrich Schuchardt <heinrich.schuchardt@canonical.com> Fri, 30 Jan 2026 16:27:38 +0100
12+
13 opencv (4.10.0+dfsg-7ubuntu3) resolute; urgency=medium
14
15 * No-change rebuild for ffmpeg 8.
16diff --git a/debian/rules b/debian/rules
17index ed01c7b..e19eca0 100755
18--- a/debian/rules
19+++ b/debian/rules
20@@ -8,11 +8,6 @@ BUILDDIR = obj-$(DEB_HOST_MULTIARCH)
21
22 CMAKE_ARCH_FLAGS :=
23
24-ifneq (,$(filter $(DEB_HOST_ARCH), riscv64))
25- export CC=gcc-14
26- export CXX=g++-14
27-endif
28-
29 # Comply with Debian architectures baseline.
30 # See cmake/OpenCVCompilerOptimizations.cmake for a list of known features.
31 # Reference: https://github.com/opencv/opencv/wiki/CPU-optimizations-build-options
32@@ -30,6 +25,11 @@ else ifeq ($(DEB_HOST_ARCH_CPU),ppc64el)
33 # VSX for Power8, VSX3 for Power9
34 CMAKE_ARCH_FLAGS += -DCPU_BASELINE="VSX"
35 CMAKE_ARCH_FLAGS += -DCPU_DISPATCH="VSX3"
36+else ifeq ($(DEB_HOST_ARCH_CPU),riscv64)
37+ # Disable vector support in version 4.10. The FTBFS issue is resolved in 4.11+.
38+ # (LP #2130009)
39+ CMAKE_ARCH_FLAGS += -DCMAKE_C_FLAGS="-march=rv64gc"
40+ CMAKE_ARCH_FLAGS += -DCMAKE_CXX_FLAGS="-march=rv64gc"
41 endif
42
43 # TBB support

Subscribers

People subscribed via source and target branches