From 1a78ffae02bf3c98b9af0b1e3d78a66bb51c6176 Mon Sep 17 00:00:00 2001 From: "Andrew J. Hesford" Date: Sat, 23 Sep 2023 21:02:23 -0400 Subject: [PATCH] libcec: rebuild for Python 3.12 --- srcpkgs/libcec/patches/return-right.patch | 29 +++++++++++++++++++++++ srcpkgs/libcec/template | 2 +- 2 files changed, 30 insertions(+), 1 deletion(-) create mode 100644 srcpkgs/libcec/patches/return-right.patch diff --git a/srcpkgs/libcec/patches/return-right.patch b/srcpkgs/libcec/patches/return-right.patch new file mode 100644 index 00000000000..8b5caba7851 --- /dev/null +++ b/srcpkgs/libcec/patches/return-right.patch @@ -0,0 +1,29 @@ +--- ./include/cecloader.h.orig 2023-09-30 07:58:57.250505723 -0400 ++++ ./include/cecloader.h 2023-09-30 08:00:08.028027063 -0400 +@@ -88,7 +88,7 @@ + if (!g_libCEC) + g_libCEC = LoadLibrary(strLib ? strLib : "cec.dll"); + if (!g_libCEC) +- return NULL; ++ return false; + + typedef bool (__cdecl*_LibCecBootloader)(void); + _LibCecBootloader LibCecBootloader; +@@ -172,7 +172,7 @@ + if (!g_libCEC) + { + std::cout << dlerror() << std::endl; +- return NULL; ++ return false; + } + } + +@@ -181,7 +181,7 @@ + if (!LibCecBootloader) + { + std::cout << "cannot find CECStartBootloader" << std::endl; +- return NULL; ++ return false; + } + + bool bReturn = LibCecBootloader(); diff --git a/srcpkgs/libcec/template b/srcpkgs/libcec/template index a2c27af0292..60f19a27b24 100644 --- a/srcpkgs/libcec/template +++ b/srcpkgs/libcec/template @@ -1,7 +1,7 @@ # Template file for 'libcec' pkgname=libcec version=6.0.2 -revision=3 +revision=4 build_style=cmake configure_args="Python_ADDITIONAL_VERSIONS=${py3_ver}" hostmakedepends="pkg-config libtool swig"