diff options
| -rw-r--r-- | meta-oe/recipes-extended/libcec/libcec/0001-CheckPlatformSupport.cmake-Do-not-hardcode-lib-path.patch | 42 | ||||
| -rw-r--r-- | meta-oe/recipes-extended/libcec/libcec/0001-Remove-buggy-test-confusing-host-and-target.patch | 33 | ||||
| -rw-r--r-- | meta-oe/recipes-extended/libcec/libcec/0001-cecloader-Match-return-type-of-function-LibCecBootlo.patch | 41 | ||||
| -rw-r--r-- | meta-oe/recipes-extended/libcec/libcec_7.0.0.bb (renamed from meta-oe/recipes-extended/libcec/libcec_6.0.2.bb) | 7 |
4 files changed, 2 insertions, 121 deletions
diff --git a/meta-oe/recipes-extended/libcec/libcec/0001-CheckPlatformSupport.cmake-Do-not-hardcode-lib-path.patch b/meta-oe/recipes-extended/libcec/libcec/0001-CheckPlatformSupport.cmake-Do-not-hardcode-lib-path.patch deleted file mode 100644 index 3ecbfce250..0000000000 --- a/meta-oe/recipes-extended/libcec/libcec/0001-CheckPlatformSupport.cmake-Do-not-hardcode-lib-path.patch +++ /dev/null | |||
| @@ -1,42 +0,0 @@ | |||
| 1 | From 95d4df3b713925e2c4894a2e4d50b06df861d9ef Mon Sep 17 00:00:00 2001 | ||
| 2 | From: Khem Raj <raj.khem@gmail.com> | ||
| 3 | Date: Wed, 18 Dec 2019 23:37:40 -0800 | ||
| 4 | Subject: [PATCH] CheckPlatformSupport.cmake: Do not hardcode lib path | ||
| 5 | |||
| 6 | Using CMAKE_INSTALL_LIBDIR ensures that we can build for multilib env | ||
| 7 | |||
| 8 | Upstream-Status: Pending | ||
| 9 | Signed-off-by: Khem Raj <raj.khem@gmail.com> | ||
| 10 | --- | ||
| 11 | src/libcec/cmake/CheckPlatformSupport.cmake | 10 +++++----- | ||
| 12 | 1 file changed, 5 insertions(+), 5 deletions(-) | ||
| 13 | |||
| 14 | diff --git a/src/libcec/cmake/CheckPlatformSupport.cmake b/src/libcec/cmake/CheckPlatformSupport.cmake | ||
| 15 | index 2d7102f..55e78f8 100644 | ||
| 16 | --- a/src/libcec/cmake/CheckPlatformSupport.cmake | ||
| 17 | +++ b/src/libcec/cmake/CheckPlatformSupport.cmake | ||
| 18 | @@ -224,16 +224,16 @@ else() | ||
| 19 | |||
| 20 | if (${PYTHON_MAJOR_VERSION} EQUAL 2) | ||
| 21 | install(TARGETS ${SWIG_MODULE_cec_REAL_NAME} | ||
| 22 | - DESTINATION lib/python${PYTHON_VERSION}/${PYTHON_PKG_DIR}/${PYTHON_LIB_INSTALL_PATH}/cec) | ||
| 23 | + DESTINATION ${CMAKE_INSTALL_LIBDIR}/python${PYTHON_VERSION}/${PYTHON_PKG_DIR}/${PYTHON_LIB_INSTALL_PATH}/cec) | ||
| 24 | install(FILES ${CMAKE_BINARY_DIR}/src/libcec/cec.py | ||
| 25 | - DESTINATION lib/python${PYTHON_VERSION}/${PYTHON_PKG_DIR}) | ||
| 26 | + DESTINATION l${CMAKE_INSTALL_LIBDIR}/python${PYTHON_VERSION}/${PYTHON_PKG_DIR}) | ||
| 27 | install(FILES ${CMAKE_SOURCE_DIR}/src/libcec/cmake/__init__.py | ||
| 28 | - DESTINATION lib/python${PYTHON_VERSION}/${PYTHON_PKG_DIR}/cec) | ||
| 29 | + DESTINATION ${CMAKE_INSTALL_LIBDIR}/python${PYTHON_VERSION}/${PYTHON_PKG_DIR}/cec) | ||
| 30 | else() | ||
| 31 | install(TARGETS ${SWIG_MODULE_cec_REAL_NAME} | ||
| 32 | - DESTINATION lib/python${PYTHON_VERSION}/${PYTHON_PKG_DIR}/${PYTHON_LIB_INSTALL_PATH}) | ||
| 33 | + DESTINATION ${CMAKE_INSTALL_LIBDIR}/python${PYTHON_VERSION}/${PYTHON_PKG_DIR}/${PYTHON_LIB_INSTALL_PATH}) | ||
| 34 | install(FILES ${CMAKE_BINARY_DIR}/src/libcec/cec.py | ||
| 35 | - DESTINATION lib/python${PYTHON_VERSION}/${PYTHON_PKG_DIR}) | ||
| 36 | + DESTINATION ${CMAKE_INSTALL_LIBDIR}/python${PYTHON_VERSION}/${PYTHON_PKG_DIR}) | ||
| 37 | endif() | ||
| 38 | endif() | ||
| 39 | endif() | ||
| 40 | -- | ||
| 41 | 2.24.1 | ||
| 42 | |||
diff --git a/meta-oe/recipes-extended/libcec/libcec/0001-Remove-buggy-test-confusing-host-and-target.patch b/meta-oe/recipes-extended/libcec/libcec/0001-Remove-buggy-test-confusing-host-and-target.patch deleted file mode 100644 index 07277f7064..0000000000 --- a/meta-oe/recipes-extended/libcec/libcec/0001-Remove-buggy-test-confusing-host-and-target.patch +++ /dev/null | |||
| @@ -1,33 +0,0 @@ | |||
| 1 | From 8ce50bf569ec2d931735180079bbe507730626c8 Mon Sep 17 00:00:00 2001 | ||
| 2 | From: Yann Dirson <yann@blade-group.com> | ||
| 3 | Date: Mon, 7 Sep 2020 18:17:21 +0200 | ||
| 4 | Subject: [PATCH] Remove buggy test confusing host and target | ||
| 5 | |||
| 6 | --- | ||
| 7 | Upstream-Status: Pending | ||
| 8 | |||
| 9 | src/libcec/cmake/CheckPlatformSupport.cmake | 8 -------- | ||
| 10 | 1 file changed, 8 deletions(-) | ||
| 11 | |||
| 12 | diff --git a/src/libcec/cmake/CheckPlatformSupport.cmake b/src/libcec/cmake/CheckPlatformSupport.cmake | ||
| 13 | index 1d99bd8..31dac4f 100644 | ||
| 14 | --- a/src/libcec/cmake/CheckPlatformSupport.cmake | ||
| 15 | +++ b/src/libcec/cmake/CheckPlatformSupport.cmake | ||
| 16 | @@ -266,14 +266,6 @@ else() | ||
| 17 | DESTINATION python/cec) | ||
| 18 | endif() | ||
| 19 | else() | ||
| 20 | - if(EXISTS "/etc/os-release") | ||
| 21 | - file(READ "/etc/os-release" OS_RELEASE) | ||
| 22 | - string(REGEX MATCH "ID(_LIKE)?=debian" IS_DEBIAN ${OS_RELEASE}) | ||
| 23 | - if (IS_DEBIAN) | ||
| 24 | - SET(PYTHON_PKG_DIR "dist-packages") | ||
| 25 | - endif() | ||
| 26 | - endif() | ||
| 27 | - | ||
| 28 | if (NOT PYTHON_PKG_DIR) | ||
| 29 | SET(PYTHON_PKG_DIR "site-packages") | ||
| 30 | endif() | ||
| 31 | -- | ||
| 32 | 2.28.0 | ||
| 33 | |||
diff --git a/meta-oe/recipes-extended/libcec/libcec/0001-cecloader-Match-return-type-of-function-LibCecBootlo.patch b/meta-oe/recipes-extended/libcec/libcec/0001-cecloader-Match-return-type-of-function-LibCecBootlo.patch deleted file mode 100644 index ab1ab5b8eb..0000000000 --- a/meta-oe/recipes-extended/libcec/libcec/0001-cecloader-Match-return-type-of-function-LibCecBootlo.patch +++ /dev/null | |||
| @@ -1,41 +0,0 @@ | |||
| 1 | From 2241edc8b70c2a54d109ac9c0e821889ac138d40 Mon Sep 17 00:00:00 2001 | ||
| 2 | From: Khem Raj <raj.khem@gmail.com> | ||
| 3 | Date: Thu, 27 Jan 2022 22:49:52 -0800 | ||
| 4 | Subject: [PATCH] cecloader: Match return type of function LibCecBootloader | ||
| 5 | |||
| 6 | Fixes | ||
| 7 | include/cecloader.h:175:14: error: cannot initialize return object of type 'bool' with an rvalue of type 'nullptr_t' | ||
| 8 | return NULL; | ||
| 9 | ^~~~ | ||
| 10 | |||
| 11 | Upstream-Status: Pending | ||
| 12 | Signed-off-by: Khem Raj <raj.khem@gmail.com> | ||
| 13 | --- | ||
| 14 | include/cecloader.h | 4 ++-- | ||
| 15 | 1 file changed, 2 insertions(+), 2 deletions(-) | ||
| 16 | |||
| 17 | diff --git a/include/cecloader.h b/include/cecloader.h | ||
| 18 | index be76468f..550f598e 100644 | ||
| 19 | --- a/include/cecloader.h | ||
| 20 | +++ b/include/cecloader.h | ||
| 21 | @@ -172,7 +172,7 @@ bool LibCecBootloader(const char *strLib = NULL) | ||
| 22 | if (!g_libCEC) | ||
| 23 | { | ||
| 24 | std::cout << dlerror() << std::endl; | ||
| 25 | - return NULL; | ||
| 26 | + return false; | ||
| 27 | } | ||
| 28 | } | ||
| 29 | |||
| 30 | @@ -181,7 +181,7 @@ bool LibCecBootloader(const char *strLib = NULL) | ||
| 31 | if (!LibCecBootloader) | ||
| 32 | { | ||
| 33 | std::cout << "cannot find CECStartBootloader" << std::endl; | ||
| 34 | - return NULL; | ||
| 35 | + return false; | ||
| 36 | } | ||
| 37 | |||
| 38 | bool bReturn = LibCecBootloader(); | ||
| 39 | -- | ||
| 40 | 2.35.0 | ||
| 41 | |||
diff --git a/meta-oe/recipes-extended/libcec/libcec_6.0.2.bb b/meta-oe/recipes-extended/libcec/libcec_7.0.0.bb index 22155e534c..532179a9bb 100644 --- a/meta-oe/recipes-extended/libcec/libcec_6.0.2.bb +++ b/meta-oe/recipes-extended/libcec/libcec_7.0.0.bb | |||
| @@ -2,19 +2,16 @@ SUMMARY = "USB CEC Adaptor communication Library" | |||
| 2 | HOMEPAGE = "http://libcec.pulse-eight.com/" | 2 | HOMEPAGE = "http://libcec.pulse-eight.com/" |
| 3 | 3 | ||
| 4 | LICENSE = "GPL-2.0-or-later" | 4 | LICENSE = "GPL-2.0-or-later" |
| 5 | LIC_FILES_CHKSUM = "file://COPYING;md5=b3a719e97f49e4841e90573f9b1a98ac" | 5 | LIC_FILES_CHKSUM = "file://LICENSE.md;md5=b3a719e97f49e4841e90573f9b1a98ac" |
| 6 | 6 | ||
| 7 | DEPENDS = "p8platform udev ncurses swig-native python3" | 7 | DEPENDS = "p8platform udev ncurses swig-native python3" |
| 8 | 8 | ||
| 9 | DEPENDS += "${@bb.utils.contains('DISTRO_FEATURES', 'x11', 'libx11 libxrandr', '', d)}" | 9 | DEPENDS += "${@bb.utils.contains('DISTRO_FEATURES', 'x11', 'libx11 libxrandr', '', d)}" |
| 10 | DEPENDS:append:rpi = "${@bb.utils.contains('MACHINE_FEATURES', 'vc4graphics', '', ' userland', d)}" | 10 | DEPENDS:append:rpi = "${@bb.utils.contains('MACHINE_FEATURES', 'vc4graphics', '', ' userland', d)}" |
| 11 | 11 | ||
| 12 | SRCREV = "29d82c80bcc62be2878a9ac080de7eb286c4beb9" | 12 | SRCREV = "ceeec8bfd2242792b6de59ce8fb854437208dc11" |
| 13 | SRC_URI = "git://github.com/Pulse-Eight/libcec.git;branch=release;protocol=https \ | 13 | SRC_URI = "git://github.com/Pulse-Eight/libcec.git;branch=release;protocol=https \ |
| 14 | file://0001-CheckPlatformSupport.cmake-Do-not-hardcode-lib-path.patch \ | ||
| 15 | file://0001-Enhance-reproducibility.patch \ | 14 | file://0001-Enhance-reproducibility.patch \ |
| 16 | file://0001-Remove-buggy-test-confusing-host-and-target.patch \ | ||
| 17 | file://0001-cecloader-Match-return-type-of-function-LibCecBootlo.patch \ | ||
| 18 | " | 15 | " |
| 19 | 16 | ||
| 20 | S = "${WORKDIR}/git" | 17 | S = "${WORKDIR}/git" |
