Bug 1129586

Summary: libspeechd-devel has incorrect pkg-config include folder
Product: [SUSE Linux Enterprise Server] Beta SUSE Linux Enterprise Server 12 SP4 Reporter: Tony Sarajärvi <tony.sarajarvi>
Component: OtherAssignee: Ruediger Oertel <ro>
Status: RESOLVED FIXED QA Contact: E-mail List <qa-bugs>
Severity: Normal    
Priority: P5 - None CC: dimstar, jengelh, mlin, pstivanin
Version: SLES12SP4Maint-Upd   
Target Milestone: ---   
Hardware: Other   
OS: SLES 12   
Whiteboard:
Found By: --- Services Priority:
Business Priority: Blocker: ---
Marketing QA Status: --- IT Deployment: ---

Description Tony Sarajärvi 2019-03-18 12:49:45 UTC
Install libspeechd-devel

The pkg config file "/usr/lib64/pkgconfig/speech-dispatcher.pc" will contain the line "includedir=/usr/include". It should in fact be "includedir=/usr/include/speech-dispatcher". Because of this pkg-config doesn't find the headers Qt's qtspeech module needs and it doesn't compile.

The package could also contain symbolic links directly into "/usr/include", that would fix the issue probably. But the first fix is a confirmed fix.
Comment 1 Ruediger Oertel 2019-03-19 12:05:45 UTC
submitted for SLE-12 (rq 187436)/SLE-15 (rq 187435)/Factory (rq 686400)
Comment 3 Dominique Leuenberger 2019-03-27 14:11:24 UTC
(In reply to Ruediger Oertel from comment #1)
> submitted for SLE-12 (rq 187436)/SLE-15 (rq 187435)/Factory (rq 686400)

That fix might be applicable to SLE12 - but at least on Factory it is not true, as the bug does not exist to start with.

The .pc file on Tumbleweed (libspeechd-devel-0.9.0-1.1.x86_64.rpm) already contains:

  prefix=/usr
  exec_prefix=/usr
  libdir=/usr/lib64
  includedir=/usr/include/speech-dispatcher

The submission only adds one more nested subdirectory, moving the headers to /usr/include/speech-dispatcher/speech-dispatcher (technically not wrong, but not what we aim for)

If this is still applicable on SLE15, then this would imply that speech-dispatcher 0.9.0 brought the fix for this to Tumbleweed.
Comment 4 Dominique Leuenberger 2019-03-27 14:17:42 UTC
For reference, this was fixed upstream with

https://github.com/brailcom/speechd/commit/e79b0531173e9dd4892b46a8b9cc11e8f8156e9c#diff-67e997bcfdac55191033d57a16d1408a (in the 0.8 branch)
Comment 5 Jan Engelhardt 2019-03-27 18:11:13 UTC
So it's broken upstream too, aaagh
Comment 6 Paolo Stivanin 2019-04-08 06:50:22 UTC
@Dominique Leuenberger: I'm working (qam-sle) on RR 187684 for SLE 15 and, as you wrote, the submission indeed added a nested subdir:

before:
  includedir=/usr/include/speech-dispatcher

after:
  includedir=/usr/include/speech-dispatcher/speech-dispatcher

Just to be sure, are we good with it?
Comment 7 Dominique Leuenberger 2019-04-08 06:58:30 UTC
(In reply to Paolo Stivanin from comment #6)
> @Dominique Leuenberger: I'm working (qam-sle) on RR 187684 for SLE 15 and,
> as you wrote, the submission indeed added a nested subdir:
> 
> before:
>   includedir=/usr/include/speech-dispatcher
> 
> after:
>   includedir=/usr/include/speech-dispatcher/speech-dispatcher
> 
> Just to be sure, are we good with it?

As far as I've seen, this was indeed an issue with SLE12 (as the bug is reported against) - but for SLE15, a newer version of speech-dispatcher is in use that addressed the error. So no patches should be required on SLE15 and beyond.

Does that patch what you observe?
Comment 8 Paolo Stivanin 2019-04-08 08:27:45 UTC
Yep, it's all good!
Comment 9 Swamp Workflow Management 2019-04-08 13:36:04 UTC
SUSE-RU-2019:0895-1: An update that has one recommended fix can now be installed.

Category: recommended (moderate)
Bug References: 1129586
CVE References: 
Sources used:
SUSE Linux Enterprise Module for Open Buildservice Development Tools 15 (src):    speech-dispatcher-0.8.8-3.3.2
SUSE Linux Enterprise Module for Desktop Applications 15 (src):    speech-dispatcher-0.8.8-3.3.2

*** NOTE: This information is not intended to be used for external
    communication, because this may only be a partial fix.
    If you have questions please reach out to maintenance coordination.
Comment 10 Swamp Workflow Management 2019-04-08 16:11:01 UTC
SUSE-RU-2019:0902-1: An update that has one recommended fix can now be installed.

Category: recommended (moderate)
Bug References: 1129586
CVE References: 
Sources used:
SUSE Linux Enterprise Software Development Kit 12-SP4 (src):    speech-dispatcher-0.8-10.3.1
SUSE Linux Enterprise Software Development Kit 12-SP3 (src):    speech-dispatcher-0.8-10.3.1
SUSE Linux Enterprise Server 12-SP4 (src):    speech-dispatcher-0.8-10.3.1
SUSE Linux Enterprise Server 12-SP3 (src):    speech-dispatcher-0.8-10.3.1
SUSE Linux Enterprise Desktop 12-SP4 (src):    speech-dispatcher-0.8-10.3.1
SUSE Linux Enterprise Desktop 12-SP3 (src):    speech-dispatcher-0.8-10.3.1

*** NOTE: This information is not intended to be used for external
    communication, because this may only be a partial fix.
    If you have questions please reach out to maintenance coordination.
Comment 11 Tony Sarajärvi 2019-04-11 08:50:36 UTC
Ok, so now 0.8-10.3.1 seems to have a new problem.

The includedir is this:
includedir=/usr/include/speech-dispatcher

But as mentioned, the code is now under
/usr/include/speech-dispatcher/speech-dispatcher

So by trying to use these libraries with "-isystem /usr/include/speech-dispatcher", my code will fail at "fatal error: libspeechd.h: No such file or directory".

If I modify the includedir to have the nested folder structure:
includedir=/usr/include/speech-dispatcher/speech-dispatcher
The code will fail at libspeechd.h including speechd_types.h from <speech-dispatcher/speechd_types.h>. 

The easiest solution to fix this latest problem is for me to just "sudo mv /usr/include/speech-dispatcher/speech-dispatcher/* /usr/include/speech-dispatcher/" and this time not touch the .pc file at all, but I think you want to fix this for the packages as well.
Comment 12 Ruediger Oertel 2019-04-11 13:04:58 UTC
*** Bug 1132088 has been marked as a duplicate of this bug. ***
Comment 13 Ruediger Oertel 2019-04-11 13:06:16 UTC
okay, thankfully this was already fixed for factory.
the first fix was correct for sle12
and for sle15 and thus leap15 I'll submit the reverting change now.
Comment 14 Ruediger Oertel 2019-04-11 13:06:49 UTC
SLE15: created request id 190396
Comment 16 Swamp Workflow Management 2019-04-16 13:12:13 UTC
openSUSE-RU-2019:1214-1: An update that has one recommended fix can now be installed.

Category: recommended (moderate)
Bug References: 1129586
CVE References: 
Sources used:
openSUSE Leap 15.0 (src):    speech-dispatcher-0.8.8-lp150.2.3.1
Comment 17 Swamp Workflow Management 2019-05-21 22:11:01 UTC
openSUSE-RU-2019:1424-1: An update that has one recommended fix can now be installed.

Category: recommended (moderate)
Bug References: 1129586
CVE References: 
Sources used:
openSUSE Leap 15.1 (src):    speech-dispatcher-0.8.8-lp151.3.3.1
Comment 18 Swamp Workflow Management 2019-05-24 01:09:24 UTC
SUSE-RU-2019:1327-1: An update that has one recommended fix can now be installed.

Category: recommended (moderate)
Bug References: 1129586
CVE References: 
Sources used:
SUSE Linux Enterprise Module for Open Buildservice Development Tools 15 (src):    speech-dispatcher-0.8.8-3.6.3
SUSE Linux Enterprise Module for Desktop Applications 15 (src):    speech-dispatcher-0.8.8-3.6.3

NOTE: This line indicates an update has been released for the listed product(s). At times this might be only a partial fix. If you have questions please reach out to maintenance coordination.
Comment 19 Swamp Workflow Management 2019-05-31 13:32:06 UTC
openSUSE-RU-2019:1480-1: An update that has one recommended fix can now be installed.

Category: recommended (moderate)
Bug References: 1129586
CVE References: 
Sources used:
openSUSE Leap 15.1 (src):    speech-dispatcher-0.8.8-lp151.3.6.1
openSUSE Leap 15.0 (src):    speech-dispatcher-0.8.8-lp150.2.6.1
Comment 20 Swamp Workflow Management 2019-07-02 19:19:16 UTC
SUSE-RU-2019:1327-2: An update that has one recommended fix can now be installed.

Category: recommended (moderate)
Bug References: 1129586
CVE References: 
Sources used:
SUSE Linux Enterprise Module for Open Buildservice Development Tools 15-SP1 (src):    speech-dispatcher-0.8.8-3.6.3
SUSE Linux Enterprise Module for Desktop Applications 15-SP1 (src):    speech-dispatcher-0.8.8-3.6.3

NOTE: This line indicates an update has been released for the listed product(s). At times this might be only a partial fix. If you have questions please reach out to maintenance coordination.