mycroft: Fixup remaining issues

This patch combines a few fixups:
 - Don't bother users about missing package manager
 - Use pocketsphinx by default (as it works on RISC-V)
 - Add Upstream-Status to all patches

Signed-off-by: Alistair Francis <alistair.francis@wdc.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
This commit is contained in:
Alistair Francis
2019-10-25 14:47:21 -07:00
committed by Khem Raj
parent b123e01e3e
commit 7f8b94f8a4
8 changed files with 78 additions and 14 deletions
@@ -1,7 +1,7 @@
From 07fce2101d83b5334de78e661ba0361c2874ebdf Mon Sep 17 00:00:00 2001 From 07fce2101d83b5334de78e661ba0361c2874ebdf Mon Sep 17 00:00:00 2001
From: Alistair Francis <alistair.francis@wdc.com> From: Alistair Francis <alistair.francis@wdc.com>
Date: Mon, 18 Mar 2019 16:30:45 -0700 Date: Mon, 18 Mar 2019 16:30:45 -0700
Subject: [PATCH 1/5] Remove python venv Subject: [PATCH 1/7] Remove python venv
Remove the python venv requirements and instead just use the native Remove the python venv requirements and instead just use the native
python and pip pacakges. python and pip pacakges.
@@ -1,7 +1,7 @@
From 88696037af52d6a7f57bc0fb82598de1a25365cc Mon Sep 17 00:00:00 2001 From 88696037af52d6a7f57bc0fb82598de1a25365cc Mon Sep 17 00:00:00 2001
From: Alistair Francis <alistair.francis@wdc.com> From: Alistair Francis <alistair.francis@wdc.com>
Date: Fri, 29 Mar 2019 16:09:57 -0700 Date: Fri, 29 Mar 2019 16:09:57 -0700
Subject: [PATCH 2/5] dev_setup.sh: Remove the git dependency Subject: [PATCH 2/7] dev_setup.sh: Remove the git dependency
Signed-off-by: Alistair Francis <alistair.francis@wdc.com> Signed-off-by: Alistair Francis <alistair.francis@wdc.com>
Upstream-Status: Inappropriate [embedded specific] Upstream-Status: Inappropriate [embedded specific]
@@ -1,9 +1,10 @@
From 5ef52cdea278a1dff966a912549cb6708f2cb699 Mon Sep 17 00:00:00 2001 From 5ef52cdea278a1dff966a912549cb6708f2cb699 Mon Sep 17 00:00:00 2001
From: Alistair Francis <alistair.francis@wdc.com> From: Alistair Francis <alistair.francis@wdc.com>
Date: Tue, 17 Sep 2019 11:31:47 -0700 Date: Tue, 17 Sep 2019 11:31:47 -0700
Subject: [PATCH 3/5] dev_setup.sh: Remove the TERM dependency Subject: [PATCH 3/7] dev_setup.sh: Remove the TERM dependency
Signed-off-by: Alistair Francis <alistair.francis@wdc.com> Signed-off-by: Alistair Francis <alistair.francis@wdc.com>
Upstream-Status: Inappropriate [embedded specific]
--- ---
dev_setup.sh | 12 ------------ dev_setup.sh | 12 ------------
1 file changed, 12 deletions(-) 1 file changed, 12 deletions(-)
@@ -0,0 +1,31 @@
From e3b6ca995caca22e65d012a54bc2aeb08eb7e9d4 Mon Sep 17 00:00:00 2001
From: Alistair Francis <alistair.francis@wdc.com>
Date: Tue, 15 Oct 2019 17:09:06 -0700
Subject: [PATCH 4/7] dev_setup.sh: Ignore missing package manager
Signed-off-by: Alistair Francis <alistair.francis@wdc.com>
Upstream-Status: Inappropriate [embedded specific]
---
dev_setup.sh | 6 ------
1 file changed, 6 deletions(-)
diff --git a/dev_setup.sh b/dev_setup.sh
index 72f734f36bf..0c8e11b8170 100755
--- a/dev_setup.sh
+++ b/dev_setup.sh
@@ -317,12 +317,6 @@ Please review the following package changes carefully."
echo -e "${YELLOW}Could not find package manager
${YELLOW}Make sure to manually install:$BLUE git python3 python-setuptools python-venv pygobject libtool libffi libjpg openssl autoconf bison swig glib2.0 portaudio19 mpg123 flac curl fann g++ jq\n$RESET"
- echo 'Warning: Failed to install all dependencies. Continue? y/N'
- read -n1 continue
- if [[ $continue != 'y' ]] ; then
- exit 1
- fi
-
fi
}
--
2.23.0
@@ -1,7 +1,7 @@
From ac749f2512e8d121e8a64a8d5e6f226f16735dda Mon Sep 17 00:00:00 2001 From 04b14c4569309f1a433d955773aeb8a3607a1360 Mon Sep 17 00:00:00 2001
From: Alistair Francis <alistair.francis@wdc.com> From: Alistair Francis <alistair.francis@wdc.com>
Date: Tue, 19 Mar 2019 13:32:54 -0700 Date: Tue, 19 Mar 2019 13:32:54 -0700
Subject: [PATCH 4/5] pip requirements: Don't install requirements with pip Subject: [PATCH 5/7] pip requirements: Don't install requirements with pip
Signed-off-by: Alistair Francis <alistair.francis@wdc.com> Signed-off-by: Alistair Francis <alistair.francis@wdc.com>
Upstream-Status: Inappropriate [embedded specific] Upstream-Status: Inappropriate [embedded specific]
@@ -14,10 +14,10 @@ Upstream-Status: Inappropriate [embedded specific]
delete mode 100644 test-requirements.txt delete mode 100644 test-requirements.txt
diff --git a/dev_setup.sh b/dev_setup.sh diff --git a/dev_setup.sh b/dev_setup.sh
index 72f734f36bf..b5ca6851631 100755 index 0c8e11b8170..be4a19de0c3 100755
--- a/dev_setup.sh --- a/dev_setup.sh
+++ b/dev_setup.sh +++ b/dev_setup.sh
@@ -357,19 +357,6 @@ fi @@ -351,19 +351,6 @@ fi
PYTHON=$(python -c "import sys;print('python{}.{}'.format(sys.version_info[0], sys.version_info[1]))") PYTHON=$(python -c "import sys;print('python{}.{}'.format(sys.version_info[0], sys.version_info[1]))")
@@ -37,7 +37,7 @@ index 72f734f36bf..b5ca6851631 100755
SYSMEM=$(free | awk '/^Mem:/ { print $2 }') SYSMEM=$(free | awk '/^Mem:/ { print $2 }')
MAXCORES=$(($SYSMEM / 512000)) MAXCORES=$(($SYSMEM / 512000))
MINCORES=1 MINCORES=1
@@ -426,4 +413,4 @@ if [[ ! -w /var/log/mycroft/ ]] ; then @@ -420,4 +407,4 @@ if [[ ! -w /var/log/mycroft/ ]] ; then
fi fi
#Store a fingerprint of setup #Store a fingerprint of setup
@@ -1,7 +1,7 @@
From 9a0bd09706da3949db17ea7272d6647a487bb6ad Mon Sep 17 00:00:00 2001 From 86a1d18d96f827baa0c1029c85a53fc89d436e17 Mon Sep 17 00:00:00 2001
From: Alistair Francis <alistair.francis@wdc.com> From: Alistair Francis <alistair.francis@wdc.com>
Date: Tue, 19 Mar 2019 13:38:44 -0700 Date: Tue, 19 Mar 2019 13:38:44 -0700
Subject: [PATCH 5/5] Use python3 and pip3 instead of python and pip Subject: [PATCH 6/7] Use python3 and pip3 instead of python and pip
Signed-off-by: Alistair Francis <alistair.francis@wdc.com> Signed-off-by: Alistair Francis <alistair.francis@wdc.com>
Upstream-Status: Inappropriate [embedded specific] Upstream-Status: Inappropriate [embedded specific]
@@ -73,7 +73,7 @@ index d80f0e75b13..9448ea3400f 100755
-output=$(python -m mycroft.messagebus.send "speak" "{\"utterance\": \"$data\"}") -output=$(python -m mycroft.messagebus.send "speak" "{\"utterance\": \"$data\"}")
+output=$(python3 -m mycroft.messagebus.send "speak" "{\"utterance\": \"$data\"}") +output=$(python3 -m mycroft.messagebus.send "speak" "{\"utterance\": \"$data\"}")
diff --git a/dev_setup.sh b/dev_setup.sh diff --git a/dev_setup.sh b/dev_setup.sh
index b5ca6851631..fcd0834669f 100755 index be4a19de0c3..2d9e17ddfd6 100755
--- a/dev_setup.sh --- a/dev_setup.sh
+++ b/dev_setup.sh +++ b/dev_setup.sh
@@ -48,7 +48,7 @@ param='' @@ -48,7 +48,7 @@ param=''
@@ -94,7 +94,7 @@ index b5ca6851631..fcd0834669f 100755
fi fi
done done
@@ -355,7 +355,7 @@ else @@ -349,7 +349,7 @@ else
fi fi
fi fi
@@ -0,0 +1,30 @@
From b48b3d240cb0fa5e76aa5daf578e51bb8126431d Mon Sep 17 00:00:00 2001
From: Alistair Francis <alistair.francis@wdc.com>
Date: Wed, 16 Oct 2019 09:18:39 -0700
Subject: [PATCH 7/7] mycroft.conf: Use pocketsphinx by default
precise only works on certain architectures, to make Mycroft more
versitle use pocketsphinx as it is architecture independent.
Signed-off-by: Alistair Francis <alistair.francis@wdc.com>
Upstream-Status: Inappropriate [embedded specific]
---
mycroft/configuration/mycroft.conf | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/mycroft/configuration/mycroft.conf b/mycroft/configuration/mycroft.conf
index 1d0be0dcd2b..d2dc75dac44 100644
--- a/mycroft/configuration/mycroft.conf
+++ b/mycroft/configuration/mycroft.conf
@@ -196,7 +196,7 @@
// Hotword configurations
"hotwords": {
"hey mycroft": {
- "module": "precise",
+ "module": "pocketsphinx",
"phonemes": "HH EY . M AY K R AO F T",
"threshold": 1e-90,
"lang": "en-us"
--
2.23.0
@@ -11,8 +11,10 @@ SRC_URI = "git://github.com/MycroftAI/mycroft-core.git;branch=master \
file://0001-Remove-python-venv.patch \ file://0001-Remove-python-venv.patch \
file://0002-dev_setup.sh-Remove-the-git-dependency.patch \ file://0002-dev_setup.sh-Remove-the-git-dependency.patch \
file://0003-dev_setup.sh-Remove-the-TERM-dependency.patch \ file://0003-dev_setup.sh-Remove-the-TERM-dependency.patch \
file://0004-pip-requirements-Don-t-install-requirements-with-pip.patch \ file://0004-dev_setup.sh-Ignore-missing-package-manager.patch \
file://0005-Use-python3-and-pip3-instead-of-python-and-pip.patch \ file://0005-pip-requirements-Don-t-install-requirements-with-pip.patch \
file://0006-Use-python3-and-pip3-instead-of-python-and-pip.patch \
file://0007-mycroft.conf-Use-pocketsphinx-by-default.patch \
file://dev_opts.json \ file://dev_opts.json \
file://mycroft-setup.service \ file://mycroft-setup.service \
file://mycroft.service \ file://mycroft.service \