diff options
| -rw-r--r-- | meta-oe/recipes-support/espeak/espeak.inc | 3 | ||||
| -rw-r--r-- | meta-oe/recipes-support/espeak/espeak_1.37.bb | 3 | ||||
| -rw-r--r-- | meta-oe/recipes-support/espeak/files/fix-gcc6-errors.patch | 19 |
3 files changed, 21 insertions, 4 deletions
diff --git a/meta-oe/recipes-support/espeak/espeak.inc b/meta-oe/recipes-support/espeak/espeak.inc index 98a17650f6..5d0b403085 100644 --- a/meta-oe/recipes-support/espeak/espeak.inc +++ b/meta-oe/recipes-support/espeak/espeak.inc | |||
| @@ -3,7 +3,8 @@ SECTION = "base" | |||
| 3 | LICENSE = "GPLv3" | 3 | LICENSE = "GPLv3" |
| 4 | LIC_FILES_CHKSUM = "file://License.txt;md5=cb7a20edb4c9f5f478de6523dcd7362c" | 4 | LIC_FILES_CHKSUM = "file://License.txt;md5=cb7a20edb4c9f5f478de6523dcd7362c" |
| 5 | 5 | ||
| 6 | SRC_URI = "${SOURCEFORGE_MIRROR}/espeak/espeak-${PV}-source.zip" | 6 | SRC_URI = "${SOURCEFORGE_MIRROR}/espeak/espeak-${PV}-source.zip \ |
| 7 | file://fix-gcc6-errors.patch" | ||
| 7 | 8 | ||
| 8 | S = "${WORKDIR}/espeak-${PV}-source" | 9 | S = "${WORKDIR}/espeak-${PV}-source" |
| 9 | 10 | ||
diff --git a/meta-oe/recipes-support/espeak/espeak_1.37.bb b/meta-oe/recipes-support/espeak/espeak_1.37.bb index 2cf5ff22e5..273fe340e3 100644 --- a/meta-oe/recipes-support/espeak/espeak_1.37.bb +++ b/meta-oe/recipes-support/espeak/espeak_1.37.bb | |||
| @@ -42,6 +42,3 @@ do_install() { | |||
| 42 | cp -prf ${S}/espeak-data/* ${D}${datadir}/espeak-data | 42 | cp -prf ${S}/espeak-data/* ${D}${datadir}/espeak-data |
| 43 | chown -R root:root ${D}${datadir}/espeak-data | 43 | chown -R root:root ${D}${datadir}/espeak-data |
| 44 | } | 44 | } |
| 45 | |||
| 46 | # http://errors.yoctoproject.org/Errors/Details/68663/ | ||
| 47 | PNBLACKLIST[espeak] ?= "BROKEN: fails to build with gcc-6" | ||
diff --git a/meta-oe/recipes-support/espeak/files/fix-gcc6-errors.patch b/meta-oe/recipes-support/espeak/files/fix-gcc6-errors.patch new file mode 100644 index 0000000000..9cf23cf031 --- /dev/null +++ b/meta-oe/recipes-support/espeak/files/fix-gcc6-errors.patch | |||
| @@ -0,0 +1,19 @@ | |||
| 1 | Fix gcc6 errors with narrowing | ||
| 2 | |||
| 3 | | tr_languages.cpp:462:73: error: narrowing conversion of '171' from 'int' to 'char' inside { } [-Wnarrowing] | ||
| 4 | | static const char ko_voiced[] = {0x02,0x05,0x06,0xab,0xaf,0xb7,0xbc,0}; // voiced consonants, l,m,n,N | ||
| 5 | |||
| 6 | Upstream-Status: Backport | ||
| 7 | |||
| 8 | Signed-off-by: Derek Straka <derek@asterius.io> | ||
| 9 | --- a/src/tr_languages.cpp | ||
| 10 | +++ b/src/tr_languages.cpp | ||
| 11 | @@ -459,7 +459,7 @@ | ||
| 12 | case L('k','o'): // Korean, TEST | ||
| 13 | { | ||
| 14 | static const char ko_ivowels[] = {0x63,0x64,0x67,0x68,0x6d,0x72,0x74,0x75,0}; // y and i vowels | ||
| 15 | - static const char ko_voiced[] = {0x02,0x05,0x06,0xab,0xaf,0xb7,0xbc,0}; // voiced consonants, l,m,n,N | ||
| 16 | + static const char ko_voiced[] = {0x02,0x05,0x06,(char)0xab,(char)0xaf,(char)0xb7,(char)0xbc,0}; // voiced consonants, l,m,n,N | ||
| 17 | tr = new Translator(); | ||
| 18 | |||
| 19 | tr->letter_bits_offset = OFFSET_KOREAN; | ||
