Bug 405532 - KService fails to build on MacOS due to old bison
Summary: KService fails to build on MacOS due to old bison
Status: RESOLVED FIXED
Alias: None
Product: frameworks-kservice
Classification: Frameworks and Libraries
Component: general (show other bugs)
Version: 5.56.0
Platform: Other macOS
: NOR normal
Target Milestone: ---
Assignee: David Faure
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2019-03-16 16:26 UTC by wojnilowicz
Modified: 2019-03-31 07:31 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description wojnilowicz 2019-03-16 16:26:49 UTC
SUMMARY
Building KService on MacOS High Sierra fails with stock bison 2.3.


OBSERVED RESULT
[  9%] [34m[1m[BISON][TraderParser] Building parser with bison 2.3[0m
services/yacc.y:18.1-5: invalid directive: `%code'
services/yacc.y:18.7-14: syntax error, unexpected identifier
make[6]: *** [src/yacc.c] Error 1
make[5]: *** [src/CMakeFiles/KF5Service.dir/all] Error 2

EXPECTED RESULT
No build error.

ADDITIONAL INFORMATION
There is a check in CMakeLists.txt for bison
find_package(BISON REQUIRED)
but there is no minimal version requirement, which seems to be not correct. KService compiles on MacOS if bison version is higher.
Comment 1 Christoph Feck 2019-03-31 07:30:47 UTC
Fixed by Kurt Hindenburg with https://commits.kde.org/kservice/6b46411622b04cd5027806f538ec6af3652a4906