Bug 405532

Summary: KService fails to build on MacOS due to old bison
Product: [Frameworks and Libraries] frameworks-kservice Reporter: wojnilowicz <lukasz.wojnilowicz>
Component: generalAssignee: David Faure <faure>
Status: RESOLVED FIXED    
Severity: normal CC: kdelibs-bugs-null
Priority: NOR    
Version First Reported In: 5.56.0   
Target Milestone: ---   
Platform: Other   
OS: macOS   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:

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