python3-pocketsphinx: Upgrade to 5.0.3
PATCH 1/1 python3-pocketsphinx: Upgrade to 5.0.3
License-Update: New licenses added for WebRTC json parser, and json escaping
[1] https://github.com/cmusphinx/pocketsphinx/commit/4cb5845898c7d9e53688aba370ea3c00c0ef7db2
[2] https://github.com/cmusphinx/pocketsphinx/commit/6b9a923832a1fd77c5304eba18e63d8b0e2ef0b8
--- ...1-cython-Use-cythyon3-in-cmake-check.patch | 29 +++++++++++++++++++ .../python/python3-pocketsphinx_0.1.15.bb | 14 --------- .../python/python3-pocketsphinx_5.0.3.bb | 20 +++++++++++++ 3 files changed, 49 insertions(+), 14 deletions(-) create mode 100644 meta-python/recipes-devtools/python/python3-pocketsphinx/0001-cython-Use-cythyon3-in-cmake-check.patch delete mode 100644 meta-python/recipes-devtools/python/python3-pocketsphinx_0.1.15.bb create mode 100644 meta-python/recipes-devtools/python/python3-pocketsphinx_5.0.3.bb
meta-python/recipes-devtools/python/python3-pocketsphinx/0001-cython-Use-cythyon3-in-cmake-check.patch new file +29 -0
@@ -0,0 +1,29 @@ +From 5e6eb640f54a0d716d62ab4db8d96d3b6f3aa7bc Mon Sep 17 00:00:00 2001 +From: Khem Raj <[email protected]> +Date: Mon, 19 Feb 2024 22:11:41 -0800 +Subject: [PATCH] cython: Use cythyon3 in cmake check + +OE does not install cython anymore, it only has cython3 +therefore point the build system to find cython3 + +Upstream-Status: Inappropriate [ OE-Specific ] + +Signed-off-by: Khem Raj <[email protected]> +--- + cython/CMakeLists.txt | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/cython/CMakeLists.txt b/cython/CMakeLists.txt +index daa4f76..93dd030 100644 +--- a/cython/CMakeLists.txt ++++ b/cython/CMakeLists.txt +@@ -1,5 +1,5 @@ + find_package(Python COMPONENTS Interpreter Development.Module REQUIRED) +-find_program(CYTHON "cython") ++find_program(CYTHON "cython3") + + if(NOT USE_INSTALLED_POCKETSPHINX) + set_property(TARGET pocketsphinx PROPERTY POSITION_INDEPENDENT_CODE on) +-- +2.43.2 +
meta-python/recipes-devtools/python/python3-pocketsphinx_0.1.15.bb deleted +0 -14
@@ -1,14 +0,0 @@ -SUMMARY = "This package provides a python interface to CMU Sphinxbase and Pocketsphinx libraries created with SWIG and Setuptools." -DESCRIPTION = "Python interface to CMU Sphinxbase and Pocketsphinx libraries" -HOMEPAGE = "https://github.com/bambocher/pocketsphinx-python" -SECTION = "devel/python" -LICENSE = "BSD-2-Clause" -LIC_FILES_CHKSUM = "file://LICENSE;md5=826ebda787eb48e78aec2624f9faba72" - -SRC_URI[md5sum] = "94d008eebea16acb60a9ffe614575dee" -SRC_URI[sha256sum] = "34d290745c7dbe6fa2cac9815b5c19d10f393e528ecd70e779c21ebc448f9b63" - -inherit pypi setuptools3 features_check - -DEPENDS += "swig-native pulseaudio" -REQUIRED_DISTRO_FEATURES += "pulseaudio"
meta-python/recipes-devtools/python/python3-pocketsphinx_5.0.3.bb new file +20 -0
@@ -0,0 +1,20 @@ +SUMMARY = "This package provides a python interface to CMU Sphinxbase and Pocketsphinx libraries created with SWIG and Setuptools." +DESCRIPTION = "Python interface to CMU Sphinxbase and Pocketsphinx libraries" +HOMEPAGE = "https://github.com/bambocher/pocketsphinx-python" +SECTION = "devel/python" +LICENSE = "BSD-2-Clause" +LIC_FILES_CHKSUM = "file://LICENSE;md5=c4d720cdc9c6953091f65e8b01524bb4" + +SRC_URI += "file://0001-cython-Use-cythyon3-in-cmake-check.patch" +SRC_URI[sha256sum] = "27f4de0ca2d2bce391ce87eaab84fe6f0bc059b306fd1702d5fe6549b66e1586" + +inherit cmake pkgconfig pypi python3native + +DEPENDS += "swig-native python3-cython-native python3-scikit-build-native gstreamer1.0 gstreamer1.0-plugins-base" + +EXTRA_OECMAKE += "-DBUILD_GSTREAMER=ON" + +PACKAGES += "${PN}-models ${MLPREFIX}gstreamer1.0-pocketsphinx" + +FILES:${MLPREFIX}gstreamer1.0-pocketsphinx = "${libdir}/gstreamer-1.0/" +FILES:${PN}-models = "${datadir}/pocketsphinx/model"
Signature · 1 line
2.43.2
Hi Khem
Quoted 102 lines · Khem Raj
License-Update: New licenses added for WebRTC json parser, and json escaping
[1]
https://github.com/cmusphinx/pocketsphinx/commit/4cb5845898c7d9e53688aba370ea3c00c0ef7db2
[2]
https://github.com/cmusphinx/pocketsphinx/commit/6b9a923832a1fd77c5304eba18e63d8b0e2ef0b8Signed-off-by Khem Raj <[email protected]>---
...1-cython-Use-cythyon3-in-cmake-check.patch | 29
+++++++++++++++++++
.../python/python3-pocketsphinx_0.1.15.bb | 14 --------- .../python/python3-pocketsphinx_5.0.3.bb | 20 +++++++++++++3 files changed, 49 insertions(+), 14 deletions(-)create mode 100644 meta-python/recipes-devtools/python/python3-
pocketsphinx/0001-cython-Use-cythyon3-in-cmake-check.patchdelete mode 100644 meta-python/recipes-devtools/python/python3- pocketsphinx_0.1.15.bb
create mode 100644 meta-python/recipes-devtools/python/python3- pocketsphinx_5.0.3.bb(quoted diff) +0
-0
pocketsphinx/0001-cython-Use-cythyon3-in-cmake-check.patchb/meta- python/recipes-devtools/python/python3-pocketsphinx/0001-cython-Use- cythyon3-in-cmake-check.patch
new file mode 100644
index 0000000000..40b2544d55meta-python/recipes-devtools/python/python3-pocketsphinx/0001- new file +0
-0cython-Use-cythyon3-in-cmake-check.patch
meta-python/recipes-devtools/python/python3-pocketsphinx/0001- new file +1
-0@@ -0,0 +1,29 @@ +From 5e6eb640f54a0d716d62ab4db8d96d3b6f3aa7bc Mon Sep 17 00:00:002001
meta-python/recipes-devtools/python/python3-pocketsphinx/0001- new file +20
-0+From: Khem Raj <[email protected]> +Date: Mon, 19 Feb 2024 22:11:41 -0800 +Subject: [PATCH] cython: Use cythyon3 in cmake check + +OE does not install cython anymore, it only has cython3 +therefore point the build system to find cython3 + +Upstream-Status: Inappropriate [ OE-Specific ] + +Signed-off-by: Khem Raj <[email protected]> +--- + cython/CMakeLists.txt | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/cython/CMakeLists.txt b/cython/CMakeLists.txt +index daa4f76..93dd030 100644 +--- a/cython/CMakeLists.txt ++++ b/cython/CMakeLists.txt +@@ -1,5 +1,5 @@ + find_package(Python COMPONENTS Interpreter Development.ModuleREQUIRED)
+-find_program(CYTHON "cython")
++find_program(CYTHON "cython3")
+
+if(NOT USE_INSTALLED_POCKETSPHINX)
+ set_property(TARGET pocketsphinx PROPERTYPOSITION_INDEPENDENT_CODEon)
+--
+2.43.2meta-python/recipes-devtools/python/python3-pocketsphinx/0001- new file +1
-0+(quoted diff) +0
-0pocketsphinx_0.1.15.bb b/meta-python/recipes-devtools/python/python3- pocketsphinx_0.1.15.bb
deleted file mode 100644
index f7ffd9d268..0000000000
--- a/meta-python/recipes-devtools/python/python3- pocketsphinx_0.1.15.bb
+++/dev/null(quoted diff) +0
-1@@ -1,14 +0,0 @@ -SUMMARY = "This package provides a python interface to CMUSphinxbase and Pocketsphinx libraries created with SWIG and Setuptools."
-DESCRIPTION = "Python interface to CMU Sphinxbase and Pocketsphinx libraries"meta-python/recipes-devtools/python/python3-pocketsphinx_0.1.15.bb deleted +0
-4-HOMEPAGE = "https://github.com/bambocher/pocketsphinx-python" -SECTION = "devel/python" -LICENSE = "BSD-2-Clause" -LIC_FILES_CHKSUM ="file://LICENSE;md5=826ebda787eb48e78aec2624f9faba72"
meta-python/recipes-devtools/python/python3-pocketsphinx_0.1.15.bb deleted +0
-3- -SRC_URI[md5sum] = "94d008eebea16acb60a9ffe614575dee" -SRC_URI[sha256sum] ="
34d290745c7dbe6fa2cac9815b5c19d10f393e528ecd70e779c21ebc448f9b63"meta-python/recipes-devtools/python/python3-pocketsphinx_0.1.15.bb deleted +0
-5- -inherit pypi setuptools3 features_check - -DEPENDS += "swig-native pulseaudio" -REQUIRED_DISTRO_FEATURES += "pulseaudio"(quoted diff) +0
-0pocketsphinx_5.0.3.bb b/meta-python/recipes-devtools/python/python3- pocketsphinx_5.0.3.bb
new file mode 100644
index 0000000000..fad8f5ba42meta-python/recipes-devtools/python/python3- new file +0
-0pocketsphinx_5.0.3.bb
meta-python/recipes-devtools/python/python3- new file +1
-0@@ -0,0 +1,20 @@ +SUMMARY = "This package provides a python interface to CMU
Quoted 5 lines
Sphinxbase and Pocketsphinx libraries created with SWIG and Setuptools."
+DESCRIPTION = "Python interface to CMU Sphinxbase and Pocketsphinx libraries"
+HOMEPAGE = "https://github.com/bambocher/pocketsphinx-python"
Thank you for helping with this. I was working on this upgrade as well but yours seems better except I think this HOMEPAGE and DESCRIPTION should also change. Perhaps:
SUMMARY = "Python interface to Pocketsphinx libraries." DESCRIPTION = "Pythonsphinx is an Open source large vocabulary, speaker-independent continuous speech recognition engines." HOMEPAGE = "https://github.com/cmusphinx/pocketsphinx"
meta-python/recipes-devtools/python/python3-
Quoted 2 lines
meta-python/recipes-devtools/python/python3- new file +2
-0+SECTION = "devel/python" +LICENSE = "BSD-2-Clause"
Should this be BSD-2-Clause | MIT since one of the links in commit message points to a MIT license?
Quoted 31 lines
+LIC_FILES_CHKSUM = "file://LICENSE;md5=c4d720cdc9c6953091f65e8b01524bb4"
meta-python/recipes-devtools/python/python3- new file +3
-0+ +SRC_URI += "file://0001-cython-Use-cythyon3-in-cmake-check.patch" +SRC_URI[sha256sum] ="
27f4de0ca2d2bce391ce87eaab84fe6f0bc059b306fd1702d5fe6549b66e1586"meta-python/recipes-devtools/python/python3- new file +4
-0+ +inherit cmake pkgconfig pypi python3native + +DEPENDS += "swig-native python3-cython-native python3-scikit-build-native gstreamer1.0 gstreamer1.0-plugins-base"
meta-python/recipes-devtools/python/python3- new file +6
-0+ +EXTRA_OECMAKE += "-DBUILD_GSTREAMER=ON" + +PACKAGES += "${PN}-models ${MLPREFIX}gstreamer1.0-pocketsphinx" + +FILES:${MLPREFIX}gstreamer1.0-pocketsphinx = "${libdir}/gstreamer-1.0/"
+FILES:${PN}-models = "${datadir}/pocketsphinx/model"-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group. View/Reply Online (#108918):
https://lists.openembedded.org/g/openembedded-devel/message/108918
Mute This Topic: https://lists.openembedded.org/mt/104463679/3616702
Group Owner: [email protected] Unsubscribe:
https://lists.openembedded.org/g/openembedded-devel/unsub [
[email protected]]
-=-=-=-=-=-=-=-=-=-=-=-
Quoted 116 lines · Anuj
Hi Khem
Quoted 102 lines · Khem Raj
License-Update: New licenses added for WebRTC json parser, and json escaping
[1]
https://github.com/cmusphinx/pocketsphinx/commit/4cb5845898c7d9e53688aba370ea3c00c0ef7db2
[2]
https://github.com/cmusphinx/pocketsphinx/commit/6b9a923832a1fd77c5304eba18e63d8b0e2ef0b8Signed-off-by Khem Raj <[email protected]>--- ...1-cython-Use-cythyon3-in-cmake-check.patch | 29 +++++++++++++++++++ .../python/python3-pocketsphinx_0.1.15.bb | 14 --------- .../python/python3-pocketsphinx_5.0.3.bb | 20 +++++++++++++ 3 files changed, 49 insertions(+), 14 deletions(-) create mode 100644 meta-python/recipes-devtools/python/python3- pocketsphinx/0001-cython-Use-cythyon3-in-cmake-check.patch delete mode 100644 meta-python/recipes-devtools/python/python3- pocketsphinx_0.1.15.bb create mode 100644 meta-python/recipes-devtools/python/python3-pocketsphinx_5.0.3.bb
(quoted diff) +0
-0
pocketsphinx/0001-cython-Use-cythyon3-in-cmake-check.patchb/meta- python/recipes-devtools/python/python3-pocketsphinx/0001-cython-Use- cythyon3-in-cmake-check.patch
new file mode 100644
index 0000000000..40b2544d55meta-python/recipes-devtools/python/python3-pocketsphinx/0001- new file +0
-0cython-Use-cythyon3-in-cmake-check.patch
meta-python/recipes-devtools/python/python3-pocketsphinx/0001- new file +1
-0@@ -0,0 +1,29 @@ +From 5e6eb640f54a0d716d62ab4db8d96d3b6f3aa7bc Mon Sep 17 00:00:002001
meta-python/recipes-devtools/python/python3-pocketsphinx/0001- new file +20
-0+From: Khem Raj <[email protected]> +Date: Mon, 19 Feb 2024 22:11:41 -0800 +Subject: [PATCH] cython: Use cythyon3 in cmake check + +OE does not install cython anymore, it only has cython3 +therefore point the build system to find cython3 + +Upstream-Status: Inappropriate [ OE-Specific ] + +Signed-off-by: Khem Raj <[email protected]> +--- + cython/CMakeLists.txt | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/cython/CMakeLists.txt b/cython/CMakeLists.txt +index daa4f76..93dd030 100644 +--- a/cython/CMakeLists.txt ++++ b/cython/CMakeLists.txt +@@ -1,5 +1,5 @@ + find_package(Python COMPONENTS Interpreter Development.ModuleREQUIRED)
+-find_program(CYTHON "cython")
++find_program(CYTHON "cython3")meta-python/recipes-devtools/python/python3-pocketsphinx/0001- new file +3
-0+ + if(NOT USE_INSTALLED_POCKETSPHINX) + set_property(TARGET pocketsphinx PROPERTY
POSITION_INDEPENDENT_CODEon)
+--
+2.43.2meta-python/recipes-devtools/python/python3-pocketsphinx/0001- new file +1
-0+(quoted diff) +0
-0pocketsphinx_0.1.15.bb b/meta-python/recipes-devtools/python/python3- pocketsphinx_0.1.15.bb
deleted file mode 100644
index f7ffd9d268..0000000000
--- a/meta-python/recipes-devtools/python/python3- pocketsphinx_0.1.15.bb
+++/dev/null(quoted diff) +0
-1@@ -1,14 +0,0 @@ -SUMMARY = "This package provides a python interface to CMUSphinxbase and Pocketsphinx libraries created with SWIG and Setuptools."
-DESCRIPTION = "Python interface to CMU Sphinxbase and Pocketsphinx libraries"meta-python/recipes-devtools/python/python3-pocketsphinx_0.1.15.bb deleted +0
-4-HOMEPAGE = "https://github.com/bambocher/pocketsphinx-python" -SECTION = "devel/python" -LICENSE = "BSD-2-Clause" -LIC_FILES_CHKSUM ="file://LICENSE;md5=826ebda787eb48e78aec2624f9faba72"
meta-python/recipes-devtools/python/python3-pocketsphinx_0.1.15.bb deleted +0
-3- -SRC_URI[md5sum] = "94d008eebea16acb60a9ffe614575dee" -SRC_URI[sha256sum] ="
34d290745c7dbe6fa2cac9815b5c19d10f393e528ecd70e779c21ebc448f9b63"meta-python/recipes-devtools/python/python3-pocketsphinx_0.1.15.bb deleted +0
-5- -inherit pypi setuptools3 features_check - -DEPENDS += "swig-native pulseaudio" -REQUIRED_DISTRO_FEATURES += "pulseaudio"(quoted diff) +0
-0pocketsphinx_5.0.3.bb b/meta-python/recipes-devtools/python/python3- pocketsphinx_5.0.3.bb
new file mode 100644
index 0000000000..fad8f5ba42meta-python/recipes-devtools/python/python3- new file +0
-0pocketsphinx_5.0.3.bb
meta-python/recipes-devtools/python/python3- new file +1
-0@@ -0,0 +1,20 @@ +SUMMARY = "This package provides a python interface to CMUQuoted 5 lines
Sphinxbase and Pocketsphinx libraries created with SWIG and Setuptools."
+DESCRIPTION = "Python interface to CMU Sphinxbase and Pocketsphinx libraries"
+HOMEPAGE = "https://github.com/bambocher/pocketsphinx-python"Thank you for helping with this. I was working on this upgrade as well but yours seems better except I think this HOMEPAGE and DESCRIPTION should also change. Perhaps:
Quoted 5 lines
SUMMARY = "Python interface to Pocketsphinx libraries." DESCRIPTION = "Pythonsphinx is an Open source large vocabulary, speaker-independent continuous speech recognition engines." HOMEPAGE = "https://github.com/cmusphinx/pocketsphinx"
sounds ok. I have added this locally.
Quoted 6 lines
meta-python/recipes-devtools/python/python3-
Quoted 3 lines
meta-python/recipes-devtools/python/python3- new file +2
-0+SECTION = "devel/python" +LICENSE = "BSD-2-Clause"Should this be BSD-2-Clause | MIT since one of the links in commit message points to a MIT license?
On closer look there is BSD-3 also, so I have added both
Quoted 33 lines
Quoted 32 lines
+LIC_FILES_CHKSUM = "file://LICENSE;md5=c4d720cdc9c6953091f65e8b01524bb4"
meta-python/recipes-devtools/python/python3- new file +3
-0+ +SRC_URI += "file://0001-cython-Use-cythyon3-in-cmake-check.patch" +SRC_URI[sha256sum] ="
27f4de0ca2d2bce391ce87eaab84fe6f0bc059b306fd1702d5fe6549b66e1586"meta-python/recipes-devtools/python/python3- new file +4
-0+ +inherit cmake pkgconfig pypi python3native + +DEPENDS += "swig-native python3-cython-native python3-scikit-build-native gstreamer1.0 gstreamer1.0-plugins-base"
meta-python/recipes-devtools/python/python3- new file +6
-0+ +EXTRA_OECMAKE += "-DBUILD_GSTREAMER=ON" + +PACKAGES += "${PN}-models ${MLPREFIX}gstreamer1.0-pocketsphinx" + +FILES:${MLPREFIX}gstreamer1.0-pocketsphinx = "${libdir}/gstreamer-1.0/"
+FILES:${PN}-models = "${datadir}/pocketsphinx/model"-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group. View/Reply Online (#108918):
https://lists.openembedded.org/g/openembedded-devel/message/108918
Mute This Topic: https://lists.openembedded.org/mt/104463679/3616702
Group Owner: [email protected] Unsubscribe:
https://lists.openembedded.org/g/openembedded-devel/unsub [ [email protected]]
-=-=-=-=-=-=-=-=-=-=-=-