git: 425d326baae5 - main - graphics/opencv: fix VSX detection
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Tue, 25 Jan 2022 17:25:51 UTC
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));