Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 23 Feb 2026 12:18:36 +0000
From:      Piotr Kubaj <pkubaj@FreeBSD.org>
To:        ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org
Subject:   git: b86a75f8fc40 - main - graphics/opencv: fix error in header
Message-ID:  <699c459c.3f64e.2016d785@gitrepo.freebsd.org>

index | next in thread | raw e-mail

The branch main has been updated by pkubaj:

URL: https://cgit.FreeBSD.org/ports/commit/?id=b86a75f8fc405a0f0af6a48e9cc7ea71f08755fc

commit b86a75f8fc405a0f0af6a48e9cc7ea71f08755fc
Author:     Piotr Kubaj <pkubaj@FreeBSD.org>
AuthorDate: 2026-02-23 12:00:35 +0000
Commit:     Piotr Kubaj <pkubaj@FreeBSD.org>
CommitDate: 2026-02-23 12:18:28 +0000

    graphics/opencv: fix error in header
    
    Detected while building graphics/zeno:
    /usr/local/include/opencv4/opencv2/core/vsx_utils.hpp:261:29: error: missing ')' in expression
      261 | #if defined(__POWER10__) || (defined(__powerpc64__) && defined(__ARCH_PWR10__)
---
 graphics/opencv/Makefile                              |  1 +
 ...h-modules_core_include_opencv2_core_vsx__utils.hpp | 19 ++++++++++++++-----
 2 files changed, 15 insertions(+), 5 deletions(-)

diff --git a/graphics/opencv/Makefile b/graphics/opencv/Makefile
index 3ef5a5c3f157..54ce97b08924 100644
--- a/graphics/opencv/Makefile
+++ b/graphics/opencv/Makefile
@@ -1,5 +1,6 @@
 PORTNAME=	opencv
 DISTVERSION=	4.13.0
+PORTREVISION=	1
 CATEGORIES=	graphics
 
 MAINTAINER=	desktop@FreeBSD.org
diff --git a/graphics/opencv/files/patch-modules_core_include_opencv2_core_vsx__utils.hpp b/graphics/opencv/files/patch-modules_core_include_opencv2_core_vsx__utils.hpp
index 17380f6835b8..102f45f9fbea 100644
--- a/graphics/opencv/files/patch-modules_core_include_opencv2_core_vsx__utils.hpp
+++ b/graphics/opencv/files/patch-modules_core_include_opencv2_core_vsx__utils.hpp
@@ -1,13 +1,22 @@
---- modules/core/include/opencv2/core/vsx_utils.hpp.orig	2025-07-02 07:54:13 UTC
+--- modules/core/include/opencv2/core/vsx_utils.hpp.orig	2025-12-30 07:52:05 UTC
 +++ modules/core/include/opencv2/core/vsx_utils.hpp
-@@ -399,6 +399,10 @@ VSX_REDIRECT_1RG(vec_udword2, vec_udword2, vec_popcntu
+@@ -258,7 +258,7 @@ VSX_IMPL_1VRG(vec_udword2, vec_dword2,  vpopcntd, vec_
+ 
+ // converts between single and double-precision
+ // vec_floate and vec_doubleo are available since Power10 and z14
+-#if defined(__POWER10__) || (defined(__powerpc64__) && defined(__ARCH_PWR10__)
++#if defined(__POWER10__) || (defined(__powerpc64__) && defined(__ARCH_PWR10__))
+ //  Use VSX double<->float conversion instructions (if supported by the architecture)
+     VSX_REDIRECT_1RG(vec_float4,  vec_double2, vec_cvfo, vec_floate)
+     VSX_REDIRECT_1RG(vec_double2, vec_float4,  vec_cvfo, vec_doubleo)
+@@ -417,6 +417,10 @@ VSX_REDIRECT_1RG(vec_udword2, vec_udword2, vec_popcntu
+ VSX_REDIRECT_1RG(vec_ushort8, vec_ushort8, vec_popcntu, vec_popcnt)
  VSX_REDIRECT_1RG(vec_uint4,   vec_uint4,   vec_popcntu, vec_popcnt)
  VSX_REDIRECT_1RG(vec_udword2, vec_udword2, vec_popcntu, vec_popcnt)
- 
++
 +// converts between single and double precision
 +VSX_REDIRECT_1RG(vec_float4,  vec_double2, vec_cvfo, __builtin_vsx_xvcvdpsp)
 +VSX_REDIRECT_1RG(vec_double2, vec_float4,  vec_cvfo, __builtin_vsx_xvcvspdp)
-+
+ 
  // converts word and doubleword to double-precision
  #ifdef vec_ctd
- #   undef vec_ctd


home | help

Want to link to this message? Use this
URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?699c459c.3f64e.2016d785>