Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 650474

Summary: app-accessibility/speech-tools-2.5 version bump
Product: Gentoo Linux Reporter: Mihai Moldovan <ionic>
Component: Current packagesAssignee: Andrew Savchenko <bircoph>
Status: RESOLVED FIXED    
Severity: normal CC: accessibility, michael.nospam1, phmagic, plevine457, sound
Priority: Normal Keywords: EBUILD, PATCH, PullRequest
Version: unspecified   
Hardware: All   
OS: Linux   
See Also: https://github.com/gentoo/gentoo/pull/16011
Whiteboard:
Package list:
Runtime testing required: ---
Bug Depends on:    
Bug Blocks: 612980    
Attachments: speech-tools 2.5 ebuild
speech-tools-2.5-all-gcc42.patch
speech-tools-2.5-all-GentooLinux.patch
speech-tools-2.5-all-sharedlib.patch
speech-tools-2.5-all-gcc43-include.patch
speech-tools-2.5-all-remove-shared-refs.patch
speech-tools-2.5-all-base_class.patch
speech-tools-2.5-all-etcpath.patch
speech-tools-2.5-all-gentoo-config.patch
speech-tools-2.5-all-ldflags-fix.patch
speech-tools-2.5-all-mixed-cxxflag-cflag-fix.patch
speech-tools-2.5-all-ncurses-tinfo.patch
updated speech-tools-2.1-gcc7.patch

Description Mihai Moldovan 2018-03-14 12:12:53 UTC
Created attachment 523866 [details]
speech-tools 2.5 ebuild

Version 2.5 is available, fixing C++14 issues encountered with GCC 6+ (c.f., #634928 ).

I've had a pretty hard time with the patchset, which is why I unrolled it. Didn't really want to pack a modified tarball and upload it somewhere.

I guess you will want to do this, though, so the ebuild is not meant for direct submission without modifications.

A better way to get the patch files probably is via https://git.ionic.de/gentoo-overlay.git/tree/HEAD:/app-accessibility/speech-tools/files though I will also upload them individually here.

This is needed as prerequisite for bumping festival to 2.5 and getting rid of the segfault.
Comment 1 Mihai Moldovan 2018-03-14 12:14:13 UTC
Created attachment 523868 [details, diff]
speech-tools-2.5-all-gcc42.patch
Comment 2 Mihai Moldovan 2018-03-14 12:14:42 UTC
Created attachment 523870 [details, diff]
speech-tools-2.5-all-GentooLinux.patch
Comment 3 Mihai Moldovan 2018-03-14 12:15:08 UTC
Created attachment 523872 [details, diff]
speech-tools-2.5-all-sharedlib.patch
Comment 4 Mihai Moldovan 2018-03-14 12:15:31 UTC
Created attachment 523874 [details, diff]
speech-tools-2.5-all-gcc43-include.patch
Comment 5 Mihai Moldovan 2018-03-14 12:16:02 UTC
Created attachment 523876 [details, diff]
speech-tools-2.5-all-remove-shared-refs.patch
Comment 6 Mihai Moldovan 2018-03-14 12:16:39 UTC
Created attachment 523878 [details, diff]
speech-tools-2.5-all-base_class.patch
Comment 7 Mihai Moldovan 2018-03-14 12:16:59 UTC
Created attachment 523880 [details, diff]
speech-tools-2.5-all-etcpath.patch
Comment 8 Mihai Moldovan 2018-03-14 12:17:24 UTC
Created attachment 523882 [details, diff]
speech-tools-2.5-all-gentoo-config.patch
Comment 9 Mihai Moldovan 2018-03-14 12:17:47 UTC
Created attachment 523884 [details, diff]
speech-tools-2.5-all-ldflags-fix.patch
Comment 10 Mihai Moldovan 2018-03-14 12:18:07 UTC
Created attachment 523886 [details, diff]
speech-tools-2.5-all-mixed-cxxflag-cflag-fix.patch
Comment 11 Mihai Moldovan 2018-03-14 12:18:47 UTC
Created attachment 523888 [details, diff]
speech-tools-2.5-all-ncurses-tinfo.patch
Comment 12 Alexander Bezrukov 2019-05-13 10:14:54 UTC
Created attachment 576406 [details, diff]
updated speech-tools-2.1-gcc7.patch

It looks to me that the patch speech-tools-2.1-gcc7.patch contains obvious error (a null-terminated string is created at uninitialized address).

There is a semantic difference between C++ and C: in C character literals are always int, in C++ they are either char or int, context dependent. In the case in question code was written in C-style and was correct for C but is broken in C++.

Please consider the updated variant.
Comment 13 Alexander Bezrukov 2019-05-13 10:31:09 UTC
(In reply to Alexander Bezrukov from comment #12)
> Please consider the updated variant.

Sorry, please disregard my comment. The original patch is broken but it is not needed at all and is not applied. And the original code is correct even in C++.
Comment 14 Andrew Savchenko gentoo-dev 2019-06-09 17:24:23 UTC
Thanks. It works locally, but needs additional patching (both from the latest Gentoo patchset and some Debian patches for known segfaults and other problems).
Comment 15 Mihai Moldovan 2019-06-12 02:33:40 UTC
Thanks for taking that up!

The ebuild should probably also see an EAPI bump from 5 to 7. I haven't done that back than because my PM lacked EAPI 7 support.

Pulling the patches from Debian also sounds like a good idea (they backported most of them anyway from upstream). Probably just a bit time consuming to figure out what's needed and we already have, including a bit of rebasing.

Has the Gentoo patch set been updated? The patches I dropped weren't necessary as far as I could tell, but maybe something happened during the last year.
Comment 16 Andrew Savchenko gentoo-dev 2019-07-14 13:25:51 UTC
Some patches are Debian-specific like wave-format change: it is more compact, but incompatible with upstream, so I don't want to use it, at least now.

Gentoo patchset was updated as well: support for ncurses with separate terminfo (tinfo) was added.
Comment 17 Andreas K. Hüttel archtester gentoo-dev 2019-07-27 18:29:07 UTC
ping
Comment 18 Andreas K. Hüttel archtester gentoo-dev 2019-08-01 17:13:18 UTC
ping
Comment 19 Andrew Savchenko gentoo-dev 2019-08-05 10:16:38 UTC
Hi! I finally have a vacation and time for Gentoo, though my resources are limited to an old netbook, inet connection quality is not suitable for ssh to use other hosts . So it will take some time and I'm going to fix this stuff within few days.
Comment 20 Larry the Git Cow gentoo-dev 2020-08-23 15:33:26 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=063df9aae04bc82fef0ec6d51144052251cb4b3b

commit 063df9aae04bc82fef0ec6d51144052251cb4b3b
Author:     Peter Levine <plevine457@gmail.com>
AuthorDate: 2020-05-30 07:14:29 +0000
Commit:     Miroslav Šulc <fordfrog@gentoo.org>
CommitDate: 2020-08-23 15:33:19 +0000

    app-accessibility/speech-tools: Bump speech-tools-2.5.0
    
    Closes: https://bugs.gentoo.org/650474
    Closes: https://github.com/gentoo/gentoo/pull/16011
    Bug: https://bugs.gentoo.org/685810
    Package-Manager: Portage-2.3.100, Repoman-2.3.22
    Signed-off-by: Peter Levine <plevine457@gmail.com>
    Signed-off-by: Miroslav Šulc <fordfrog@gentoo.org>

 app-accessibility/speech-tools/Manifest            |   1 +
 .../files/speech-tools-2.5.0-fno-common.patch      |  22 ++++
 .../speech-tools/speech-tools-2.5.0.ebuild         | 141 +++++++++++++++++++++
 3 files changed, 164 insertions(+)