Date: Tue, 25 Jan 2022 17:25:51 GMT 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: 425d326baae5 - main - graphics/opencv: fix VSX detection Message-ID: <202201251725.20PHPpIV015257@gitrepo.freebsd.org>
next in thread | raw e-mail | index | archive | help
The branch main has been updated by pkubaj: URL: https://cgit.FreeBSD.org/ports/commit/?id=425d326baae5e13371f784481571914f4ccd1601 commit 425d326baae5e13371f784481571914f4ccd1601 Author: Piotr Kubaj <pkubaj@FreeBSD.org> AuthorDate: 2022-01-25 17:22:48 +0000 Commit: Piotr Kubaj <pkubaj@FreeBSD.org> CommitDate: 2022-01-25 17:22:48 +0000 graphics/opencv: fix VSX detection AT_HWCAP should be long. --- graphics/opencv/Makefile | 1 + graphics/opencv/files/patch-modules_core_src_system.cpp | 11 +++++++++++ 2 files changed, 12 insertions(+) diff --git a/graphics/opencv/Makefile b/graphics/opencv/Makefile index 51e55a2c1e86..da23130c99cb 100644 --- a/graphics/opencv/Makefile +++ b/graphics/opencv/Makefile @@ -1,5 +1,6 @@ PORTNAME= opencv DISTVERSION= 4.5.5 +PORTREVISION= 1 CATEGORIES= graphics MAINTAINER= tcberner@FreeBSD.org diff --git a/graphics/opencv/files/patch-modules_core_src_system.cpp b/graphics/opencv/files/patch-modules_core_src_system.cpp new file mode 100644 index 000000000000..b4f88573d9cb --- /dev/null +++ b/graphics/opencv/files/patch-modules_core_src_system.cpp @@ -0,0 +1,11 @@ +--- modules/core/src/system.cpp.orig 2022-01-25 17:17:25 UTC ++++ modules/core/src/system.cpp +@@ -630,7 +630,7 @@ struct HWFeatures + } + } + #elif (defined __ppc64__ || defined __PPC64__) && defined __FreeBSD__ +- unsigned int hwcap = 0; ++ unsigned long hwcap = 0; + elf_aux_info(AT_HWCAP, &hwcap, sizeof(hwcap)); + if (hwcap & PPC_FEATURE_HAS_VSX) { + elf_aux_info(AT_HWCAP2, &hwcap, sizeof(hwcap));
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202201251725.20PHPpIV015257>