mirror of
https://github.com/void-linux/void-packages.git
synced 2025-07-29 17:02:56 +02:00
libcec: rebuild for Python 3.12
This commit is contained in:
parent
2203e874d3
commit
1a78ffae02
2 changed files with 30 additions and 1 deletions
29
srcpkgs/libcec/patches/return-right.patch
Normal file
29
srcpkgs/libcec/patches/return-right.patch
Normal file
|
@ -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();
|
|
@ -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"
|
||||
|
|
Loading…
Add table
Reference in a new issue